4dc5c1ec0df77fb3f98db3a389f27e42a3504949
[gnulib.git] / ChangeLog
1 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2
3         system-quote-tests: port to CentOS 5
4         Problem reported by Tom G. Christensen in
5         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
6         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
7
8 2012-05-29  Jim Meyering  <meyering@redhat.com>
9
10         maint: fix typos in comments and ChangeLog
11         Culprits identified and fixed mostly automatically using these commands:
12         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
13         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
14         using http://github.com/lyda/misspell-check
15         * ChangeLog: Fix typos.
16         * doc/solaris-versions: Likewise.
17         * lib/regexec.c (re_search_stub): Likewise.
18         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19
20 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
21
22         manywarnings: remove duplicate -Wmultichar entry
23         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
24         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
25         so keep the entry marked as documented.
26
27 2012-05-27  Karl Berry  <karl@gnu.org>
28
29         * config/srclist.txt (mktime.c): remove last libc sync,
30         perhaps just temporarily.
31
32 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
33
34         regex: don't assume uint64_t or uint32_t
35         * lib/regcomp.c (init_word_char): Don't assume that the types
36         uint64_t and uint32_t exist.  The C standard doesn't guarantee
37         them, and on some 32-bit compilers there is no uint64_t.
38         Problem reported by Gianluigi Tiesi in
39         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
40
41 2012-05-25  Jim Meyering  <meyering@redhat.com>
42
43         maint.mk: add strncpy-prohibiting syntax-check rule
44         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
45
46 2012-05-24  Jim Meyering  <meyering@redhat.com>
47
48         maint.mk: compute $(gpg_key_ID) more portably
49         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
50         That use of sed is not portable to some fringe systems.
51         Reported by Paul Eggert in
52         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
53
54 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
55
56         mktime: sync from glibc
57         * config/srclist.txt: Uncomment mktime.c.
58         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
59         First, indent with tabs, since glibc uses tabs and doesn't want to
60         change and we'd rather be identical to glibc.  Also, two small
61         coding changes:
62         (isdst_differ): Use &&, not &, as && is the usual style.
63         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
64         for clarity.
65
66 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
67
68         announce-gen: du -h is more portable than du --human
69         * build-aux/announce-gen (sizes): Invoke du with -h instead
70         of --human.  Accept leading white space in its output.
71
72 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
73
74         announce-gen: Improve diagnostics.
75         * build-aux/announce-gen: When parsing command line options,
76         prefer "announce-gen: option --release-type requires an argument"
77         to "Option release-type requires an argument".
78
79 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
80
81         maint.mk: gpg_key_ID: use sed more portably
82         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
83         the closing brace.
84         (refresh-po): Fuse two sed invocations into one.
85
86 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
87
88         gitlog-to-changelog: support the log message format used in Bison.
89         * build-aux/gitlog-to-changelog: Support --strip-tab and
90         --strip-cherry-picked.
91
92 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
93
94         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
95         the rest of the current time slice to another thread in the current
96         process. So if the thread that feeds the file decscriptor we're
97         polling is not in the current process, we get busy-waiting.
98         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
99         Patch from Theodore Leblond.
100         * lib/select.c: Split polling out of the loop that sets the output
101         fd_sets.  Check for zero result and loop if the wait timeout is
102         infinite.
103
104 2012-05-21  Simon Josefsson  <simon@josefsson.org>
105
106         select: Fix build error on IRIX 6.5.
107         * lib/select.c: Include stddef.h for NULL.
108
109 2012-05-21  Simon Josefsson  <simon@josefsson.org>
110
111         gc: fix libgcrypt detection on older machines.
112         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
113         copyright years because the file has been distributed every year
114         since it was created.
115
116 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
117
118         crypto: fix bug in large buffer handling
119         Problem reported by Serge Belyshev for glibc in
120         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
121         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
122         * lib/md4.c (md4_process_block):
123         * lib/md5.c (md5_process_block):
124         * lib/sha1.c (sha1_process_block):
125         * lib/sha256.c (sha256_process_block):
126         Don't assume the buffer length is less than 2**32.
127         * lib/sha512.c (sha512_process_block): Likewise.
128         Here, the bug is present only in the rare case where the host does
129         not support uint64_t or where size_t is wider than 64 bits.
130         Use u64size to work around the problems.
131         * lib/u64.h (u64size): New macro.
132
133 2012-05-15  Pádraig Brady  <P@draigBrady.com>
134
135         fsusage: fix block size returned on older Linux 2.6
136
137         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
138         which is available since Linux 2.6.
139         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
140         when the member is available so it can be used as a fallback.
141         * doc/posix-functions/statvfs.texi: Mention the hang issue
142         on Linux < 2.6.36.
143
144 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
145
146         bootstrap: suppress stderr chatter
147         * build-aux/bootstrap (insert_sorted_if_absent, main program):
148         Omit unnecessary chatter to stderr.  The main program chatter
149         was there only inadvertantly.
150
151         bootstrap: .gitignore files created by autopoint, libtool
152         I ran into this problem when bootstrapping the latest diffutils.
153         After './bootstrap', 'git status' reported lots of untracked files
154         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
155         autopoint and do not need to be version-controlled.
156         * build-aux/bootstrap: Put into .gitignore the files that
157         autopoint and libtool create, by keeping track of files that exist
158         after but not before these programs are run.
159         (version_controlled_file): Move up.  2nd arg is now full file
160         name, not base name; this is more convenient.  Put CVS at the end,
161         as it's now somewhat deprecated.
162
163 2012-05-14  Jim Meyering  <meyering@redhat.com>
164
165         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
166         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
167         definition.  Reported by Bruno Haible.
168
169 2012-05-13  Bruno Haible  <bruno@clisp.org>
170             Paul Eggert  <eggert@cs.ucla.edu>
171
172         binary-io: Define set_binary_mode function.
173         * lib/binary-io.h (set_binary_mode): New function.
174         (SET_BINARY): Define in terms of set_binary_mode.
175         * modules/binary-io (configure.ac): Require AC_C_INLINE.
176         * tests/test-binary-io.c (main): Accept an argument, and test either
177         set_binary_mode or SET_BINARY depending on the argument.
178         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
179         argument. Clean up also t-bin-out0.tmp.
180
181 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
182
183         bootstrap: take advantage of POSIX shell features
184
185         The 'bootstrap' script offered by Gnulib script already uses POSIX
186         shell features (like $((...)) arithmetic expansions) that are not
187         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
188         means that bootstrap must already be run using a proper POSIX shell,
189         which will thus provide more features, like ${var#pattern} parameter
190         expansion or inversion of a command exit status with '!'.  We can
191         thus use these features to improve the clarity and the performances
192         of the bootstrap script.
193
194         Suggested by Eric Blake.
195
196         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
197         of sed/expr plus command substitutions, to save some forks.  While
198         we are at it, prefer the POSIX $(...) form of command substitution,
199         rather than the legacy form `...` (since the former is visually
200         clearer and interacts better with quoting), and prefer the idiom:
201           "if ! CMD; then ACTION ..."
202         over the idiom:
203           "if CMD; then :; else ACTION ..."
204         which was required by legacy Bourne shells not supporting '!'.
205
206 2012-05-12  Bruno Haible  <bruno@clisp.org>
207
208         system-quote: Add more comments.
209         * lib/system-quote.h: Add more comments about wilcards and limitations.
210         Suggested by Eli Zaretskii <eliz@gnu.org>.
211
212         sh-quote, system-quote: Add comments about wildcards.
213         * lib/sh-quote.h: Clarify what happens with wildcard characters.
214         * lib/system-quote.h: Likewise.
215         Reported by Eli Zaretskii <eliz@gnu.org>.
216
217 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
218
219         fsusage: check for GNU/Linux statvfs problem dynamically
220         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
221         Define STAT_STATFS2_BSIZE too, since in this case the code now
222         checks dynamically whether statvfs is reliable, falling back on
223         Linux-style statfs otherwise.
224         (statvfs_works): New function, for dynamically testing statvfs.
225         (get_fs_usage) [STAT_STATVFS]: Use it.
226         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
227         statvfs on GNU/Linux hosts, since it's now done dynamically.
228
229 2012-05-10  Bruno Haible  <bruno@clisp.org>
230
231         system-quote, execute, spawn-pipe: Escape '?' on Windows.
232         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
233         '?' character.
234         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
235         * tests/test-system-quote-main.c (check_all): Check also strings like
236         "??????????".
237         Reported by Eli Zaretskii <eliz@gnu.org>.
238
239 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
240
241         _Noreturn: port config.h to gcc -Wundef
242         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
243         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
244         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
245
246 2012-05-10  Bruno Haible  <bruno@clisp.org>
247
248         system-quote: Refactor.
249         * lib/system-quote.h (system_quote_copy): Fix comment.
250         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
251         New functions, extracted from system_quote_copy.
252         (system_quote_length, system_quote_copy): Use these functions.
253         Reported by Paul Eggert.
254
255 2012-05-08  Bruno Haible  <bruno@clisp.org>
256
257         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
258         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
259
260 2012-05-08  Bruno Haible  <bruno@clisp.org>
261
262         Tests for module 'system-quote'.
263         * modules/system-quote-tests: New file.
264         * tests/test-system-quote.sh: New file.
265         * tests/test-system-quote-main.c: New file.
266         * tests/test-system-quote-child.c: New file.
267
268         New module 'system-quote'.
269         * lib/system-quote.h: New file.
270         * lib/system-quote.c: New file.
271         * modules/system-quote: New file.
272
273 2012-05-08  Bruno Haible  <bruno@clisp.org>
274
275         sh-quote: Make C++ safe and allow multiple inclusion.
276         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
277         declarations in extern "C".
278
279 2012-05-08  Bruno Haible  <bruno@clisp.org>
280
281         sh-quote tests: Make tests stricter.
282         * tests/test-sh-quote.c (check_one): Check the return value of
283         shell_quote_copy.
284         (main): Check a string with a CR character. Check a string that
285         contains UCHAR_MAX.
286
287 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
288
289         warnings.m4: provide a means to specify the program to compile.
290         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
291         (gl_WARN_ADD): here.
292         Use gl_AS_VAR_APPEND.
293         Support an argument to specify the program to compile.
294         (gl_WARN_ADD): Accept an argument to specify the program to compile.
295         AC_SUBST the WARN_CFLAGS when they are used.
296         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
297         leave this to gl_WARN_ADD.
298
299 2012-05-08  Eric Blake  <eblake@redhat.com>
300
301         doc: recommendations on gettext version
302         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
303         choice between versions.
304         * DEPENDENCIES (gettext): Cover both approaches.
305
306 2012-05-08  Jim Meyering  <meyering@redhat.com>
307
308         init.sh: explain why EXEEXT support uses aliases rather than functions
309         * tests/init.sh: Add a comment.
310
311         init.sh: don't let bash aliases interfere with tests
312         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
313         is bash.  This avoids problems for those who alias standard commands to
314         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
315         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
316
317 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
318
319         stdint: be more consistent with glibc, SunOS libc
320         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
321         (gl_int_fast16_t, gl_uint_fast16_t)
322         (gl_int_fast32_t, gl_uint_fast32_t)
323         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
324         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
325         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
326         Be consistent with glibc by default, and with SunOS 5.10 and later
327         if __sun is defined.  This lessens the likelihood of clashes if
328         code compiled for older hosts is combined with code compiled for
329         newer ones.  Problem reported by Niels Möller in
330         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
331
332 2012-05-07  Eric Blake  <eblake@redhat.com>
333
334         isatty: relax license to LGPLv2+
335         * modules/isatty (License): Relax license.
336
337 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
338
339         stat-size: comment fix
340         * lib/stat-size.h: Remove obsolete comment about indenting.
341
342 2012-05-06  Bruno Haible  <bruno@clisp.org>
343
344         Tests for module 'sh-quote'.
345         * modules/sh-quote-tests: New file.
346         * tests/test-sh-quote.c: New file.
347
348 2012-05-06  Bruno Haible  <bruno@clisp.org>
349
350         sh-quote: Improve shell_quote_argv's signature.
351         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
352         * lib/sh-quote.c (shell_quote_argv): Likewise.
353
354 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
355
356         stdint: document issues with int_fast8_t etc.
357         * doc/posix-headers/stdint.texi (stdint.h): Say that other
358         stdint.h substitutes may define these types differently.  See
359         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
360
361 2012-05-05  Bruno Haible  <bruno@clisp.org>
362
363         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
364         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
365         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
366         or 'guessing no (mishandles large arguments)'.
367
368 2012-05-05  Bruno Haible  <bruno@clisp.org>
369
370         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
371         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
372         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
373         set gl_cv_func_link_follows_symlink to "guessing no".
374
375 2012-05-05  Bruno Haible  <bruno@clisp.org>
376
377         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
378         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
379         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
380         "guessing no".
381         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
382
383 2012-05-05  Bruno Haible  <bruno@clisp.org>
384
385         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
386         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
387         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
388         set gl_cv_struct_dirent_d_ino to "guessing yes".
389
390 2012-05-05  Bruno Haible  <bruno@clisp.org>
391
392         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
393         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
394         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
395         "guessing yes".
396
397 2012-05-05  Bruno Haible  <bruno@clisp.org>
398
399         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
400         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
401         compiling to a glibc system, set gl_cv_func_signbit and
402         gl_cv_func_signbit_gcc to "guessing yes".
403
404 2012-05-05  Bruno Haible  <bruno@clisp.org>
405
406         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
407         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
408         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
409         to "guessing yes".
410         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
411         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
412
413 2012-05-05  Bruno Haible  <bruno@clisp.org>
414
415         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
416         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
417         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
418         gl_cv_func_realpath_works to "guessing yes".
419
420 2012-05-05  Bruno Haible  <bruno@clisp.org>
421
422         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
423         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
424         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
425
426 2012-05-04  Bruno Haible  <bruno@clisp.org>
427
428         Tweak last commit.
429         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
430         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
431
432 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
433
434         unistd_h: make it easier to avoid sys_types_h
435         This is useful for Emacs, which has its own method of porting to
436         Windows, and which therefore does not need the sys_types_h module.
437         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
438         code moved here from gl_SYS_TYPES_H.
439         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
440         using the code directly.
441         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
442         gl_SYS_TYPES_H.
443         * modules/sys_types (Files):
444         * modules/unistd (Files): Add m4/off_t.m4.
445
446 2012-05-03  Bruno Haible  <bruno@clisp.org>
447
448         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
449         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
450         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
451         "guessing yes" or "guessing no".
452         (gl_FUNC_LSTAT): Update.
453         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
454         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
455         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
456
457 2012-05-03  Bruno Haible  <bruno@clisp.org>
458
459         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
460         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
461         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
462         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
463         cross-compiling, choose the first alternative on glibc systems.
464         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
465
466 2012-05-03  Bruno Haible  <bruno@clisp.org>
467
468         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
469         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
470         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
471
472 2012-05-03  Bruno Haible  <bruno@clisp.org>
473
474         chown: Avoid "guessing no" when cross-compiling to glibc systems.
475         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
476
477 2012-05-03  Bruno Haible  <bruno@clisp.org>
478
479         Avoid "guessing no" guesses when cross-compiling to glibc systems.
480         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
481         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
482         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
483         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
484         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
485         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
486         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
487         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
488         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
489         compiling to glibc systems, set gl_cv_func_chown_slash_works,
490         gl_cv_func_chown_ctime_works to "guessing yes".
491         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
492         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
493         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
494         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
495         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
496         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
497         compiling to glibc systems, set gl_cv_func_open_directory_works to
498         "guessing yes".
499         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
500         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
501         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
502         "guessing yes".
503         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
504         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
505         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
506         compiling to glibc systems, set gl_cv_func_floorf_ieee to
507         "guessing yes".
508         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
509         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
510         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
511         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
512         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
513         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
514         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
515         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
516         "guessing yes".
517         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
518         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
519         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
520         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
521         "guessing yes".
522         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
523         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
524         "guessing yes".
525         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
526         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
527         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
528         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
529         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
530         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
531         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
532         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
533         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
534         compiling to glibc systems, set gl_cv_func_log10f_ieee to
535         "guessing yes".
536         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
537         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
538         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
539         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
540         "guessing yes".
541         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
542         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
543         "guessing yes".
544         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
545         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
546         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
547         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
548         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
549         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
550         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
551         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
552         compiling to glibc systems, set gl_cv_func_mkfifo_works to
553         "guessing yes".
554         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
555         compiling to glibc systems, set gl_cv_func_mknod_works to
556         "guessing yes".
557         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
558         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
559         "guessing yes".
560         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
561         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
562         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
563         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
564         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
565         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
566         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
567         compiling to glibc systems, set gl_cv_func_svid_putenv to
568         "guessing yes".
569         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
570         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
571         "guessing yes".
572         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
573         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
574         "guessing yes".
575         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
576         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
577         to "guessing yes".
578         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
579         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
580         to "guessing yes".
581         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
582         compiling to glibc systems, set gl_cv_func_rmdir_works to
583         "guessing yes".
584         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
585         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
586         gl_cv_func_unlink_parent_fails to "guessing yes".
587         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
588         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
589         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
590         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
591         gl_cv_func_rename_dest_works to "guessing yes".
592         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
593         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
594         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
595         compiling to glibc systems, set gl_cv_func_roundf_ieee to
596         "guessing yes".
597         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
598         compiling to glibc systems, set gl_cv_func_roundl_ieee to
599         "guessing yes".
600         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
601         compiling to glibc systems, set gl_cv_func_setenv_works to
602         "guessing yes".
603         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
604         compiling to glibc systems, set gl_cv_func_unsetenv_works to
605         "guessing yes".
606         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
607         compiling to glibc systems, set gl_cv_func_sleep_works to
608         "guessing yes".
609         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
610         compiling to glibc systems, set gl_cv_func_stat_file_slash to
611         "guessing yes".
612         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
613         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
614         "guessing yes".
615         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
616         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
617         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
618         compiling to glibc systems, set gl_cv_func_truncf_ieee to
619         "guessing yes".
620         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
621         compiling to glibc systems, set gl_cv_func_truncl_ieee to
622         "guessing yes".
623         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
624         compiling to glibc systems, set gl_cv_func_usleep_works to
625         "guessing yes".
626         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
627         compiling to glibc systems, set gl_cv_func_futimesat_works to
628         "guessing yes".
629
630 2012-05-03  Bruno Haible  <bruno@clisp.org>
631
632         Say "guessing yes" or "guessing no" when cross-compiling.
633         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
634         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
635         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
636         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
637         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
638         am_cv_func_working_getline to "guessing yes" or "guessing no".
639         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
640         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
641         (gl_FUNC_MEMMEM): When cross-compiling, set
642         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
643         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
644         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
645         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
646         set gl_cv_func_strcasestr_works_always to "guessing yes" or
647         "guessing no".
648         (gl_FUNC_STRCASESTR): When cross-compiling, set
649         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
650         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
651         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
652         (gl_FUNC_STRSTR): When cross-compiling, set
653         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
654         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
655         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
656         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
657         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
658
659 2012-05-01  Bruno Haible  <bruno@clisp.org>
660
661         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
662         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
663         * build-aux/reloc-ldflags: Likewise.
664         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
665
666 2012-05-01  Bruno Haible  <bruno@clisp.org>
667
668         gnulib-tool: Remove transitional code.
669         * gnulib-tool: Don't warn about --import with 0 arguments any more.
670         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
671
672 2012-05-01  Bruno Haible  <bruno@clisp.org>
673
674         getcwd: Fix misindentation.
675         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
676
677 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
678
679         exclude: process exclude and include directives in order
680         This restores the pre-2009 behavior, and is part of a fix of a
681         grep bug reported by Quentin Arce in
682         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
683         * lib/exclude.c (struct exclude): Remove 'tail' member.
684         (new_exclude_segment): Prepend the new segment instead of appending.
685         Return void, since that's now more convenient.
686         (file_pattern_matches): Renamed from excluded_file_pattern_p.
687         (file_name_matches): Renamed from excluded_file_name_p.
688         (file_pattern_matches, file_name_matches):
689         Return true if the pattern matches, not if it excludes.
690         All callers changed.
691         (excluded_file_name): Process the list in reverse order;
692         since the list is now reversed this restores the pre-2009 behavior.
693         (add_exclude): Adjust to new reversed-order list.  Use local var
694         rather than macro, for clarity.
695         * tests/test-exclude7.sh: Adjust to corrected behavior.
696
697         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
698         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
699         it's not possible here.  Handle the case of \ at end of pattern
700         without dumping core.
701         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
702
703         _Noreturn: future-proof non-GNU and non-MSVC compilers
704         * build-aux/snippet/_Noreturn.h (_Noreturn):
705         * m4/gnulib-common.m4 (gl_COMMON_BODY):
706         Do not define _Noreturn if __STDC_VERSION__ indicates this is
707         C11 or later.  This is more likely to work with random future C
708         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
709         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
710
711         exclude: handle wildcards with FNM_EXTMATCH
712         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
713         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
714         comment that "has wildcards" really means "has or may have
715         wildcards".  Simplify by avoiding the need to call strcspn.
716
717 2012-04-29  Bruno Haible  <bruno@clisp.org>
718
719         gnulib-tool: Fix list of authors.
720         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
721
722 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
723
724         bootstrap: support Automake-NG in $buildreq
725         * bootstrap (check_versions): Handle automake and aclocal from
726         Automake-NG specially.  They can be specified as respectively
727         the "automake-ng" and "aclocal-ng" requirements.
728
729 2012-04-25  Eric Blake  <eblake@redhat.com>
730
731         bootstrap: only force latest Makefile.in.in for gettext module
732         * build-aux/bootstrap (with_gettext): Only install latest
733         Makefile.in.in for projects requesting bleeding edge gettext.
734
735 2012-04-22  Bruno Haible  <bruno@clisp.org>
736
737         doc: Mention reason for replacement on glibc/Linux systems.
738         * doc/posix-functions/dprintf.texi: Mention the problem with special
739         'long double' values.
740         * doc/posix-functions/fprintf.texi: Likewise.
741         * doc/posix-functions/printf.texi: Likewise.
742         * doc/posix-functions/snprintf.texi: Likewise.
743         * doc/posix-functions/sprintf.texi: Likewise.
744         * doc/posix-functions/vdprintf.texi: Likewise.
745         * doc/posix-functions/vfprintf.texi: Likewise.
746         * doc/posix-functions/vprintf.texi: Likewise.
747         * doc/posix-functions/vsnprintf.texi: Likewise.
748         * doc/posix-functions/vsprintf.texi: Likewise.
749         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
750         platforms with F_DUPFD_CLOEXEC problems.
751         * doc/posix-functions/glob.texi: Mention which platforms are affected
752         by the problem with symbolic links.
753         * doc/posix-functions/linkat.texi: Mention the problem with
754         AT_SYMLINK_FOLLOW on Linux.
755
756 2012-04-22  Bruno Haible  <bruno@clisp.org>
757
758         pwrite: Don't replace on all platforms.
759         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
760
761 2012-04-22  Bruno Haible  <bruno@clisp.org>
762
763         rint* tests: Avoid gcc warnings.
764         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
765         * tests/test-rintf.c (INFINITY, NAN): Likewise.
766         * tests/test-rintl.c (INFINITY, NAN): Likewise.
767
768 2012-04-21  Bruno Haible  <bruno@clisp.org>
769
770         users.txt: Update.
771         * users.txt: Add freedink, wdiff. Update URLs for projects that have
772         switched from CVS to git, bzr, or svn.
773
774 2012-04-21  Bruno Haible  <bruno@clisp.org>
775
776         Large File Support for native Windows platforms.
777
778         * m4/largefile.m4 (gl_LARGEFILE): New macro.
779         * modules/largefile (configure.ac): Require gl_LARGEFILE.
780
781         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
782         type.
783         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
784         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
785         * doc/posix-headers/sys_types.texi: Mention the effect of the
786         'largefile' module.
787
788         * lib/fcntl.in.h: Add comments about off_t.
789         * modules/fcntl-h (Depends-on): Add sys_types.
790
791         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
792         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
793         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
794         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
795         * modules/unistd (Depends-on): Add sys_types.
796         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
797
798         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
799         instead of lseek.
800         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
801         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
802         * modules/lseek (Depends-on): Add sys_types.
803
804         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
805         msvc-nothrow.h.
806         (SetFileSize): New function.
807         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
808         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
809         if Large File Support is requested.
810         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
811         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
812
813         * lib/stdio.in.h: Add comments about off_t.
814         * modules/stdio (Depends-on): Add sys_types.
815
816         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
817         instead of ftello.
818         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
819         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
820         (gl_PREREQ_FTELLO): New macro.
821         * modules/ftello (Depends-on): Add sys_types.
822         (configure.ac): Incoke gl_PREREQ_FTELLO.
823
824         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
825         instead of fseeko.
826         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
827         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
828         (gl_PREREQ_FSEEKO): New macro.
829         * modules/fseeko (Depends-on): Add sys_types.
830         (configure.ac): Invoke gl_PREREQ_FSEEKO.
831
832         * lib/sys_stat.in.h: Add comments about off_t.
833         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
834         64-bit integer for st_size in 'struct stat'.
835         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
836         Define _GL_WINDOWS_64_BIT_ST_SIZE.
837         * modules/sys_stat (Depends-on): Add sys_types.
838         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
839
840         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
841         instead of stat or _stat.
842
843         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
844         'struct _stati64' instead of fstat and 'struct stat'.
845         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
846         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
847
848         Reported by Ray Satiro <raysatiro@yahoo.com>.
849
850 2012-04-19  Eric Blake  <eblake@redhat.com>
851
852         bootstrap: accommodate older libtool
853         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
854         Reported by Daniel P. Berrange.
855
856 2012-04-19  Jim Meyering  <meyering@redhat.com>
857
858         announce-gen: avoid failure due to lack of Digest::SHA1
859         Even with the preferred Digest::SHA available, this script
860         would fail when the backup module, Digest::SHA1, was not installed.
861         * build-aux/announce-gen: Quote the conditional use of "use".
862         Reported by Reuben Thomas in:
863         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
864
865         bootstrap: don't let a user's CDPATH setting affect this script
866         When CDPATH is set, cd will sometimes generate output.
867         When "cd" is run in a subshell whose output matters, that
868         surprising-to-some output can cause malfunction.
869         Unsetting CDPATH turns off this shell "feature."
870         * build-aux/bootstrap (CDPATH): Unset.
871         Reported by Reuben Thomas in:
872         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
873         and inspired by his patch here:
874         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
875
876 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
877         and Jim Meyering  <meyering@redhat.com>
878
879         maint.mk: catch "see @xref{}" and similar
880         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
881         prohibit "See also @xref{", "Also see @pxref{", and similar.
882
883 2012-04-16  Jim Meyering  <meyering@redhat.com>
884
885         bootstrap: really use gnulib's po/Makefile.in.in
886         * build-aux/bootstrap: Correct the source file name in previous change.
887         Reported by Akim Demaille.
888
889         configmake: correct minor inconsistency in Makefile rule
890         * modules/configmake (Makefile.am): All other rules like this one
891         run the final "mv -f ..." in the same backslash-continued command
892         as the one that does everything else.  This one put the mv -f ...
893         command on a separate, non-backslash-continued line.
894         Make it like the others.
895
896         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
897         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
898         the one from gettext.  Reported by Akim Demaille.
899
900 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
901
902         Fix recursion of install-* into po directories.
903         Bison's install-pdf bug reported by Hans Aberg at
904         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
905         * build-aux/po/Makefile.in.in (install-dvi, install-html)
906         (install-info, install-pdf, install-ps): New targets.
907
908 2012-04-16  Jim Meyering  <meyering@redhat.com>
909
910         maint: avoid spurious "make sc_maint" failure
911         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
912         exempt all *.class file names, for lib/javaversion.class.
913
914 2012-04-15  Bruno Haible  <bruno@clisp.org>
915
916         lseek: Make configure test independent of environment.
917         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
918         Windows, we know that lseek() on pipes is broken; skip the runtime
919         test.
920
921 2012-04-14  Bruno Haible  <bruno@clisp.org>
922
923         stat: Bypass buggy override in mingw64.
924         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
925         * lib/stat.c (stat) [mingw64]: Define to _stat.
926         * doc/posix-functions/stat.texi: Mention mingw64 bug.
927
928 2012-04-14  Bruno Haible  <bruno@clisp.org>
929
930         pathmax: Fix compilation error on MSVC 9.
931         * modules/pathmax (Depends-on): Add unistd.
932
933 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
934
935         README: document pointer comparison assumption
936         * README (Portability guidelines): Document assumption about
937         pointer comparisons, in response to a recent bug-gnulib comment by
938         Jeffrey Kegler.
939
940 2012-04-12  Bruno Haible  <bruno@clisp.org>
941
942         Tests for module 'getrusage'.
943         * modules/getrusage-tests: New file.
944         * tests/test-getrusage.c: New file.
945
946         New module 'getrusage'.
947         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
948         warn-on-use.h.
949         (getrusage): New declaration.
950         * lib/getrusage.c: New file.
951         * m4/getrusage.m4: New file.
952         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
953         is declared.
954         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
955         HAVE_GETRUSAGE.
956         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
957         snippet/c++defs, snippet/warn-on-use.
958         (Makefile.am): Update generation of sys/resource.h. Substitute
959         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
960         * modules/getrusage: New file.
961         * doc/posix-functions/getrusage.texi: Mention the new module.
962
963 2012-04-12  Bruno Haible  <bruno@clisp.org>
964
965         Tests for module 'sys_resource'.
966         * modules/sys_resource-tests: New file.
967         * tests/test-sys_resource.c: New file.
968
969         New module 'sys_resource'.
970         * lib/sys_resource.in.h: New file.
971         * m4/sys_resource_h.m4: New file.
972         * modules/sys_resource: New file.
973         * doc/posix-headers/sys_resource.texi: Mention the new module.
974
975 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
976
977         ioctl: Fix compilation error on mingw.
978         * lib/ioctl.c: Include <windows.h>.
979         Also reported by Ray Satiro <raysatiro@yahoo.com>.
980
981 2012-04-04  Jim Meyering  <meyering@redhat.com>
982
983         regex: correct #pragma guard expression
984         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
985         not 4.3.  Correct its cpp guard expression.
986
987 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
988
989         regex: remove unnecessary type punning
990         Problem reported by Vladimir Serbinenko in
991         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
992         * lib/regex.h (struct re_pattern_buffer): Change the type of
993         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
994         Fix comment to match code.
995         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
996         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
997         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
998         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
999         (set_regs):
1000         Omit no-longer-necessary casts.
1001
1002 2012-04-03  Bruno Haible  <bruno@clisp.org>
1003
1004         Tests for module 'ilogbl'.
1005         * modules/ilogbl-tests: New file.
1006         * tests/test-ilogbl.c: New file.
1007
1008         New module 'ilogbl'.
1009         * lib/math.in.h (ilogbl): New declaration.
1010         * lib/ilogbl.c: New file.
1011         * m4/ilogbl.m4: New file.
1012         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1014         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1015         Split sed invocation, to avoid the limit of 100 substitutions of
1016         HP-UX 'sed'.
1017         * modules/ilogbl: New file.
1018         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1019         * doc/posix-functions/ilogbl.texi: Mention the new module.
1020
1021 2012-04-03  Bruno Haible  <bruno@clisp.org>
1022
1023         Tests for module 'ilogbf'.
1024         * modules/ilogbf-tests: New file.
1025         * tests/test-ilogbf.c: New file.
1026
1027         New module 'ilogbf'.
1028         * lib/math.in.h (ilogbf): New declaration.
1029         * lib/ilogbf.c: New file.
1030         * m4/ilogbf.m4: New file.
1031         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1032         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1033         REPLACE_ILOGBF.
1034         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1035         REPLACE_ILOGBF.
1036         * modules/ilogbf: New file.
1037         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1038         * doc/posix-functions/ilogbf.texi: Mention the new module.
1039
1040 2012-04-03  Bruno Haible  <bruno@clisp.org>
1041
1042         Tests for module 'ilogb'.
1043         * modules/ilogb-tests: New file.
1044         * tests/test-ilogb.c: New file.
1045         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1046         tests/test-logb-ieee.h.
1047
1048         New module 'ilogb'.
1049         * lib/math.in.h (ilogb): New declaration.
1050         * lib/ilogb.c: New file.
1051         * m4/ilogb.m4: New file.
1052         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1054         REPLACE_ILOGB.
1055         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1056         REPLACE_ILOGB.
1057         * modules/ilogb: New file.
1058         * tests/test-math-c++.cc: Check the declaration of ilogb.
1059         * doc/posix-functions/ilogb.texi: Mention the new module.
1060
1061 2012-04-03  Bruno Haible  <bruno@clisp.org>
1062
1063         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1064         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1065         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1066         (main): Check their values.
1067         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1068         problem.
1069
1070 2012-04-03  Bruno Haible  <bruno@clisp.org>
1071
1072         Tests for module 'logbl-ieee'.
1073         * modules/logbl-ieee-tests: New file.
1074         * tests/test-logbl-ieee.c: New file.
1075
1076         New module 'logbl-ieee'.
1077         * modules/logbl-ieee: New file.
1078
1079         Tests for module 'logb-ieee'.
1080         * modules/logb-ieee-tests: New file.
1081         * tests/test-logb-ieee.c: New file.
1082
1083         New module 'logb-ieee'.
1084         * modules/logb-ieee: New file.
1085
1086         Tests for module 'logbf-ieee'.
1087         * modules/logbf-ieee-tests: New file.
1088         * tests/test-logbf-ieee.c: New file.
1089         * tests/test-logb-ieee.h: New file.
1090
1091         New module 'logbf-ieee'.
1092         * modules/logbf-ieee: New file.
1093
1094 2012-04-03  Bruno Haible  <bruno@clisp.org>
1095
1096         Tests for module 'logbl'.
1097         * modules/logbl-tests: New file.
1098         * tests/test-logbl.c: New file.
1099
1100         New module 'logbl'.
1101         * lib/math.in.h (logbl): New declaration.
1102         * lib/logbl.c: New file.
1103         * m4/logbl.m4: New file.
1104         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1105         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1106         REPLACE_LOGBL.
1107         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1108         REPLACE_LOGBL.
1109         * modules/logbl: New file.
1110         * tests/test-math-c++.cc: Check the declaration of logbl.
1111         * doc/posix-functions/logbl.texi: Mention the new module.
1112
1113 2012-04-02  Bruno Haible  <bruno@clisp.org>
1114
1115         Tests for module 'logbf'.
1116         * modules/logbf-tests: New file.
1117         * tests/test-logbf.c: New file.
1118
1119         New module 'logbf'.
1120         * lib/math.in.h (logbf): New declaration.
1121         * lib/logbf.c: New file.
1122         * m4/logbf.m4: New file.
1123         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1125         REPLACE_LOGBF.
1126         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1127         REPLACE_LOGBF.
1128         * modules/logbf: New file.
1129         * tests/test-math-c++.cc: Check the declaration of logbf.
1130         * doc/posix-functions/logbf.texi: Mention the new module.
1131
1132 2012-04-02  Bruno Haible  <bruno@clisp.org>
1133
1134         logb tests: More tests.
1135         * tests/test-logb.h: New file, based on tests/test-logb.c and
1136         tests/test-frexp.h.
1137         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1138         (main): Just invoke test_function.
1139         * modules/logb-tests (Files): Add tests/test-logb.h,
1140         tests/minus-zero.h, tests/randomd.c.
1141         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1142
1143         logb: Provide replacement and workarounds.
1144         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
1145         is 1.
1146         * lib/logb.c: New file.
1147         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
1148         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
1149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
1150         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
1151         * modules/logb (Files): Add lib/logb.c.
1152         (Depends-on): Add isfinite, frexp, isnand.
1153         (configure.ac): Compile the replacement code logb.c if needed.
1154         * tests/test-math-c++.cc: Check the declaration of logb.
1155         * doc/posix-functions/logb.texi: Mention the replacement and the bug
1156         with subnormal numbers.
1157
1158 2012-04-02  Bruno Haible  <bruno@clisp.org>
1159
1160         log10* tests: Speed up.
1161         * tests/test-log10.h (test_function): Reduce amount of random numbers
1162         to test.
1163
1164 2012-04-01  Bruno Haible  <bruno@clisp.org>
1165
1166         logf-ieee: Fix test whether logf works.
1167         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
1168
1169 2012-04-01  Bruno Haible  <bruno@clisp.org>
1170
1171         log10l: Work around log10l-ieee test failure on IRIX 6.5.
1172         * lib/log10l.c: Include <float.h>
1173         (log10l): On IRIX, normalize the +Infinity value.
1174         * modules/log10l (Depends-on): Add 'float'.
1175         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
1176         +Infinity.
1177
1178         log10f-ieee: Work around test failure on NetBSD 5.1.
1179         * m4/log10f-ieee.m4: New file.
1180         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1181         test whether log10f works with a negative argument. Replace it if not.
1182         * lib/log10f.c (log10f): For negative arguments, return NaN.
1183         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1184         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1185         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1186
1187         log10f-ieee: Work around test failure on Solaris 9.
1188         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1189         (configure.ac): Require gl_FUNC_LOG10F.
1190
1191         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1192         * m4/log10-ieee.m4: New file.
1193         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1194         whether log10 works with a negative argument. Replace it if not.
1195         * lib/log10.c (log10): For negative arguments, return NaN.
1196         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1197         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1198         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1199
1200         Tests for module 'log10l-ieee'.
1201         * modules/log10l-ieee-tests: New file.
1202         * tests/test-log10l-ieee.c: New file.
1203
1204         New module 'log10l-ieee'.
1205         * modules/log10l-ieee: New file.
1206
1207         Tests for module 'log10-ieee'.
1208         * modules/log10-ieee-tests: New file.
1209         * tests/test-log10-ieee.c: New file.
1210
1211         New module 'log10-ieee'.
1212         * modules/log10-ieee: New file.
1213
1214         Tests for module 'log10f-ieee'.
1215         * modules/log10f-ieee-tests: New file.
1216         * tests/test-log10f-ieee.c: New file.
1217         * tests/test-log10-ieee.h: New file.
1218
1219         New module 'log10f-ieee'.
1220         * modules/log10f-ieee: New file.
1221
1222 2012-04-01  Bruno Haible  <bruno@clisp.org>
1223
1224         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1225         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1226         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1227         workaround.
1228         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1229         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1231         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1232         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1233         (Depends-on): Update conditions.
1234         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1235         IRIX 6.5, OSF/1 5.1 problems.
1236
1237 2012-04-01  Bruno Haible  <bruno@clisp.org>
1238
1239         log10f: Work around OSF/1 5.1 bug.
1240         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
1241         * lib/log10f.c (log10f): If logf exists, use it and provide just the
1242         workaround.
1243         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
1244         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
1245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
1246         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
1247         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
1248         (Depends-on): Update conditions.
1249         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
1250
1251 2012-04-01  Bruno Haible  <bruno@clisp.org>
1252
1253         log10: Work around OSF/1 5.1 bug.
1254         * lib/math.in.h (log10): New declaration.
1255         * lib/log10.c: New file.
1256         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1257         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1258         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1260         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1261         * modules/log10 (Files): Add lib/log10.c.
1262         (Depends-on): Add math.
1263         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1264         * tests/test-math-c++.cc: Check the declaration of log10.
1265         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1266
1267 2012-03-31  Bruno Haible  <bruno@clisp.org>
1268
1269         log10l tests: More tests.
1270         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1271         tests/minus-zero.h, tests/randoml.c.
1272         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1273         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1274         (main): Invoke test_function.
1275
1276         log10f tests: More tests.
1277         * modules/log10f-tests (Files): Add tests/test-log10.h,
1278         tests/minus-zero.h, tests/randomf.c.
1279         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1280         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1281         (main): Invoke test_function.
1282
1283         log10 tests: More tests.
1284         * tests/test-log10.h: New file.
1285         * modules/log10-tests (Files): Add tests/test-log10.h,
1286         tests/minus-zero.h, tests/randomd.c.
1287         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1288         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1289         (main): Invoke test_function.
1290
1291 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1292
1293         fflush: Fix syntax error.
1294         * lib/fflush.c: Include unused-parameter.h, needed for
1295         _GL_UNUSED_PARAMETER.
1296         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1297
1298 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1299
1300         regex: pacify GCC when compiling GRUB
1301         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1302         a diagnostic.  Reported by Vladimir Serbinenko in
1303         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1304
1305 2012-03-29  Eric Blake  <eblake@redhat.com>
1306
1307         stdio: don't assume gets any more
1308         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1309         support.
1310         * modules/stdio (Makefile.am): Likewise.
1311         * lib/stdio-read.c (gets): Likewise.
1312         * tests/test-stdio-c++.cc: Likewise.
1313         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1314         * lib/stdio.in.h (gets): Make warning occur in more places.
1315         * doc/posix-functions/gets.texi (gets): Update documentation.
1316         Reported by Christer Solskogen.
1317
1318         maint.mk: fix syntax checks without exclusions
1319         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1320         Reported by Daniel P. Berrange.
1321
1322         strerror_r: avoid compiler warning
1323         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1324         level.
1325
1326         fflush: avoid compiler warning
1327         * lib/fflush.c (update_fpos_cache): Mark variables that are
1328         potentially unused.
1329
1330 2012-03-25  Bruno Haible  <bruno@clisp.org>
1331
1332         Tests for module 'localeconv'.
1333         * modules/localeconv-tests: New file.
1334         * tests/test-localeconv.c: New file.
1335
1336         New module 'localeconv'.
1337         * lib/locale.in.h (localeconv): New declaration.
1338         * lib/localeconv.c: New file.
1339         * m4/localeconv.m4: New file.
1340         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1341         REPLACE_LOCALECONV.
1342         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1343         REPLACE_LOCALECONV.
1344         * modules/localeconv: New file.
1345         * modules/nl_langinfo (Depends-on): Add localeconv.
1346         * modules/human (Depends-on): Likewise.
1347         * doc/posix-functions/localeconv.texi: Mention the new module.
1348
1349 2012-03-25  Bruno Haible  <bruno@clisp.org>
1350
1351         locale: Provide a complete 'struct lconv'.
1352         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1353         'struct lconv' does not contain int_p_cs_precedes.
1354         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1355         * doc/posix-headers/locale.texi: Update.
1356
1357         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1358         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1359         * doc/posix-headers/locale.texi: Update.
1360
1361         locale: Provide a working 'struct lconv'.
1362         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1363         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1364         'struct lconv' does not even contain decimal_point.
1365         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1366         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1367         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1368         * doc/posix-headers/locale.texi: Mention the problems with
1369         'struct lconv'.
1370         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1371
1372 2012-03-24  Bruno Haible  <bruno@clisp.org>
1373
1374         Enable common subexpression optimization in GCC.
1375         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1376         macros.
1377         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1378         GCC attribute 'const'.
1379         (uc_locale_language): Declare with GCC attribute 'pure'.
1380         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1381         with GCC attribute 'const'.
1382         * lib/unictype.in.h (uc_is_general_category_withtable,
1383         uc_combining_class, uc_combining_class_name,
1384         uc_combining_class_long_name, uc_bidi_class_name,
1385         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1386         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1387         uc_decimal_value, uc_digit_value, uc_numeric_value,
1388         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1389         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1390         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1391         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1392         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1393         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1394         Declare with GCC attribute 'const'.
1395         (uc_general_category_name, uc_general_category_long_name,
1396         uc_general_category_byname, uc_general_category,
1397         uc_is_general_category, uc_combining_class_byname,
1398         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1399         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1400         Declare with GCC attribute 'pure'.
1401         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1402         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1403         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1404         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1405         with GCC attribute 'pure'.
1406         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1407         'const'.
1408         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1409         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1410         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1411         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1412         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1413         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1414         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1415         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1416         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1417         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1418         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1419         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1420         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1421         GCC attribute 'pure'.
1422         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1423         'const'.
1424         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1425         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1426         u32_strwidth): Declare with GCC attribute 'pure'.
1427
1428         Enable common subexpression optimization in GCC.
1429         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1430         (alphasort): Declare with GCC attribute 'pure'.
1431         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1432         (atoll): Declare with GCC attribute 'pure'.
1433         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1434         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1435         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1436         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1437         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1438         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1439         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1440
1441 2012-03-24  Bruno Haible  <bruno@clisp.org>
1442
1443         gnulib-tool: Avoid unintended error output from 'cmp'.
1444         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1445         "cmp -s", not "cmp > /dev/null".
1446
1447 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1448
1449         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1450
1451         It's not just Automake versions < 1.9b that creates an empty
1452         pkgdatadir at installation time if pkgdata_DATA is specified
1453         to empty; modern automake versions do this as well, at least
1454         until automake 1.11.4 (not yet released at the moment of writing,
1455         but soon to appear).  That behaviour was generally considered a
1456         feature rather than a bug, at least until this discussion:
1457         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1458
1459         See also automake bugs #10997 and #11030.
1460
1461         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1462         reference to relevant automake bug numbers.
1463         (func_emit_tests_Makefile_am): Likewise.
1464
1465 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1466
1467         announce-gen: use Digest::SHA when possible
1468         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1469         back to Digest::SHA1 if necessary.
1470
1471 2012-03-20  Jim Meyering  <meyering@redhat.com>
1472
1473         tests: avoid gcc warnings about argv vs. const initializers
1474         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1475         warnings about discarding 'const' qualifier from pointer target type.
1476         * tests/test-posix_spawn2.c (main): Likewise.
1477
1478 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1479
1480         README-release: simplify slightly
1481         * top/README-release: Run "git checkout master" only once.
1482
1483 2012-03-15  Mark Wielaard  <mark@klomp.org>
1484
1485         git-merge-changelog: add specific example on how to use with hg.
1486         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1487
1488 2012-03-18  Mark Wielaard  <mark@klomp.org>
1489
1490         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1491
1492 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1493
1494         git-version-gen: don't let "prefix" envvar cause trouble
1495         * build-aux/git-version-gen (prefix): Initialize properly,
1496         so as not to use a value specified via the environment.
1497         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1498
1499 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1500
1501         regex: diagnose too-large repeat counts in EREs
1502         Previously, the code did not diagnose the too-large repeat count
1503         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1504         as if it were 'b\{1000000000}', which is unexpected.
1505         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1506         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1507         is a reasonable one for this problem.  Another option would be to
1508         create a new REG_OVERFLOW error for repeat counts that are too large.
1509         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1510         count is too large, so that the caller can distinguish the two cases.
1511         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1512         "Too large" return code, and that repeat counts are one example of this.
1513
1514 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1515
1516         doc: some glibc x32 integer width issues
1517         * doc/posix-headers/sys_types.texi (sys/types.h):
1518         * doc/posix-headers/time.texi (time.h):
1519         Mention that glibc x32 does not conform to POSIX in a couple of
1520         areas related to integer widths.
1521
1522 2012-03-15  Bruno Haible  <bruno@clisp.org>
1523
1524         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1525         * lib/fma.c (VOLATILE): New macro.
1526         (FUNC): Use it to work around a GCC compiler bug.
1527
1528 2012-03-13  Bruno Haible  <bruno@clisp.org>
1529
1530         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1531         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1532         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1533         REPLACE_HYPOTL to 1.
1534         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1535
1536 2012-03-13  Bruno Haible  <bruno@clisp.org>
1537
1538         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1539         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1540         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1541         REPLACE_REMAINDERL to 1.
1542         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1543         bug.
1544
1545 2012-03-13  Bruno Haible  <bruno@clisp.org>
1546
1547         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1548         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1549         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1550         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1551         too big rounding errors.
1552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1553         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1554         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1555         (Depends-on): Update conditions.
1556         * tests/test-sqrtl.c (my_ldexpl): New function.
1557         (main): Add test of a particular value.
1558         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1559
1560 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1561
1562         doc: Update timer_* platform portability notes.
1563         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1564         that always return ENOSYS.
1565         * doc/posix-functions/timer_delete.texi: Likewise.
1566         * doc/posix-functions/timer_gettime.texi: Likewise.
1567         * doc/posix-functions/timer_settime.texi: Likewise.
1568
1569 2012-03-13  Bruno Haible  <bruno@clisp.org>
1570
1571         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1572         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1573         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1574         REPLACE_CBRTL to 1.
1575         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1576
1577 2012-03-13  Bruno Haible  <bruno@clisp.org>
1578
1579         remainderl: Avoid compilation error on AIX >= 5.2.
1580         * lib/math.in.h (remainderl): Undefine macro from the system header.
1581
1582 2012-03-13  Bruno Haible  <bruno@clisp.org>
1583
1584         Avoid compilation errors with MSVC option -fp:strict.
1585         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1586         * lib/cbrtf.c: Likewise.
1587         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1588
1589 2012-03-12  Bruno Haible  <bruno@clisp.org>
1590
1591         uninorm: Don't crash in out-of-memory conditions.
1592         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1593         gracefully.
1594         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1595         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1596
1597 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1598
1599         quote: fix syntax-check
1600         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1601         also exports quote_quoting_options.
1602
1603 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1604
1605         Collapse list of copyright years to ranges.  See
1606         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1607         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1608         build-aux/csharpexec.sh.in, build-aux/gnupload,
1609         build-aux/install-reloc, build-aux/javacomp.sh.in,
1610         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1611         build-aux/move-if-change, build-aux/reloc-ldflags,
1612         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1613
1614 2012-03-11  Bruno Haible  <bruno@clisp.org>
1615
1616         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1617         * m4/log2f-ieee.m4: New file.
1618         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1619         whether log2f works with a minus zero argument. Replace it if not.
1620         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1621         (Depends-on): Add log2-ieee.
1622         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1623         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1624
1625         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1626         * m4/log2-ieee.m4: New file.
1627         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1628         whether log2 works with a minus zero argument. Replace it if not.
1629         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1630         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1631         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1632
1633         Tests for module 'log2l-ieee'.
1634         * modules/log2l-ieee-tests: New file.
1635         * tests/test-log2l-ieee.c: New file.
1636
1637         New module 'log2l-ieee'.
1638         * modules/log2l-ieee: New file.
1639
1640         Tests for module 'log2-ieee'.
1641         * modules/log2-ieee-tests: New file.
1642         * tests/test-log2-ieee.c: New file.
1643
1644         New module 'log2-ieee'.
1645         * modules/log2-ieee: New file.
1646
1647         Tests for module 'log2f-ieee'.
1648         * modules/log2f-ieee-tests: New file.
1649         * tests/test-log2f-ieee.c: New file.
1650         * tests/test-log2-ieee.h: New file.
1651
1652         New module 'log2f-ieee'.
1653         * modules/log2f-ieee: New file.
1654
1655 2012-03-11  Bruno Haible  <bruno@clisp.org>
1656
1657         Tests for module 'log2l'.
1658         * modules/log2l-tests: New file.
1659         * tests/test-log2l.c: New file.
1660
1661         New module 'log2l'.
1662         * lib/math.in.h (log2l): New declaration.
1663         * lib/log2l.c: New file.
1664         * m4/log2l.m4: New file.
1665         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1667         REPLACE_LOG2L.
1668         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1669         REPLACE_LOG2L.
1670         * modules/log2l: New file.
1671         * tests/test-math-c++.cc: Check the declaration of log2l.
1672         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1673         and OSF/1 problems.
1674
1675 2012-03-11  Bruno Haible  <bruno@clisp.org>
1676
1677         Tests for module 'log2f'.
1678         * modules/log2f-tests: New file.
1679         * tests/test-log2f.c: New file.
1680
1681         New module 'log2f'.
1682         * lib/math.in.h (log2f): New declaration.
1683         * lib/log2f.c: New file.
1684         * m4/log2f.m4: New file.
1685         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1687         REPLACE_LOG2F.
1688         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1689         REPLACE_LOG2F.
1690         * modules/log2f: New file.
1691         * tests/test-math-c++.cc: Check the declaration of log2f.
1692         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1693         and OSF/1 and Cygwin problems.
1694
1695 2012-03-11  Bruno Haible  <bruno@clisp.org>
1696
1697         Tests for module 'log2'.
1698         * modules/log2-tests: New file.
1699         * tests/test-log2.c: New file.
1700         * tests/test-log2.h: New file.
1701
1702         New module 'log2'.
1703         * lib/math.in.h (log2): New declaration.
1704         * lib/log2.c: New file.
1705         * m4/log2.m4: New file.
1706         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1708         REPLACE_LOG2.
1709         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1710         REPLACE_LOG2.
1711         * modules/log2: New file.
1712         * tests/test-math-c++.cc: Check the declaration of log2.
1713         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1714         and OSF/1 and Cygwin problems.
1715
1716 2012-03-11  Bruno Haible  <bruno@clisp.org>
1717
1718         exp2* tests: More tests.
1719         * tests/test-exp2.h (test_function): Test all integral arguments that
1720         don't need to overflow or denormalized numbers.
1721         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1722         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1723         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1724
1725 2012-03-10  Bruno Haible  <bruno@clisp.org>
1726
1727         log1pl-ieee: Work around test failure on AIX 7.1.
1728         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1729
1730         log1pl-ieee: Work around test failure on IRIX 6.5.
1731         * m4/log1pl-ieee.m4: New file.
1732         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1733         test whether log1pl works with a minus zero argument. Replace it if
1734         not.
1735         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1736         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1737         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1738         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1739         (Depends-on): Update conditions.
1740         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1741         m4/signbit.m4.
1742         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1743         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1744
1745         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1746         * m4/log1pf-ieee.m4: New file.
1747         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1748         test whether log1pf works with a minus zero argument. Replace it if
1749         not.
1750         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1751         m4/signbit.m4.
1752         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1753         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1754
1755         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1756         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1757         (configure.ac): Require gl_FUNC_LOG1PF.
1758
1759         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1760         * m4/log1p-ieee.m4: New file.
1761         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1762         whether log1p works with a minus zero argument. Replace it if not.
1763         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1765         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1766         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1767         (Depends-on): Update conditions.
1768         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1769         m4/signbit.m4.
1770         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1771         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1772
1773         Tests for module 'log1pl-ieee'.
1774         * modules/log1pl-ieee-tests: New file.
1775         * tests/test-log1pl-ieee.c: New file.
1776
1777         New module 'log1pl-ieee'.
1778         * modules/log1pl-ieee: New file.
1779
1780         Tests for module 'log1p-ieee'.
1781         * modules/log1p-ieee-tests: New file.
1782         * tests/test-log1p-ieee.c: New file.
1783
1784         New module 'log1p-ieee'.
1785         * modules/log1p-ieee: New file.
1786
1787         Tests for module 'log1pf-ieee'.
1788         * modules/log1pf-ieee-tests: New file.
1789         * tests/test-log1pf-ieee.c: New file.
1790         * tests/test-log1p-ieee.h: New file.
1791
1792         New module 'log1pf-ieee'.
1793         * modules/log1pf-ieee: New file.
1794
1795 2012-03-10  Bruno Haible  <bruno@clisp.org>
1796
1797         Tests for module 'log1pl'.
1798         * modules/log1pl-tests: New file.
1799         * tests/test-log1pl.c: New file.
1800
1801         New module 'log1pl'.
1802         * lib/math.in.h (log1pl): New declaration.
1803         * lib/log1pl.c: New file.
1804         * m4/log1pl.m4: New file.
1805         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1807         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1808         * modules/log1pl: New file.
1809         * tests/test-math-c++.cc: Check the declaration of log1pl.
1810         * doc/posix-functions/log1pl.texi: Mention the new module.
1811
1812 2012-03-10  Bruno Haible  <bruno@clisp.org>
1813
1814         Tests for module 'log1pf'.
1815         * modules/log1pf-tests: New file.
1816         * tests/test-log1pf.c: New file.
1817
1818         New module 'log1pf'.
1819         * lib/math.in.h (log1pf): New declaration.
1820         * lib/log1pf.c: New file.
1821         * m4/log1pf.m4: New file.
1822         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1824         REPLACE_LOG1PF.
1825         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1826         REPLACE_LOG1PF.
1827         * modules/log1pf: New file.
1828         * tests/test-math-c++.cc: Check the declaration of log1pf.
1829         * doc/posix-functions/log1pf.texi: Mention the new module.
1830
1831 2012-03-10  Bruno Haible  <bruno@clisp.org>
1832
1833         log1p tests: More tests.
1834         * tests/test-log1p.h: New file.
1835         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1836         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1837         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1838         (main): Invoke test_function.
1839
1840         log1p: Provide replacement for Minix and MSVC.
1841         * lib/math.in.h (log1p): New declaration.
1842         * lib/log1p.c: New file.
1843         * m4/log1p.m4: New file.
1844         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1846         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1847         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1848         (Depends-on): Add math, isnand, log, round.
1849         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1850         HAVE_LOG1P is 0.
1851         * tests/test-math-c++.cc: Check the declaration of log1p.
1852         * doc/posix-functions/log1p.texi: Mention the replacement.
1853
1854 2012-03-10  Bruno Haible  <bruno@clisp.org>
1855
1856         math tests: Small simplification.
1857         * tests/test-exp.h (test_function): Use the same err_bound for
1858         'double' on platforms with sizeof (long double) == sizeof (double)
1859         than on platforms with sizeof (long double) > sizeof (double).
1860         * tests/test-exp2.h (test_function): Likewise.
1861         * tests/test-expm1.h (test_function): Likewise.
1862         * tests/test-log.h (test_function): Likewise.
1863
1864 2012-03-10  Bruno Haible  <bruno@clisp.org>
1865
1866         Fix some comments.
1867         * lib/expl.c: Fix an ambiguous comment.
1868         * lib/expm1.c: Likewise.
1869         * lib/expm1l.c: Likewise.
1870         * lib/exp2.c: Likewise.
1871         * lib/exp2l.c: Likewise.
1872
1873 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1874
1875         regex: allow inclusion of <regex.h> before <limits.h>
1876         Without this patch, portable programs had to include <limits.h> before
1877         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1878         I ran into this problem with a test version of GNU grep on Solaris 8.
1879         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1880         This is done conditionally so that this change can be merged
1881         back to glibc.
1882         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1883         using the included regex.
1884
1885         fts: depend on fdopendir
1886         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1887         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1888         problem was introduced when fdopendir was split out.
1889
1890 2012-03-10  Bruno Haible  <bruno@clisp.org>
1891
1892         Remove unused variables.
1893         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1894         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1895
1896 2012-03-10  Bruno Haible  <bruno@clisp.org>
1897
1898         isnanf-nolibm: Fix last commit.
1899         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1900
1901         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1902         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1903
1904 2012-03-10  Bruno Haible  <bruno@clisp.org>
1905
1906         logf-ieee: Work around test failure on NetBSD 5.1.
1907         * m4/logf-ieee.m4: New file.
1908         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1909         whether logf works with a negative argument. Replace it if not.
1910         * lib/logf.c (logf): For negative arguments, return NaN.
1911         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1912         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1913         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1914
1915         logf-ieee: Work around test failure on Solaris 9.
1916         * modules/logf-ieee (Depends-on): Add log-ieee.
1917         (configure.ac): Require gl_FUNC_LOGF.
1918
1919         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1920         * m4/log-ieee.m4: New file.
1921         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1922         log works with a negative argument. Replace it if not.
1923         * lib/log.c (log): For negative arguments, return NaN.
1924         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1925         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1926         * doc/posix-functions/log.texi: Mention the log-ieee module.
1927
1928         Tests for module 'logl-ieee'.
1929         * modules/logl-ieee-tests: New file.
1930         * tests/test-logl-ieee.c: New file.
1931
1932         New module 'logl-ieee'.
1933         * modules/logl-ieee: New file.
1934
1935         Tests for module 'log-ieee'.
1936         * modules/log-ieee-tests: New file.
1937         * tests/test-log-ieee.c: New file.
1938
1939         New module 'log-ieee'.
1940         * modules/log-ieee: New file.
1941
1942         Tests for module 'logf-ieee'.
1943         * modules/logf-ieee-tests: New file.
1944         * tests/test-logf-ieee.c: New file.
1945         * tests/test-log-ieee.h: New file.
1946
1947         New module 'logf-ieee'.
1948         * modules/logf-ieee: New file.
1949
1950 2012-03-10  Bruno Haible  <bruno@clisp.org>
1951
1952         log: Fix bug introduced on 2012-03-09.
1953         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1954
1955 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1956
1957         timer-time: link explicitly with pthreads on glibc
1958         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1959         to support static linking, when newer glibc is
1960         detected, as that contains pthread emulation of
1961         POSIX timer functions where required.
1962         * modules/timer-time: Depend on threadlib to
1963         pull in the appropriate library to link.
1964
1965 2012-03-10  Bruno Haible  <bruno@clisp.org>
1966
1967         log* tests: More tests.
1968         * tests/test-log.h: New file.
1969         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1970         (main): Invoke test_function.
1971         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1972         (main): Invoke test_function.
1973         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1974         (main): Invoke test_function.
1975         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1976         tests/randomd.c.
1977         (Makefile.am): Add randomd.c to test_log_SOURCES.
1978         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1979         tests/randomf.c.
1980         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1981         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1982         tests/randoml.c.
1983         (Depends-on): Add 'float'.
1984         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1985
1986 2012-03-09  Bruno Haible  <bruno@clisp.org>
1987
1988         logl: Work around OSF/1 5.1 bug.
1989         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1990         * lib/logl.c (logl): If logl exists, use it and provide just the
1991         workaround.
1992         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1993         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1995         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1996         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1997         (Depends-on): Update conditions.
1998         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1999
2000 2012-03-09  Bruno Haible  <bruno@clisp.org>
2001
2002         logf: Work around OSF/1 5.1 bug.
2003         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
2004         * lib/logf.c (logf): If logf exists, use it and provide just the
2005         workaround.
2006         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2007         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2009         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2010         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2011         (Depends-on): Update conditions.
2012         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2013
2014 2012-03-09  Bruno Haible  <bruno@clisp.org>
2015
2016         log: Work around OSF/1 5.1 bug.
2017         * lib/math.in.h (log): New declaration.
2018         * lib/log.c: New file.
2019         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2020         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2021         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2022         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2023         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2024         * modules/log (Files): Add lib/log.c.
2025         (Depends-on): Add math.
2026         (configure.ac): If REPLACE_LOG is 1, compile an override.
2027         * tests/test-math-c++.cc: Check the declaration of log.
2028         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2029
2030 2012-03-09  Jim Meyering  <meyering@redhat.com>
2031
2032         readtokens.c: adjust wording in a comment
2033         * lib/readtokens.c: Insert omitted "that" in a comment.
2034
2035 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2036
2037         modechange: add notations +40, 00440, etc.
2038         * lib/modechange.c (mode_compile): Support new notations
2039         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2040
2041 2012-03-08  Bruno Haible  <bruno@clisp.org>
2042
2043         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2044         * m4/exp2l-ieee.m4: New file.
2045         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2046         test whether exp2l works with a NaN argument and with a negative
2047         infinity argument. Replace it if not.
2048         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2050         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2051         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2052         (Depends-on): Update conditions.
2053         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2054         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2055         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2056
2057         Tests for module 'exp2l-ieee'.
2058         * modules/exp2l-ieee-tests: New file.
2059         * tests/test-exp2l-ieee.c: New file.
2060
2061         New module 'exp2l-ieee'.
2062         * modules/exp2l-ieee: New file.
2063
2064         Tests for module 'exp2-ieee'.
2065         * modules/exp2-ieee-tests: New file.
2066         * tests/test-exp2-ieee.c: New file.
2067
2068         New module 'exp2-ieee'.
2069         * modules/exp2-ieee: New file.
2070
2071         Tests for module 'exp2f-ieee'.
2072         * modules/exp2f-ieee-tests: New file.
2073         * tests/test-exp2f-ieee.c: New file.
2074         * tests/test-exp2-ieee.h: New file.
2075
2076         New module 'exp2f-ieee'.
2077         * modules/exp2f-ieee: New file.
2078
2079 2012-03-08  Bruno Haible  <bruno@clisp.org>
2080
2081         Tests for module 'exp2l'.
2082         * modules/exp2l-tests: New file.
2083         * tests/test-exp2l.c: New file.
2084
2085         New module 'exp2l'.
2086         * lib/math.in.h (exp2l): New declaration.
2087         * lib/exp2l.c: New file.
2088         * lib/expl-table.c: New file, extracted from lib/expl.c.
2089         * lib/expl.c (gl_expl_table): New declaration.
2090         (expl): Remove expl_table. Update reference.
2091         * m4/exp2l.m4: New file.
2092         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2094         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2095         * modules/exp2l: New file.
2096         * modules/expl (Files): Add lib/expl-table.c.
2097         (configure.ac): Compile also expl-table.c.
2098         * tests/test-math-c++.cc: Check the declaration of exp2l.
2099         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2100         problem.
2101
2102 2012-03-08  Bruno Haible  <bruno@clisp.org>
2103
2104         Tests for module 'exp2f'.
2105         * modules/exp2f-tests: New file.
2106         * tests/test-exp2f.c: New file.
2107
2108         New module 'exp2f'.
2109         * lib/math.in.h (exp2f): New declaration.
2110         * lib/exp2f.c: New file.
2111         * m4/exp2f.m4: New file.
2112         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2114         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2115         * modules/exp2f: New file.
2116         * tests/test-math-c++.cc: Check the declaration of exp2f.
2117         * doc/posix-functions/exp2f.texi: Mention the new module and the
2118         IRIX problem.
2119
2120 2012-03-08  Bruno Haible  <bruno@clisp.org>
2121
2122         Tests for module 'exp2'.
2123         * modules/exp2-tests: New file.
2124         * tests/test-exp2.c: New file.
2125         * tests/test-exp2.h: New file.
2126
2127         New module 'exp2'.
2128         * lib/math.in.h (exp2): New declaration.
2129         * lib/exp2.c: New file.
2130         * m4/exp2.m4: New file.
2131         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2133         REPLACE_EXP2.
2134         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2135         REPLACE_EXP2.
2136         * modules/exp2: New file.
2137         * tests/test-math-c++.cc: Check the declaration of exp2.
2138         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2139         and OpenBSD problems.
2140
2141 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2142
2143         savedir: fix comment typo
2144         * lib/savedir.c (savedirstream): Fix typo in comment.
2145
2146 2012-03-08  Bruno Haible  <bruno@clisp.org>
2147
2148         test-readtokens.c: use const; remove unwarranted cast
2149         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
2150
2151 2012-03-08  Bruno Haible  <bruno@clisp.org>
2152
2153         fmal: Avoid compilation error on AIX.
2154         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
2155         AIX 5.2..7.1.
2156
2157 2012-03-08  Bruno Haible  <bruno@clisp.org>
2158
2159         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
2160         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
2161         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
2162         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
2163         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
2164         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
2165         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
2166
2167 2012-03-08  Bruno Haible  <bruno@clisp.org>
2168
2169         remainderf: Override buggy system function on IRIX 6.5.
2170         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
2171         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
2172         when it exists.
2173         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
2174
2175 2012-03-08  Jim Meyering  <meyering@redhat.com>
2176
2177         test-readtokens.c: avoid const-related compilation warnings
2178         * tests/test-readtokens.c: Avoid const-related compilation warnings.
2179
2180 2012-03-07  Jim Meyering  <meyering@redhat.com>
2181             Bruno Haible  <bruno@clisp.org>
2182
2183         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2184         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2185         tests/randomd.c.
2186         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2187         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2188         tests/randoml.c.
2189         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2190
2191 2012-03-07  Bruno Haible  <bruno@clisp.org>
2192
2193         expm1l: Avoid compilation error on AIX.
2194         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2195         AIX 5.2..7.1.
2196
2197 2012-03-07  Bruno Haible  <bruno@clisp.org>
2198
2199         expm1l: Don't override undeclared system function on IRIX 6.5.
2200         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2201         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2202         it exists. Set HAVE_DECL_EXPM1L.
2203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2204         HAVE_EXPM1L.
2205         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2206         HAVE_EXPM1L.
2207         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2208
2209 2012-03-07  Bruno Haible  <bruno@clisp.org>
2210
2211         remainderl: Don't override undeclared system function on IRIX 6.5.
2212         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2213         HAVE_REMAINDERL.
2214         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2215         declared when it exists. Set HAVE_DECL_REMAINDERL.
2216         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2217         not HAVE_REMAINDERL.
2218         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2219         HAVE_REMAINDERL.
2220         * doc/posix-functions/remainderl.texi: Mention missing declaration
2221         problem.
2222
2223 2012-03-07  Bruno Haible  <bruno@clisp.org>
2224
2225         rintf: Don't override undeclared system function on IRIX 6.5.
2226         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2227         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2228         exists. Set HAVE_DECL_RINTF.
2229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2230         HAVE_RINTF.
2231         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2232         HAVE_RINTF.
2233         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2234
2235 2012-03-07  Bruno Haible  <bruno@clisp.org>
2236
2237         roundl: Avoid compilation error on AIX.
2238         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2239         AIX 5.2..7.1.
2240
2241 2012-03-07  Bruno Haible  <bruno@clisp.org>
2242
2243         roundl: Don't override undeclared system function on IRIX 6.5.
2244         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
2245         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
2246         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2247         * modules/roundl (configure.ac): For replacement code, test
2248         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2249         (Depends-on): Update conditions.
2250         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
2251
2252 2012-03-07  Bruno Haible  <bruno@clisp.org>
2253
2254         roundf: Don't override undeclared system function on IRIX 6.5.
2255         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2256         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2257         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2258         * modules/roundf (configure.ac): For replacement code, test
2259         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2260         (Depends-on): Update conditions.
2261         * modules/roundf-ieee (Depends-on): Update conditions.
2262         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2263
2264 2012-03-07  Bruno Haible  <bruno@clisp.org>
2265
2266         round: Don't override undeclared system function on IRIX 6.5.
2267         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2268         argument.
2269         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2270         also when it is not declared. Set HAVE_ROUND. For replacement code,
2271         test HAVE_ROUND, not HAVE_DECL_ROUND.
2272         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2273         not HAVE_DECL_ROUND.
2274         (Depends-on): Update conditions.
2275         * modules/round-ieee (Depends-on): Update conditions.
2276         * doc/posix-functions/round.texi: Mention the IRIX problem.
2277
2278 2012-03-07  Bruno Haible  <bruno@clisp.org>
2279
2280         copysignf: Don't override undeclared system function on IRIX 6.5.
2281         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2282         HAVE_COPYSIGNF.
2283         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2284         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2286         not HAVE_COPYSIGNF.
2287         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2288         HAVE_COPYSIGNF.
2289         * doc/posix-functions/copysignf.texi: Mention missing declaration
2290         problem.
2291
2292 2012-03-07  Jim Meyering  <meyering@redhat.com>
2293
2294         readtokens: add tests
2295         * modules/readtokens-tests: New file.
2296         * tests/test-readtokens.c: New file.
2297
2298 2012-03-07  Jim Meyering  <meyering@redhat.com>
2299
2300         quotearg: the module must now include quote.h
2301         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2302         So must the module.
2303         * modules/quotearg (Files): Add quote.h.
2304
2305 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2306
2307         readtokens: avoid core dumps with unusual calling patterns
2308         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2309         * lib/readtokens.c: Include limits.h.
2310         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2311         (readtoken): Don't cache the delimiters; the cache code was buggy
2312         if !delim && saved_delim, or if the new n_delim differs from the old.
2313         Also, it wasn't thread-safe.
2314
2315 2012-03-07  Bruno Haible  <bruno@clisp.org>
2316
2317         quote: Adhere to common module description layout.
2318         * modules/quote (Makefile.am): Add back empty section.
2319
2320 2012-03-06  Akim Demaille  <demaille@gostai.com>
2321
2322         quote: fuse into quotearg
2323         This patch is made for the benefit of Bison.
2324         quote does not leave the choice of the quoting style to the user.
2325         quoting_style provides poor customizability, yet quoting_options,
2326         which is very rich, is hidden inside quotearg.c.  So in order to
2327         allow quote customization, move its implementation to quotearg.c.
2328         * lib/quote.c: Remove.
2329         * modules/quote: Adjust.
2330         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2331         warning: provide all the members of literal structs.
2332         (quote_quoting_options): New.
2333         (quote, quote_n): Import implementation from quote.c.
2334         * lib/quote.h: Import the comments from quote.c.
2335         (quote_quoting_options): New.
2336
2337 2012-03-06  Bruno Haible  <bruno@clisp.org>
2338
2339         Tests for module 'expm1l-ieee'.
2340         * modules/expm1l-ieee-tests: New file.
2341         * tests/test-expm1l-ieee.c: New file.
2342
2343         New module 'expm1l-ieee'.
2344         * modules/expm1l-ieee: New file.
2345
2346         Tests for module 'expm1f-ieee'.
2347         * modules/expm1f-ieee-tests: New file.
2348         * tests/test-expm1f-ieee.c: New file.
2349
2350         New module 'expm1f-ieee'.
2351         * modules/expm1f-ieee: New file.
2352
2353         Tests for module 'expm1-ieee'.
2354         * modules/expm1-ieee-tests: New file.
2355         * tests/test-expm1-ieee.c: New file.
2356         * tests/test-expm1-ieee.h: New file.
2357
2358         New module 'expm1-ieee'.
2359         * modules/expm1-ieee: New file.
2360         * m4/expm1-ieee.m4: New file.
2361         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2362         whether expm1 works with a minus zero argument. Replace it if not.
2363         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2365         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2366         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2367         (Depends-on): Update conditions.
2368         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2369         AIX problem.
2370
2371 2012-03-06  Bruno Haible  <bruno@clisp.org>
2372
2373         Work around expm1f bug on IRIX 6.5.
2374         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2375         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2376         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2377         not work.
2378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2379         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2380         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2381         (Depends-on): Update conditions.
2382         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2383
2384 2012-03-06  Bruno Haible  <bruno@clisp.org>
2385
2386         Tests for module 'expm1l'.
2387         * modules/expm1l-tests: New file.
2388         * tests/test-expm1l.c: New file.
2389
2390         New module 'expm1l'.
2391         * lib/math.in.h (expm1l): New declaration.
2392         * lib/expm1l.c: New file.
2393         * m4/expm1l.m4: New file.
2394         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2395         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2396         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2397         * modules/expm1l: New file.
2398         * tests/test-math-c++.cc: Check the declaration of expm1l.
2399         * doc/posix-functions/expm1l.texi: Mention the new module.
2400
2401 2012-03-06  Bruno Haible  <bruno@clisp.org>
2402
2403         Tests for module 'expm1f'.
2404         * modules/expm1f-tests: New file.
2405         * tests/test-expm1f.c: New file.
2406
2407         New module 'expm1f'.
2408         * lib/math.in.h (expm1f): New declaration.
2409         * lib/expm1f.c: New file.
2410         * m4/expm1f.m4: New file.
2411         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2412         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2413         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2414         * modules/expm1f: New file.
2415         * tests/test-math-c++.cc: Check the declaration of expm1f.
2416         * doc/posix-functions/expm1f.texi: Mention the new module.
2417
2418 2012-03-06  Bruno Haible  <bruno@clisp.org>
2419
2420         Tests for module 'expm1'.
2421         * modules/expm1-tests: New file.
2422         * tests/test-expm1.c: New file.
2423         * tests/test-expm1.h: New file.
2424
2425         New module 'expm1'.
2426         * lib/math.in.h (expm1): New declaration.
2427         * lib/expm1.c: New file.
2428         * m4/expm1.m4: New file.
2429         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2431         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2432         * modules/expm1: New file.
2433         * tests/test-math-c++.cc: Check the declaration of expm1.
2434         * doc/posix-functions/expm1.texi: Mention the new module.
2435
2436 2012-03-06  Bruno Haible  <bruno@clisp.org>
2437
2438         math: Ensure declarations of math functions.
2439         * modules/acosf (Depends-on): Add 'extensions'.
2440         * modules/asinf (Depends-on): Likewise.
2441         * modules/atan2f (Depends-on): Likewise.
2442         * modules/atanf (Depends-on): Likewise.
2443         * modules/cbrt (Depends-on): Likewise.
2444         * modules/cbrtf (Depends-on): Likewise.
2445         * modules/cbrtl (Depends-on): Likewise.
2446         * modules/copysignf (Depends-on): Likewise.
2447         * modules/copysignl (Depends-on): Likewise.
2448         * modules/cosf (Depends-on): Likewise.
2449         * modules/coshf (Depends-on): Likewise.
2450         * modules/expf (Depends-on): Likewise.
2451         * modules/fabsf (Depends-on): Likewise.
2452         * modules/fabsl (Depends-on): Likewise.
2453         * modules/fmaf (Depends-on): Likewise.
2454         * modules/fmal (Depends-on): Likewise.
2455         * modules/fmodf (Depends-on): Likewise.
2456         * modules/fmodl (Depends-on): Likewise.
2457         * modules/frexpf (Depends-on): Likewise.
2458         * modules/frexpl (Depends-on): Likewise.
2459         * modules/hypot (Depends-on): Likewise.
2460         * modules/hypotf (Depends-on): Likewise.
2461         * modules/hypotl (Depends-on): Likewise.
2462         * modules/ldexpf (Depends-on): Likewise.
2463         * modules/ldexpl (Depends-on): Likewise.
2464         * modules/log10f (Depends-on): Likewise.
2465         * modules/log10l (Depends-on): Likewise.
2466         * modules/log1p (Depends-on): Likewise.
2467         * modules/logb (Depends-on): Likewise.
2468         * modules/logf (Depends-on): Likewise.
2469         * modules/modff (Depends-on): Likewise.
2470         * modules/modfl (Depends-on): Likewise.
2471         * modules/powf (Depends-on): Likewise.
2472         * modules/remainderf (Depends-on): Likewise.
2473         * modules/remainderl (Depends-on): Likewise.
2474         * modules/rintf (Depends-on): Likewise.
2475         * modules/rintl (Depends-on): Likewise.
2476         * modules/sinf (Depends-on): Likewise.
2477         * modules/sinhf (Depends-on): Likewise.
2478         * modules/sqrtf (Depends-on): Likewise.
2479         * modules/tanf (Depends-on): Likewise.
2480         * modules/tanhf (Depends-on): Likewise.
2481         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2482         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2483         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2484         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2485         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2486         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2487         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2488         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2489         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2490         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2491         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2492         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2493         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2494         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2495         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2496         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2497         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2498         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2499         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2500         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2501         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2502         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2503         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2504         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2505         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2506         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2507         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2508         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2509         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2510         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2511         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2512         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2513         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2514         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2515         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2516         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2517         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2518         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2519         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2520         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2521         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2522
2523 2012-03-06  Bruno Haible  <bruno@clisp.org>
2524
2525         math: Update module names in warnings.
2526         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2527         tanl): Use specific module name in warn-on-use warning.
2528
2529 2012-03-06  Bruno Haible  <bruno@clisp.org>
2530
2531         expl: Simplify computation.
2532         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2533
2534 2012-03-05  Bruno Haible  <bruno@clisp.org>
2535
2536         exp* tests: More tests.
2537         * tests/test-exp.h: New file.
2538         * tests/test-exp.c: Include <float.h> and test-exp.h.
2539         (main): Invoke test_function.
2540         * tests/test-expf.c: Include <float.h> and test-exp.h.
2541         (main): Invoke test_function.
2542         * tests/test-expl.c: Include <float.h> and test-exp.h.
2543         (main): Invoke test_function.
2544         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2545         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2546         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2547         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2548         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2549         (Depends-on): Add 'float'.
2550         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2551
2552         expl: Fix precision of computed result.
2553         * lib/expl.c: Completely rewritten.
2554         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2555         (Maintainer): Add me.
2556         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2557
2558 2012-03-05  Bruno Haible  <bruno@clisp.org>
2559
2560         cbrt* tests: More tests.
2561         * tests/test-cbrt.h: New file.
2562         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2563         (main): Invoke test_function.
2564         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2565         (main): Invoke test_function.
2566         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2567         (main): Invoke test_function.
2568         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2569         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2570         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2571         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2572         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2573         (Depends-on): Add 'float'.
2574         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2575
2576 2012-03-05  Bruno Haible  <bruno@clisp.org>
2577
2578         hypot* tests: More tests.
2579         * tests/test-hypot.h: New file, partially extracted from
2580         tests/test-hypotl.c.
2581         * tests/test-hypot.c: Include test-hypot.h.
2582         (main): Invoke test_function.
2583         * tests/test-hypotf.c: Include test-hypot.h.
2584         (main): Invoke test_function.
2585         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2586         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2587         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2588         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2589         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2590         tests/randomf.c.
2591         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2592         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2593         tests/randoml.c.
2594         (Depends-on): Add 'fpucw', 'float'.
2595         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2596
2597 2012-03-05  Bruno Haible  <bruno@clisp.org>
2598
2599         fpucw: Doc about FreeBSD.
2600         * lib/fpucw.h: Mention FreeBSD in comments.
2601
2602 2012-03-04  Bruno Haible  <bruno@clisp.org>
2603
2604         sqrt* tests: More tests.
2605         * tests/test-sqrt.h: New file.
2606         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2607         (main): Invoke test_function.
2608         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2609         (main): Invoke test_function.
2610         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2611         (main): Invoke test_function.
2612         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2613         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2614         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2615         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2616         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2617         (Depends-on): Add 'float'.
2618         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2619
2620 2012-03-04  Bruno Haible  <bruno@clisp.org>
2621
2622         remainder* tests: More tests.
2623         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2624         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2625         (main): Invoke test_function.
2626         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2627         (main): Invoke test_function.
2628         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2629         (main): Invoke test_function.
2630         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2631         tests/randomd.c.
2632         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2633         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2634         tests/randomf.c.
2635         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2636         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2637         tests/randoml.c.
2638         (Depends-on): Add 'float'.
2639         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2640
2641 2012-03-04  Bruno Haible  <bruno@clisp.org>
2642
2643         remainder, remainderf, remainderl: Fix computation for large quotients.
2644         * lib/remainder.c: Completely rewritten.
2645         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2646         USE_FLOAT.
2647         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2648         USE_LONG_DOUBLE.
2649         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2650         isnand, isinf. Remove round, fma.
2651         * modules/remainderf (Files): Add lib/remainder.c.
2652         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2653         Remove roundf, fmaf.
2654         * modules/remainderl (Files): Add lib/remainder.c.
2655         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2656         isinf. Remove roundl, fmal.
2657         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2658         REMAINDER_LIBM.
2659         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2660         REMAINDERF_LIBM.
2661         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2662         REMAINDERL_LIBM.
2663
2664 2012-03-04  Bruno Haible  <bruno@clisp.org>
2665
2666         fmod* tests: More tests.
2667         * tests/test-fmod.h (my_ldexp): New function.
2668         (test_function): Reduce amount of random numbers to test. Add tests
2669         of very large quotients x / y.
2670         * tests/test-fmod.c (MAX_EXP): New macro.
2671         * tests/test-fmodf.c (MAX_EXP): Likewise.
2672         * tests/test-fmodl.c (MAX_EXP): Likewise.
2673
2674 2012-03-04  Bruno Haible  <bruno@clisp.org>
2675
2676         fmod, fmodl: Fix computation for large quotients x / y.
2677         * lib/fmod.c: Completely rewritten.
2678         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2679         USE_LONG_DOUBLE.
2680         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2681         isnand. Remove fma.
2682         * modules/fmodl (Files): Add lib/fmod.c.
2683         (Depends-on): Add float, isfinite, signbit, fabsl,
2684         frexpl, ldexpl, isnanl. Remove fma.
2685         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2686         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2687
2688 2012-03-03  Bruno Haible  <bruno@clisp.org>
2689
2690         fmod* tests: More tests.
2691         * tests/test-fmod.h: New file.
2692         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2693         (main): Invoke test_function.
2694         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2695         (main): Invoke test_function.
2696         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2697         (main): Invoke test_function.
2698         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2699         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2700         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2701         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2702         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2703         (Depends-on): Add 'float'.
2704         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2705
2706 2012-03-03  Bruno Haible  <bruno@clisp.org>
2707
2708         rint* tests: More tests.
2709         * tests/test-rint.h: New file, partially extracted from
2710         tests/test-rintl.c.
2711         * tests/test-rint.c: Include test-rint.h.
2712         (main): Invoke test_function.
2713         * tests/test-rintf.c: Include test-rint.h.
2714         (main): Invoke test_function.
2715         * tests/test-rintl.c: Include test-rint.h.
2716         (main): Invoke test_function.
2717         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2718         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2719         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2720         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2721         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2722         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2723
2724 2012-03-03  Bruno Haible  <bruno@clisp.org>
2725
2726         modf* tests: More tests.
2727         * tests/test-modf.h: New file.
2728         * tests/test-modf.c: Include <float.h> and test-modf.h.
2729         (main): Invoke test_function.
2730         * tests/test-modff.c: Include <float.h> and test-modf.h.
2731         (main): Invoke test_function.
2732         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2733         (main): Invoke test_function.
2734         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2735         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2736         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2737         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2738         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2739         (Depends-on): Add 'float'.
2740         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2741
2742 2012-03-03  Bruno Haible  <bruno@clisp.org>
2743
2744         fabs* tests: More tests.
2745         * tests/test-fabs.h: New file, partially extracted from
2746         tests/test-fabsl.c.
2747         * tests/test-fabs.c (RANDOM): New macro.
2748         * tests/test-fabsf.c (RANDOM): New macro.
2749         * tests/test-fabsl.c (RANDOM): New macro.
2750         * modules/fabs-tests (Files): Add tests/randomd.c.
2751         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2752         * modules/fabsf-tests (Files): Add tests/randomf.c.
2753         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2754         * modules/fabsl-tests (Files): Add tests/randoml.c.
2755         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2756
2757 2012-03-03  Bruno Haible  <bruno@clisp.org>
2758
2759         ldexp* tests: More tests.
2760         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2761         * tests/test-ldexp.c (RANDOM): New macro.
2762         * tests/test-ldexpf.c (RANDOM): New macro.
2763         * tests/test-ldexpl.c (RANDOM): New macro.
2764         * modules/ldexp-tests (Files): Add tests/randomd.c.
2765         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2766         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2767         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2768         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2769         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2770
2771 2012-03-03  Bruno Haible  <bruno@clisp.org>
2772
2773         frexp* tests: More tests.
2774         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2775         * tests/test-frexp.c (RANDOM): New macro.
2776         * tests/test-frexpf.c (RANDOM): New macro.
2777         * tests/test-frexpl.c (RANDOM): New macro.
2778         * modules/frexp-tests (Files): Add tests/randomd.c.
2779         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2780         * modules/frexpf-tests (Files): Add tests/randomf.c.
2781         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2782         * modules/frexpl-tests (Files): Add tests/randoml.c.
2783         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2784
2785 2012-03-03  Bruno Haible  <bruno@clisp.org>
2786
2787         Support for pseudo-random numbers in tests.
2788         * tests/randomf.c: New file.
2789         * tests/randomd.c: New file.
2790         * tests/randoml.c: New file.
2791         * tests/macros.h (randomf, randomd, randoml): New declarations.
2792
2793 2012-03-03  Bruno Haible  <bruno@clisp.org>
2794
2795         frexp* tests: Refactor.
2796         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2797         * tests/test-frexp.c: Include and use it.
2798         * tests/test-frexpf.c: Likewise.
2799         * tests/test-frexpl.c: Likewise.
2800         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2801         * modules/frexpf-tests (Files): Likewise.
2802         * modules/frexpl-tests (Files): Likewise.
2803
2804 2012-03-02  Jim Meyering  <meyering@redhat.com>
2805
2806         maint: don't specify XZ_OPT=-9ev in dist-related rule
2807         Using xz's -9 option is warranted only if you have a very large
2808         tarball (see xz's documentation for the sizes vs. presets), and
2809         requires 64MiB of memory at decompression time.
2810         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2811         Automake's default of just "-e" is fine.  Override on a
2812         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2813
2814 2012-03-01  Eric Blake  <eblake@redhat.com>
2815
2816         maint.mk: allow announcement for non-gnulib project
2817         * maint.mk (announcement): Skip gnulib version if not used.
2818
2819 2012-03-01  Jim Meyering  <meyering@redhat.com>
2820
2821         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2822         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2823         envvar settings cannot interfere.  Otherwise, setting envvars like
2824         prohibit=foo require=bar, etc. would cause spurious test failures.
2825
2826 2012-03-01  Eric Blake  <eblake@redhat.com>
2827
2828         maint.mk: add per-line exclusions to prohibitions
2829         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2830         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2831         (sc_const_long_option): Use it.
2832
2833 2012-03-01  Bruno Haible  <bruno@clisp.org>
2834
2835         Tests for module 'expl-ieee'.
2836         * modules/expl-ieee-tests: New file.
2837         * tests/test-expl-ieee.c: New file.
2838
2839         New module 'expl-ieee'.
2840         * modules/expl-ieee: New file.
2841
2842         Tests for module 'exp-ieee'.
2843         * modules/exp-ieee-tests: New file.
2844         * tests/test-exp-ieee.c: New file.
2845
2846         New module 'exp-ieee'.
2847         * modules/exp-ieee: New file.
2848
2849         Tests for module 'expf-ieee'.
2850         * modules/expf-ieee-tests: New file.
2851         * tests/test-expf-ieee.c: New file.
2852         * tests/test-exp-ieee.h: New file.
2853
2854         New module 'expf-ieee'.
2855         * modules/expf-ieee: New file.
2856
2857 2012-02-29  Bruno Haible  <bruno@clisp.org>
2858
2859         cbrtl-ieee: Work around test failure on IRIX 6.5.
2860         * m4/cbrtl-ieee.m4: New file.
2861         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2862         test whether cbrtl works with a minus zero argument. Replace it if not.
2863         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2865         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2866         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2867         (Depends-on): Update conditions.
2868         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2869         m4/signbit.m4.
2870         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2871         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2872         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2873
2874         Tests for module 'cbrtl-ieee'.
2875         * modules/cbrtl-ieee-tests: New file.
2876         * tests/test-cbrtl-ieee.c: New file.
2877
2878         New module 'cbrtl-ieee'.
2879         * modules/cbrtl-ieee: New file.
2880
2881         Tests for module 'cbrt-ieee'.
2882         * modules/cbrt-ieee-tests: New file.
2883         * tests/test-cbrt-ieee.c: New file.
2884
2885         New module 'cbrt-ieee'.
2886         * modules/cbrt-ieee: New file.
2887
2888         Tests for module 'cbrtf-ieee'.
2889         * modules/cbrtf-ieee-tests: New file.
2890         * tests/test-cbrtf-ieee.c: New file.
2891         * tests/test-cbrt-ieee.h: New file.
2892
2893         New module 'cbrtf-ieee'.
2894         * modules/cbrtf-ieee: New file.
2895
2896 2012-02-29  Bruno Haible  <bruno@clisp.org>
2897
2898         cbrtf: Work around bug in IRIX 6.5 system function.
2899         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2900         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2901         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2902         work.
2903         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2904         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2905         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2906         (Depends-on): Update conditions.
2907         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2908
2909 2012-02-29  Bruno Haible  <bruno@clisp.org>
2910
2911         Tests for module 'cbrtl'.
2912         * modules/cbrtl-tests: New file.
2913         * tests/test-cbrtl.c: New file.
2914
2915         New module 'cbrtl'.
2916         * lib/math.in.h (cbrtl): New declaration.
2917         * lib/cbrtl.c: New file.
2918         * m4/cbrtl.m4: New file.
2919         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2921         HAVE_DECL_CBRTL.
2922         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2923         HAVE_DECL_CBRTL.
2924         * modules/cbrtl: New file.
2925         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2926         * doc/posix-functions/cbrtl.texi: Mention the new module.
2927
2928 2012-02-29  Bruno Haible  <bruno@clisp.org>
2929
2930         Tests for module 'cbrtf'.
2931         * modules/cbrtf-tests: New file.
2932         * tests/test-cbrtf.c: New file.
2933
2934         New module 'cbrtf'.
2935         * lib/math.in.h (cbrtf): New declaration.
2936         * lib/cbrtf.c: New file.
2937         * m4/cbrtf.m4: New file.
2938         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2940         HAVE_DECL_CBRTF.
2941         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2942         HAVE_DECL_CBRTF.
2943         * modules/cbrtf: New file.
2944         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2945         * doc/posix-functions/cbrtf.texi: Mention the new module.
2946
2947 2012-02-29  Bruno Haible  <bruno@clisp.org>
2948
2949         cbrt: Provide replacement on MSVC and Minix.
2950         * lib/math.in.h (cbrt): New declaration.
2951         * lib/cbrt.c: New file.
2952         * m4/cbrt.m4: New file.
2953         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2955         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2956         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2957         (Depends-on): Add dependencies.
2958         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2959         * tests/test-math-c++.cc: Check the declaration of cbrt.
2960         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2961         replacement.
2962
2963 2012-02-29  Bruno Haible  <bruno@clisp.org>
2964
2965         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2966         * m4/hypotl-ieee.m4: New file.
2967         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2968         test whether hypotl works with mixed NaN and Infinity arguments.
2969         Replace it if not.
2970         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2972         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2973         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2974         (Depends-on): Update conditions.
2975         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2976         (Depends-on): Add hypot-ieee.
2977         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2978         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2979
2980         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2981         * m4/hypotf-ieee.m4: New file.
2982         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2983         test whether hypotf works with mixed NaN and Infinity arguments.
2984         Replace it if not.
2985         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2986         (Depends-on): Add hypot-ieee.
2987         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2988         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2989
2990         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2991         * lib/math.in.h (hypot): New declaration.
2992         * lib/hypot.c: New file.
2993         * m4/hypot-ieee.m4: New file.
2994         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2995         whether hypot works with mixed NaN and Infinity arguments. Replace it
2996         if not.
2997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2998         REPLACE_HYPOT.
2999         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
3000         * modules/hypot (Files): Add lib/hypot.c.
3001         (Depends-on): Add dependencies.
3002         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
3003         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
3004         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
3005         * tests/test-math-c++.cc: Check the declaration of hypot.
3006         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3007
3008         Tests for module 'hypotl-ieee'.
3009         * modules/hypotl-ieee-tests: New file.
3010         * tests/test-hypotl-ieee.c: New file.
3011
3012         New module 'hypotl-ieee'.
3013         * modules/hypotl-ieee: New file.
3014
3015         Tests for module 'hypot-ieee'.
3016         * modules/hypot-ieee-tests: New file.
3017         * tests/test-hypot-ieee.c: New file.
3018
3019         New module 'hypot-ieee'.
3020         * modules/hypot-ieee: New file.
3021
3022         Tests for module 'hypotf-ieee'.
3023         * modules/hypotf-ieee-tests: New file.
3024         * tests/test-hypotf-ieee.c: New file.
3025         * tests/test-hypot-ieee.h: New file.
3026
3027         New module 'hypotf-ieee'.
3028         * modules/hypotf-ieee: New file.
3029
3030 2012-02-29  Bruno Haible  <bruno@clisp.org>
3031
3032         Remove unused variables.
3033         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3034         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3035         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3036         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3037
3038 2012-02-29  Eric Blake  <eblake@redhat.com>
3039
3040         termios: fix pid_t always, not just for tcgetsid
3041         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3042         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3043         just when building tcgetsid.
3044
3045 2012-02-29  Bruno Haible  <bruno@clisp.org>
3046
3047         Tests for module 'hypotl'.
3048         * modules/hypotl-tests: New file.
3049         * tests/test-hypotl.c: New file.
3050
3051         New module 'hypotl'.
3052         * lib/math.in.h (hypotl): New declaration.
3053         * lib/hypotl.c: New file.
3054         * m4/hypotl.m4: New file.
3055         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3057         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3058         * modules/hypotl: New file.
3059         * tests/test-math-c++.cc: Check the hypotl declaration.
3060         * doc/posix-functions/hypotl.texi: Mention the new module.
3061
3062 2012-02-29  Eric Blake  <eblake@redhat.com>
3063
3064         tcgetsid: fix cygwin header bug
3065         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3066
3067         docs: update cygwin progress
3068         * doc/posix-functions/llround.texi (llround): Added in cygwin
3069         1.7.8.
3070         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3071         * doc/glibc-functions/program_invocation_name.texi
3072         (program_invocation_name): Likewise.
3073         * doc/glibc-functions/program_invocation_short_name.texi
3074         (program_invocation_short_name): Likewise.
3075         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3076         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3077         Likewise.
3078         * doc/posix-functions/pthread_spin_destroy.texi
3079         (pthread_spin_destroy): Added in cygwin 1.7.10.
3080         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3081         Likewise.
3082         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3083         Likewise.
3084         * doc/posix-functions/pthread_spin_trylock.texi
3085         (pthread_spin_trylock): Likewise.
3086         * doc/posix-functions/pthread_spin_unlock.texi
3087         (pthread_spin_unlock): Likewise.
3088         * doc/posix-functions/pthread_setschedprio.texi
3089         (pthread_setschedprio): Likewise.
3090         * doc/posix-functions/pthread_attr_getstack.texi
3091         (pthread_attr_getstack): Likewise.
3092         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3093         (pthread_attr_getstackaddr): Likewise.
3094         * doc/glibc-functions/pthread_getattr_np.texi
3095         (pthread_getattr_np): Likewise.
3096         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3097         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3098         * doc/posix-functions/clock_settime.texi (clock_settime):
3099         Likewise.
3100         * doc/posix-functions/pthread_attr_getguardsize.texi
3101         (pthread_attr_getguardsize): Likewise.
3102         * doc/posix-functions/pthread_attr_setguardsize.texi
3103         (pthread_attr_setguardsize): Likewise.
3104         * doc/posix-functions/pthread_attr_setstack.texi
3105         (pthread_attr_setstack): Likewise.
3106         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3107         (pthread_attr_setstackaddr): Likewise.
3108         * doc/posix-functions/clock_getcpuclockid.texi
3109         (clock_getcpuclockid): Likewise.
3110         * doc/posix-functions/pthread_getcpuclockid.texi
3111         (pthread_getcpuclockid): Likewise.
3112         * doc/glibc-functions/error.texi (error): Likewise.
3113         * doc/glibc-functions/error_at_line.texi (error_at_line):
3114         Likewise.
3115         * doc/glibc-functions/error_message_count.texi
3116         (error_message_count): Likewise.
3117         * doc/glibc-functions/error_one_per_line.texi
3118         (error_one_per_line): Likewise.
3119         * doc/glibc-functions/error_print_progname.texi
3120         (error_print_progname): Likewise.
3121         * doc/posix-functions/pthread_condattr_getclock.texi
3122         (pthread_condattr_getclock): Likewise.
3123         * doc/posix-functions/pthread_condattr_setclock.texi
3124         (pthread_condattr_setclock): Likewise.
3125         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3126         Likewise.
3127         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3128         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3129         * doc/glibc-functions/get_current_dir_name.texi
3130         (get_current_dir_name): Likewise.
3131         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3132         Likewise.
3133         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3134         wrong return type.
3135         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3136         1.7.11.
3137
3138 2012-02-29  Bruno Haible  <bruno@clisp.org>
3139
3140         Tests for module 'hypotf'.
3141         * modules/hypotf-tests: New file.
3142         * tests/test-hypotf.c: New file.
3143
3144         New module 'hypotf'.
3145         * lib/math.in.h (hypotf): New declaration.
3146         * lib/hypotf.c: New file.
3147         * m4/hypotf.m4: New file.
3148         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3149         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
3150         REPLACE_HYPOTF.
3151         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
3152         REPLACE_HYPOTF.
3153         * modules/hypotf: New file.
3154         * tests/test-math-c++.cc: Check the hypotf declaration.
3155         * doc/posix-functions/hypotf.texi: Mention the new module.
3156
3157         hypot: Prepare for hypotf module.
3158         * m4/hypot.m4: New file.
3159         * modules/hypot (Files): Add m4/hypot.m4.
3160         (configure.ac): Invoke gl_FUNC_HYPOT.
3161
3162 2012-02-29  Bruno Haible  <bruno@clisp.org>
3163
3164         hypot tests: More tests.
3165         * tests/test-hypot.c: Include <float.h>.
3166         (main): Add tests about overflow and underflow.
3167
3168 2012-02-29  Bruno Haible  <bruno@clisp.org>
3169
3170         math code: Add comments.
3171         * lib/acosl.c: Add comment about related glibc source files.
3172         * lib/asinl.c: Likewise.
3173         * lib/atanl.c: Likewise.
3174         * lib/expl.c: Likewise.
3175         * lib/logl.c: Likewise.
3176         * lib/sincosl.c: Likewise.
3177         * lib/sinl.c: Likewise.
3178         * lib/tanl.c: Likewise.
3179         * lib/trigl.c: Likewise.
3180         * lib/cosl.c: Likewise. Fix comments.
3181
3182 2012-02-28  Bruno Haible  <bruno@clisp.org>
3183
3184         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3185         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3186         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3187         HUGE_VALL are defined.
3188         (numeric_equald): Renamed from numeric_equal.
3189         (numeric_equalf, numeric_equall): New functions.
3190         (main): Check also HUGE_VALF, HUGE_VALL.
3191         * modules/math-tests (Files): Add tests/macros.h.
3192         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3193         HUGE_VALL.
3194
3195 2012-02-28  Bruno Haible  <bruno@clisp.org>
3196
3197         doc: Move ISO C11 feature notes into POSIX chapters.
3198         * doc/posix-functions/aligned_alloc.texi: Renamed from
3199         doc/glibc-functions/aligned_alloc.texi.
3200         * doc/posix-functions/quick_exit.texi: Renamed from
3201         doc/glibc-functions/quick_exit.texi.
3202         * doc/posix-headers/uchar.texi: Renamed from
3203         doc/glibc-headers/uchar.texi.
3204         * doc/posix-functions/c16rtomb.texi: Renamed from
3205         doc/glibc-functions/c16rtomb.texi.
3206         * doc/posix-functions/c32rtomb.texi: Renamed from
3207         doc/glibc-functions/c32rtomb.texi.
3208         * doc/posix-functions/mbrtoc16.texi: Renamed from
3209         doc/glibc-functions/mbrtoc16.texi.
3210         * doc/posix-functions/mbrtoc32.texi: Renamed from
3211         doc/glibc-functions/mbrtoc32.texi.
3212         * doc/gnulib.texi: Update.
3213         (Glibc uchar.h): Remove section.
3214         Suggested by Eric Blake.
3215
3216 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3217
3218         stdnoreturn: port to MSVC better
3219         MSVC standard headers use __declspec(noreturn), so #define noreturn
3220         to empty on that platform.  Reported by Bruno Haible in
3221         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3222         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3223         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3224
3225 2012-02-28  Bruno Haible  <bruno@clisp.org>
3226
3227         doc: Mention new glibc headers and functions.
3228         * doc/glibc-headers/uchar.texi: New file.
3229         * doc/glibc-functions/aligned_alloc.texi: New file.
3230         * doc/glibc-functions/c16rtomb.texi: New file.
3231         * doc/glibc-functions/c32rtomb.texi: New file.
3232         * doc/glibc-functions/clock_adjtime.texi: New file.
3233         * doc/glibc-functions/fanotify_init.texi: New file.
3234         * doc/glibc-functions/fanotify_mark.texi: New file.
3235         * doc/glibc-functions/inet6_opt_append.texi: New file.
3236         * doc/glibc-functions/inet6_opt_find.texi: New file.
3237         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3238         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3239         * doc/glibc-functions/inet6_opt_init.texi: New file.
3240         * doc/glibc-functions/inet6_opt_next.texi: New file.
3241         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
3242         * doc/glibc-functions/inet6_rth_add.texi: New file.
3243         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
3244         * doc/glibc-functions/inet6_rth_init.texi: New file.
3245         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
3246         * doc/glibc-functions/inet6_rth_segments.texi: New file.
3247         * doc/glibc-functions/inet6_rth_space.texi: New file.
3248         * doc/glibc-functions/login.texi: New file.
3249         * doc/glibc-functions/mbrtoc16.texi: New file.
3250         * doc/glibc-functions/mbrtoc32.texi: New file.
3251         * doc/glibc-functions/name_to_handle_at.texi: New file.
3252         * doc/glibc-functions/ntp_gettimex.texi: New file.
3253         * doc/glibc-functions/open_by_handle_at.texi: New file.
3254         * doc/glibc-functions/prlimit.texi: New file.
3255         * doc/glibc-functions/process_vm_readv.texi: New file.
3256         * doc/glibc-functions/process_vm_writev.texi: New file.
3257         * doc/glibc-functions/recvmmsg.texi: New file.
3258         * doc/glibc-functions/scandirat.texi: New file.
3259         * doc/glibc-functions/sendmmsg.texi: New file.
3260         * doc/glibc-functions/setns.texi: New file.
3261         * doc/glibc-functions/timespec_get.texi: New file.
3262         * doc/gnulib.texi: Include them.
3263         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3264         sections.
3265         Reported by Eric Blake.
3266
3267 2012-02-28  Bruno Haible  <bruno@clisp.org>
3268
3269         Avoid compilation errors with MSVC option -fp:strict.
3270         * lib/floor.c: Use MSVC specific pragma fenv_access.
3271         * lib/ceil.c: Likewise.
3272         * lib/trunc.c: Likewise.
3273         * lib/round.c: Likewise.
3274         * lib/rint.c: Likewise.
3275         * lib/fma.c: Likewise.
3276         * lib/integer_length.c: Likewise.
3277         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3278         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3279         * tests/test-floor2.c: Likewise.
3280         * tests/test-floorf2.c: Likewise.
3281         * tests/test-ceil2.c: Likewise.
3282         * tests/test-ceilf2.c: Likewise.
3283         * tests/test-trunc2.c: Likewise.
3284         * tests/test-truncf2.c: Likewise.
3285         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3286
3287 2012-02-27  Bruno Haible  <bruno@clisp.org>
3288
3289         Tests for module 'sqrtl-ieee'.
3290         * modules/sqrtl-ieee-tests: New file.
3291         * tests/test-sqrtl-ieee.c: New file.
3292
3293         New module 'sqrtl-ieee'.
3294         * modules/sqrtl-ieee: New file.
3295
3296         Tests for module 'sqrt-ieee'.
3297         * modules/sqrt-ieee-tests: New file.
3298         * tests/test-sqrt-ieee.c: New file.
3299
3300         New module 'sqrt-ieee'.
3301         * modules/sqrt-ieee: New file.
3302
3303         Tests for module 'sqrtf-ieee'.
3304         * modules/sqrtf-ieee-tests: New file.
3305         * tests/test-sqrtf-ieee.c: New file.
3306         * tests/test-sqrt-ieee.h: New file.
3307
3308         New module 'sqrtf-ieee'.
3309         * modules/sqrtf-ieee: New file.
3310
3311 2012-02-27  Bruno Haible  <bruno@clisp.org>
3312
3313         remainderl-ieee: Work around test failure on OSF/1.
3314         * m4/remainderl-ieee.m4: New file.
3315         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3316         present, test whether remainderl works with a zero second argument.
3317         Replace it if not.
3318         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3320         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3321         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3322         (Depends-on): Update conditions.
3323         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3324         (Depends-on): Add remainder-ieee.
3325         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3326         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3327         module.
3328
3329         remainderf-ieee: Work around test failure on OSF/1.
3330         * m4/remainderf-ieee.m4: New file.
3331         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3332         present, test whether remainderf works with a zero second argument.
3333         Replace it if not.
3334         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3336         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3337         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3338         (Depends-on): Update conditions.
3339         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3340         (Depends-on): Add remainder-ieee.
3341         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3342         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3343         module.
3344
3345         remainder-ieee: Work around test failure on OSF/1.
3346         * m4/remainder-ieee.m4: New file.
3347         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3348         present, test whether remainder works with a zero second argument.
3349         Replace it if not.
3350         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3352         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3353         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3354         (Depends-on): Update dependencies.
3355         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3356         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3357         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3358
3359         Tests for module 'remainderl-ieee'.
3360         * modules/remainderl-ieee-tests: New file.
3361         * tests/test-remainderl-ieee.c: New file.
3362
3363         New module 'remainderl-ieee'.
3364         * modules/remainderl-ieee: New file.
3365
3366         Tests for module 'remainder-ieee'.
3367         * modules/remainder-ieee-tests: New file.
3368         * tests/test-remainder-ieee.c: New file.
3369
3370         New module 'remainder-ieee'.
3371         * modules/remainder-ieee: New file.
3372
3373         Tests for module 'remainderf-ieee'.
3374         * modules/remainderf-ieee-tests: New file.
3375         * tests/test-remainderf-ieee.c: New file.
3376         * tests/test-remainder-ieee.h: New file.
3377
3378         New module 'remainderf-ieee'.
3379         * modules/remainderf-ieee: New file.
3380
3381 2012-02-27  Bruno Haible  <bruno@clisp.org>
3382
3383         modff, modfl: Fix configure syntax error.
3384         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3385         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3386
3387 2012-02-27  Bruno Haible  <bruno@clisp.org>
3388
3389         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3390         * m4/fmodl-ieee.m4: New file.
3391         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3392         whether fmodl works with zero arguments. Replace it if not.
3393         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3394         (Depends-on): Add fmod-ieee.
3395         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3396         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3397
3398         fmodf-ieee: Work around test failure on OSF/1.
3399         * m4/fmodf-ieee.m4: New file.
3400         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3401         whether fmodf works with zero arguments. Replace it if not.
3402         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3404         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3405         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3406         (Depends-on): Update dependencies.
3407         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3408         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3409         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3410
3411         fmodf-ieee: Work around test failure on MSVC 9.
3412         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3413         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3414
3415         fmod-ieee: Work around test failures on OSF/1, mingw.
3416         * m4/fmod-ieee.m4: New file.
3417         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3418         whether fmod works with zero arguments. Replace it if not.
3419         * lib/math.in.h (fmod): New declaration.
3420         * lib/fmod.c: New file.
3421         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3422         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3423         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3424         * modules/fmod (Files): Add lib/fmod.c.
3425         (Depends-on): Add math, isinf, trunc, fma.
3426         (configure.ac): Arrange to compile lib/fmod.c if needed.
3427         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3428         m4/signbit.m4.
3429         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3430         * tests/test-math-c++.cc: Check the declaration of fmod.
3431         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3432
3433         fmodl-ieee: Fix test failures.
3434         * lib/fmodl.c (fmodl): Treat Inf specially.
3435         * modules/fmodl (Depends-on): Add isinf.
3436
3437         Tests for module 'fmodl-ieee'.
3438         * modules/fmodl-ieee-tests: New file.
3439         * tests/test-fmodl-ieee.c: New file.
3440
3441         New module 'fmodl-ieee'.
3442         * modules/fmodl-ieee: New file.
3443
3444         Tests for module 'fmod-ieee'.
3445         * modules/fmod-ieee-tests: New file.
3446         * tests/test-fmod-ieee.c: New file.
3447
3448         New module 'fmod-ieee'.
3449         * modules/fmod-ieee: New file.
3450
3451         Tests for module 'fmodf-ieee'.
3452         * modules/fmodf-ieee-tests: New file.
3453         * tests/test-fmodf-ieee.c: New file.
3454         * tests/test-fmod-ieee.h: New file.
3455
3456         New module 'fmodf-ieee'.
3457         * modules/fmodf-ieee: New file.
3458
3459 2012-02-27  Bruno Haible  <bruno@clisp.org>
3460
3461         Tests for module 'rintl-ieee'.
3462         * modules/rintl-ieee-tests: New file.
3463         * tests/test-rintl-ieee.c: New file.
3464
3465         New module 'rintl-ieee'.
3466         * modules/rintl-ieee: New file.
3467
3468         Tests for module 'rint-ieee'.
3469         * modules/rint-ieee-tests: New file.
3470         * tests/test-rint-ieee.c: New file.
3471
3472         New module 'rint-ieee'.
3473         * modules/rint-ieee: New file.
3474
3475         Tests for module 'rintf-ieee'.
3476         * modules/rintf-ieee-tests: New file.
3477         * tests/test-rintf-ieee.c: New file.
3478         * tests/test-rint-ieee.h: New file.
3479
3480         New module 'rintf-ieee'.
3481         * modules/rintf-ieee: New file.
3482
3483 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3484
3485         regex: re_search etc. should return -2 when memory exhausted
3486         This bug was uncovered when testing 'grep'.  Without the fix,
3487         re_search and friends return -1 when memory is exhausted, but -1
3488         means no match, and this causes grep to falsely report no-match
3489         instead of memory-exhaustion.  See
3490         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3491         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3492         trouble; this can occur if re_search_internal ran out of memory.
3493
3494 2012-02-26  Bruno Haible  <bruno@clisp.org>
3495
3496         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3497         * m4/modfl-ieee.m4: New file.
3498         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3499         whether modfl works with Inf. Replace it if not.
3500         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3502         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3503         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3504         (Depends-on): Update dependencies.
3505         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3506         m4/signbit.m4.
3507         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3508         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3509
3510         modfl-ieee: Fix dependencies.
3511         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3512
3513         modfl-ieee: Fix test failures.
3514         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3515         * modules/modfl (Depends-on): Add isfinite, isinf.
3516
3517         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3518         * m4/modff-ieee.m4: New file.
3519         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3520         whether modff works with NaN and Inf. Replace it if not.
3521         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3523         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3524         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3525         (Depends-on): Update dependencies.
3526         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3527         m4/signbit.m4.
3528         (Depends-on): Add modf-ieee.
3529         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3530         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3531
3532         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3533         * m4/modf-ieee.m4: New file.
3534         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3535         whether modf works with NaN and Inf. Replace it if not.
3536         * lib/math.in.h (modf): New declaration.
3537         * lib/modf.c: New file.
3538         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3539         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3540         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3541         * modules/modf (Files): Add lib/modf.c.
3542         (Depends-on): Add math, isfinite, trunc, isinf.
3543         (configure.ac): Addrange to compile lib/modf.c if needed.
3544         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3545         m4/signbit.m4.
3546         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3547         * tests/test-math-c++.cc: Check the declaration of modf.
3548         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3549
3550         Tests for module 'modfl-ieee'.
3551         * modules/modfl-ieee-tests: New file.
3552         * tests/test-modfl-ieee.c: New file.
3553
3554         New module 'modfl-ieee'.
3555         * modules/modfl-ieee: New file.
3556
3557         Tests for module 'modf-ieee'.
3558         * modules/modf-ieee-tests: New file.
3559         * tests/test-modf-ieee.c: New file.
3560
3561         New module 'modf-ieee'.
3562         * modules/modf-ieee: New file.
3563
3564         Tests for module 'modff-ieee'.
3565         * modules/modff-ieee-tests: New file.
3566         * tests/test-modff-ieee.c: New file.
3567         * tests/test-modf-ieee.h: New file.
3568
3569         New module 'modff-ieee'.
3570         * modules/modff-ieee: New file.
3571
3572 2012-02-26  Bruno Haible  <bruno@clisp.org>
3573
3574         Tests for module 'fabsl-ieee'.
3575         * modules/fabsl-ieee-tests: New file.
3576         * tests/test-fabsl-ieee.c: New file.
3577
3578         New module 'fabsl-ieee'.
3579         * modules/fabsl-ieee: New file.
3580
3581         Tests for module 'fabs-ieee'.
3582         * modules/fabs-ieee-tests: New file.
3583         * tests/test-fabs-ieee.c: New file.
3584
3585         New module 'fabs-ieee'.
3586         * modules/fabs-ieee: New file.
3587
3588         Tests for module 'fabsf-ieee'.
3589         * modules/fabsf-ieee-tests: New file.
3590         * tests/test-fabsf-ieee.c: New file.
3591         * tests/test-fabs-ieee.h: New file.
3592
3593         New module 'fabsf-ieee'.
3594         * modules/fabsf-ieee: New file.
3595
3596 2012-02-26  Bruno Haible  <bruno@clisp.org>
3597
3598         Tests for module 'fmal-ieee'.
3599         * modules/fmal-ieee-tests: New file.
3600         * tests/test-fmal-ieee.c: New file.
3601
3602         New module 'fmal-ieee'.
3603         * modules/fmal-ieee: New file.
3604
3605         Tests for module 'fma-ieee'.
3606         * modules/fma-ieee-tests: New file.
3607         * tests/test-fma-ieee.c: New file.
3608
3609         New module 'fma-ieee'.
3610         * modules/fma-ieee: New file.
3611
3612         Tests for module 'fmaf-ieee'.
3613         * modules/fmaf-ieee-tests: New file.
3614         * tests/test-fmaf-ieee.c: New file.
3615         * tests/test-fma-ieee.h: New file.
3616
3617         New module 'fmaf-ieee'.
3618         * modules/fmaf-ieee: New file.
3619
3620 2012-02-26  Bruno Haible  <bruno@clisp.org>
3621
3622         Tests for module 'ldexpl-ieee'.
3623         * modules/ldexpl-ieee-tests: New file.
3624         * tests/test-ldexpl-ieee.c: New file.
3625
3626         New module 'ldexpl-ieee'.
3627         * modules/ldexpl-ieee: New file.
3628
3629         Tests for module 'ldexp-ieee'.
3630         * modules/ldexp-ieee-tests: New file.
3631         * tests/test-ldexp-ieee.c: New file.
3632
3633         New module 'ldexp-ieee'.
3634         * modules/ldexp-ieee: New file.
3635
3636         Tests for module 'ldexpf-ieee'.
3637         * modules/ldexpf-ieee-tests: New file.
3638         * tests/test-ldexpf-ieee.c: New file.
3639         * tests/test-ldexp-ieee.h: New file.
3640
3641         New module 'ldexpf-ieee'.
3642         * modules/ldexpf-ieee: New file.
3643
3644 2012-02-26  Bruno Haible  <bruno@clisp.org>
3645
3646         Refactor frexp*-ieee tests.
3647         * tests/test-frexp-ieee.h: New file.
3648         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3649         (main): Just call test_function.
3650         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3651         (main): Just call test_function.
3652         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3653         (main): Just call test_function.
3654         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3655         * modules/frexp-ieee-tests (Files): Likewise.
3656         * modules/frexpl-ieee-tests (Files): Likewise.
3657
3658         Tests for module 'frexpl-ieee'.
3659         * modules/frexpl-ieee-tests: New file.
3660         * tests/test-frexpl-ieee.c: New file.
3661
3662         New module 'frexpl-ieee'.
3663         * modules/frexpl-ieee: New file.
3664
3665         Tests for module 'frexp-ieee'.
3666         * modules/frexp-ieee-tests: New file.
3667         * tests/test-frexp-ieee.c: New file.
3668
3669         New module 'frexp-ieee'.
3670         * modules/frexp-ieee: New file.
3671
3672         Tests for module 'frexpf-ieee'.
3673         * modules/frexpf-ieee-tests: New file.
3674         * tests/test-frexpf-ieee.c: New file.
3675
3676         New module 'frexpf-ieee'.
3677         * modules/frexpf-ieee: New file.
3678
3679 2012-02-26  Bruno Haible  <bruno@clisp.org>
3680
3681         roundl-ieee tests: More tests.
3682         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3683         (main): Add tests for [MX] shaded specification in POSIX.
3684         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3685         (Depends-on): Add isnanl-nolibm.
3686
3687         round-ieee tests: More tests.
3688         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3689         (main): Add tests for [MX] shaded specification in POSIX.
3690         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3691         (Depends-on): Add isnand-nolibm.
3692
3693         roundf-ieee tests: More tests.
3694         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3695         (main): Add tests for [MX] shaded specification in POSIX.
3696         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3697         (Depends-on): Add isnanf-nolibm.
3698
3699         truncl-ieee tests: More tests.
3700         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3701         (main): Add tests for [MX] shaded specification in POSIX.
3702         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3703         (Depends-on): Add isnanl-nolibm.
3704
3705         trunc-ieee tests: More tests.
3706         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3707         (main): Add tests for [MX] shaded specification in POSIX.
3708         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3709         (Depends-on): Add isnand-nolibm.
3710
3711         truncf-ieee tests: More tests.
3712         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3713         (main): Add tests for [MX] shaded specification in POSIX.
3714         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3715         (Depends-on): Add isnanf-nolibm.
3716
3717         ceill-ieee tests: More tests.
3718         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3719         (main): Add tests for [MX] shaded specification in POSIX.
3720         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3721         (Depends-on): Add isnanl-nolibm.
3722
3723         ceil-ieee tests: More tests.
3724         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3725         (main): Add tests for [MX] shaded specification in POSIX.
3726         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3727         (Depends-on): Add isnand-nolibm.
3728
3729         ceilf-ieee tests: More tests.
3730         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3731         (main): Add tests for [MX] shaded specification in POSIX.
3732         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3733         (Depends-on): Add isnanf-nolibm.
3734
3735         floorl-ieee tests: More tests.
3736         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3737         (main): Add tests for [MX] shaded specification in POSIX.
3738         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3739         (Depends-on): Add isnanl-nolibm.
3740
3741         floor-ieee tests: More tests.
3742         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3743         (main): Add tests for [MX] shaded specification in POSIX.
3744         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3745         (Depends-on): Add isnand-nolibm.
3746
3747         floorf-ieee tests: More tests.
3748         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3749         (main): Add tests for [MX] shaded specification in POSIX.
3750         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3751         (Depends-on): Add isnanf-nolibm.
3752
3753 2012-02-26  Bruno Haible  <bruno@clisp.org>
3754
3755         fpieee: More comments.
3756         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3757
3758 2012-02-25  Bruno Haible  <bruno@clisp.org>
3759
3760         Tests for module 'log10l'.
3761         * modules/log10l-tests: New file.
3762         * tests/test-log10l.c: New file.
3763         * tests/test-math-c++.cc: Check the declaration of log10l.
3764
3765         New module 'log10l'.
3766         * lib/math.in.h (log10l): New declaration.
3767         * lib/log10l.c: New file.
3768         * m4/log10l.m4: New file.
3769         * modules/log10l: New file.
3770         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3772         HAVE_DECL_LOG10L.
3773         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3774         HAVE_DECL_LOG10L.
3775         * doc/posix-functions/log10l.texi: Mention the new module.
3776
3777 2012-02-25  Bruno Haible  <bruno@clisp.org>
3778
3779         fmodl, remainder*: Avoid wrong results due to rounding errors.
3780         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3781         expected bounds.
3782         * lib/remainderf.c (remainderf): Likewise.
3783         * lib/remainder.c (remainder): Likewise.
3784         * lib/remainderl.c (remainderl): Likewise.
3785
3786 2012-02-25  Bruno Haible  <bruno@clisp.org>
3787
3788         Tests for module 'remainderl'.
3789         * modules/remainderl-tests: New file.
3790         * tests/test-remainderl.c: New file.
3791         * tests/test-math-c++.cc: Check the declaration of remainderl.
3792
3793         New module 'remainderl'.
3794         * lib/math.in.h (remainderl): New declaration.
3795         * lib/remainderl.c: New file.
3796         * m4/remainderl.m4: New file.
3797         * modules/remainderl: New file.
3798         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3800         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3801         HAVE_REMAINDERL.
3802         * doc/posix-functions/remainderl.texi: Mention the new module.
3803
3804 2012-02-25  Bruno Haible  <bruno@clisp.org>
3805
3806         Tests for module 'remainderf'.
3807         * modules/remainderf-tests: New file.
3808         * tests/test-remainderf.c: New file.
3809         * tests/test-math-c++.cc: Check the declaration of remainderf.
3810
3811         New module 'remainderf'.
3812         * lib/math.in.h (remainderf): New declaration.
3813         * lib/remainderf.c: New file.
3814         * m4/remainderf.m4: New file.
3815         * modules/remainderf: New file.
3816         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3817         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3818         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3819         HAVE_REMAINDERF.
3820         * doc/posix-functions/remainderf.texi: Mention the new module.
3821
3822 2012-02-25  Bruno Haible  <bruno@clisp.org>
3823
3824         remainder: Support for MSVC.
3825         * lib/math.in.h (remainder): New declaration.
3826         * lib/remainder.c: New file.
3827         * m4/remainder.m4: New file.
3828         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3829         (Depends-on): Add math, round, fma.
3830         (configure.ac): Use results of gl_FUNC_REMAINDER.
3831         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3832         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3833         HAVE_DECL_REMAINDER.
3834         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3835         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3836         * tests/test-math-c++.cc: Check the declaration of remainder.
3837         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3838         problems are fixed.
3839
3840 2012-02-25  Bruno Haible  <bruno@clisp.org>
3841
3842         Tests for module 'fmodl'.
3843         * modules/fmodl-tests: New file.
3844         * tests/test-fmodl.c: New file.
3845         * tests/test-math-c++.cc: Check the declaration of fmodl.
3846
3847         New module 'fmodl'.
3848         * lib/math.in.h (fmodl): New declaration.
3849         * lib/fmodl.c: New file.
3850         * m4/fmodl.m4: New file.
3851         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3852         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3853         REPLACE_FMODL.
3854         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3855         REPLACE_FMODL.
3856         * modules/fmodl: New file.
3857         * doc/posix-functions/fmodl.texi: Mention the new module.
3858
3859 2012-02-25  Bruno Haible  <bruno@clisp.org>
3860
3861         Tests for module 'modfl'.
3862         * modules/modfl-tests: New file.
3863         * tests/test-modfl.c: New file.
3864         * tests/test-math-c++.cc: Check the declaration of modfl.
3865
3866         New module 'modfl'.
3867         * lib/math.in.h (modfl): New declaration.
3868         * lib/modfl.c: New file.
3869         * m4/modfl.m4: New file.
3870         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3872         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3873         * modules/modfl: New file.
3874         * doc/posix-functions/modfl.texi: Mention the new module.
3875
3876 2012-02-25  Bruno Haible  <bruno@clisp.org>
3877
3878         Tests for module 'fabsl'.
3879         * modules/fabsl-tests: New file.
3880         * tests/test-fabsl.c: New file.
3881         * tests/test-math-c++.cc: Check the declaration of fabsl.
3882
3883         New module 'fabsl'.
3884         * lib/math.in.h (fabsl): New declaration.
3885         * lib/fabsl.c: New file.
3886         * m4/fabsl.m4: New file.
3887         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3889         REPLACE_FABSL.
3890         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3891         REPLACE_FABSL.
3892         * modules/fabsl: New file.
3893         * doc/posix-functions/fabsl.texi: Mention the new module.
3894
3895 2012-02-25  Bruno Haible  <bruno@clisp.org>
3896
3897         fabs tests: More tests.
3898         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3899         (zero): New variable.
3900         (main): Add tests for signed zero.
3901         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3902
3903         fabsf tests: More tests.
3904         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3905         (zero): New variable.
3906         (main): Add tests for signed zero.
3907         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3908
3909 2012-02-24  Bruno Haible  <bruno@clisp.org>
3910
3911         atanl: Provide function definition on MSVC.
3912         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3913         function pointer.
3914         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3915
3916 2012-02-24  Bruno Haible  <bruno@clisp.org>
3917
3918         acosl: Provide function definition on MSVC.
3919         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3920         function pointer.
3921         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3922
3923 2012-02-24  Bruno Haible  <bruno@clisp.org>
3924
3925         asinl: Provide function definition on MSVC.
3926         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3927         function pointer.
3928         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3929
3930 2012-02-24  Bruno Haible  <bruno@clisp.org>
3931
3932         tanl: Provide function definition on MSVC.
3933         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3934         function pointer.
3935         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3936
3937 2012-02-24  Bruno Haible  <bruno@clisp.org>
3938
3939         cosl: Provide function definition on MSVC.
3940         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3941         function pointer.
3942         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3943
3944 2012-02-24  Bruno Haible  <bruno@clisp.org>
3945
3946         sinl: Provide function definition on MSVC.
3947         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3948         function pointer.
3949         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3950
3951 2012-02-24  Bruno Haible  <bruno@clisp.org>
3952
3953         logl: Provide function definition on MSVC.
3954         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3955         function pointer.
3956         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3957
3958 2012-02-24  Bruno Haible  <bruno@clisp.org>
3959
3960         expl: Provide function definition on MSVC.
3961         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3962         function pointer.
3963         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3964
3965 2012-02-24  Bruno Haible  <bruno@clisp.org>
3966
3967         sqrtl: Provide function definition on MSVC.
3968         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3969         a function pointer.
3970         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3971
3972 2012-02-24  Bruno Haible  <bruno@clisp.org>
3973
3974         ceill: Provide function definition on MSVC.
3975         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3976         used as a function pointer.
3977         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3978
3979 2012-02-24  Bruno Haible  <bruno@clisp.org>
3980
3981         floorl: Provide function definition on MSVC.
3982         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3983         used as a function pointer.
3984         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3985
3986 2012-02-24  Bruno Haible  <bruno@clisp.org>
3987
3988         ceilf: Provide function definition on MSVC.
3989         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3990         used as a function pointer.
3991         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3992
3993 2012-02-24  Bruno Haible  <bruno@clisp.org>
3994
3995         floorf: Provide function definition on MSVC.
3996         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3997         used as a function pointer.
3998         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3999
4000 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4001
4002         stdnoreturn: new module
4003         This implements a replacement for C11's <stdnoreturn.h>.
4004         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
4005         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
4006         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4007         * tests/test-stdnoreturn.c: New files.
4008
4009 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4010
4011         regex: fix false multibyte matches in some regular expressions
4012         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4013         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4014         * lib/regex_internal.c (re_string_skip_chars):
4015         Fix miscomputation of remain_len that may cause incomplete
4016         multi-byte character and false match.
4017
4018 2012-02-24  Jim Meyering  <meyering@redhat.com>
4019
4020         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4021         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4022         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4023         Remove now-unnecessary str''cmp obfuscation.
4024         Suggested by Akim Demaille.
4025
4026 2012-02-24  Bruno Haible  <bruno@clisp.org>
4027
4028         streq: Rename macro.
4029         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4030         * NEWS: Mention the change.
4031         * lib/mbrtowc.c (mbrtowc): Update.
4032         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4033         * lib/wcwidth.c (wcwidth): Update.
4034         Suggested by Akim Demaille and Jim Meyering.
4035
4036 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4037
4038         regex: fix typo in definition of MIN
4039         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4040         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4041
4042 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4043             Bruno Haible  <bruno@clisp.org>
4044
4045         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4046         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4047         entries into a stack-allocated buffer directly.
4048         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4049
4050 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4051             Bruno Haible  <bruno@clisp.org>
4052
4053         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4054
4055          - There were several instances of this pattern:
4056
4057              for (;;) {
4058                n = acl (f, GETACLCNT, 0, NULL);
4059                [ allocate an array A of size N ]
4060                if (acl (f, GETACL, n, a) == n)
4061                  break;
4062              }
4063
4064            This loop might never terminate if some other process is constantly
4065            manipulating the file's ACL.  The loop should be rewritten to
4066            terminate.
4067
4068          - The acl (... GETACLNT ...) call is merely an optimization; its value
4069            is merely a hint as to how big to make the array.  A better
4070            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4071            and just guess a reasonably-big size, growing the size and trying
4072            again if it's not large enough.  This guarantees termination, and
4073            saves a system call.
4074
4075         * lib/acl-internal.h: Include <limits.h>.
4076         (MIN, SIZE_MAX): New macros.
4077         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4078         a stack-allocated buffer, and use malloc if it does not fit. Don't
4079         use GETACLCNT.
4080         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4081
4082 2012-02-19  Bruno Haible  <bruno@clisp.org>
4083
4084         acl: Fix endless loop on Solaris with vxfs.
4085         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4086         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4087         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4088         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4089         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4090         Reported by Bill Jones in
4091         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4092
4093 2012-02-19  Bruno Haible  <bruno@clisp.org>
4094
4095         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4096         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4097         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4098         that this function returns 0 in some more cases.
4099
4100 2012-02-19  Bruno Haible  <bruno@clisp.org>
4101
4102         acl: Update doc references.
4103         * doc/acl-resources.txt: Update links to Solaris documentation.
4104
4105 2012-02-19  Bruno Haible  <bruno@clisp.org>
4106
4107         Fix test failure in many locales on Solaris 11.
4108         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4109         'tr' arguments.
4110         * tests/test-pipe-filter-ii1.c (main): Likewise.
4111         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4112         expressions in the C locale.
4113         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4114         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4115
4116 2012-02-19  Bruno Haible  <bruno@clisp.org>
4117
4118         gnulib-tool: Improve usage message.
4119         * gnulib-tool (func_usage): Move doc of --help and --version to the
4120         section "Operation modes".
4121
4122 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4123
4124         README-release: make it easier to execute commands
4125         * top/README-release: break commands out on to separate lines.
4126
4127 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4128
4129         GNUmakefile: simplify detection of unconfigured trees
4130         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4131         whether the tree make is being run from is already configured or
4132         not.  Related simplifications.
4133
4134 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4135
4136         * gnulib-tool (func_usage): Document --help and --version.
4137
4138 2012-02-11  Jim Meyering  <meyering@redhat.com>
4139
4140         bootstrap: don't exit 0 upon gnulib-tool failure
4141         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4142         its exit status, not 0.
4143
4144 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
4145
4146         README-release: various improvements
4147         * top/README-release: Give a command to push changes for the
4148         release.  Add "distcheck" to list of other pre-release checks.
4149         Fix instance of "make stable" which should be "make TYPE".
4150
4151 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4152
4153         maint: replace FSF snail-mail addresses with URLs
4154         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
4155         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
4156         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
4157         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
4158         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
4159         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
4160         * lib/check-version.c, lib/check-version.h, lib/config.charset:
4161         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
4162         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
4163         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
4164         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
4165         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
4166         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
4167         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
4168         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
4169         * lib/glthread/thread.c, lib/glthread/thread.h:
4170         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
4171         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
4172         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
4173         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
4174         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
4175         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
4176         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
4177         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
4178         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
4179         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4180         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4181         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4182         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4183         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4184         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4185         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4186         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4187         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4188         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4189         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4190         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4191         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4192         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4193         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4194         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4195         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4196         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4197         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4198         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4199         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4200         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4201         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4202         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4203         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4204         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4205         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4206         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4207         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4208         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4209         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4210         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4211         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4212         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4213         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4214         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4215         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4216         * tests/test-poll.c, tests/test-quotearg-simple.c:
4217         * tests/test-quotearg.c, tests/test-quotearg.h:
4218         * tests/test-round-ieee.c, tests/test-round1.c:
4219         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4220         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4221         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4222         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4223         * tests/test-strerror.c, tests/test-strerror_r.c:
4224         * tests/test-strsignal.c, tests/test-strverscmp.c:
4225         * tests/test-xmemdup0.c:
4226         Replace FSF snail mail addresses with URLs, as per GNU coding
4227         standards.  See glibc bug
4228         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4229
4230 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4231
4232         README-release: capitalize a word and split a line
4233         * top/README-release: Fix punctuation and spacing.
4234
4235 2012-02-08  Akim Demaille  <demaille@gostai.com>
4236
4237         fatal-signal: use C prototypes (with explicit void).
4238         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4239         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
4240
4241 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4242
4243         regex: spelling fix
4244         * lib/regexec.c: spelling fix
4245
4246         regex: rely on stdint.h for SIZE_MAX
4247         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
4248
4249 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4250
4251         regex: merge glibc changes
4252
4253         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4254         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4255         (init_word_char): Work even if bitset words are not exactly 32 or
4256         64 bits wide.  Don't assume there are no padding bits.
4257         * lib/regex.c [_LIBC]: Do not include <config.h>.
4258         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4259         and -Wtype-limits.
4260         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4261         needless disagreement with glibc.  All uses changed.  Define it to
4262         1 only if _GNU_SOURCE, to match glibc.
4263         (_REG_RM_NAME): Remove; no longer needed, since the names in
4264         question are now all protected by __USE_GNU.
4265         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4266         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4267         * lib/regex_internal.h (MIN): New macro.
4268
4269         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4270         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4271
4272         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4273         * lib/regex_internal.c (re_string_fetch_byte_case):
4274         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4275         is miscompiled, and it turns out it is because of an incorrect
4276         attribute on re_string_fetch_byte_case.  Unlike
4277         re_string_peek_byte_case, this one is really not pure, it modifies
4278         memory (increments pstr->cur_idx), and with the pure attribute GCC
4279         assumed it doesn't and it cached the presumed value of
4280         regexp->cur_idx in a variable across the
4281          for (;; ++i)
4282            {
4283              if (i >= BRACKET_NAME_BUF_SIZE)
4284                return REG_EBRACK;
4285              if (token->type == OP_OPEN_CHAR_CLASS)
4286                ch = re_string_fetch_byte_case (regexp);
4287              else
4288                ch = re_string_fetch_byte (regexp);
4289              if (re_string_eoi(regexp))
4290                return REG_EBRACK;
4291              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4292                break;
4293              elem->opr.name[i] = ch;
4294            }
4295
4296         2011-11-29 Andreas Schwab <schwab@redhat.com>
4297         * lib/regcomp.c (build_equiv_class):
4298         Fix access after end of search string in regex matcher.
4299
4300         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4301         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4302
4303         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4304         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4305
4306         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4307         * lib/regcomp.c (parse_branch, parse_sub_exp):
4308         More regex memory leak fixes and tests.
4309         (parse_sub_exp, parse_bracket_exp):
4310         Fix memory leak for some invalid regular expressions.
4311
4312         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4313         * lib/regex_internal.c, lib/regexec.c:
4314         Fix unnecessary overallocation due to incomplete character.  When
4315         incomplete characters are found at the end of a string the code
4316         ran amok and allocated lots of memory.  Stricter limits are now in
4317         place.
4318
4319         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4320         * lib/regex.h: Update documentation.
4321
4322         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4323         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4324
4325         2010-05-05 Andreas Schwab <schwab@redhat.com>
4326         * lib/regexec.c (find_collation_sequence_value):
4327         Fix lookup of collation sequence value during regexp matching.
4328
4329         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4330         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4331
4332         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4333         * lib/regex.h: Cleanup namespace.
4334
4335         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4336         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4337
4338         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4339         * lib/regex_internal.h: Prevent some declarations and definitions
4340         to be seen when used in tests.
4341
4342         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4343         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4344         __libc_lock_* macros if not _LIBC.
4345         (struct re_dfa_t): Add lock.
4346
4347 2012-02-07  Eric Blake  <eblake@redhat.com>
4348
4349         maint.mk: also prohibit lower-case @var@
4350         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4351         lower case, like @top_srcdir@.
4352
4353 2012-02-04  Eric Blake  <eblake@redhat.com>
4354
4355         canonicalize: avoid uninitialized memory use
4356         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4357         random '/' left in dest.
4358         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4359
4360 2012-02-04  Bruno Haible  <bruno@clisp.org>
4361
4362         isatty: Fix test failure of ptsname_r on native Windows.
4363         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4364         and don't set errno.
4365         (isatty): Test first whether fd is valid. Set errno when returning 0.
4366
4367 2012-02-04  Bruno Haible  <bruno@clisp.org>
4368
4369         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4370         * tests/test-spawn-pipe-main.c: Include progname.h.
4371         (main): Invoke set_program_name.
4372         * modules/spawn-pipe-tests (Depends-on): Add progname.
4373
4374         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4375         * tests/test-nonblocking-socket-main.c: Include progname.h.
4376         (main): Invoke set_program_name.
4377         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4378
4379         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4380         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4381         (main): Invoke set_program_name.
4382         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4383
4384 2012-02-04  Eric Blake  <eblake@redhat.com>
4385
4386         canonicalize-lgpl: fix // handling
4387         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4388
4389         canonicalize: fix // handling
4390         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4391         /// to //, since only // is special.
4392
4393 2012-02-04  Bruno Haible  <bruno@clisp.org>
4394
4395         ioctl: Fix test failure on native Windows.
4396         * lib/ioctl.c: Include msvc-nothrow.h.
4397         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4398
4399 2012-02-04  Bruno Haible  <bruno@clisp.org>
4400
4401         fsync: Avoid test failure on native Windows.
4402         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4403         read-only.
4404
4405 2012-02-04  Bruno Haible  <bruno@clisp.org>
4406
4407         sys_select: Avoid syntax error on OpenBSD 5.0.
4408         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4409         currently being included, just include the system's <sys/select.h>.
4410
4411 2012-02-04  Bruno Haible  <bruno@clisp.org>
4412
4413         sys_select: Avoid syntax error on OpenBSD 5.0.
4414         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4415         <sys/select.h>, not before.
4416         Reported by Jiri B <jirib@devio.us>.
4417
4418 2012-02-04  Bruno Haible  <bruno@clisp.org>
4419
4420         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4421         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4422         global variables.
4423         * tests/test-get-rusage-data.c (main): Likewise.
4424         Reported by Jim Meyering.
4425
4426 2012-02-04  Bruno Haible  <bruno@clisp.org>
4427
4428         stdioext: Fix last commit.
4429         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4430
4431 2012-02-03  Bruno Haible  <bruno@clisp.org>
4432
4433         stdioext: Add tentative support for Plan9.
4434         * lib/stdio-impl.h: Include <errno.h>.
4435         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4436         * lib/freadable.c (freadable): Likewise.
4437         * lib/fwritable.c (fwritable): Likewise.
4438         * lib/fbufmode.c (fbufmode): Likewise.
4439         * lib/freading.c (freading): Likewise.
4440         * lib/fwriting.c (fwriting): Likewise.
4441         * lib/freadptr.c (freadptr): Likewise.
4442         * lib/freadseek.c (freadptrinc): Likewise.
4443         * lib/freadahead.c (freadahead): Likewise.
4444         * lib/fpurge.c (fpurge): Likewise.
4445         * lib/fseeko.c (rpl_fseeko): Likewise.
4446         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4447         Reported by Jens Staal <staal1978@gmail.com>.
4448
4449 2012-02-02  Jim Meyering  <meyering@redhat.com>
4450
4451         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4452         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4453         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4454         not even to try to add the attribute.  Instead, add a pragma to suppress
4455         the suggestion/warning.
4456
4457 2012-01-31  Karl Berry  <karl@gnu.org>
4458
4459         setstate doc: typo.
4460         * doc/posix-functions/setstate.texi (setstate): { not (.
4461
4462 2012-01-31  Bruno Haible  <bruno@clisp.org>
4463
4464         popen: Make more robust on Windows.
4465         * lib/popen.c: On native Windows, use the _popen based code even if
4466         HAVE_POPEN is set.
4467         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4468         environment variable on native Windows.
4469
4470 2012-01-30  Bruno Haible  <bruno@clisp.org>
4471
4472         pclose: Fix typo.
4473         * lib/stdio.in.h (pclose): Fix typo in warning message.
4474
4475 2012-01-30  Bruno Haible  <bruno@clisp.org>
4476
4477         doc about getlogin_r, setstate.
4478         * doc/posix-functions/getlogin_r.texi: List the incompatible
4479         declaration problem under "not fixed by gnulib".
4480         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4481         problem on Solaris 11 and other platforms.
4482
4483 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4484             Bruno Haible  <bruno@clisp.org>
4485
4486         poll tests: Make test more robust.
4487         * tests/test-poll.c: Include macros.h.
4488         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4489         return value of various I/O operations.
4490         * modules/poll-tests (Files): Add tests/macros.h.
4491
4492 2012-01-30  Bruno Haible  <bruno@clisp.org>
4493
4494         sys_stat: Fix support for mingw64 and MSVC.
4495         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4496         header files already do it.
4497         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4498         stat itself.
4499         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4500
4501 2012-01-30  Bruno Haible  <bruno@clisp.org>
4502
4503         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4504         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4505         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4506
4507 2012-01-29  Bruno Haible  <bruno@clisp.org>
4508
4509         quotearg: Fix test failure on MacOS X 10.5.
4510         * tests/test-quotearg-simple.c: Include localcharset.h.
4511         (main): If the locale encoding is not ASCII, bypass the tests of
4512         locale_quoting_style and clocale_quoting_style.
4513         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4514
4515 2012-01-29  Jim Meyering  <meyering@redhat.com>
4516
4517         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4518         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4519         detect uses of canonicalize_file_name.
4520
4521 2012-01-28  Bruno Haible  <bruno@clisp.org>
4522
4523         test-framework-sh: Fix test failure with AIX 7.1 diff.
4524         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4525         in column 1, like 'diff -c' does.
4526         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4527         whether 'diff -u' is used. Instead, test whether the output contains
4528         some '@' character.
4529
4530 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4531
4532         strtoimax: eliminate need for stdint.h, inttypes.h checks
4533         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4534         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4535         the prerequisites for a recently-introduced strtoimax test.
4536         I guess this might cause strtoimax to be replaced when not
4537         strictly necessary on older hosts, but this shouldn't introduce
4538         any bugs and it should make Emacs 'configure' faster on typical
4539         modern hosts.  Problem discovered when importing the latest gnulib
4540         to an Emacs test version.
4541         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4542
4543 2012-01-28  Bruno Haible  <bruno@clisp.org>
4544
4545         sys_time: Override 'struct timeval' on some native Windows platforms.
4546         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4547         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4548         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4549         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4550         needs to be overridden.
4551         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4552         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4553         * tests/test-sys_select.c: Check that the tv_sec member has the same
4554         size as a 'time_t'.
4555         * tests/test-sys_time.c: Likewise.
4556         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4557         is set, set also REPLACE_GETTIMEOFDAY.
4558         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4559         convert the resulting 'struct timeval' before returning.
4560         * lib/select.c: Include <sys/time.h>.
4561         (select, timeval): Undefine at the right place.
4562         * modules/select (Depends-on): Add sys_time.
4563         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4564         some Windows platforms.
4565         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4566
4567 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4568
4569         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4570         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4571         an integer.
4572         * lib/fcntl.c (dupfd): Likewise.
4573         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4574
4575 2012-01-28  Bruno Haible  <bruno@clisp.org>
4576
4577         fcntl: Avoid compilation error on native Windows.
4578         * modules/fcntl (Depends-on): Add 'close'.
4579
4580 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4581
4582         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4583         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4584         pointer to an integer.
4585         * lib/poll.c (IsConsoleHandle): Likewise.
4586         * lib/isatty.c (IsConsoleHandle): Likewise.
4587
4588 2012-01-28  Jim Meyering  <meyering@redhat.com>
4589
4590         doc: clarify README-release
4591         * top/README-release: Clarify: you should make a point to have
4592         the latest stable versions of build tools in your PATH, and the
4593         reference to buildreq is solely for its list of tool names, not
4594         for its minimal-functional version numbers.
4595         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4596
4597         maint.mk: use more readable (yet functionally equivalent) quoting
4598         It is common to quote a single quote in a single quoted string like
4599         this:  '...'\''...'.  Unless you know the idiom, that looks like
4600         gibberish, so prefer to double-quote the string when possible.
4601         Then you can use a more readable, lone single quote: "...'..."
4602         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4603         "don't" is more readable than the equivalent 'don'\''t'.
4604         (sc_cast_of_x_alloc_return_value): Likewise.
4605         (sc_cast_of_alloca_return_value): Likewise.
4606         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4607         rather than '\'':'\''.
4608
4609 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4610
4611         stdalign: relax _Alignof and tighten _Alignas test
4612         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4613         as it was too strict: alignof must divide offsetof, but it need
4614         not equal offsetof.  Inspired by Joseph S. Myers's comment
4615         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4616         Conversely, tighten the _Alignas test a bit, as the resulting
4617         alignment must be exactly 8.
4618
4619 2012-01-27  Bruno Haible  <bruno@clisp.org>
4620
4621         stdalign: Document the last change.
4622         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4623
4624 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4625
4626         stdalign: check that alignof and offsetof are consistent
4627         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4628         Problem reported for gnulib by Richard W.M. Jones in
4629         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4630
4631 2012-01-27  Jim Meyering  <meyering@redhat.com>
4632
4633         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4634         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4635         convert a sequence with gaps to the minimal containing range.
4636         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4637         * tests/test-update-copyright.sh: Test for this.
4638         The FSF confirmed it is ok to do this, assuming there is at
4639         least one significant change per year in the affected range:
4640         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4641
4642 2012-01-26  Bruno Haible  <bruno@clisp.org>
4643
4644         pipe2: refine doc about thread-safety
4645         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4646         multithread-safety problem.
4647         * doc/glibc-functions/accept4.texi: Likewise.
4648
4649 2012-01-26  Bruno Haible  <bruno@clisp.org>
4650
4651         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4652         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4653         In the test program, include <fcntl.h>, for O_RDONLY.
4654
4655 2012-01-26  Eric Blake  <eblake@redhat.com>
4656
4657         pipe2: document lack of thread-safety in replacement
4658         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4659         issue in replacement.
4660         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4661         Based on a report by Eric Wong.
4662
4663 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4664             Bruno Haible  <bruno@clisp.org>
4665
4666         malloca: Avoid warnings on x86_64 mingw64.
4667         * lib/malloca.c: Include <stdint.h>.
4668         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4669         * modules/malloca (Depends-on): Add stdint.
4670         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4671
4672 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4673
4674         obstack: remove __STDC__ conditionals
4675         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4676         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4677         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4678         m4/include_next.m4 as the only gnulib-maintained places that still
4679         refer to __STDC__.
4680
4681 2012-01-24  Bruno Haible  <bruno@clisp.org>
4682
4683         havelib: Modern quoting.
4684         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4685         the recent change to the GNU coding standards.
4686
4687 2012-01-24  Bruno Haible  <bruno@clisp.org>
4688
4689         stdint: Improve support for Android.
4690         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4691         Reported by Simon Josefsson <simon@josefsson.org>.
4692
4693 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4694
4695         doc: omit trailing empty lines from INSTALL etc.
4696         * doc/Makefile (INSTALL): Omit trailing empty lines.
4697         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4698         omit trailing empty lines.  This simplifies the build procedure.
4699
4700 2012-01-23  Jim Meyering  <meyering@redhat.com>
4701
4702         tests: avoid spurious warnings about gl_sockets_startup
4703         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4704         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4705         reporting a "statement with no effect".
4706         * tests/test-accept.c (main): Mark as "(void)".
4707         * tests/test-accept4.c (main): Likewise.
4708         * tests/test-bind.c (main): Likewise.
4709         * tests/test-connect.c (main): Likewise.
4710         * tests/test-getpeername.c (main): Likewise.
4711         * tests/test-getsockname.c (main): Likewise.
4712         * tests/test-getsockopt.c (main): Likewise.
4713         * tests/test-listen.c (main): Likewise.
4714         * tests/test-recv.c (main): Likewise.
4715         * tests/test-recvfrom.c (main): Likewise.
4716         * tests/test-send.c (main): Likewise.
4717         * tests/test-sendto.c (main): Likewise.
4718         * tests/test-setsockopt.c (main): Likewise.
4719         * tests/test-shutdown.c (main): Likewise.
4720
4721 2012-01-21  Bruno Haible  <bruno@clisp.org>
4722
4723         locale-fr.m4: Fix for Android.
4724         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4725         failure of the test program on Bionic libc.
4726
4727 2012-01-21  Jim Meyering  <meyering@redhat.com>
4728
4729         bootstrap: fail when bootstrap_post_import_hook fails
4730         Otherwise, it's far too easy to miss diagnostics emitted
4731         between gnulib-tool's output and that of running configure.
4732         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4733
4734 2012-01-17  Jim Meyering  <meyering@redhat.com>
4735
4736         maint: enable sc_trailing_blank
4737         * build-aux/pmccabe.css: Remove trailing blanks.
4738         * doc/acl-cygwin.txt: Likewise.
4739         * doc/gnu-oids.texi: Likewise
4740         * cfg.mk: Enable sc_trailing_blank.
4741         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4742
4743 2012-01-17  Jim Meyering  <meyering@redhat.com>
4744
4745         maint: enable sc_prohibit_openat_without_use
4746         * cfg.mk: Enable sc_prohibit_openat_without_use.
4747         Exempt lib/selinux-at.c.
4748
4749 2012-01-17  Jim Meyering  <meyering@redhat.com>
4750
4751         maint: enable sc_prohibit_cloexec_without_use
4752         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4753         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4754
4755 2012-01-17  Jim Meyering  <meyering@redhat.com>
4756
4757         maint: enable sc_prohibit_intprops_without_use
4758         * cfg.mk: Enable sc_prohibit_intprops_without_use
4759         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4760
4761 2012-01-17  Jim Meyering  <meyering@redhat.com>
4762
4763         maint: enable sc_prohibit_hash_pjw_without_use
4764         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4765         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4766         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4767         following " (".
4768
4769 2012-01-17  Jim Meyering  <meyering@redhat.com>
4770
4771         maint: enable double-word-prohibiting rule
4772         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4773         Exempt three files.
4774
4775 2012-01-17  Jim Meyering  <meyering@redhat.com>
4776
4777         maint: remove empty lines at EOF, but excluding modules/*
4778         Apply syntax rules at home as well as abroad.  Most changes
4779         were induced by running this:
4780           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4781             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4782             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4783         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4784         Exempt modules/* and two binary files.
4785         Also exempt doc/INSTALL*, per request from Bruno Haible.
4786         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4787         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4788         * doc/Copyright/request-assign.future: Likewise.
4789         * doc/Copyright/request-disclaim.changes: Likewise.
4790         * doc/INSTALL: Likewise.
4791         * doc/INSTALL.ISO: Likewise.
4792         * doc/INSTALL.UTF-8: Likewise.
4793         * doc/acl-cygwin.txt: Likewise.
4794         * doc/acl-resources.txt: Likewise.
4795         * doc/fdl-1.2.texi: Likewise.
4796         * doc/fdl-1.3.texi: Likewise.
4797         * doc/fdl.texi: Likewise.
4798         * lib/argp-pin.c: Likewise.
4799         * lib/round.c: Likewise.
4800         * lib/unicase/u16-totitle.c: Likewise.
4801         * lib/unictype/block_test.c: Likewise.
4802         * lib/uninorm/canonical-decomposition.c: Likewise.
4803         * m4/README: Likewise.
4804         * m4/relocatable-lib.m4: Likewise.
4805         * tests/test-isnand-nolibm.c: Likewise.
4806         * tests/test-isnand.c: Likewise.
4807         * tests/uninorm/NormalizationTest.txt: Likewise.
4808
4809 2012-01-17  Jim Meyering  <meyering@redhat.com>
4810
4811         maint: add framework to run syntax-check rules against gnulib sources
4812         * cfg.mk: New file, to disable all currently-failing tests.
4813         We'll enable them one by one, as they are made to pass.
4814         * Makefile (sc_maint): New rule.
4815
4816 2012-01-21  Bruno Haible  <bruno@clisp.org>
4817
4818         stdint: Add support for Android.
4819         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4820         include the system's <stdint.h>.
4821         Reported by Simon Josefsson <simon@josefsson.org>.
4822
4823 2012-01-19  Jim Meyering  <meyering@redhat.com>
4824
4825         bootstrap: add bootstrap_post_import_hook
4826         Bison does still need something like the gnulib_mk_hook whose
4827         invocation I had to remove along with slurp in commit 767ccd40.
4828         Technically, we could get along without it, but doing so would
4829         have required living with a warning and a mandatory post-bootstrap
4830         automake rerun.
4831         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4832         (bootstrap_post_import_hook): New function.
4833         Invoke it after gnulib-tool --import and before autoreconf.
4834
4835 2012-01-18  Jim Meyering  <meyering@redhat.com>
4836
4837         gitlog-to-changelog: don't use "no_"-prefixed variable name
4838         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4839         to enable both --cluster and --no-cluster.  Change variable name,
4840         s/\$no_cluster/$cluster/, and reverse usage to match.
4841
4842         gitlog-to-changelog: use "||", not "or" in expressions
4843         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4844         expressions.
4845
4846 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4847
4848         gitlog-to-changelog: new option --no-cluster
4849         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4850         clustering of adjacent commit messages.
4851
4852 2012-01-17  Jim Meyering  <meyering@redhat.com>
4853
4854         maint: spell file systems with two words, not one
4855         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4856         two words, not one.
4857
4858 2012-01-16  Jim Meyering  <meyering@redhat.com>
4859
4860         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4861         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4862
4863 2012-01-16  Eric Blake  <eblake@redhat.com>
4864
4865         bootstrap: cater to autoconf 2.59
4866         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4867         is not available.
4868
4869         bootstrap: properly check for libtool
4870         * build-aux/bootstrap (libtoolize): Also run libtool when older
4871         usage is detected.
4872
4873 2012-01-15  Bruno Haible  <bruno@clisp.org>
4874
4875         Improve support for MSVC 9.
4876         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4877         clashes on MSVC.
4878         * lib/fcntl.in.h: Likewise.
4879         * lib/stdlib.in.h: Likewise.
4880         * lib/sys_stat.in.h: Likewise.
4881
4882 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4883
4884         gnupload: we hold the master copy of this script now
4885         For motivation and more information, see:
4886         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4887         * build-aux/gnupload: Make it clear in the heading comments that the
4888         master copy of this file is maintained by gnulib.  Since we are at
4889         it, bump its copyright year and ...
4890         ($scriptversion): ... the date in its version.
4891         ($usage): Patches and bug reports should be sent to the gnulib list,
4892         not the automake one.
4893         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4894         anymore.
4895
4896 2012-01-15  Bruno Haible  <bruno@clisp.org>
4897
4898         Fix module 'random'.
4899         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4900         initstate, setstate are declared.
4901
4902 2012-01-14  Bruno Haible  <bruno@clisp.org>
4903
4904         Tests for module 'random'.
4905         * modules/random-tests: New file.
4906         * tests/test-random.c: New file, based on tests/test-random_r.c.
4907
4908         New module 'random'.
4909         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4910         declarations.
4911         * lib/random.c: New file, based on glibc/stdlib/random.c.
4912         * m4/random.m4: New file.
4913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4914         HAVE_RANDOM.
4915         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4916         * modules/random: New file.
4917         * config/srclist.txt: Add an entry for random.c.
4918         * doc/posix-functions/random.texi: Mention the 'random' module.
4919         * doc/posix-functions/initstate.texi: Likewise.
4920         * doc/posix-functions/setstate.texi: Likewise.
4921         * doc/posix-functions/srandom.texi: Likewise.
4922
4923 2012-01-12  Bruno Haible  <bruno@clisp.org>
4924
4925         random_r: Use common idioms.
4926         * lib/random_r.c: Include <stdlib.h> first.
4927
4928         random_r: Override incompatible API on AIX, OSF/1.
4929         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4930         Override the system function if REPLACE_RANDOM_R is 1.
4931         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4932         and OSF/1, set REPLACE_RANDOM_R.
4933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4934         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4935         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4936         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4937         * doc/glibc-functions/random_r.texi: Likewise.
4938         * doc/glibc-functions/setstate_r.texi: Likewise.
4939
4940         random_r: Support for MSVC 9.
4941         * lib/random_r.c: Include stdint.h, not inttypes.h.
4942
4943 2012-01-12  Eric Blake  <eblake@redhat.com>
4944
4945         inet_ntop: guard extra work by IF_LINT
4946         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4947         better code generation when not checking for warnings.
4948         Suggested by Paul Eggert and Jim Meyering.
4949
4950         strptime: fix regression on mingw
4951         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4952         Fix regression.  Reported by Bruno Haible.
4953
4954 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4955             Bruno Haible  <bruno@clisp.org>
4956
4957         copy-file: add error-code-returning variant.
4958         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4959         (qcopy_file_preserving): New declaration.
4960         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4961         copy_file_preserving. Change return type to 'int'. Don't emit an error
4962         message here.
4963         (copy_file_preserving): New function.
4964         * tests/test-copy-file.c: Include <stdlib.h>.
4965         (main): Test qcopy_file_preserving if the environment variable
4966         NO_STDERR_OUTPUT is set.
4967         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4968         with NO_STDERR_OUTPUT
4969         * tests/test-copy-file-2.sh: Likewise.
4970
4971 2012-01-10  Bruno Haible  <bruno@clisp.org>
4972
4973         copy-file: Use 'quote' module consistently.
4974         * lib/copy-file.c (copy_file_preserving): Use quote().
4975
4976         copy-file: Refactor.
4977         * lib/copy-file.c: Include quote.h.
4978         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4979         message here.
4980         * modules/copy-file (Depends-on): Add quote.
4981
4982         acl: Export qcopy_acl.
4983         * lib/acl.h (qcopy_acl): New declaration.
4984         * lib/copy-acl.c (qcopy_acl): Make non-static.
4985
4986         acl: Rename a local variable.
4987         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4988
4989         acl: Align return values of copy_acl and qcopy_acl.
4990         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4991         maybe < -1.
4992
4993 2012-01-11  Eric Blake  <eblake@redhat.com>
4994
4995         strptime: silence gcc warnings
4996         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4997         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4998         Reported by Daniel P. Berrange.
4999
5000         inet_ntop: silence gcc warning
5001         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
5002         Reported by Daniel P. Berrange.
5003
5004 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
5005
5006         getloadavg test: skip the test on GNU/Linux without /proc mounted
5007         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5008         file.  When /proc is not mounted, it always fails with ENOENT.
5009         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5010         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5011
5012 2012-01-10  Bruno Haible  <bruno@clisp.org>
5013
5014         regex: Avoid link error on MSVC 9.
5015         * modules/regex (Depends-on): Add wctype.
5016
5017 2012-01-10  Bruno Haible  <bruno@clisp.org>
5018
5019         doc: Mention --with-tests option.
5020         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5021         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5022         --with-tests.
5023         Reported by Reuben Thomas.
5024
5025 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5026
5027         users.txt: order package names lexicographically.
5028         * users.txt: Order package names lexicographically.
5029
5030 2012-01-10  Jim Meyering  <meyering@redhat.com>
5031
5032         maint.mk: fix description in comment
5033         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5034
5035         ignore-value: remove deprecated ignore_ptr function
5036         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5037         * NEWS: Note this.
5038
5039 2012-01-09  Jim Meyering  <meyering@redhat.com>
5040
5041         test-init.sh: avoid a subshell
5042         * tests/test-init.sh: Remove protective subshell.
5043         Suggested by Bernhard Voelker.  While a subshell is normally
5044         required to protect against older shells (Solaris, FreeBSD) that
5045         warn about a missing program before performing redirection, the
5046         shell-selection tests performed by init.sh probably exclude any
5047         offending shell.
5048
5049 2012-01-08  Bruno Haible  <bruno@clisp.org>
5050
5051         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5052         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5053         variable.
5054
5055 2012-01-08  Bruno Haible  <bruno@clisp.org>
5056
5057         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5058         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5059         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5060         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5061         macro.
5062         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5063         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5064         * lib/spawn_faction_addopen.c: Add workaround implementation if
5065         HAVE_WORKING_POSIX_SPAWN.
5066         * modules/spawn (Makefile): Substitute
5067         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5068         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5069         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5070         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5071         (Depends-on): Update conditions.
5072         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5073         the Solaris 11 bug.
5074
5075 2012-01-08  Bruno Haible  <bruno@clisp.org>
5076
5077         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5078         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5079         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5080         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5081         macro.
5082         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5083         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5084         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5085         HAVE_WORKING_POSIX_SPAWN.
5086         * modules/spawn (Makefile): Substitute
5087         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5088         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5089         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5090         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5091         (Depends-on): Update conditions.
5092         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5093         the Solaris 11 bug.
5094
5095 2012-01-08  Bruno Haible  <bruno@clisp.org>
5096
5097         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5098         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5099         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5100         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5101         HAVE_WORKING_POSIX_SPAWN.
5102         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5103         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5104         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5105         * lib/spawn_faction_addclose.c: Add workaround implementation if
5106         HAVE_WORKING_POSIX_SPAWN.
5107         * modules/spawn (Makefile): Substitute
5108         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5109         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5110         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5111         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5112         (Depends-on): Update conditions.
5113         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5114         the Solaris 11 bug.
5115
5116 2012-01-08  Bruno Haible  <bruno@clisp.org>
5117
5118         doc: Update for Solaris 11 2011-11.
5119         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5120         * m4/printf.m4: Update comments.
5121
5122 2012-01-08  Bruno Haible  <bruno@clisp.org>
5123
5124         mktime: Avoid compilation error on Solaris 11.
5125         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5126
5127 2012-01-08  Bruno Haible  <bruno@clisp.org>
5128
5129         doc: Small fix.
5130         * doc/posix-headers/nl_types.texi: Correct platforms list.
5131
5132 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5133
5134         Add lgpl-3.0 module.
5135         * MODULES.html.sh (Support for building documentation): Add
5136         lgpl-3.0.
5137         * modules/lgpl-3.0: New file.
5138
5139 2012-01-08  Jim Meyering  <meyering@redhat.com>
5140
5141         select.c: indent with spaces, not TABs
5142         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5143
5144 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5145
5146         quotearg: do not use grave accent for left quote
5147         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5148         locale_quoting_style.
5149         (quotearg_buffer_restyled): Fix example.
5150         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
5151
5152 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5153
5154         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
5155         Most programs do not have translation catalogs for English and much
5156         less separate catalogs for British and American English.  Drop the
5157         suggestion to translators about these two, and provide it
5158         automatically for Unicode locales.  Like most programs, even those
5159         using American English, we use single quotation marks.  This conflicts
5160         with the American typographic convention, but works better when you
5161         cite the entire error message within double quotes.  It also tries not
5162         to clash with established practice and with what non-gnulib programs
5163         will usually do.
5164         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
5165         using an UTF-8 or GB-18030 locale.  The list of other locales with
5166         quotes was provided by Bruno Haible.
5167         (quotearg_buffer_restyled): Adjust instructions to translators.
5168         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
5169         text, since this would be wrong when using Unicode.
5170         * modules/quotearg: Depend on c-strcaseeq.
5171
5172 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5173
5174         quotearg: fix Wikipedia link
5175         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
5176
5177 2012-01-07  Simon Josefsson  <simon@josefsson.org>
5178
5179         Fix for mingw with MSVC9.
5180         * m4/ld-version-script.m4: Check that compiler rejects version
5181         scripts with syntax errors.  Reported by Bruno Haible
5182         <bruno@clisp.org>.
5183
5184 2012-01-06  Bruno Haible  <bruno@clisp.org>
5185
5186         Talk about "native Windows API", not "Woe32".
5187         * lib/accept4.c: Update comments to mention native Windows.
5188         * lib/execute.c: Likewise.
5189         * lib/fatal-signal.c: Likewise.
5190         * lib/localcharset.c: Likewise.
5191         * lib/nanosleep.c: Likewise.
5192         * lib/nl_langinfo.c: Likewise.
5193         * lib/pclose.c: Likewise.
5194         * lib/pipe-filter-gi.c: Likewise.
5195         * lib/pipe-filter-ii.c: Likewise.
5196         * lib/pipe.c: Likewise.
5197         * lib/pipe2.c: Likewise.
5198         * lib/popen.c: Likewise.
5199         * lib/progreloc.c: Likewise.
5200         * lib/relocatable.c: Likewise.
5201         * lib/sigaction.c: Likewise.
5202         * lib/sigprocmask.c: Likewise.
5203         * lib/spawn-pipe.h: Likewise.
5204         * lib/spawn-pipe.c: Likewise.
5205         * lib/spawni.c: Likewise.
5206         * lib/stat-time.h: Likewise.
5207         * lib/w32spawn.h: Likewise.
5208         * tests/test-isatty.c: Likewise.
5209         * lib/config.charset: More comments.
5210         * doc/gnulib-intro.texi: Mention native Windows.
5211         * doc/posix-functions/_Exit_C99.texi: Likewise.
5212         * doc/posix-headers/fcntl.texi: Likewise.
5213
5214 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5215
5216         argp: Avoid crash if translator uses % characters in a translation.
5217         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5218         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5219
5220 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5221
5222         doc: C11 and C++11 are now official
5223         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5224         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5225         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5226         * modules/stdalign:
5227         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5228
5229 2012-01-06  Bruno Haible  <bruno@clisp.org>
5230
5231         uc-is-grapheme-break tests: Tweak.
5232         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5233         message.
5234
5235 2012-01-06  Bruno Haible  <bruno@clisp.org>
5236
5237         test-init.sh: correct the test for diff -u
5238         * tests/test-init.sh: Also redirect stdout to /dev/null.
5239
5240 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5241
5242         Use ', not `, for quoting output.
5243         * build-aux/announce-gen (usage, sizes, print_news_deltas)
5244         (print_changelog_deltas, get_tool_versions, main program):
5245         * build-aux/git-version-gen:
5246         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
5247         * build-aux/move-if-change (help):
5248         * build-aux/useless-if-before-free (usage, main program):
5249         * check-module (parse_module_file, usage)
5250         (find_included_lib_files, check_module):
5251         * lib/argmatch.c (main) [TEST]:
5252         * lib/argp-help.c (_help):
5253         * lib/getopt1.c (main) [TEST]:
5254         * lib/git-merge-changelog.c (usage):
5255         * lib/xstrtol-error.c (xstrtol_error):
5256         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5257         * m4/argz.m4 (gl_FUNC_ARGZ):
5258         * m4/bison.m4 (gl_BISON):
5259         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5260         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5261         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5262         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5263         * m4/gc-random.m4 (gl_GC_RANDOM):
5264         * m4/intl.m4 (gt_CHECK_DECL):
5265         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5266         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5267         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5268         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5269         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5270         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5271         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5272         * tests/test-dirname.c (main):
5273         * tests/test-getpass.c (main):
5274         * tests/test-iconvme.c (main):
5275         * tests/test-parse-datetime.c (LOG):
5276         * tests/test-xstrtoimax.sh:
5277         * tests/test-xstrtol.sh:
5278         * tests/test-xstrtoll.sh:
5279         * tests/test-xstrtoumax.sh:
5280         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5281         * top/GNUmakefile (abort-due-to-no-makefile):
5282         Quote 'like this', not `like this', as per the recent change to
5283         the GNU coding standards.
5284
5285 2012-01-05  Bruno Haible  <bruno@clisp.org>
5286
5287         strtoimax: Don't force a replacement on systems where intmax_t is int.
5288         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5289         'intmax_t' is not larger than 'int'.
5290         Reported by Pádraig Brady <P@draigBrady.com>.
5291
5292 2012-01-05  Bruno Haible  <bruno@clisp.org>
5293
5294         doc: Mention NetBSD bugs.
5295         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5296         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5297
5298 2012-01-05  Bruno Haible  <bruno@clisp.org>
5299
5300         strtoumax tests: Enhance tests.
5301         * tests/test-strtoumax.c (main): Add tests for large values.
5302
5303 2012-01-05  Bruno Haible  <bruno@clisp.org>
5304
5305         strtoimax: Work around AIX 5.1 bug.
5306         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5307         definition.
5308         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5309         Set HAVE_STRTOIMAX.
5310         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5311         REPLACE_STRTOIMAX.
5312         * modules/inttypes-incomplete (Makefile.am): Substitute
5313         REPLACE_STRTOIMAX.
5314         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5315         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5316         (Depends-on): Update conditions.
5317         * tests/test-strtoimax.c (main): Add tests for large values.
5318         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5319
5320 2012-01-05  Bruno Haible  <bruno@clisp.org>
5321
5322         inttypes: Modernize.
5323         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5324         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5325         (Makefile.am): Update inttypes.h rule.
5326
5327 2012-01-05  Jim Meyering  <meyering@redhat.com>
5328
5329         init.sh: don't waste a subshell just to redirect stderr
5330         * tests/init.sh: In testing for diff -u and diff -c, use a
5331         stderr-redirecting exec inside `...` rather than a subshell.
5332
5333         test-init.sh: avoid failure on HP-UX 11.00
5334         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5335         resolves to diff -c or cmp.  Reported by Bruno Haible.
5336
5337 2012-01-05  Bruno Haible  <bruno@clisp.org>
5338
5339         Tests for module 'strtoull'.
5340         * modules/strtoull-tests: New file.
5341         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5342
5343 2012-01-05  Bruno Haible  <bruno@clisp.org>
5344
5345         Tests for module 'strtoll'.
5346         * modules/strtoll-tests: New file.
5347         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5348
5349 2012-01-05  Bruno Haible  <bruno@clisp.org>
5350
5351         Tests for module 'strtoul'.
5352         * modules/strtoul-tests: New file.
5353         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5354
5355 2012-01-05  Bruno Haible  <bruno@clisp.org>
5356
5357         Tests for module 'strtol'.
5358         * modules/strtol-tests: New file.
5359         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5360
5361 2012-01-04  Jim Meyering  <meyering@redhat.com>
5362
5363         test-init.sh: accommodate Solaris 5.10's different diff -u output
5364         * tests/test-init.sh: Also exempt @@ lines from the comparison
5365         of diff output, since Solaris 5.10 and GNU diff formats differ.
5366         Reported by Stefano Lattarini.
5367
5368 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5369
5370         test-posixtm: don't assume signed integer wraparound
5371         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5372         after signed integer overflow.  Inspired by (though it may not
5373         fix) Bruno Haible's bug report in
5374         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5375
5376         Spell out "Windows 9x" and "Windows XP".
5377         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5378         "Windows 9x" and "WinXP" with "Windows XP".
5379
5380 2012-01-04  Jim Meyering  <meyering@redhat.com>
5381
5382         test-vc-list-files-cvs.sh: remove obsolete comment
5383         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5384         double exit.  Now that's all encapsulated via skip_ and Exit.
5385
5386 2012-01-04  Bruno Haible  <bruno@clisp.org>
5387
5388         Talk about "native Windows API", not "Win32".
5389         * lib/classpath.c: Update comments to mention native Windows.
5390         * lib/csharpexec.c: Likewise.
5391         * lib/dup2.c: Likewise.
5392         * lib/error.c: Likewise.
5393         * lib/fcntl.c: Likewise.
5394         * lib/filename.h: Likewise.
5395         * lib/findprog.c: Likewise.
5396         * lib/get-rusage-as.c: Likewise.
5397         * lib/get-rusage-data.c: Likewise.
5398         * lib/getpagesize.c: Likewise.
5399         * lib/javaexec.c: Likewise.
5400         * lib/msvc-inval.c: Likewise.
5401         * lib/msvc-nothrow.c: Likewise.
5402         * lib/nanosleep.c: Likewise.
5403         * lib/nonblocking.c: Likewise.
5404         * lib/printf-parse.c: Likewise.
5405         * lib/setlocale.c: Likewise.
5406         * lib/sigaction.c: Likewise.
5407         * lib/strerror_r.c: Likewise.
5408         * lib/tmpdir.c: Likewise.
5409         * lib/vasnprintf.c: Likewise.
5410         * lib/w32spawn.h: Likewise.
5411         * lib/waitpid.c: Likewise.
5412         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5413         * m4/locale-ar.m4: Likewise.
5414         * m4/locale-fr.m4: Likewise.
5415         * m4/locale-ja.m4: Likewise.
5416         * m4/locale-tr.m4: Likewise.
5417         * m4/locale-zh.m4: Likewise.
5418         * m4/printf.m4: Likewise.
5419         * tests/test-cloexec.c: Likewise.
5420         * tests/test-copy-acl.sh: Likewise.
5421         * tests/test-copy-file.sh: Likewise.
5422         * tests/test-file-has-acl.sh: Likewise.
5423         * tests/test-set-mode-acl.sh: Likewise.
5424         * tests/test-dup-safer.c: Likewise.
5425         * tests/test-dup2.c: Likewise.
5426         * tests/test-dup3.c: Likewise.
5427         * tests/test-fcntl.c: Likewise.
5428         * tests/test-nonblocking-pipe.h: Likewise.
5429         * tests/test-nonblocking-socket.h: Likewise.
5430         * tests/test-pipe.c: Likewise.
5431         * tests/test-pipe2.c: Likewise.
5432         * tests/test-spawn-pipe-child.c: Likewise.
5433         * doc/acl-resources.txt: Likewise.
5434         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5435         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5436         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5437         * lib/localcharset.c: Update comments to mention native Windows.
5438         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5439         * lib/localename.c: Likewise.
5440         * lib/progreloc.c: Likewise.
5441         * lib/relocatable.c: Likewise.
5442         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5443         (windows_compute_revents): Renamed from win32_compute_revents.
5444         (windows_compute_revents_socket): Renamed from
5445         win32_compute_revents_socket.
5446         * lib/select.c: Update comments to mention native Windows.
5447         (windows_poll_handle): Renamed from win32_poll_handle.
5448         * m4/threadlib.m4: Update comments to mention native Windows.
5449         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5450         --enable-threads=windows instead of --enable-threads=win32. Set
5451         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5452         * lib/glthread/lock.h: Update comments to mention native Windows.
5453         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5454         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5455         USE_WIN32_THREADS.
5456         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5457         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5458         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5459         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5460         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5461         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5462         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5463         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5464         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5465         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5466         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5467         * tests/test-tls.c: Likewise.
5468         Rationale:
5469         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5470         on both 32-bit and 64-bit Windows systems.
5471         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5472         line of distinction is between "native Windows" on one side and Unix/
5473         POSIX systems on the other side. More details in
5474         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5475         Suggested by Paul Eggert.
5476
5477 2012-01-03  Bruno Haible  <bruno@clisp.org>
5478
5479         isatty: Support for MSVC 9.
5480         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5481         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5482         (_isatty_nothrow): New function.
5483         (isatty): Use it instead of _isatty.
5484         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5485         * lib/poll.c (IsConsoleHandle): Likewise.
5486         * lib/select.c (IsConsoleHandle): Likewise.
5487         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5488         (gl_PREREQ_ISATTY): New macro.
5489         * modules/isatty (Depends-on): Add msvc-inval.
5490         (configure.ac): Invoke gl_PREREQ_ISATTY.
5491
5492 2012-01-03  Jim Meyering  <meyering@redhat.com>
5493
5494         maint.mk: remove temporary transition aid from over 1.5 years ago
5495         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5496         purpose was to aid in the transition (avoiding silent malfunction)
5497         from that old name to the new _sc_search_regexp.  This shim was
5498         added by commit 219c504b.
5499
5500         init.sh: do not try to accommodate compare arguments starting with "-"
5501         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5502         compare arguments that start with "-".  Besides, we do not worry
5503         about this when invoking diff or cmp; why start now with sed?
5504         Using "--" to separate options from argument would trigger sed
5505         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5506         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5507
5508 2012-01-02  Bruno Haible  <bruno@clisp.org>
5509
5510         Enhance tests for module 'isatty'.
5511         * modules/isatty-tests (Depends-on): Add pipe-posix.
5512         * tests/test-isatty.c: Include <fcntl.h>.
5513         (DEV_NULL): New macro.
5514         (main): Test the resut of isatty() also on regular files, pipes, and
5515         /dev/null.
5516
5517         New module 'isatty'.
5518         * lib/unistd.in.h (isatty): New declaration.
5519         * lib/isatty.c: New file, based on an idea of
5520         Bastien Roucariès <roucaries.bastien@gmail.com>.
5521         * m4/isatty.m4: New file.
5522         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5523         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5524         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5525         REPLACE_ISATTY.
5526         * modules/isatty: New file.
5527         * doc/posix-functions/isatty.texi: Mention the new module.
5528         Suggested by Paolo Bonzini.
5529
5530 2012-01-02  Bruno Haible  <bruno@clisp.org>
5531
5532         canonicalize: Tweak 2011-12-29 commit.
5533         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5534         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5535
5536 2012-01-02  Jim Meyering  <meyering@redhat.com>
5537
5538         gitlog-to-changelog: describe input syntax in --help output
5539         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5540
5541         gitlog-to-changelog: fix typo in --help: show backslash before email @
5542         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5543         in sources, but not in actual output.
5544
5545 2011-12-30  Jim Meyering  <meyering@redhat.com>
5546
5547         gitlog-to-changelog: don't malfunction when name contains %-directive
5548         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5549         in a name string cause trouble.  E.g., with a user name of "%s",
5550         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5551
5552 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5553
5554         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5555         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5556         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5557         the "  (tiny change)" notation that is appended to the standard
5558         ChangeLog "date  name  email" header line.
5559
5560 2012-01-01  Jim Meyering  <meyering@redhat.com>
5561
5562         test-framework-sh: init.sh: fix "make dist" failure
5563         When using gnulib-tool's --with-tests option and any module that
5564         depends on test-framework-sh, "make dist" would fail due to the
5565         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5566         in the gltests directory, and not in the gllib/ directory.
5567         One way to work around that is to move the EXTRA_DIST += init.sh
5568         from the primary module to the -tests one:
5569         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5570         * modules/test-framework-sh (Makefile.am): ...not here.
5571         Reported by Tom G. Christensen in
5572         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5573
5574         version-etc: update copyright year reported by --version
5575         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5576
5577 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5578
5579         canonicalize: only stat() if required
5580         * lib/canonicalize.c (canonicalize_filename_mode):
5581         Avoid calling l?stat() when both CAN_MISSING,
5582         and CAN_NOLINKS are set, as we neither need
5583         to resolve symlinks or test component existence.
5584
5585 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5586
5587         doc: cover st_ino issues once; add OpenVMS etc.
5588         * doc/posix-functions/stat.texi (stat):
5589         * doc/posix-functions/lstat.texi (lstat):
5590         * doc/posix-functions/fstatat.texi (fstatat):
5591         * doc/posix-functions/fstat.texi (fstat):
5592         Move general 'struct stat' stuff to sys_stat.texi,
5593         leaving behind a pointer.
5594         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5595         Merge duplicate info about 'struct stat' problems into here.
5596         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5597         and suggest partial workarounds.
5598
5599         same-inode: port to OpenVMS
5600         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5601         three st_ino values.
5602
5603 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5604
5605         canonicalize: fix references to stat() and lstat()
5606         * lib/canonicalize.c (canonicalize_filename_mode):
5607         Ensure references always resolve to a replacement
5608         function if required (even via a macro).
5609
5610 2011-12-30  Jim Meyering  <meyering@redhat.com>
5611
5612         gitlog-to-changelog: remove a little duplication
5613         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5614         rather than twice.
5615
5616 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5617
5618         canonicalize: add support for not resolving symlinks
5619         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5620         indicate we don't want to follow symlinks.  Also
5621         provide CAN_MODE_MASK to aid setting these existing
5622         mutually exclusive values.
5623         * lib/canonicalize.c (canonicalize_filename_mode):
5624         Extract the flags from can_mode parameter, which
5625         are currently just used to select between stat()
5626         and lstat().  Also ensure that mutually exclusive
5627         values are flagged immediately as invalid.
5628         * tests/test-canonicalize.c: Verify symlinks are
5629         not followed, and that invalid flag combinations
5630         are diagnosed.
5631
5632 2011-12-25  Jim Meyering  <meyering@redhat.com>
5633
5634         gitlog-to-changelog: do not clump multi-paragraph entries
5635         Identical header lines (date,name,email+coauthors) are suppressed,
5636         thus putting all entries with those same characteristics under
5637         a single header.  However, when a log entry consists of two or
5638         more paragraphs, it may not be clear where it starts and ends.
5639         This change makes it so that such an entry is always separated
5640         from others by a header line, even when that header would
5641         otherwise be suppressed.
5642         * build-aux/gitlog-to-changelog: Implement the above.
5643         Inspired by a related request from Stefano Lattarini in
5644         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5645
5646 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5647
5648         announce-gen: fix `cmd' typo in diagnostic
5649         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5650         diagnostic: a missing '$' meant that the command was not output.
5651
5652 2011-12-23  Jim Meyering  <meyering@redhat.com>
5653
5654         test-framework-sh: distribute init.sh
5655         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5656         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5657         fail due to the lack of init.sh.
5658
5659         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5660         * modules/atexit-tests: Rather than listing tests/init.sh,
5661         now that there's a module for it, simply depend on that new module.
5662         * modules/closein-tests: Likewise.
5663         * modules/exclude-tests: Likewise.
5664         * modules/getcwd-tests: Likewise.
5665         * modules/perror-tests: Likewise.
5666         * modules/pread-tests: Likewise.
5667         * modules/pwrite-tests: Likewise.
5668         * modules/vc-list-files-tests: Likewise.
5669         * modules/verify-tests: Likewise.
5670         * modules/xalloc-die-tests: Likewise.
5671         * modules/xstrtoimax-tests: Likewise.
5672         * modules/xstrtol-tests: Likewise.
5673         * modules/xstrtoll-tests: Likewise.
5674         * modules/xstrtoumax-tests: Likewise.
5675         * modules/yesno-tests: Likewise.
5676
5677 2011-12-22  Jim Meyering  <meyering@redhat.com>
5678
5679         test-framework-sh: add minimal tests of init.sh's compare function
5680         * modules/test-framework-sh-tests: New file.
5681         * tests/test-init.sh: New file.
5682
5683         test-framework-sh: new module
5684         * modules/test-framework-sh: New file.
5685         * MODULES.html.sh (Support for maintaining and releasing projects):
5686         List it.
5687
5688         init.sh: do not emit simulated diff output to stderr
5689         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5690
5691 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5692
5693         .gitignore: ignore gnulib.dvi and regex.info
5694         * doc/.gitignore:add gnulib.dvi and regex.info
5695
5696 2011-12-22  Jim Meyering  <meyering@redhat.com>
5697
5698         init.sh: correct previous change
5699         * tests/init.sh (compare): My previous change was wrong.
5700         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5701
5702         init.sh: avoid unwarranted test failure when using "set -e"
5703         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5704         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5705         a use like "compare exp out" would get evoke an unconditional failure.
5706
5707 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5708
5709         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5710         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5711         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5712         autoreconf that did not.
5713         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5714         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5715
5716 2011-12-17  Jim Meyering  <meyering@redhat.com>
5717
5718         bootstrap: remove some now-unneeded code
5719         This script arose back when gnulib-tool was young.
5720         Since then, it has seen improvements that render much of this
5721         script unnecessary.  In particular, it can now make symlinks
5722         to the files it uses.  Also, I no longer see as much value in
5723         marking files as read-only via comments.
5724         If you relied on the symlink-creation feature of the preceding
5725         version of this script, you can get most of that functionality
5726         by adding the --symlink option to the definition of
5727         gnulib_tool_option_extras in your bootstrap.conf file.
5728         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5729         Run autopoint and libtoolize *before* gnulib-tool.
5730         After it, run an abbreviated autoreconf, rather than a loop around
5731         all tools.
5732         (slirp, bt_mark_as_generated): Remove functions.
5733
5734 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5735
5736         ftoastr: fix typo
5737         * lib/ftoastr.h: Fix misspelling in comment.
5738
5739 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5740
5741         * top/README-release: fix punctuation.
5742
5743 2011-12-17  Jim Meyering  <meyering@redhat.com>
5744
5745         bootstrap: correct the recent buildreq change
5746         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5747         had no effect.
5748         * build-aux/bootstrap (buildreq): Bracket each search term with
5749         "*...*", so that the shell "case" statement works as intended.
5750         Add comments.
5751
5752 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5753
5754         build: let bootstrap resort to wget when downloading .po files
5755         * build-aux/bootstrap (download_po_files): Fallback to wget when
5756         downloading the .po files via rsync fails.  This is necessary to
5757         bootstrap from behind a strict firewall.
5758
5759 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5760
5761         stdint: don't assume C++11 when compiling with g++
5762         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5764         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5765         work also in C++ before C++11, as that improperly inhibits
5766         generating a substitute stdint.h for that case.
5767
5768 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5769
5770         alloca: protect comment from gnulib-tool
5771         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5772         that gnulib-tool doesn't think it's a license, and munge it to
5773         say "GCC version 3".
5774
5775 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5776
5777         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5778         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5779         $(abs_top_builddir) instead of $(top_builddir).
5780
5781 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5782
5783         strftime-tests: also test nanoseconds
5784         * tests/test-strftime.c (T): Add a test of %N.
5785
5786 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5787
5788         inttypes, stdint: add C++11 support
5789         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5790         when including inttypes.h and stdint.h.  Support this change to
5791         the standard.
5792         * doc/posix-headers/inttypes.texi (inttypes.h):
5793         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5794         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5795         Define if not defined already, for the benefit of pre-C++11 hosts.
5796         Define the standard format macros (e.g., PRId8) always.
5797         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5798         Likewise, if __cpluspus.  Define the standard constant and limit
5799         macros (e.g., INT8_C, INT8_MAX) always.
5800         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5801         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5802         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5803         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5804         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5805         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5806         Likewise.
5807
5808 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5809
5810         nonblocking tests: Fix test failure on Linux/PPC.
5811         Suggested by Prerna Saxena in
5812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5813         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5814         Set to 1100000.
5815
5816 2011-12-12  Jim Meyering  <meyering@redhat.com>
5817
5818         argmatch: don't hard-code `' when listing valid option arguments
5819         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5820         use the quote function to add quotes.  Use fputs rather than
5821         fprintf for the format string with no format directive.
5822
5823 2011-12-07  Eric Blake  <eblake@redhat.com>
5824
5825         bootstrap: detect tools required by gnulib-tool
5826         * build-aux/bootstrap (buildreq): Provide minimum implicit
5827         dependencies.
5828         * DEPENDENCIES: Mention patch as a prereq.
5829
5830 2011-12-04  Bruno Haible  <bruno@clisp.org>
5831
5832         sethostname: Port to Windows platforms.
5833         * lib/sethostname.c: Provide an alternate implementation for Windows
5834         platforms.
5835         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5836         (main): Skip the test if sethostname() fails with EPERM. On Windows
5837         platforms, don't check the result of gethostname().
5838
5839 2011-12-04  Bruno Haible  <bruno@clisp.org>
5840             Jim Meyering  <meyering@redhat.com>
5841
5842         tests: Avoid spurious error message on platforms without mktemp program.
5843         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5844
5845 2011-12-04  Bruno Haible  <bruno@clisp.org>
5846
5847         sethostname: Fix documentation.
5848         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5849         "not fixed" section.
5850
5851 2011-12-03  Bruno Haible  <bruno@clisp.org>
5852
5853         gnulib-tool: Verify that the License field is present and non-empty.
5854         * gnulib-tool (func_get_license_raw): New function, extracted from
5855         func_get_license.
5856         (func_get_license): Use it. Warn if the module is not a test module and
5857         has no license.
5858         Suggested by Jim Meyering.
5859
5860 2011-12-03  Bruno Haible  <bruno@clisp.org>
5861
5862         sethostname tests: Fix link error on mingw.
5863         * tests/test-sethostname1.c: New file, extracted from
5864         tests/test-sethostname.c.
5865         * tests/test-sethostname2.c: New file, extracted from
5866         tests/test-sethostname.c.
5867         * tests/test-sethostname.c: Remove file.
5868         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5869         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5870         (Depends-on): Add gethostname.
5871         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5872         Link the latter with $(GETHOSTNAME_LIB).
5873
5874         sethostname tests: Fix compilation error on mingw.
5875         * tests/test-sethostname.c: Don't include <sys/types.h>.
5876         (geteuid): Use a dummy value without uid_t.
5877         * modules/sethostname-tests (Depends-on): Remove sys_types.
5878
5879         sethostname tests: Avoid a gcc warning.
5880         * tests/test-sethostname.c (main): Remove an unused variable.
5881
5882         Tweak last commit.
5883         * modules/sethostname-tests (Files): Sort by decreasing importance.
5884         (configure.ac): Check for geteuid.
5885         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5886         the test when there's nothing to test. Drop an unnecessary cast.
5887         Improve an error message. Verify that the final sethostname() call
5888         succeeds.
5889
5890 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5891
5892         Add a test suite for the sethostname module.
5893         * modules/sethostname-tests: New file.  A test program
5894         for the sethostname module.
5895         * tests/test-sethostname.c: Likewise.
5896
5897 2011-12-03  Bruno Haible  <bruno@clisp.org>
5898
5899         Tweak last commit.
5900         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5901         Fix preprocessor directives indentation. Fix typos.
5902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5903         * modules/unistd (Makefile): Likewise.
5904
5905 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5906
5907         Integrate the sethostname module into unistd.
5908         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5909         into the unistd.h header.
5910         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5911         preprocessor directives.
5912         * modules/unistd: Setup the Makefile substitutions of the
5913         SETHOSTNAME preprocessor directives.
5914
5915 2011-12-03  Bruno Haible  <bruno@clisp.org>
5916
5917         Tweak last commit.
5918         * lib/sethostname.c: Don't include <string.h>.
5919         (sethostname): No need to copy the argument string to the stack. Don't
5920         call clearerr. Preserve errno when fprintf failed.
5921         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5922         Don't invoke AC_REPLACE_FUNCS.
5923         * modules/sethostname (Link): Remove empty section.
5924         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5925         failure problem.
5926
5927 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5928
5929         New module 'sethostname'.
5930         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5931         for systems that lack it.
5932         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5933         sethostname declaration and function.
5934         * modules/sethostname: New file.  Define the sethostname module.
5935
5936 2011-12-03  Bruno Haible  <bruno@clisp.org>
5937
5938         Tweak last commit.
5939         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5940
5941 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5942
5943         Split the HOST_NAME_MAX detection into a separate m4 macro.
5944         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5945         macro so it can be used by the pending sethostname module.
5946
5947 2011-12-03  Bruno Haible  <bruno@clisp.org>
5948
5949         Fix module descriptions syntax.
5950         * modules/argv-iter (License): Fix syntax.
5951         * modules/di-set (License): Likewise.
5952         * modules/ino-map (License): Likewise.
5953         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5954
5955 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5956
5957         stdalign: port to Clang 3.0
5958         Problem reported by Simon Josefsson in
5959         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5960         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5961         which has <stdalign.h> but which does not define alignof.
5962         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5963
5964 2011-12-01  Eric Blake  <eblake@redhat.com>
5965
5966         mktempd: silence dd usage
5967         * build-aux/mktempd (rand_bytes): Silence dd.
5968
5969 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5970
5971         manywarnings: Don't mention gcc version in docstring.
5972         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5973         Jim Meyering <meyering@redhat.com>.
5974
5975 2011-11-30  Jim Meyering  <meyering@redhat.com>
5976
5977         hash: mark a few floating point constants with "f" suffix
5978         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5979         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5980         floating point constants with "f", since they're destined to be
5981         saved/used as "float"s.
5982
5983 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5984
5985         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5986         * tests/test-float.c (test_long_double): Correct and re-enable the
5987         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5988
5989 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5990
5991         Avoid subtracting two pointers that don't point into the same block.
5992         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5993         only pointers into the same memory block are subtracted. We cannot
5994         assume that sizeof (ptrdiff_t) == sizeof (void *).
5995
5996 2011-11-29  Eric Blake  <eblake@redhat.com>
5997
5998         maint.mk: add syntax check for use of compare from init.sh
5999         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
6000         moved here from coreutils.
6001
6002         manywarnings: drop -Wunsuffixed-float-constants
6003         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
6004         '1.0D', which is the only way to silence this warning for 'double'.
6005
6006 2011-11-29  Jim Meyering  <meyering@redhat.com>
6007
6008         hash: mark compute_bucket_size with the pure attribute
6009         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6010
6011         quotearg, propername: correct pragma guard expression
6012         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6013         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6014
6015 2011-11-28  Jim Meyering  <meyering@redhat.com>
6016
6017         propername: do not mark proper_name with the const attribute
6018         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6019         since it examines data pointed to by its parameter.
6020         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6021         the suggestion from -Wsuggest-attribute=const.
6022
6023         propername: mark one more function as const
6024         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6025
6026 2011-11-27  Jim Meyering  <meyering@redhat.com>
6027
6028         mark functions with const and pure attributes
6029
6030         Mark functions per suggestions from gcc-4.6 when using these options:
6031         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6032         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6033         Follow these guidelines: when possible, apply the attribute to
6034         an extern declaration, not to its definition.  Apply it to the
6035         definition only when the definition is static.
6036         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6037         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6038         * lib/base64.h (isbase64): Likewise.
6039         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6040         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6041         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6042         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6043         (c_tolower, c_toupper): Likewise.
6044         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6045         * lib/chdir-long.c (find_non_slash): Likewise.
6046         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6047         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6048         * lib/file-type.h (file_type): Likewise.
6049         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6050         * lib/filevercmp.c (verrevcmp): Likewise.
6051         * lib/freadahead.h (freadahead): Likewise.
6052         * lib/fts.c (fts_maxarglen): Likewise.
6053         * lib/hash-pjw.h (hash_pjw): Likewise.
6054         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6055         * lib/hash.c (is_prime, next_prime): Likewise.
6056         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6057         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6058         (hash_table_ok, hash_get_first, hash_string): Likewise.
6059         (compute_bucket_size): Likewise.
6060         * lib/i-ring.h (i_ring_empty): Likewise.
6061         * lib/isnan.c (isnanl): Likewise.
6062         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6063         * lib/memcasecmp.h (memcasecmp): Likewise.
6064         * lib/memchr2.h (memchr2): Likewise.
6065         * lib/memcmp2.h (memcmp2): Likewise.
6066         * lib/parse-datetime.y (lookup_zone): Likewise.
6067         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6068         [!WINDOWS_SOCKETS]: Likewise.
6069         * lib/strnlen1.h (strnlen1): Likewise.
6070         * lib/uniwidth.in.h (uc_width): Likewise.
6071         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6072         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6073         (quoting_options_from_style): Add a comment.
6074         * lib/propername.h (proper_name): Add a comment.
6075
6076 2011-11-27  Bruno Haible  <bruno@clisp.org>
6077
6078         Remove unused macros from !_LIBC code in glibc-borrowed files.
6079         * lib/fnmatch.c (STRCOLL): Remove macro.
6080         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6081         * lib/glob.c (__stat, __readdir64): Remove macros.
6082         * lib/tempname.c (__open64, __xstat64): Remove macros.
6083         Suggested by Paul Eggert.
6084
6085 2011-11-27  Bruno Haible  <bruno@clisp.org>
6086
6087         getcwd: Fix link error on MSVC 9.
6088         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6089
6090 2011-11-27  Bruno Haible  <bruno@clisp.org>
6091
6092         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6093         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6094         HAVE_OPENDIR is 0.
6095         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6096         HAVE_CLOSEDIR is 0.
6097         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6098         is 0.
6099         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6100
6101 2011-11-27  Bruno Haible  <bruno@clisp.org>
6102
6103         getcwd: Fix bug from 2011-08-17.
6104         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6105         platforms that need it.
6106         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6107         code of 4 to be a failure, not a success. This ensures that
6108         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6109
6110 2011-11-27  Bruno Haible  <bruno@clisp.org>
6111
6112         binary-io tests: Avoid test failure on mingw when libtool is used.
6113         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6114         Don't verify the size of t-bin-out1.tmp here.
6115         * tests/test-binary-io.sh: Verify it here.
6116         Reported by Simon Josefsson.
6117
6118 2011-11-26  Bruno Haible  <bruno@clisp.org>
6119
6120         Fix conflict between two instantiations of module 'unistd'.
6121         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6122         ${include_guard_prefix} also in the autoconf snippet.
6123         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6125         GNULIB_UNISTD_H_GETOPT.
6126         * modules/getopt-posix (configure.ac): Set the
6127         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6128         * modules/getopt-gnu (configure.ac): Likewise.
6129         * modules/unistd (Makefile.am): Change the substitution value of
6130         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6131         Reported by Simon Josefsson.
6132
6133 2011-11-25  Bruno Haible  <bruno@clisp.org>
6134
6135         pagealign_alloc: Doc and comments.
6136         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6137         module.
6138         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6139
6140 2011-11-25  Jim Meyering  <meyering@redhat.com>
6141
6142         test-update-copyright.sh: avoid false-positive failure
6143         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
6144         around false positive failure on Cygwin/Windows.  The latter was
6145         matching erroneously-created files with names like
6146         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
6147
6148 2011-11-25  Simon Josefsson  <simon@josefsson.org>
6149
6150         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
6151         * m4/valgrind-tests.m4: Check that the parameters that will be
6152         used works, not just a subset of them.  Reported by Bruno Haible
6153         <bruno@clisp.org>.
6154
6155 2011-11-24  Jim Meyering  <meyering@redhat.com>
6156
6157         test-stdalign.c: comment out long double tests
6158         * tests/test-stdalign.c: Don't try to reduce alignment of long double
6159         variables.  That provokes errors like this from gcc-4.7.0 20111124:
6160         error: '_Alignas' specifiers cannot reduce alignment of \
6161         'static_longdouble_alignas'.
6162
6163 2011-11-22  Jim Meyering  <meyering@redhat.com>
6164
6165         init.sh: make "compare /dev/null FILE" output more readable
6166         * tests/init.sh (compare_): Document the preferred order of arguments.
6167         (emit_diff_u_header_): New function.
6168         (compare_dev_null_): Emit a simulated diff, rather than just the
6169         contents of the unexpected file.  Suggestion from Bruno Haible.
6170
6171 2011-11-21  Jim Meyering  <meyering@redhat.com>
6172             Eric Blake  <eblake@redhat.com>
6173
6174         init.sh: work around OSF/1 5.1's mishandling of /dev/null
6175         * tests/init.sh: Make our compare function slightly more portable.
6176         Reported by Bruno Haible in
6177         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
6178
6179 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6180
6181         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6182         before using it, in code that ends up in config.h.
6183
6184 2011-11-20  Bruno Haible  <bruno@clisp.org>
6185
6186         getcwd: Work around getcwd bug on AIX 5..7.
6187         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6188         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6189         Use a different value for gl_cv_func_getcwd_path_max. Move the
6190         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6191         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6192         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6193         Define HAVE_MINIMALLY_WORKING_GETCWD.
6194         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6195         where it is not even minimally working, that is, on AIX.
6196         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6197         m4/getcwd-path-max.m4.
6198         (main): Update exit code computation.
6199         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6200         getcwd does not handle long file names.
6201
6202 2011-11-20  Bruno Haible  <bruno@clisp.org>
6203
6204         getcwd: Fix bug from 2009-09-10.
6205         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6206         like "no".
6207
6208 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6209
6210         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6211
6212 2011-11-20  Bruno Haible  <bruno@clisp.org>
6213
6214         fma tests: Avoid shadowing local variables.
6215         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6216         expected.
6217
6218 2011-11-20  Bruno Haible  <bruno@clisp.org>
6219
6220         copysignf tests: Fix.
6221         * tests/test-copysignf.c: Fix signature check.
6222
6223 2011-11-20  Bruno Haible  <bruno@clisp.org>
6224
6225         fma: Remove unused code.
6226         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6227         unused macros.
6228
6229 2011-11-20  Bruno Haible  <bruno@clisp.org>
6230
6231         sethostname: Fix doc about AIX.
6232         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6233         sethostname; it has it.
6234
6235         sethostname: Mention more portability problems.
6236         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6237         problem.
6238         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6239
6240 2011-11-19  Bruno Haible  <bruno@clisp.org>
6241
6242         Depend on module fcntl-h when AT_FDCWD is used.
6243         * modules/utimens (Depends-on): Add fcntl-h.
6244         * modules/areadlinkat (Depends-on): Likewise.
6245         * modules/areadlinkat-with-size (Depends-on): Likewise.
6246         * modules/faccessat (Depends-on): Likewise.
6247         * modules/fchmodat (Depends-on): Likewise.
6248         * modules/fchownat (Depends-on): Likewise.
6249         * modules/getcwd (Depends-on): Likewise.
6250         * modules/mkdirat (Depends-on): Likewise.
6251         * modules/mkfifoat (Depends-on): Likewise.
6252         * modules/readlinkat (Depends-on): Likewise.
6253         * modules/symlinkat (Depends-on): Likewise.
6254         * modules/dup2-tests (Depends-on): Likewise.
6255         * modules/fdutimensat-tests (Depends-on): Likewise.
6256         * modules/futimens-tests (Depends-on): Likewise.
6257
6258 2011-11-19  Bruno Haible  <bruno@clisp.org>
6259
6260         euidaccess: Update a comment.
6261         * lib/euidaccess.c: Update comment about platforms with faccessat.
6262
6263 2011-11-19  Bruno Haible  <bruno@clisp.org>
6264
6265         openat: Fix file list.
6266         * modules/openat (Files): Remove lib/at-func.c.
6267
6268 2011-11-19  Bruno Haible  <bruno@clisp.org>
6269
6270         fstatat: Simplify.
6271         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6272         gnulib should define rpl_fstatat, there is a
6273         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6274
6275 2011-11-19  Bruno Haible  <bruno@clisp.org>
6276
6277         Ensure 'inline' can be used in tests/test-utimens-common.h.
6278         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6279         * modules/futimens-tests (configure.ac): Likewise.
6280         * modules/utimens-tests (configure.ac): Likewise.
6281         * modules/utimensat-tests (configure.ac): Likewise.
6282
6283 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6284
6285         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6286         not hash_insert0.
6287         (hash_insert_if_absent): Doc fix.
6288
6289 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6290
6291         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6292
6293 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6294
6295         test-getcwd: disambiguate exit status
6296         * tests/test-getcwd.c (test_long_name): Return 0..7.
6297         (main): Exit with an unambiguous exit status.  The old
6298         code yielded a mysterious mixture of two failure codes.
6299
6300         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6301         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6302         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6303         rpl_fstatat or fstatat.  This should fix the other problem
6304         reported by Kai Habel in
6305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6306         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6308         and I reproduced it on a Solaris 8 host we still have in production.
6309
6310 2011-11-18  Jim Meyering  <meyering@redhat.com>
6311
6312         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6313         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6314         Add a sentence to the comment.
6315         (hash_insert0): New function that simply calls hash_insert_if_absent.
6316         * lib/hash.h (hash_insert_if_absent): Declare it.
6317         (hash_insert0): Add deprecation attribute.
6318         (_GL_ATTRIBUTE_DEPRECATED): Define.
6319         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6320         not hash_insert0.
6321         * NEWS: Mention it, even though it's not really an incompatible change.
6322
6323 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6324
6325         openat: avoid compilation failure due to lack of <errno.h> inclusion
6326         * lib/openat.c: Include <errno.h>.
6327
6328 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6329
6330         * modules/getcwd (Depends-on): Add fdopendir.
6331         This fixes one of the two problems reported by Kai Habel in
6332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6333
6334         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6335         stdalign problem reported by Ian Beckwith in
6336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6337         * modules/crypto/gc-arcfour (Depends-on):
6338         Depend conditionally on crypto/arcfour.
6339         * modules/crypto/gc-arctwo (Depends-on):
6340         Depend conditionally on crypto/arctwo.
6341         * modules/crypto/gc-des (Depends-on):
6342         Depend conditionally on crypto/des.
6343         * modules/crypto/gc-hmac-md5 (Depends-on):
6344         Depend conditionally on crypto/hmac-md5.
6345         * modules/crypto/gc-hmac-sha1 (Depends-on):
6346         Depend conditionally on crypto/hmac-sha1.
6347         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6348         * modules/crypto/gc-md4 (Depends-on):
6349         Depend conditionally on crypto/md4.
6350         * modules/crypto/gc-md5 (Depends-on):
6351         Depend conditionally on crypto/md5.
6352         * modules/crypto/gc-rijndael (Depends-on):
6353         Depend conditionally on crypto/rijndael.
6354         * modules/crypto/gc-sha1 (Depends-on):
6355         Depend conditionally on crypto/sha1.
6356         * modules/crypto/gc-arcfour:
6357         * modules/crypto/gc-arctwo:
6358         * modules/crypto/gc-des:
6359         * modules/crypto/gc-hmac-md5:
6360         * modules/crypto/gc-hmac-sha1:
6361         * modules/crypto/gc-md2:
6362         * modules/crypto/gc-md4:
6363         * modules/crypto/gc-md5:
6364         * modules/crypto/gc-rijndael:
6365         * modules/crypto/gc-sha1:
6366         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6367         now that the conditional dependencies do the work for us.
6368
6369 2011-11-17  Jim Meyering  <meyering@redhat.com>
6370
6371         tests: factor st_ctime-comparison out of two headers
6372         * tests/test-utimens-common.h (ctime_compare): Define.
6373         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6374         * tests/test-lutimens.h (test_lutimens): Likewise.
6375         * tests/test-utimens.h (test_utimens): Likewise.
6376
6377         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6378         Invoke the test program via an init.sh-using wrapper.
6379         * tests/test-getcwd.sh: New file.
6380         * modules/getcwd-tests (Files): Add it.
6381         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6382
6383 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6384
6385         gitlog-to-changelog: support multi-author commits.
6386         The FSF cares about keeping track of all authors of patches to its
6387         projects, but Git doesn't provide obvious support for multi-author
6388         changesets. Consensus seems to be forming around the use of extra
6389         Signed-off-by inspired lines in the log message formatted as
6390         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6391         multi-author commits between version control systems.
6392         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6393         log message and output in standard ChangeLog multi-author format.
6394         Reported by Peter Rosin <peda@lysator.liu.se>
6395
6396 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6397             Bruno Haible  <bruno@clisp.org>
6398
6399         Fix some modules' file list.
6400         * modules/fstatat (Files): Add m4/lstat.m4.
6401         * modules/openat (Files): Likewise.
6402         * modules/unlinkat (Files): Likewise.
6403
6404 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6405
6406         maint.mk: fix tight-scope.mk generation in VPATH builds.
6407         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6408         reference with $(srcdir) so that the file is found correctly even
6409         when running `make syntax-check' in a VPATH build.
6410
6411 2011-11-13  Bruno Haible  <bruno@clisp.org>
6412             Jim Meyering  <meyering@redhat.com>
6413
6414         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6415         * tests/init.sh (compare): Remove "No differences encountered" or
6416         synonymous output from the 'diff' program.
6417
6418 2011-11-13  Bruno Haible  <bruno@clisp.org>
6419
6420         Makefile: Tweak indentation.
6421         * Makefile: Use tab as first character in every line that contains rule
6422         commands.
6423
6424 2011-11-13  Bruno Haible  <bruno@clisp.org>
6425
6426         Syntax check for copyright statements.
6427         * check-copyright: New file.
6428         * Makefile (sc_check_copyright): New rule.
6429
6430 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6431
6432         * build-aux/git-version-gen: Add --prefix to configure the tag
6433         match string.
6434
6435 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6436
6437         * build-aux/git-version-gen: Add --help and --version.
6438
6439 2011-11-12  Jim Meyering  <meyering@redhat.com>
6440
6441         revamp the other test-exclude?.sh scripts to use init.sh, too
6442         * tests/test-exclude1.sh: Use init.sh.
6443         * tests/test-exclude2.sh: Likewise.
6444         * tests/test-exclude3.sh: Likewise.
6445         * tests/test-exclude4.sh: Likewise.
6446         * tests/test-exclude5.sh: Likewise.
6447         * tests/test-exclude6.sh: Likewise.
6448         * tests/test-exclude7.sh: Likewise.
6449         * tests/test-exclude8.sh: Likewise.
6450         * modules/exclude-tests (Files): List init.sh.
6451
6452         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6453         These shell scripts ignored failure of the binary test-exclude,
6454         so making the latter return 77 didn't cause them to be skipped.
6455         * tests/test-exclude5.sh: Exit with test-exclude's error status
6456         when that program fails.  Revamp to use init.sh.
6457         * tests/test-exclude2.sh: Likewise.
6458
6459         test-exclude: fix a typo
6460         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6461
6462 2011-11-11  Bruno Haible  <bruno@clisp.org>
6463
6464         obstack: Fix compilation error on MSVC 9.
6465         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6466
6467 2011-11-11  Jim Meyering  <meyering@redhat.com>
6468
6469         test-exclude: skip tests rather than failing on deficient systems
6470         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6471         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6472         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6473         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6474
6475 2011-11-10  Bruno Haible  <bruno@clisp.org>
6476
6477         ptsname_r test: Avoid gcc warning on glibc systems.
6478         * tests/test-ptsname_r.c (null_ptr): New function.
6479         (test_errors): Use it.
6480
6481 2011-11-10  Bruno Haible  <bruno@clisp.org>
6482
6483         ptsname_r: Avoid compilation error on OSF/1 5.1.
6484         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6486         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6487         function is not declared or incompatibly declared.
6488         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6489         * modules/ptsname_r (Depends-on, configure.ac): Update.
6490         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6491
6492 2011-11-10  Bruno Haible  <bruno@clisp.org>
6493
6494         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6495         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6496         When cross-compiling, guess yes on all platforms except AIX.
6497         Reported by Ludovic Courtès <ludo@gnu.org>.
6498
6499 2011-11-09  Bruno Haible  <bruno@clisp.org>
6500
6501         ptsname_r tests: Fix bugs.
6502         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6503         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6504
6505 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6506
6507         fstatat: work with cross-compilation
6508         Problem reported by Ludovic Courtès in
6509         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6510         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6511         "cross-compiling" and assume the bug is present.  Replace
6512         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6513         an inverted sense, to be more conservative about our assumptions.
6514         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6515
6516 2011-11-09  Bruno Haible  <bruno@clisp.org>
6517
6518         Improve MODULES.html output.
6519         * modules/mkfifoat (Description): Use the word "function".
6520         * modules/readlinkat (Description): Likewise.
6521         * modules/symlinkat (Description): Likewise.
6522
6523 2011-11-09  Eric Blake  <eblake@redhat.com>
6524
6525         ptsname_r-tests: new test module
6526         * modules/ptsname_r-tests: New module.
6527         * tests/test-ptsname_r.c: New file.
6528
6529         ptsname_r: new module
6530         * modules/ptsname_r: New module.
6531         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6532         * lib/ptsname.c (__ptsname_r): Split...
6533         * lib/ptsname_r.c: ...into new file.
6534         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6535         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6536         * modules/stdlib (Makefile.am): Substitute witnesses.
6537         * lib/stdlib.in.h (ptsname_r): Declare it.
6538         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6539         * MODULES.html.sh (Misc): Likewise.
6540         * modules/ptsname (Depends-on): Alter dependency.
6541         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6542
6543 2011-11-09  Jim Meyering  <meyering@redhat.com>
6544
6545         announce-gen: be more concise when there's only one URL+tarball
6546         * build-aux/announce-gen (get_tool_versions): When you distribute
6547         only one type of tarball, combine the first two "Here are..."
6548         sections and make the key-checking grammar independent of
6549         how many tarballs there are.
6550
6551 2011-11-09  Eric Blake  <eblake@redhat.com>
6552
6553         openpty: provide a stub on mingw
6554         * lib/pty.in.h (includes): Provide forward declarations.
6555         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6556
6557         raise: fix mingw handling of SIGPIPE
6558         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6559
6560 2011-11-08  Bruno Haible  <bruno@clisp.org>
6561
6562         More conditional dependencies.
6563         * modules/faccessat (Depends-on): Add conditions.
6564         * modules/fchmodat (Depends-on): Likewise.
6565         * modules/fchownat (Depends-on): Likewise.
6566         * modules/fstatat (Depends-on): Likewise.
6567         * modules/mkfifoat (Depends-on): Likewise.
6568         * modules/readlinkat (Depends-on): Likewise.
6569         * modules/symlinkat (Depends-on): Likewise.
6570         * modules/unlinkat (Depends-on): Likewise.
6571         * modules/utimensat (Depends-on): Likewise.
6572         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6573         * modules/linkat (Depends-on): Refine the conditions.
6574         * modules/renameat (Depends-on): Likewise.
6575
6576 2011-11-08  Bruno Haible  <bruno@clisp.org>
6577
6578         faccessat: Move AC_LIBOBJ invocation to module description.
6579         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6580         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6581         invocation from here...
6582         * modules/faccessat (configure.ac): ... to here. Invoke
6583         gl_PREREQ_FACCESSAT.
6584
6585 2011-11-08  Bruno Haible  <bruno@clisp.org>
6586
6587         faccessat: Simplify autoconf macro.
6588         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6589         gl_FUNC_EUIDACCESS.
6590
6591 2011-11-08  Bruno Haible  <bruno@clisp.org>
6592
6593         renameat: Fix dependencies.
6594         * modules/renameat (Depends-on): Add stdbool.
6595
6596 2011-11-08  Bruno Haible  <bruno@clisp.org>
6597
6598         mkfifoat: Fix module description.
6599         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6600         not gl_UNISTD_MODULE_INDICATOR.
6601
6602 2011-11-08  Bruno Haible  <bruno@clisp.org>
6603
6604         fstatat: Remove unused dependency.
6605         * modules/fstatat (Depends-on): Remove fstat.
6606
6607 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6608
6609         GNUmakefile: behave when Makefile is missing.
6610         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6611
6612 2011-11-08  Bruno Haible  <bruno@clisp.org>
6613
6614         openat: Conditionalize dependencies.
6615         * lib/openat.c: Reduce the scope of some #includes.
6616         * modules/openat (Depends-on): Add conditions.
6617
6618 2011-11-07  Jim Meyering  <meyering@redhat.com>
6619
6620         maint.mk: extract GPG key ID without using a temporary file
6621         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6622         without using a temporary file.  Based on a suggestion from Werner Koch
6623         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6624
6625 2011-11-07  Eric Blake  <eblake@redhat.com>
6626
6627         grantpt: fix typo
6628         * lib/stdlib.in.h (grantpt): Check correct function.
6629
6630         maint.mk: silence new syntax check
6631         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6632
6633 2011-11-06  Bruno Haible  <bruno@clisp.org>
6634
6635         Doc about floating-point and math API.
6636         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6637         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6638
6639 2011-11-06  Bruno Haible  <bruno@clisp.org>
6640
6641         stdalign tests: Skip the test when compiled by Sun C.
6642         * tests/test-stdalign.c (main): Skip the test on Sun C.
6643
6644 2011-11-06  Bruno Haible  <bruno@clisp.org>
6645
6646         ansi-c++-opt: Complete the 2011-06-05 change.
6647         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6648         does not support namespaces, set the variable to "no", not to ":".
6649
6650 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6651
6652         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6653
6654 2011-11-06  Bruno Haible  <bruno@clisp.org>
6655
6656         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6657         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6658         (minus_zerol) [HP-UX]: New macro.
6659         (unary_minus) [HP-UX]: New function.
6660         (copysignl) [HP-UX]: Use unary_minus function.
6661
6662 2011-11-06  Bruno Haible  <bruno@clisp.org>
6663
6664         ldexp, ldexpf, ldexpl: Enhance tests.
6665         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6666         and tests/test-ldexpl.c.
6667         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6668         LDEXP, MIN_EXP, MAX_EXP): New macros.
6669         Include test-ldexp.h.
6670         (main): Just call test_function.
6671         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6672         infinity.h, nan.h.
6673         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6674         MAX_EXP): New macros.
6675         Include test-ldexp.h.
6676         (x, y): Remove variables.
6677         (main): Just call test_function.
6678         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6679         infinity.h, nan.h.
6680         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6681         MAX_EXP): New macros.
6682         Include test-ldexp.h.
6683         (x, y): Remove variables.
6684         (main): Just call test_function.
6685         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6686         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6687         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6688         (Depends-on): Add isnand-nolibm, signbit, float.
6689         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6690         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6691         (Depends-on): Add isnanf-nolibm, signbit, float.
6692
6693 2011-11-06  Bruno Haible  <bruno@clisp.org>
6694
6695         math tests: Cosmetics.
6696         * tests/test-math-c++.cc: Reorder declarations.
6697
6698 2011-11-05  Bruno Haible  <bruno@clisp.org>
6699
6700         fma*: Simplify test.
6701         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6702         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6703
6704         Tests for module 'fmal'.
6705         * modules/fmal-tests: New file.
6706         * tests/test-fmal1.c: New file.
6707         * tests/test-fmal2.c: New file.
6708
6709         New module 'fmal'.
6710         * lib/math.in.h (fmal): New declaration.
6711         * lib/fmal.c: New file.
6712         * m4/fmal.m4: New file.
6713         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6714         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6715         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6716         REPLACE_FMAL.
6717         * modules/fmal: New file.
6718         * doc/posix-functions/fmal.texi: Mention the new module and the various
6719         bugs.
6720
6721         Tests for module 'fmaf'.
6722         * modules/fmaf-tests: New file.
6723         * tests/test-fmaf1.c: New file.
6724         * tests/test-fmaf2.c: New file.
6725
6726         New module 'fmaf'.
6727         * lib/math.in.h (fmaf): New declaration.
6728         * lib/fmaf.c: New file.
6729         * m4/fmaf.m4: New file.
6730         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6731         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6732         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6733         REPLACE_FMAF.
6734         * modules/fmaf: New file.
6735         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6736         bugs.
6737
6738         Tests for module 'fma'.
6739         * modules/fma-tests: New file.
6740         * tests/test-fma1.c: New file.
6741         * tests/test-fma1.h: New file.
6742         * tests/test-fma2.c: New file.
6743         * tests/test-fma2.h: New file.
6744
6745         New module 'fma'.
6746         * lib/math.in.h (fma): New declaration.
6747         * lib/fma.c: New file.
6748         * m4/fma.m4: New file.
6749         * m4/fegetround.m4: New file.
6750         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6751         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6752         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6753         REPLACE_FMA.
6754         * modules/fma: New file.
6755         * doc/posix-functions/fma.texi: Mention the new module and the various
6756         bugs.
6757
6758         Extend gl_MATHFUNC.
6759         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6760         Support 'void' as argument type.
6761         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6762
6763 2011-11-05  Jim Meyering  <meyering@redhat.com>
6764
6765         maint.mk: also prohibit inclusion of dirent.h without use
6766         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6767
6768 2011-11-05  Bruno Haible  <bruno@clisp.org>
6769
6770         ldexpl tests: Avoid test failure on MSVC 9.
6771         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6772         value. Needed in order to enforce the conversion from a value greater
6773         than LDBL_MAX to Infinity.
6774
6775 2011-11-05  Bruno Haible  <bruno@clisp.org>
6776
6777         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6778         * modules/at-internal: New file, extracted from modules/openat.
6779         * modules/openat-h: New file.
6780         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6781         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6782         * modules/openat (Description): Add reference to POSIX function.
6783         (Files): Remove lib/openat.h, lib/openat-proc.c.
6784         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6785         intprops, unistd.
6786         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6787         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6788         gl_FCNTL_MODULE_INDICATOR.
6789         (Include): Remove unistd.h, openat.h.
6790         * modules/areadlinkat (Files): Add lib/at-func.c.
6791         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6792         openat-die, openat-h, save-cwd.
6793         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6794         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6795         openat-die, openat-h, save-cwd, unistd.
6796         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6797         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6798         openat-h, save-cwd. Remove fcntl-h, openat.
6799         * modules/fchmodat (Files): Remove lib/openat.h.
6800         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6801         openat, stdbool, unistd.
6802         * modules/fchownat (Files): Remove lib/openat.h.
6803         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6804         openat, stdbool, sys_stat.
6805         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6806         lib/openat-proc.c.
6807         (Depends-on): Add at-internal.
6808         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6809         * modules/fstatat (Files): Remove lib/openat.h.
6810         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6811         stdbool, unistd.
6812         * modules/fts (Depends-on): Add openat-h.
6813         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6814         openat.
6815         * modules/mkdirat (Files): Remove lib/openat.h.
6816         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6817         openat, stdbool, sys_stat.
6818         * modules/mkfifoat (Files): Add lib/at-func.c.
6819         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6820         openat-h, save-cwd. Remove fcntl-h, openat.
6821         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6822         * modules/readlinkat (Files): Add lib/at-func.c.
6823         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6824         openat-h, save-cwd. Remove fcntl-h, openat.
6825         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6826         openat.
6827         * modules/selinux-at (Files): Add lib/at-func.c.
6828         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6829         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6830         * modules/symlinkat (Files): Add lib/at-func.c.
6831         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6832         openat-h, save-cwd. Remove fcntl-h, openat.
6833         * modules/unlinkat (Files): Remove lib/openat.h.
6834         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6835         stdbool.
6836         * modules/utimensat (Files): Add lib/at-func.c.
6837         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6838         openat-die, openat-h, save-cwd.
6839         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6840         * modules/fdutimensat-tests (Depends-on): Add openat.
6841         * modules/fstatat-tests (Depends-on): Add openat-h.
6842         * modules/readlinkat-tests (Depends-on): Add openat.
6843         * modules/symlinkat-tests (Depends-on): Add openat.
6844
6845 2011-11-05  Bruno Haible  <bruno@clisp.org>
6846
6847         openat: Include <stdbool.h>.
6848         * lib/openat.c: Include <stdbool.h>.
6849
6850 2011-11-04  Bruno Haible  <bruno@clisp.org>
6851
6852         fchownat, renameat, unlinkat: Fix dependencies.
6853         * modules/fchownat (Depends-on): Add fstatat.
6854         * modules/renameat (Depends-on): Likewise.
6855         * modules/unlinkat (Depends-on): Likewise.
6856
6857 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6858
6859         openat: remove direct dependency on dirent
6860         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6861         and hasn't been needed ever since fdopendir was split into its own
6862         module on 2009-08-31.
6863         * modules/openat (Depends-on): Remove dirent.
6864
6865 2011-11-04  Bruno Haible  <bruno@clisp.org>
6866
6867         renameat: Optimize code size.
6868         * modules/renameat (configure.ac): Don't compile at-func2.c if
6869         REPLACE_RENAMEAT is 1.
6870
6871 2011-11-04  Bruno Haible  <bruno@clisp.org>
6872
6873         openat tests: Fix file list.
6874         * modules/openat-tests (Files): Add tests/test-open.h.
6875
6876 2011-11-04  Bruno Haible  <bruno@clisp.org>
6877
6878         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6879         * modules/fchmodat (Depends-on): Add openat-die.
6880         * modules/fchownat (Depends-on): Likewise.
6881         * modules/linkat (Depends-on): Likewise.
6882         * modules/renameat (Depends-on): Likewise.
6883         * modules/openat (Depends-on): Add dirent.
6884
6885 2011-11-04  Jim Meyering  <meyering@redhat.com>
6886
6887         at-func*.c: fix comments
6888         * lib/at-func2.c: Correct/improve first-line comment.
6889         * lib/at-func.c: Correct grammar in first-line comment.
6890
6891 2011-11-04  Bruno Haible  <bruno@clisp.org>
6892
6893         New module 'mkdirat', split off from module 'openat'.
6894         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6895         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6896         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6897         * modules/mkdirat: New file, extracted from modules/openat.
6898         * modules/openat (Files): Remove lib/mkdirat.c.
6899         (Depends-on): Remove mkdir.
6900         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6901         (Include): Remove <sys/stat.h>.
6902         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6903         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6904         tests/test-mkdir.h.
6905         (Depends-on): Remove ignore-value.
6906         (Makefile.am): Remove rules for test-mkdirat.
6907         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6908         of module 'openat'.
6909         * NEWS: Mention the change.
6910
6911 2011-11-04  Bruno Haible  <bruno@clisp.org>
6912
6913         closedir: Avoid warning on mingw.
6914         * lib/closedir.c: Include <unistd.h>.
6915
6916 2011-11-04  Bruno Haible  <bruno@clisp.org>
6917
6918         New module 'fstatat', split off from module 'openat'.
6919         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6920         defined.
6921         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6922         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6923         gl_FUNC_FSTATAT.
6924         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6925         * modules/fstatat: New file, extracted from modules/openat.
6926         * modules/openat (Files): Remove lib/fstatat.c.
6927         (Depends-on): Remove lstat.
6928         (configure.ac): Remove AC_LIBOBJ of fstatat.
6929         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6930         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6931         tests/test-lstat.h, tests/test-stat.h.
6932         (Depends-on): Remove getcwd-lgpl.
6933         (Makefile.am): Remove rules for test-fstatat.
6934         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6935         of module 'openat'.
6936         * NEWS: Mention the change.
6937         * modules/getcwd (Depends-on): Add fstatat.
6938         * modules/linkat (Depends-on): Likewise.
6939         * modules/mkfifoat-tests (Depends-on): Likewise.
6940         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6941
6942 2011-11-03  Bruno Haible  <bruno@clisp.org>
6943
6944         New module 'unlinkat', split off from module 'openat'.
6945         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6946         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6947         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6948         * modules/unlinkat: New file, extracted from modules/openat. Correct
6949         the dependency conditions.
6950         * modules/openat (Files): Remove lib/unlinkat.c.
6951         (Depends-on): Remove rmdir, unlink.
6952         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6953         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6954         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6955         tests/test-rmdir.h, tests/test-unlink.h.
6956         (Depends-on): Remove unlinkdir.
6957         (Makefile.am): Remove rules for test-unlinkat.
6958         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6959         of module 'openat'.
6960         * NEWS: Mention the change.
6961         * modules/linkat-tests (Depends-on): Add unlinkat.
6962         * modules/mkfifoat-tests (Depends-on): Likewise.
6963         * modules/readlinkat-tests (Depends-on): Likewise.
6964
6965 2011-11-02  Bruno Haible  <bruno@clisp.org>
6966
6967         New module 'fchmodat', split off from module 'openat'.
6968         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6969         defined.
6970         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6971         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6972         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6973         * modules/fchmodat: New file, extracted from modules/openat.
6974         * modules/openat (Files): Remove lib/fchmodat.c.
6975         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6976         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6977         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6978         (Makefile.am): Remove rules for test-fchmodat.
6979         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6980         of module 'openat'.
6981         * NEWS: Mention the change.
6982
6983 2011-11-02  Jim Meyering  <meyering@redhat.com>
6984
6985         putenv: indent #definition of "environ" to placate cppi
6986         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6987
6988         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6989         Git logs are often treated as immutable, because editing them
6990         changes the SHA1 checksums of all descendants.  Thus, errors in
6991         git logs tend to stay there forever.  However, when we generate
6992         a ChangeLog file -- typically for distribution -- from that git log,
6993         we can actually make corrections in the generated file.  The key
6994         lies in recording in machine-readable/applicable form the desired
6995         corrections.  See --help for description and an example.
6996         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6997         (usage): Describe it; alphabetize option descriptions.
6998         (main): Honor the new option, carefully.
6999
7000 2011-11-01  Jim Meyering  <meyering@redhat.com>
7001
7002         gitlog-to-changelog: avoid an infloop
7003         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
7004         that ends up being empty.
7005
7006 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7007
7008         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7009         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7010         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7011         contains (possibly-quoted) backslashes.  This should avoid
7012         all-too-common shell bugs if COMPLICATED contains backslashes in
7013         the "wrong" places.  Reported by David Evans in
7014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7015         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7016         because we want ASCII ranges.  Is there some reason we don't use
7017         the C locale everywhere in this script?
7018         (func_module, top level): Avoid unwanted pathname expansion when
7019         $repo_url_prefix or $repo_url_suffix_repl contain shell
7020         metacharacters like '?' and '*'.
7021
7022 2011-11-01  Bruno Haible  <bruno@clisp.org>
7023
7024         fchownat: Improve description.
7025         * modules/fchownat (Description): Add link to function.
7026
7027 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7028
7029         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7030         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7031         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7032         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7033
7034 2011-11-01  Bruno Haible  <bruno@clisp.org>
7035
7036         alignof: Avoid collision with stdalign module.
7037         * lib/alignof.h (alignof): Remove macro.
7038         * NEWS: Mention the change.
7039         Reported by Paul Eggert.
7040
7041 2011-11-01  Bruno Haible  <bruno@clisp.org>
7042
7043         New module 'fchownat', split off from module 'openat'.
7044         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7045         defined.
7046         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7047         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7048         invoke gl_FUNC_FCHOWNAT.
7049         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7050         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7051         * modules/fchownat: New file, extracted from modules/openat.
7052         * modules/openat (Files): Remove lib/fchownat.c.
7053         (Depends-on): Remove lchown.
7054         (configure.ac): Remove AC_LIBOBJ of fchownat.
7055         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7056         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7057         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7058         (Depends-on): Remove mgetgroups, usleep, stat-time.
7059         (configure.ac): Remove test for getegid.
7060         (Makefile.am): Remove rules for test-fchownat.
7061         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7062         of module 'openat'.
7063         * NEWS: Mention the change.
7064
7065 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7066
7067         stdalign: port better to MSVC and to Sun C 5.11
7068         This fixes some of the problems reported by Bruno Haible in
7069         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7070         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7071         shortcomings of MSVC and of Sun C 5.11.
7072         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7073         around __declspec arg.
7074         * modules/stdalign-tests (Files): Add tests/macros.h.
7075         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7076         Include macros.h, for ASSERT.
7077         (DECLARE_ALIGNED): Remove.
7078         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7079         to catch bug), and to 1 if not (simplifies the rest of the code).
7080         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7081         (CHECK_AUTO): Remove.
7082         (CHECK_ALIGNED): Check only the alignment of the static vars,
7083         since auto var alignment isn't supported by Sun C 5.11.
7084         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7085         ASSERT failures are easier to diagnose.
7086
7087 2011-10-31  Bruno Haible  <bruno@clisp.org>
7088
7089         doc about some IRIX 5.3 problems.
7090         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7091         on IRIX 5.3.
7092         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7093         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7094         5.3.
7095         * doc/posix-functions/grantpt.texi: Likewise.
7096         * doc/posix-functions/unlockpt.texi: Likewise.
7097         * doc/posix-functions/lgamma.texi: Likewise.
7098         * doc/posix-functions/nextafter.texi: Likewise.
7099         * doc/posix-functions/remainder.texi: Likewise.
7100         * doc/posix-functions/select.texi: Mention misplaced declaration on
7101         IRIX 5.3.
7102         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7103
7104 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7105
7106         gitlog-to-changelog: fix git-log invocation.
7107         git-log mishandles date strings before 1970-01-01 UTC, and there is
7108         no use to specify --since=1970-01-01 by default anyway.
7109         * build-aux/gitlog-to-changelog: By default, when no --since option
7110         was given, do not specify explicit --since option to git-log.
7111
7112 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7113
7114         gitlog-to-changelog: new option --append-dot.
7115         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7116         first non-blank line of each commit message terminated with a dot.
7117
7118 2011-10-30  Bruno Haible  <bruno@clisp.org>
7119
7120         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7121         * lib/ffsl.h: Include <config.h>.
7122         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7123
7124 2011-10-30  Jim Meyering  <meyering@redhat.com>
7125
7126         GNUmakefile: reenable "make syntax-check" for most projects
7127         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7128         build-aux variable", "syntax-check" would do nothing but succeed with
7129         the "No version control files detected..." diagnostic (unless you
7130         happened to override _build-aux via cfg.mk).
7131         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7132         to precede inclusion of maint.mk.  Otherwise, these variables would
7133         be used undefined in any project that does not override the default.
7134
7135 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7136
7137         gitlog-to-changelog: treat a message with only blank lines as empty.
7138         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7139         trailing blank lines before the code that issues a warning about an
7140         empty commit message.
7141
7142 2011-10-30  Jim Meyering  <meyering@redhat.com>
7143
7144         test-parse-datetime.c: avoid new DST-related false positive test failure
7145         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
7146         based on the time/date we'll convert, not the current time.
7147         Otherwise, the moment we cross a DST boundary like today's in
7148         Europe, (CEST to CET), that offset ends up being one hour off.
7149
7150 2011-10-27  Bruno Haible  <bruno@clisp.org>
7151
7152         fstat: Tweak documentation.
7153         * modules/fstat (Description): More precise description.
7154
7155 2011-10-27  Bruno Haible  <bruno@clisp.org>
7156
7157         Update documentation regarding 'largefile' module.
7158         * doc/posix-functions/fstat.texi: Tweak wording.
7159         * doc/posix-functions/opendir.texi: Mention that the module fixes the
7160         problems with huge directories and/or small ino_t types.
7161         * doc/posix-functions/readdir.texi: Likewise.
7162         * doc/posix-functions/rewinddir.texi: Likewise.
7163
7164 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
7165
7166         maint.mk: don't maintain a second build-aux variable.
7167         * maint.mk (build_aux): Removed.  The maintainer-makefile module
7168         depends on GNUmakefile, which already maintains a cfg.mk
7169         overridable $(_build-aux) for projects with a non-standard
7170         build-aux directory location, although without the $(srcdir)
7171         prefix.  Use that variable consistently instead of introducing a
7172         second one.  Adjust all call sites.
7173
7174 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7175
7176         Add stdalign module and use it in other modules.
7177         This is based on a previous proposal by Bruno Haible
7178         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
7179
7180         stdalign: new module
7181         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7182         * modules/stdalign: New files.
7183         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7184         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7185
7186         stdalign-tests: new module
7187         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7188
7189         argp: use stdalign
7190         * lib/argp-parse.c: Include <stdalign.h>.
7191         (alignof): Remove.
7192         * modules/argp (Depends-on): Add stdalign.
7193
7194         crypto libraries: use stdalign
7195         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7196         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7197         Do not include <stdlib.h> twice, in md4.c.
7198         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7199         because we are accessing a pointer's bit-pattern, not a size.
7200         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7201         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7202         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7203         * modules/crypto/sha512: Likewise.
7204
7205         sys_socket: use stdalign, not alignof
7206         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7207         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7208
7209 2011-10-27  Bruno Haible  <bruno@clisp.org>
7210
7211         raise test: Avoid a test failure on Linux/MIPS.
7212         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7213         because 99 is a valid signal on Linux/MIPS.
7214
7215 2011-10-27  Bruno Haible  <bruno@clisp.org>
7216
7217         nonblocking tests: Fix test failure on Linux/MIPS.
7218         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7219         Set to 270000.
7220
7221 2011-10-27  Bruno Haible  <bruno@clisp.org>
7222
7223         utimensat: Work around problem on Linux/hppa.
7224         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7225         values.
7226         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7227
7228 2011-10-25  Jim Meyering  <meyering@redhat.com>
7229
7230         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7231         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7232         after symbols like NULL, size_t, etc.
7233         Reported by Alfred M. Szmidt.
7234
7235         maint.mk: exempt ENODATA from a syntax-check rule
7236         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7237         from the sc_prohibit_always-defined_macros syntax-check rule.
7238         Add a comment.  See this for more details:
7239         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
7240
7241 2011-10-23  Jim Meyering  <meyering@redhat.com>
7242
7243         fts: close parent dir FD before returning from post-traversal fts_read
7244         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
7245         unlink A, even though an FD open on A remained.  This is suboptimal
7246         (holding a file descriptor open longer than needed), but otherwise not
7247         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
7248         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
7249         that represents a real problem: it causes the removal of A to fail
7250         with e.g., "rm: cannot remove `A': Device or resource busy"
7251
7252         fts visits each directory twice and keeps a cache (fts_fd_ring) of
7253         directory file descriptors.  After completing the final, FTS_DP,
7254         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7255         cache, but then proceeded to add a new FD to it via the subsequent
7256         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7257         final file descriptor would be closed only via fts_close's call to
7258         fd_ring_clear.  Now, it is usually closed earlier, via the final
7259         FTS_DP-returning fts_read call.
7260         * lib/fts.c (restore_initial_cwd): New function, converted from
7261         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7262         Update callers.
7263         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7264         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7265
7266 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7267             Bruno Haible  <bruno@clisp.org>
7268             Jim Meyering  <jim@meyering.net>
7269
7270         readme-release: improve safety of release prep instructions.
7271         * README-release: Don't git pull all branches when only master
7272         is needed for the release process.
7273         Run make maintainer-clean before changing trees and merging.
7274         Don't try to run ./configure right after git pull in case files
7275         that influence the bootstrap process have changed, move the
7276         ./configure step to after running ./bootstrap.
7277         Don't bootstrap "one last time"... it's the first time!
7278
7279 2011-10-22  Bruno Haible  <bruno@clisp.org>
7280
7281         errno, strerror-override: Support for MSVC 10.
7282         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7283         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7284         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7285         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7286         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7287         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7288         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7289         Assign values compatible with MSVC 10.
7290         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7291         New macros.
7292         (GNULIB_defined_EWINSOCK): New macro.
7293         * lib/strerror-override.c (strerror_override): Update accordingly.
7294         * lib/strerror-override.h: Likewise.
7295         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7296         longer equal to the corresponding errno value.
7297         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7298
7299 2011-10-22  Bruno Haible  <bruno@clisp.org>
7300
7301         perror: Recognize when test program crashes.
7302         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7303         strerror, set gl_cv_func_perror_works to no.
7304         Reported by Daniel Richard G. <skunk@iskunk.org>.
7305
7306         perror: Fix indentation.
7307         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7308
7309 2011-10-22  Bruno Haible  <bruno@clisp.org>
7310
7311         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7312         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7313         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7314         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7315         functions, not as a macro.
7316         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7317         macros.
7318         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7319         absence of macro.
7320         Suggested by Eric Blake.
7321         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7322
7323 2011-10-21  Bruno Haible  <bruno@clisp.org>
7324
7325         relocatable-prog-wrapper: Don't leave object files behind.
7326         * build-aux/install-reloc: Re-synchronize list of .o files to be
7327         removed with list of compilation units.
7328
7329 2011-10-20  Bruno Haible  <bruno@clisp.org>
7330
7331         openpty, posix_openpt: Remove code duplication.
7332         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7333         * lib/openpty.c: Include <stdlib.h>.
7334         (openpty): Use posix_openpt on all platforms except IRIX.
7335         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7336
7337 2011-10-20  Bruno Haible  <bruno@clisp.org>
7338
7339         unlockpt: Detect invalid argument.
7340         * lib/unlockpt.c: Include <fcntl.h>.
7341         (unlockpt): Check whether fd is valid, using fcntl().
7342         * modules/unlockpt (Depends-on): Add fcntl-h.
7343
7344 2011-10-20  Bruno Haible  <bruno@clisp.org>
7345
7346         openpty: Avoid compilation error on AIX 6.1.
7347         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7348
7349 2011-10-20  Bruno Haible  <bruno@clisp.org>
7350
7351         posix_openpt: Support for OpenBSD.
7352         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7353         (posix_openpt) [OpenBSD]: New code.
7354         * lib/grantpt.c: Include <fcntl.h>.
7355         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7356         * modules/grantpt (Depends-on): Add fcntl-h.
7357
7358 2011-10-20  Bruno Haible  <bruno@clisp.org>
7359
7360         posix_openpt test: Coding style.
7361         * tests/test-posix_openpt.c: Use GNU coding style.
7362
7363 2011-10-20  Bruno Haible  <bruno@clisp.org>
7364
7365         grantpt: Support --avoid=pt_chown.
7366         * modules/grantpt (Files): Add lib/pty-private.h.
7367
7368 2011-10-20  Bruno Haible  <bruno@clisp.org>
7369
7370         posix_openpt: Fix autoconf macro.
7371         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7372         unneeded check for _getpty.
7373
7374 2011-10-20  Bruno Haible  <bruno@clisp.org>
7375
7376         openpty: Update comments.
7377         * lib/openpty.c: Add comments about Minix.
7378
7379 2011-10-19  Eric Blake  <eblake@redhat.com>
7380
7381         openpty: relax license
7382         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7383
7384         pt_chown: use configmake to simplify build
7385         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7386
7387         ptsname and others: relax license
7388         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7389         * modules/unlockpt (License): Likewise.
7390         * modules/pt_chown (License): Likewise.
7391         * modules/ptsname (License): Likewise.
7392         * modules/ttyname_r (License): Likewise.
7393
7394 2011-10-19  Jim Meyering  <meyering@redhat.com>
7395
7396         posix_openpt: remove spurious #endif
7397         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7398
7399 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7400
7401         maint.mk: Respect $(build_aux) in web-manual rule.
7402         * top/maint.mk (web-manual): Find gen-announce script in user's
7403         $(build_aux) directory instead of hard-coding 'build-aux'.
7404
7405 2011-10-19  Bruno Haible  <bruno@clisp.org>
7406
7407         posix_openpt: Fix compilation error.
7408         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7409         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7410         Mention the openpty module as an alternative.
7411
7412 2011-10-19  Bruno Haible  <bruno@clisp.org>
7413
7414         Support for old NeXTstep 3.3 frexp().
7415         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7416         execution time of the test to 5 seconds.
7417         Reported by Daniel Richard G. <skunk@iskunk.org>.
7418
7419 2011-10-19  Bruno Haible  <bruno@clisp.org>
7420
7421         Support for old NeXTstep 3.3 sed.
7422         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7423         part, use /.../, not \|...|. Escape periods in the header file name.
7424         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7425         Reported by Daniel Richard G. <skunk@iskunk.org>.
7426
7427 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7428
7429         Support for old NeXTstep 3.3 gcc.
7430         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7431         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7432         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7433         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7434         * lib/regex.h (_Restrict_arr_): Likewise.
7435         * lib/regex_internal.h (re_token_t): Likewise.
7436         * lib/regexec.c (check_node_accept_bytes): Likewise.
7437         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7438
7439 2011-10-18  Eric Blake  <eblake@redhat.com>
7440
7441         posix_openpt: new module
7442         * modules/posix_openpt: New module.
7443         * m4/posix_openpt.m4: New file.
7444         * lib/posix_openpt.c: Likewise.
7445         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7446         (gl_STDLIB_H_DEFAULTS): Set defaults.
7447         * modules/stdlib (Makefile.am): Substitute macros.
7448         * lib/stdlib.in.h (posix_openpt): Declare.
7449         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7450         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7451         * modules/posix_openpt-tests: New test module.
7452         * tests/test-posix_openpt.c: New test.
7453
7454 2011-10-15  Bruno Haible  <bruno@clisp.org>
7455
7456         xstrtoll: Fix compilation failure.
7457         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7458         from lib/strtol.c.
7459         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7460         some platforms.
7461         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7462
7463 2011-10-15  Bruno Haible  <bruno@clisp.org>
7464
7465         vasnprintf: Optimize bit search operation.
7466         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7467         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7468         gl_DOUBLE_EXPONENT_LOCATION.
7469         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7470         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7471         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7472         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7473         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7474         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7475         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7476         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7477         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7478
7479 2011-10-15  Bruno Haible  <bruno@clisp.org>
7480
7481         vasnprintf: Fix comments.
7482         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7483
7484 2011-10-14  Bruno Haible  <bruno@clisp.org>
7485
7486         Tests for module 'integer_length_ll'.
7487         * modules/integer_length_ll-tests: New file.
7488         * tests/test-integer_length_ll.c: New file.
7489
7490         New module 'integer_length_ll'.
7491         * lib/integer_length_ll.c: New file.
7492         * modules/integer_length_ll: New file.
7493
7494 2011-10-14  Bruno Haible  <bruno@clisp.org>
7495
7496         Tests for module 'integer_length_l'.
7497         * modules/integer_length_l-tests: New file.
7498         * tests/test-integer_length_l.c: New file.
7499
7500         New module 'integer_length_l'.
7501         * lib/integer_length_l.c: New file.
7502         * modules/integer_length_l: New file.
7503
7504 2011-10-14  Bruno Haible  <bruno@clisp.org>
7505
7506         Tests for module 'integer_length'.
7507         * modules/integer_length-tests: New file.
7508         * tests/test-integer_length.c: New file.
7509
7510         New module 'integer_length'.
7511         * lib/integer_length.h: New file.
7512         * lib/integer_length.c: New file.
7513         * modules/integer_length: New file.
7514
7515 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7516
7517         popen: Fix dependency conditions.
7518         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7519
7520 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7521
7522         perror: Fix autoconf test.
7523         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7524         <stdlib.h> and <string.h>.
7525
7526 2011-10-14  Bruno Haible  <bruno@clisp.org>
7527
7528         ffsl: Optimize on 64-bit platforms.
7529         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7530         unrolling.
7531
7532 2011-10-13  Bruno Haible  <bruno@clisp.org>
7533
7534         ffsl: Optimize on 32-bit platforms.
7535         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7536         use ffs() without a loop.
7537
7538         ffsl, ffsll: Optimize for GCC.
7539         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7540         * lib/ffsl.c (GCC_BUILTIN): New macro.
7541         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7542
7543 2011-10-13  Bruno Haible  <bruno@clisp.org>
7544
7545         ffs, bcopy, memset: Support symbol renaming via config.h.
7546         * lib/ffs.c: Include <config.h>.
7547         * lib/bcopy.c: Likewise.
7548         * lib/memset.c: Likewise.
7549
7550 2011-10-10  Bruno Haible  <bruno@clisp.org>
7551
7552         atanl: Simplify for platforms where 'long double' == 'double'.
7553         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7554         alternative implementation.
7555         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7556         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7557         * modules/atanl (Depends-on): Add atan. Update conditions.
7558
7559 2011-10-10  Bruno Haible  <bruno@clisp.org>
7560
7561         acosl: Simplify for platforms where 'long double' == 'double'.
7562         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7563         alternative implementation.
7564         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7565         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7566         * modules/acosl (Depends-on): Add acos. Update conditions.
7567
7568 2011-10-10  Bruno Haible  <bruno@clisp.org>
7569
7570         asinl: Simplify for platforms where 'long double' == 'double'.
7571         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7572         alternative implementation.
7573         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7574         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7575         * modules/asinl (Depends-on): Add asin. Update conditions.
7576
7577 2011-10-10  Bruno Haible  <bruno@clisp.org>
7578
7579         tanl: Simplify for platforms where 'long double' == 'double'.
7580         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7581         implementation.
7582         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7583         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7584         * modules/tanl (Depends-on): Add tan. Update conditions.
7585         (configure.ac): Don't compile trigl.c if
7586         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7587
7588 2011-10-10  Bruno Haible  <bruno@clisp.org>
7589
7590         cosl: Simplify for platforms where 'long double' == 'double'.
7591         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7592         implementation.
7593         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7594         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7595         * modules/cosl (Depends-on): Add cos. Update conditions.
7596         (configure.ac): Don't compile sincosl.c and trigl.c if
7597         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7598
7599 2011-10-10  Bruno Haible  <bruno@clisp.org>
7600
7601         sinl: Simplify for platforms where 'long double' == 'double'.
7602         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7603         implementation.
7604         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7605         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7606         * modules/sinl (Depends-on): Add sin. Update conditions.
7607         (configure.ac): Don't compile sincosl.c and trigl.c if
7608         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7609
7610 2011-10-10  Bruno Haible  <bruno@clisp.org>
7611
7612         logl: Simplify for platforms where 'long double' == 'double'.
7613         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7614         implementation.
7615         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7616         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7617         * modules/logl (Depends-on): Add log. Update conditions.
7618
7619 2011-10-10  Bruno Haible  <bruno@clisp.org>
7620
7621         expl: Simplify for platforms where 'long double' == 'double'.
7622         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7623         implementation.
7624         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7625         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7626         * modules/expl (Depends-on): Add exp. Update conditions.
7627
7628 2011-10-10  Bruno Haible  <bruno@clisp.org>
7629
7630         sqrtl: Simplify for platforms where 'long double' == 'double'.
7631         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7632         alternative implementation.
7633         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7634         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7635         * modules/sqrtl (Depends-on): Update conditions.
7636
7637 2011-10-10  Bruno Haible  <bruno@clisp.org>
7638
7639         ldexpl: Simplify for platforms where 'long double' == 'double'.
7640         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7641         alternative implementation.
7642         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7643         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7644         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7645
7646 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7647
7648         ffsll: set correct witness
7649         * modules/ffsll (configure.ac): Fix typo.
7650
7651 2011-10-10  Bruno Haible  <bruno@clisp.org>
7652
7653         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7654         * lib/printf-frexpl.c: Include <config.h>.
7655         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7656         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7657         second time.
7658         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7659         gl_LONG_DOUBLE_VS_DOUBLE.
7660         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7661         conditions.
7662
7663 2011-10-10  Bruno Haible  <bruno@clisp.org>
7664
7665         frexpl: Simplify for platforms where 'long double' == 'double'.
7666         * lib/frexpl.c: Include <config.h>.
7667         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7668         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7669         time.
7670         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7671         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7672         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7673         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7674         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7675         conditions.
7676
7677 2011-10-10  Jim Meyering  <meyering@redhat.com>
7678
7679         test-renameat: don't leave behind a temporary file
7680         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7681           ERROR: files left in build directory after distclean:
7682           ./gltests/test-renameat.too
7683           make[1]: *** [distcleancheck] Error 1
7684         Reported by Tom G. Christensen.
7685
7686 2011-10-09  Bruno Haible  <bruno@clisp.org>
7687
7688         rint: Determine RINT_LIBM correctly on AIX 7.
7689         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7690         directly, not only through a function pointer. Also accept an optional
7691         4th argument with extra code.
7692         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7693         rintf() call by gcc when optimizing.
7694
7695         mathfunc.m4: Refactor.
7696         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7697         m4 variable.
7698
7699 2011-10-09  Bruno Haible  <bruno@clisp.org>
7700
7701         rintl: Simplify for platforms where 'long double' == 'double'.
7702         * lib/rintl.c: Include <config.h>.
7703         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7704         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7705         time.
7706         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7707         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7708         * modules/rintl (Depends-on): Add rint. Update conditions.
7709
7710 2011-10-09  Bruno Haible  <bruno@clisp.org>
7711
7712         roundl: Simplify for platforms where 'long double' == 'double'.
7713         * lib/roundl.c: Include <config.h>.
7714         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7715         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7716         time.
7717         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7718         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7719         * modules/roundl (Depends-on): Add round. Update conditions.
7720
7721 2011-10-09  Bruno Haible  <bruno@clisp.org>
7722
7723         truncl: Simplify for platforms where 'long double' == 'double'.
7724         * lib/truncl.c: Include <config.h>.
7725         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7726         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7727         time.
7728         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7729         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7730         * modules/truncl (Depends-on): Add trunc. Update conditions.
7731
7732 2011-10-09  Bruno Haible  <bruno@clisp.org>
7733
7734         ceill: Simplify for platforms where 'long double' == 'double'.
7735         * lib/ceill.c: Include <config.h>.
7736         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7737         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7738         time.
7739         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7740         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7741         * modules/ceill (Depends-on): Add ceil. Update conditions.
7742
7743 2011-10-09  Bruno Haible  <bruno@clisp.org>
7744
7745         floorl: Simplify for platforms where 'long double' == 'double'.
7746         * lib/floorl.c: Include <config.h>.
7747         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7748         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7749         time.
7750         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7751         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7752         * modules/floorl (Depends-on): Add floor. Update conditions.
7753
7754 2011-10-09  Bruno Haible  <bruno@clisp.org>
7755
7756         rint: Fix ordering constraints.
7757         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7758         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7759         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7760
7761 2011-10-09  Bruno Haible  <bruno@clisp.org>
7762
7763         copysignl: Simplify for platforms where 'long double' == 'double'.
7764         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7765         alternative.
7766         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7767         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7768         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7769
7770 2011-10-09  Bruno Haible  <bruno@clisp.org>
7771
7772         Tests for module 'rintl'.
7773         * modules/rintl-tests: New file.
7774         * tests/test-rintl.c: New file.
7775
7776         New module 'rintl'.
7777         * lib/math.in.h (rintl): New declaration.
7778         * lib/rintl.c: New file.
7779         * m4/rintl.m4: New file.
7780         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7781         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7782         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7783         * modules/rintl: New file.
7784         * tests/test-math-c++.cc: Check the declaration of rintl.
7785         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7786         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7787         * doc/posix-functions/rintl.texi: Mention the new module.
7788
7789 2011-10-09  Bruno Haible  <bruno@clisp.org>
7790
7791         Tests for module 'rintf'.
7792         * modules/rintf-tests: New file.
7793         * tests/test-rintf.c: New file.
7794
7795         New module 'rintf'.
7796         * lib/math.in.h (rintf): New declaration.
7797         * lib/rintf.c: New file.
7798         * m4/rintf.m4: New file.
7799         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7800         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7801         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7802         * modules/rintf: New file.
7803         * tests/test-math-c++.cc: Check the declaration of rintf.
7804         * doc/posix-functions/rintf.texi: Mention the new module.
7805
7806 2011-10-09  Bruno Haible  <bruno@clisp.org>
7807
7808         rint: Support for MSVC.
7809         * lib/math.in.h (rint): New declaration.
7810         * lib/rint.c: New file.
7811         * m4/rint.m4: New file.
7812         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7813         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7814         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7815         * modules/rint (Description): Fix.
7816         (Files): Add lib/rint.c, m4/rint.m4.
7817         (Depends-on): Add math.
7818         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7819         gl_MATH_MODULE_INDICATOR.
7820         * tests/test-math-c++.cc: Check the declaration of rint.
7821         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7822         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7823         * doc/posix-functions/rint.texi: Mention the replacement provided by
7824         the module.
7825
7826         rint tests: More tests.
7827         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7828         minus-zero.h, infinity.h, nan.h.
7829         (main): Skip the test if the current rounding mode is not standard. Add
7830         tests for negative numbers, minus zero, infinity, NaN.
7831         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7832         tests/nan.h.
7833         (Depends-on): Add isnand-nolibm.
7834
7835 2011-10-09  Bruno Haible  <bruno@clisp.org>
7836
7837         Tests for module 'copysignl'.
7838         * modules/copysignl-tests: New file.
7839         * tests/test-copysignl.c: New file.
7840
7841         New module 'copysignl'.
7842         * lib/math.in.h (copysignl): New declaration.
7843         * lib/copysignl.c: New file.
7844         * m4/copysignl.m4: New file.
7845         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7846         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7847         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7848         HAVE_COPYSIGNL.
7849         * modules/copysignl: New file.
7850         * tests/test-math-c++.cc: Check the declaration of copysignl.
7851         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7852         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7853         * doc/posix-functions/copysignl.texi: Mention the new module.
7854
7855 2011-10-09  Bruno Haible  <bruno@clisp.org>
7856
7857         Tests for module 'copysignf'.
7858         * modules/copysignf-tests: New file.
7859         * tests/test-copysignf.c: New file.
7860
7861         New module 'copysignf'.
7862         * lib/math.in.h (copysignf): New declaration.
7863         * lib/copysignf.c: New file.
7864         * m4/copysignf.m4: New file.
7865         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7867         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7868         HAVE_COPYSIGNF.
7869         * modules/copysignf: New file.
7870         * tests/test-math-c++.cc: Check the declaration of copysignf.
7871         * doc/posix-functions/copysignf.texi: Mention the new module.
7872
7873 2011-10-09  Bruno Haible  <bruno@clisp.org>
7874
7875         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7876         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7877         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7878         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7879         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7880         gl_SIGNAL_H_DEFAULTS.
7881
7882 2011-10-09  Bruno Haible  <bruno@clisp.org>
7883
7884         poll: Make macro safer.
7885         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7886         ac_cv_header_poll_h is not set.
7887
7888 2011-10-09  Bruno Haible  <bruno@clisp.org>
7889
7890         copysign: Provide replacement.
7891         * lib/math.in.h (copysign): New declaration.
7892         * lib/copysign.c: New file.
7893         * m4/copysign.m4: New file.
7894         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7895         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7896         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7897         HAVE_COPYSIGN.
7898         * modules/copysign (Description): Clarify.
7899         (Files): Add lib/copysign.c, m4/copysign.m4.
7900         (Depends-on): Add math, signbit.
7901         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7902         gl_MATH_MODULE_INDICATOR.
7903         * tests/test-math-c++.cc: Check the declaration of copysign.
7904         * doc/posix-functions/copysign.texi: Mention the effects of the module
7905         on Minix and MSVC.
7906
7907 2011-10-09  Bruno Haible  <bruno@clisp.org>
7908
7909         isinf: Ensure macro on AIX 5.1.
7910         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7911         macro.
7912         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7913
7914 2011-10-09  Bruno Haible  <bruno@clisp.org>
7915
7916         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7917         * modules/snprintf-posix-tests (configure.ac): Require
7918         gl_LONG_DOUBLE_VS_DOUBLE.
7919         * modules/sprintf-posix-tests (configure.ac): Likewise.
7920         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7921         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7922         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7923         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7924         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7925         tests on platforms where 'long double' is the same as 'double'.
7926         * tests/test-sprintf-posix.h (test_function): Likewise.
7927         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7928         * tests/test-vasprintf-posix.c (test_function): Likewise.
7929
7930         *printf: Fix for platforms where 'long double' == 'double'.
7931         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7932         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7933         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7934         * modules/fprintf-posix (Files): Likewise.
7935         * modules/obstack-printf-posix (Files): Likewise.
7936         * modules/snprintf-posix (Files): Likewise.
7937         * modules/sprintf-posix (Files): Likewise.
7938         * modules/vasnprintf (Files): Likewise.
7939         * modules/vasnprintf-posix (Files): Likewise.
7940         * modules/vasprintf-posix (Files): Likewise.
7941         * modules/vdprintf-posix (Files): Likewise.
7942         * modules/vfprintf-posix (Files): Likewise.
7943         * modules/vsnprintf-posix (Files): Likewise.
7944         * modules/vsprintf-posix (Files): Likewise.
7945         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7946         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7947         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7948         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7949         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7950         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7951         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7952
7953         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7954         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7955         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7956         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7957         'long double'.
7958         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7959
7960         isinf: Fix for platforms where 'long double' == 'double'.
7961         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7962         Don't blindly assume 80-bit 'long double'.
7963
7964         isfinite: Fix for platforms where 'long double' == 'double'.
7965         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7966         Don't blindly assume 80-bit 'long double'.
7967
7968         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7969         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7970         * modules/isfinite-tests (configure.ac): Require
7971         gl_LONG_DOUBLE_VS_DOUBLE.
7972         * modules/isinf-tests (configure.ac): Likewise.
7973         * modules/isnan-tests (configure.ac): Likewise.
7974         * modules/isnanl-tests (configure.ac): Likewise.
7975         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7976         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7977         tests on platforms where 'long double' is the same as 'double'.
7978         * tests/test-isinf.c (test_isinfl): Likewise.
7979         * tests/test-isnan.c (test_long_double): Likewise.
7980         * tests/test-isnanl.h (main): Likewise.
7981
7982 2011-10-08  Bruno Haible  <bruno@clisp.org>
7983
7984         Tests for module 'tanhf'.
7985         * modules/tanhf-tests: New file.
7986         * tests/test-tanhf.c: New file.
7987
7988         New module 'tanhf'.
7989         * lib/math.in.h (tanhf): New declaration.
7990         * lib/tanhf.c: New file.
7991         * m4/tanhf.m4: New file.
7992         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7994         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7995         * modules/tanhf: New file.
7996         * tests/test-math-c++.cc: Check the declaration of tanhf.
7997         * doc/posix-functions/tanhf.texi: Mention the new module.
7998
7999         tanh: Use a .m4 file.
8000         * m4/tanh.m4: New file.
8001         * modules/tanh (Files): Add it.
8002         (configure.ac): Just invoke gl_FUNC_TANH.
8003
8004 2011-10-08  Bruno Haible  <bruno@clisp.org>
8005
8006         Tests for module 'coshf'.
8007         * modules/coshf-tests: New file.
8008         * tests/test-coshf.c: New file.
8009
8010         New module 'coshf'.
8011         * lib/math.in.h (coshf): New declaration.
8012         * lib/coshf.c: New file.
8013         * m4/coshf.m4: New file.
8014         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8016         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8017         * modules/coshf: New file.
8018         * tests/test-math-c++.cc: Check the declaration of coshf.
8019         * doc/posix-functions/coshf.texi: Mention the new module.
8020
8021         cosh: Use a .m4 file.
8022         * m4/cosh.m4: New file.
8023         * modules/cosh (Files): Add it.
8024         (configure.ac): Just invoke gl_FUNC_COSH.
8025
8026 2011-10-08  Bruno Haible  <bruno@clisp.org>
8027
8028         Tests for module 'sinhf'.
8029         * modules/sinhf-tests: New file.
8030         * tests/test-sinhf.c: New file.
8031
8032         New module 'sinhf'.
8033         * lib/math.in.h (sinhf): New declaration.
8034         * lib/sinhf.c: New file.
8035         * m4/sinhf.m4: New file.
8036         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8037         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8038         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8039         * modules/sinhf: New file.
8040         * tests/test-math-c++.cc: Check the declaration of sinhf.
8041         * doc/posix-functions/sinhf.texi: Mention the new module.
8042
8043         sinh: Use a .m4 file.
8044         * m4/sinh.m4: New file.
8045         * modules/sinh (Files): Add it.
8046         (configure.ac): Just invoke gl_FUNC_SINH.
8047
8048 2011-10-08  Bruno Haible  <bruno@clisp.org>
8049
8050         Tests for module 'atan2f'.
8051         * modules/atan2f-tests: New file.
8052         * tests/test-atan2f.c: New file.
8053
8054         New module 'atan2f'.
8055         * lib/math.in.h (atan2f): New declaration.
8056         * lib/atan2f.c: New file.
8057         * m4/atan2f.m4: New file.
8058         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8060         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8061         * modules/atan2f: New file.
8062         * tests/test-math-c++.cc: Check the declaration of atan2f.
8063         * doc/posix-functions/atan2f.texi: Mention the new module.
8064
8065         atan2: Use a .m4 file.
8066         * m4/atan2.m4: New file.
8067         * modules/atan2 (Files): Add it.
8068         (configure.ac): Just invoke gl_FUNC_ATAN2.
8069
8070 2011-10-08  Bruno Haible  <bruno@clisp.org>
8071
8072         Tests for module 'atanf'.
8073         * modules/atanf-tests: New file.
8074         * tests/test-atanf.c: New file.
8075
8076         New module 'atanf'.
8077         * lib/math.in.h (atanf): New declaration.
8078         * lib/atanf.c: New file.
8079         * m4/atanf.m4: New file.
8080         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8081         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8082         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8083         * modules/atanf: New file.
8084         * tests/test-math-c++.cc: Check the declaration of atanf.
8085         * doc/posix-functions/atanf.texi: Mention the new module.
8086
8087         atan: Use a .m4 file.
8088         * m4/atan.m4: New file.
8089         * modules/atan (Files): Add it.
8090         (configure.ac): Just invoke gl_FUNC_ATAN.
8091
8092 2011-10-08  Bruno Haible  <bruno@clisp.org>
8093
8094         Tests for module 'acosf'.
8095         * modules/acosf-tests: New file.
8096         * tests/test-acosf.c: New file.
8097
8098         New module 'acosf'.
8099         * lib/math.in.h (acosf): New declaration.
8100         * lib/acosf.c: New file.
8101         * m4/acosf.m4: New file.
8102         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8103         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8104         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8105         * modules/acosf: New file.
8106         * tests/test-math-c++.cc: Check the declaration of acosf.
8107         * doc/posix-functions/acosf.texi: Mention the new module.
8108
8109         acos: Use a .m4 file.
8110         * m4/acos.m4: New file.
8111         * modules/acos (Files): Add it.
8112         (configure.ac): Just invoke gl_FUNC_ACOS.
8113
8114 2011-10-08  Bruno Haible  <bruno@clisp.org>
8115
8116         Tests for module 'asinf'.
8117         * modules/asinf-tests: New file.
8118         * tests/test-asinf.c: New file.
8119
8120         New module 'asinf'.
8121         * lib/math.in.h (asinf): New declaration.
8122         * lib/asinf.c: New file.
8123         * m4/asinf.m4: New file.
8124         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8125         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8126         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8127         * modules/asinf: New file.
8128         * tests/test-math-c++.cc: Check the declaration of asinf.
8129         * doc/posix-functions/asinf.texi: Mention the new module.
8130
8131         asin: Use a .m4 file.
8132         * m4/asin.m4: New file.
8133         * modules/asin (Files): Add it.
8134         (configure.ac): Just invoke gl_FUNC_ASIN.
8135
8136 2011-10-08  Bruno Haible  <bruno@clisp.org>
8137
8138         Tests for module 'tanf'.
8139         * modules/tanf-tests: New file.
8140         * tests/test-tanf.c: New file.
8141
8142         New module 'tanf'.
8143         * lib/math.in.h (tanf): New declaration.
8144         * lib/tanf.c: New file.
8145         * m4/tanf.m4: New file.
8146         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
8147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
8148         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
8149         * modules/tanf: New file.
8150         * tests/test-math-c++.cc: Check the declaration of tanf.
8151         * doc/posix-functions/tanf.texi: Mention the new module.
8152
8153         tan: Use a .m4 file.
8154         * m4/tan.m4: New file.
8155         * modules/tan (Files): Add it.
8156         (configure.ac): Just invoke gl_FUNC_TAN.
8157
8158 2011-10-08  Bruno Haible  <bruno@clisp.org>
8159
8160         Tests for module 'cosf'.
8161         * modules/cosf-tests: New file.
8162         * tests/test-cosf.c: New file.
8163
8164         New module 'cosf'.
8165         * lib/math.in.h (cosf): New declaration.
8166         * lib/cosf.c: New file.
8167         * m4/cosf.m4: New file.
8168         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
8169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
8170         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
8171         * modules/cosf: New file.
8172         * tests/test-math-c++.cc: Check the declaration of cosf.
8173         * doc/posix-functions/cosf.texi: Mention the new module.
8174
8175         cos: Use a .m4 file.
8176         * m4/cos.m4: New file.
8177         * modules/cos (Files): Add it.
8178         (configure.ac): Just invoke gl_FUNC_COS.
8179
8180 2011-10-08  Bruno Haible  <bruno@clisp.org>
8181
8182         Tests for module 'sinf'.
8183         * modules/sinf-tests: New file.
8184         * tests/test-sinf.c: New file.
8185
8186         New module 'sinf'.
8187         * lib/math.in.h (sinf): New declaration.
8188         * lib/sinf.c: New file.
8189         * m4/sinf.m4: New file.
8190         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8191         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8192         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8193         * modules/sinf: New file.
8194         * tests/test-math-c++.cc: Check the declaration of sinf.
8195         * doc/posix-functions/sinf.texi: Mention the new module.
8196
8197         sin: Use a .m4 file.
8198         * m4/sin.m4: New file.
8199         * modules/sin (Files): Add it.
8200         (configure.ac): Just invoke gl_FUNC_SIN.
8201
8202 2011-10-08  Bruno Haible  <bruno@clisp.org>
8203
8204         Tests for module 'powf'.
8205         * modules/powf-tests: New file.
8206         * tests/test-powf.c: New file.
8207
8208         New module 'powf'.
8209         * lib/math.in.h (powf): New declaration.
8210         * lib/powf.c: New file.
8211         * m4/powf.m4: New file.
8212         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8213         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8214         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8215         * modules/powf: New file.
8216         * tests/test-math-c++.cc: Check the declaration of powf.
8217         * doc/posix-functions/powf.texi: Mention the new module.
8218
8219         pow: Use a .m4 file.
8220         * m4/pow.m4: New file.
8221         * modules/pow (Files): Add it.
8222         (configure.ac): Just invoke gl_FUNC_POW.
8223
8224 2011-10-08  Bruno Haible  <bruno@clisp.org>
8225
8226         Tests for module 'log10f'.
8227         * modules/log10f-tests: New file.
8228         * tests/test-log10f.c: New file.
8229
8230         New module 'log10f'.
8231         * lib/math.in.h (log10f): New declaration.
8232         * lib/log10f.c: New file.
8233         * m4/log10f.m4: New file.
8234         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8235         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8236         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8237         * modules/log10f: New file.
8238         * tests/test-math-c++.cc: Check the declaration of log10f.
8239         * doc/posix-functions/log10f.texi: Mention the new module.
8240
8241         log10: Use a .m4 file.
8242         * m4/log10.m4: New file.
8243         * modules/log10 (Files): Add it.
8244         (configure.ac): Just invoke gl_FUNC_LOG10.
8245
8246 2011-10-08  Bruno Haible  <bruno@clisp.org>
8247
8248         Tests for module 'logf'.
8249         * modules/logf-tests: New file.
8250         * tests/test-logf.c: New file.
8251
8252         New module 'logf'.
8253         * lib/math.in.h (logf): New declaration.
8254         * lib/logf.c: New file.
8255         * m4/logf.m4: New file.
8256         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8257         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8258         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8259         * modules/logf: New file.
8260         * tests/test-math-c++.cc: Check the declaration of logf.
8261         * doc/posix-functions/logf.texi: Mention the new module.
8262
8263         log: Use a .m4 file.
8264         * m4/log.m4: New file.
8265         * modules/log (Files): Add it.
8266         (configure.ac): Just invoke gl_FUNC_LOG.
8267
8268 2011-10-08  Bruno Haible  <bruno@clisp.org>
8269
8270         Tests for module 'expf'.
8271         * modules/expf-tests: New file.
8272         * tests/test-expf.c: New file.
8273
8274         New module 'expf'.
8275         * lib/math.in.h (expf): New declaration.
8276         * lib/expf.c: New file.
8277         * m4/expf.m4: New file.
8278         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8279         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8280         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8281         * modules/expf: New file.
8282         * tests/test-math-c++.cc: Check the declaration of expf.
8283         * doc/posix-functions/expf.texi: Mention the new module.
8284
8285         exp: Use a .m4 file.
8286         * m4/exp.m4: New file.
8287         * modules/exp (Files): Add it.
8288         (configure.ac): Just invoke gl_FUNC_EXP.
8289
8290 2011-10-08  Bruno Haible  <bruno@clisp.org>
8291
8292         Tests for module 'sqrtf'.
8293         * modules/sqrtf-tests: New file.
8294         * tests/test-sqrtf.c: New file.
8295
8296         New module 'sqrtf'.
8297         * lib/math.in.h (sqrtf): New declaration.
8298         * lib/sqrtf.c: New file.
8299         * m4/sqrtf.m4: New file.
8300         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8301         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8302         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8303         * modules/sqrtf: New file.
8304         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8305         * doc/posix-functions/sqrtf.texi: Mention the new module.
8306
8307 2011-10-08  Bruno Haible  <bruno@clisp.org>
8308
8309         Tests: Avoid link failures w.r.t. libintl.
8310         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8311         $(LIBINTL).
8312         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8313         $(LIBINTL).
8314         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8315         against $(LIBINTL).
8316         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8317         $(LIBINTL).
8318         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8319         $(LIBINTL).
8320         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8321
8322 2011-10-08  Bruno Haible  <bruno@clisp.org>
8323
8324         pow tests: Defeat compiler optimizations.
8325         * tests/test-pow.c (main): Assign arguments to x and y before use.
8326
8327 2011-10-08  Bruno Haible  <bruno@clisp.org>
8328
8329         gnulib-tool: Improve last commit.
8330         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8331         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8332         ignore dependencies that are not among the modules list.
8333
8334 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8335
8336         gnulib-tool: don't follow dependencies to avoided modules
8337         This fixes a bug that is related to the previous one.
8338         * gnulib-tool (func_modules_transitive_closure)
8339         (func_emit_autoconf_snippets):
8340         Check whether a dependency is acceptable before using it.
8341         (--extract-dependencies): Report an error if --avoid is also used,
8342         since this combination of options is not yet supported.
8343
8344         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8345         Problem reported by Peter Dyballa in
8346         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8347         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8348         when echoing "$condition".
8349
8350 2011-10-07  Bruno Haible  <bruno@clisp.org>
8351
8352         Fix documentation about math functions on MacOS X.
8353         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8354         MacOS X 10.5.
8355         * doc/posix-functions/fdim.texi: Likewise.
8356         * doc/posix-functions/feclearexcept.texi: Likewise.
8357         * doc/posix-functions/fegetenv.texi: Likewise.
8358         * doc/posix-functions/fegetround.texi: Likewise.
8359         * doc/posix-functions/feholdexcept.texi: Likewise.
8360         * doc/posix-functions/feraiseexcept.texi: Likewise.
8361         * doc/posix-functions/fesetenv.texi: Likewise.
8362         * doc/posix-functions/fesetround.texi: Likewise.
8363         * doc/posix-functions/fetestexcept.texi: Likewise.
8364         * doc/posix-functions/feupdateenv.texi: Likewise.
8365         * doc/posix-functions/fmax.texi: Likewise.
8366         * doc/posix-functions/fmin.texi: Likewise.
8367         * doc/posix-functions/log2.texi: Likewise.
8368         * doc/posix-functions/modff.texi: Likewise.
8369         * doc/posix-functions/nan.texi: Likewise.
8370         * doc/posix-functions/nanf.texi: Likewise.
8371         * doc/posix-functions/nextafterf.texi: Likewise.
8372         * doc/posix-functions/remquo.texi: Likewise.
8373
8374 2011-10-07  Bruno Haible  <bruno@clisp.org>
8375
8376         modff: Drop assumption about library that defines modff.
8377         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8378         AC_CHECK_FUNCS.
8379         * modules/modff (Files): Add m4/mathfunc.m4.
8380
8381 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8382
8383         raise tests: Avoid a GCC warning.
8384         * tests/test-raise.c (handler): Use _Noreturn.
8385
8386 2011-10-07  Bruno Haible  <bruno@clisp.org>
8387
8388         Tests for module 'ldexpf'.
8389         * modules/ldexpf-tests: New file.
8390         * tests/test-ldexpf.c: New file.
8391
8392         New module 'ldexpf'.
8393         * lib/math.in.h (ldexpf): New declaration.
8394         * lib/ldexpf.c: New file.
8395         * m4/ldexpf.m4: New file.
8396         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8397         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8398         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8399         * modules/ldexpf: New file.
8400         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8401         * doc/posix-functions/ldexpf.texi: Mention the new module.
8402
8403 2011-10-06  Bruno Haible  <bruno@clisp.org>
8404
8405         frexpf: Work around problems on IRIX and mingw.
8406         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8408         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8409         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8410         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8411         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8412         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8413
8414 2011-10-06  Bruno Haible  <bruno@clisp.org>
8415
8416         fabsf: Drop assumption about library that defines fabsf.
8417         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8418         AC_CHECK_FUNCS.
8419         * modules/fabsf (Files): Add m4/mathfunc.m4.
8420
8421 2011-10-06  Bruno Haible  <bruno@clisp.org>
8422
8423         frexpf: Drop assumption about library that defines frexpf.
8424         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8425         'int *', 'float *', 'long double *', 'float', 'long double'.
8426         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8427         AC_CHECK_FUNCS.
8428         * modules/frexpf (Files): Add m4/mathfunc.m4.
8429
8430         Tests for module 'frexpf'.
8431         * modules/frexpf-tests: New file.
8432         * tests/test-frexpf.c: New file.
8433
8434         New module 'frexpf'.
8435         * lib/math.in.h (frexpf): New declaration.
8436         * lib/frexpf.c: New file.
8437         * m4/frexpf.m4: New file.
8438         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8439         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8440         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8441         * modules/frexpf: New file.
8442         * tests/test-math-c++.cc: Check the declaration of frexpf.
8443         * doc/posix-functions/frexpf.texi: Mention the new module.
8444
8445 2011-10-06  Bruno Haible  <bruno@clisp.org>
8446
8447         math: Sort function declarations of math.in.h.
8448         * lib/math.in.h (frexp, logb): Move declarations.
8449
8450 2011-10-05  Bruno Haible  <bruno@clisp.org>
8451
8452         Tests for module 'modff'.
8453         * modules/modff-tests: New file.
8454         * tests/test-modff.c: New file.
8455
8456         New module 'modff'.
8457         * lib/math.in.h (modff): New declaration.
8458         * lib/modff.c: New file.
8459         * m4/modff.m4: New file.
8460         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8461         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8462         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8463         * modules/modff: New file.
8464         * tests/test-math-c++.cc: Check the declaration of modff.
8465         * doc/posix-functions/modff.texi: Mention the new module.
8466
8467         modf tests: Make test sharper.
8468         * tests/test-modf.c (main): Strengthen upper bound.
8469
8470         modf: Use a .m4 file.
8471         * m4/modf.m4: New file.
8472         * modules/modf (Files): Add it.
8473         (configure.ac): Just invoke gl_FUNC_MODF.
8474
8475 2011-10-05  Bruno Haible  <bruno@clisp.org>
8476
8477         Tests for module 'fmodf'.
8478         * modules/fmodf-tests: New file.
8479         * tests/test-fmodf.c: New file.
8480
8481         New module 'fmodf'.
8482         * lib/math.in.h (fmodf): New declaration.
8483         * lib/fmodf.c: New file.
8484         * m4/fmodf.m4: New file.
8485         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8487         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8488         * modules/fmodf: New file.
8489         * tests/test-math-c++.cc: Check the declaration of fmodf.
8490         * doc/posix-functions/fmodf.texi: Mention the new module.
8491
8492         fmod: Use a .m4 file.
8493         * m4/fmod.m4: New file.
8494         * modules/fmod (Files): Add it.
8495         (configure.ac): Just invoke gl_FUNC_FMOD.
8496
8497 2011-10-05  Bruno Haible  <bruno@clisp.org>
8498
8499         Tests for module 'fabsf'.
8500         * modules/fabsf-tests: New file.
8501         * tests/test-fabsf.c: New file.
8502
8503         New module 'fabsf'.
8504         * lib/math.in.h (fabsf): New declaration.
8505         * lib/fabsf.c: New file.
8506         * m4/fabsf.m4: New file.
8507         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8509         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8510         * modules/fabsf: New file.
8511         * tests/test-math-c++.cc: Check the declaration of fabsf.
8512         * doc/posix-functions/fabsf.texi: Mention the new module.
8513
8514         fabs: Use a .m4 file.
8515         * m4/fabs.m4: New file.
8516         * modules/fabs (Files): Add it.
8517         (configure.ac): Just invoke gl_FUNC_FABS.
8518
8519 2011-10-05  Jim Meyering  <meyering@redhat.com>
8520
8521         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8522         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8523         ls -lL regression introduced in coreutils-8.12, it does so at the
8524         cost of an additional stat call in the common case.  Besides, now
8525         that the kernel change that prompted commit 95f7c57f has been reverted
8526         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8527         we have no use for commit 95f7c57f, "file-has-acl: use
8528         acl_extended_file_nofollow if available".
8529
8530 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8531
8532         file-has-acl: revert unintended change in behavior of ls -L
8533         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8534         derived from...
8535         (file_has_acl): ...code here.  Call it.
8536         This problem was introduced with 2011-07-22 commit 95f7c57f,
8537         "file-has-acl: use acl_extended_file_nofollow if available".
8538         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8539
8540 2011-10-03  Bruno Haible  <bruno@clisp.org>
8541
8542         poll: Avoid link errors on MSVC.
8543         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8544         * modules/poll (Depends-on): Add sockets.
8545         (Link): New section.
8546         * NEWS: Mention the change.
8547         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8548         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8549         $(LIB_POLL) instead of $(LIBSOCKET).
8550
8551 2011-10-03  Bruno Haible  <bruno@clisp.org>
8552
8553         sys_select tests: Fix link error on MSVC 9.
8554         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8555         with $(LIB_SELECT) instead of $(LIBSOCKET).
8556
8557 2011-10-03  Bruno Haible  <bruno@clisp.org>
8558
8559         sys_select: Fix compilation error on mingw.
8560         * lib/sys_select.in.h: On native Windows, include <io.h>.
8561
8562 2011-10-03  Bruno Haible  <bruno@clisp.org>
8563
8564         wmemset: Support for MSVC.
8565         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8566         whether wmemset() exists.
8567
8568 2011-10-03  Bruno Haible  <bruno@clisp.org>
8569
8570         wmemmove: Support for MSVC.
8571         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8572         whether wmemmove() exists.
8573
8574 2011-10-03  Bruno Haible  <bruno@clisp.org>
8575
8576         wmemcpy: Support for MSVC.
8577         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8578         whether wmemcpy() exists.
8579
8580 2011-10-03  Bruno Haible  <bruno@clisp.org>
8581
8582         wmemcmp: Support for MSVC.
8583         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8584         whether wmemcmp() exists.
8585
8586 2011-10-03  Bruno Haible  <bruno@clisp.org>
8587
8588         wmemchr: Support for MSVC.
8589         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8590         whether wmemchr() exists.
8591
8592 2011-10-03  Bruno Haible  <bruno@clisp.org>
8593
8594         glthread/*, strsignal: Support for MSVC.
8595         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8596         including <winsock.h> on MSVC 9.
8597         * lib/glthread/lock.h: Likewise.
8598         * lib/glthread/thread.h: Likewise.
8599         * lib/glthread/tls.h: Likewise.
8600         * lib/glthread/yield.h: Likewise.
8601         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8602         if HAVE_UNISTD_H is false.
8603         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8604
8605 2011-10-03  Bruno Haible  <bruno@clisp.org>
8606
8607         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8608         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8609         Set to 100000.
8610
8611 2011-10-03  Bruno Haible  <bruno@clisp.org>
8612
8613         acl: Fix specification.
8614         * lib/file-has-acl.c (file_has_acl): Fix specification.
8615
8616 2011-10-03  Bruno Haible  <bruno@clisp.org>
8617
8618         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8619         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8620         (compute_curr_prefix, shared_library_fullname,
8621         find_shared_library_fullname, get_shared_library_fullname, relocate):
8622         Use it together with PIC && INSTALLDIR.
8623         Reported by <jojelino@gmail.com>
8624         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8625
8626 2011-10-01  Jim Meyering  <meyering@redhat.com>
8627
8628         maint.mk: adjust a release-related rule not to require use of gzip
8629         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8630         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8631         projects that build only .tar.xz files.  Also fix an erroneous test.
8632
8633         test-linkat: don't leave behind a temporary file
8634         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8635         Otherwise, coreutils' "make distcheck" would fail with this:
8636           Only in /c/cu/tests/torture/coreutils/test/\
8637             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8638           make[2]: *** [my-distcheck] Error 1
8639
8640         float, math: add omitted file
8641         * lib/itold.c: Add file, required for yesterday's float change.
8642
8643 2011-10-01  Bruno Haible  <bruno@clisp.org>
8644
8645         isinf: Fix for OpenBSD/x86.
8646         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8647         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8648         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8649
8650 2011-10-01  Bruno Haible  <bruno@clisp.org>
8651
8652         isfinite: Fix syntax error in configure test.
8653         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8654
8655         isfinite: Fix typo.
8656         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8657         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8658
8659 2011-10-01  Bruno Haible  <bruno@clisp.org>
8660
8661         nonblocking tests: Fix test failure on Linux/IA-64.
8662         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8663         Set to 270000.
8664
8665 2011-10-01  Bruno Haible  <bruno@clisp.org>
8666
8667         mkfifoat tests: Fix a test failure on mingw.
8668         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8669         with error ENOSYS.
8670
8671 2011-09-30  Bruno Haible  <bruno@clisp.org>
8672
8673         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8674         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8675         'long double'. Set REPLACE_ITOLD.
8676         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8677         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8678         * lib/itold.c: New file.
8679         * modules/float (Files): Add lib/itold.c.
8680         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8681         (Makefile.am): Substitute REPLACE_ITOLD.
8682         * modules/math (Depends-on): Add float.
8683         (Makefile.am): Substitute REPLACE_ITOLD.
8684         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8685         * doc/posix-headers/math.texi: Likewise.
8686         * doc/posix-functions/logl.texi: Likewise.
8687
8688 2011-09-30  Bruno Haible  <bruno@clisp.org>
8689
8690         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8691         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8692         Set to 140000.
8693
8694 2011-09-30  Bruno Haible  <bruno@clisp.org>
8695
8696         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8697         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8698         invocation, say "right after AC_PROG_CC_STDC", not "right after
8699         AC_PROG_CC".
8700         Reported by Gary V. Vaughan <gary@gnu.org>.
8701
8702 2011-09-30  Bruno Haible  <bruno@clisp.org>
8703
8704         Centralize C99 requirement.
8705         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8706         * modules/stdarg (configure.ac-early): Invoke it instead of
8707         AC_PROG_CC_STDC.
8708         Reported by Gary V. Vaughan and Paul Eggert.
8709
8710 2011-09-29  Bruno Haible  <bruno@clisp.org>
8711
8712         float: Fix LDBL_MAX value on Linux/PowerPC.
8713         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8714         on Linux/PowerPC.
8715         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8716         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8717         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8718         platform.
8719         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8720
8721 2011-09-29  Bruno Haible  <bruno@clisp.org>
8722
8723         doc: Improve doc about gl_EARLY.
8724         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8725         AC_PROG_CC_STDC invocation.
8726         Reported by Gary V. Vaughan <gary@gnu.org>.
8727
8728 2011-09-28  Bruno Haible  <bruno@clisp.org>
8729
8730         fgetc, fputc, fread, fwrite tests: Fix link error.
8731         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8732         on non-MSVC platforms.
8733         * tests/test-fputc.c (main): Likewise.
8734         * tests/test-fread.c (main): Likewise.
8735         * tests/test-fwrite.c (main): Likewise.
8736         Reported by Jim Meyering.
8737
8738 2011-09-27  Bruno Haible  <bruno@clisp.org>
8739
8740         fputc, fwrite tests: Avoid test failure on MSVC.
8741         * tests/test-fgetc.c: Include msvc-inval.h.
8742         (main): Invoke gl_msvc_inval_ensure_handler.
8743         * tests/test-fputc.c: Include msvc-inval.h.
8744         (main): Invoke gl_msvc_inval_ensure_handler.
8745         * tests/test-fread.c: Include msvc-inval.h.
8746         (main): Invoke gl_msvc_inval_ensure_handler.
8747         * tests/test-fwrite.c: Include msvc-inval.h.
8748         (main): Invoke gl_msvc_inval_ensure_handler.
8749         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8750         * modules/fputc-tests (Depends-on): Likewise.
8751         * modules/fread-tests (Depends-on): Likewise.
8752         * modules/fwrite-tests (Depends-on): Likewise.
8753
8754 2011-09-27  Bruno Haible  <bruno@clisp.org>
8755
8756         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8757         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8758         (raise): Remove older, duplicated declaration.
8759         (_gl_raise_SIGPIPE): New declaration.
8760         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8761         (rpl_raise): Remove function.
8762         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8763         a gnulib-defined SIGPIPE here.
8764         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8765         'sigprocmask' has detected missing signal-blocking and the module
8766         'sigpipe' is enabled.
8767         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8768
8769 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8770
8771         base64-tests: avoid memory leak
8772         * tests/test-base64.c (main): Plug memory leak.
8773
8774         base32: new module
8775         * modules/base32: New module.
8776         * lib/base32.c: New file.
8777         * lib/base32.h: Likewise.
8778         * m4/base32.m4: Likewise.
8779         * modules/base32-tests: New test.
8780         * tests/test-base32.c: Likewise.
8781         * MODULES.html.sh (Misc): Mention it.
8782
8783 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8784
8785         gnulib: use more-standard license notice wording
8786         * gnulib-tool (func_emit_copyright_notice): When emitting a
8787         license notice into a file, use the standard wording as suggested
8788         by the current information for GNU maintainers, except say "file"
8789         rather than "program".  The new wording gives a license version
8790         number, which addresses an issue raised by Glenn Morris in
8791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8792         * m4/onceonly.m4: Use that same wording here, too.
8793
8794         dup2: minor simplification
8795         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8796         as lib/dup2.c no longer uses 'inline'.
8797
8798 2011-09-25  Bruno Haible  <bruno@clisp.org>
8799
8800         strings: Fix compilation error on MSVC.
8801         * lib/strings.in.h: Include <stddef.h> for size_t.
8802
8803 2011-09-25  Bruno Haible  <bruno@clisp.org>
8804
8805         fflush et al.: Document limitation on MSVC.
8806         * doc/posix-functions/fflush.texi: Document possible crash in handling
8807         mode other than DEFAULT_HANDLING.
8808         * doc/posix-functions/fgetc.texi: Likewise.
8809         * doc/posix-functions/fputc.texi: Likewise.
8810         * doc/posix-functions/fread.texi: Likewise.
8811         * doc/posix-functions/fwrite.texi: Likewise.
8812
8813 2011-09-25  Bruno Haible  <bruno@clisp.org>
8814
8815         msvc-inval: Allow three invalid parameter handling modes.
8816         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8817         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8818         macros.
8819         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8820         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8821         SANE_LIBRARY_HANDLING as a no-op.
8822         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8823         <stdlib.h>.
8824         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8825
8826 2011-09-25  Bruno Haible  <bruno@clisp.org>
8827
8828         msvc-inval: Make handler multithread-safe.
8829         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8830         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8831         declarations.
8832         (gl_msvc_inval_current): New declaration.
8833         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8834         Operate on the structure returned by gl_msvc_inval_current().
8835         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8836         Remove varaiables.
8837         (tls_index, tls_initialized): New variables.
8838         (not_per_thread): New variable.
8839         (gl_msvc_inval_current): New function.
8840         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8841         returned by gl_msvc_inval_current().
8842
8843 2011-09-25  Bruno Haible  <bruno@clisp.org>
8844
8845         msvc-inval: Install handler globally.
8846         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8847         !_MSC_VER.
8848         (gl_msvc_invalid_parameter_handler): Remove declaration.
8849         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8850         declarations.
8851         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8852         Install the handler globally, don't uninstall it.
8853         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8854         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8855         currently valid, call RaiseException instead.
8856         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8857         for !_MSC_VER.
8858
8859 2011-09-25  Bruno Haible  <bruno@clisp.org>
8860
8861         strerror_r-posix: Fix for MSVC 9.
8862         * lib/strerror_r.c (local_snprintf): New function.
8863         (snprintf): Define to local_snprintf, not to _snprintf.
8864
8865 2011-09-25  Bruno Haible  <bruno@clisp.org>
8866
8867         ftruncate: Support for MSVC 9.
8868         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8869         (chsize_nothrow): New function.
8870         (chsize): Redefine as a macro.
8871         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8872         * modules/ftruncate (Depends-on): Add msvc-inval.
8873
8874 2011-09-25  Bruno Haible  <bruno@clisp.org>
8875
8876         New module 'fstat'.
8877         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8878         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8879         * lib/fchdir.c (rpl_fstat): Remove function.
8880         * m4/fstat.m4: New file.
8881         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8882         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8883         declared.
8884         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8885         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8886         * modules/fstat: New file.
8887         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8888         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8889         is set.
8890         * doc/posix-functions/fstat.texi: Mention the new module and the
8891         problem on MSVC.
8892         * NEWS: Mention the change.
8893         * modules/acl (Depends-on): Add fstat.
8894         * modules/chdir-safer (Depends-on): Likewise.
8895         * modules/chown (Depends-on): Likewise.
8896         * modules/copy-file (Depends-on): Likewise.
8897         * modules/fchdir (Depends-on): Likewise.
8898         * modules/fdopendir (Depends-on): Likewise.
8899         * modules/fopen (Depends-on): Likewise.
8900         * modules/fts (Depends-on): Likewise.
8901         * modules/getcwd (Depends-on): Likewise.
8902         * modules/isapipe (Depends-on): Likewise.
8903         * modules/linkat (Depends-on): Likewise.
8904         * modules/lseek (Depends-on): Likewise.
8905         * modules/mkdir-p (Depends-on): Likewise.
8906         * modules/open (Depends-on): Likewise.
8907         * modules/openat (Depends-on): Likewise.
8908         * modules/read-file (Depends-on): Likewise.
8909         * modules/renameat (Depends-on): Likewise.
8910         * modules/utimens (Depends-on): Likewise.
8911
8912 2011-09-25  Bruno Haible  <bruno@clisp.org>
8913
8914         linkat: Fix compilation on MSVC 9.
8915         * lib/linkat.c: Don't include <stdint.h>.
8916
8917 2011-09-25  Bruno Haible  <bruno@clisp.org>
8918
8919         fclose: Support for MSVC 9.
8920         * lib/fclose.c: Include msvc-inval.h.
8921         (fclose_nothrow): New function.
8922         (rpl_fclose): Use it.
8923         * modules/fclose (Depends-on): Add msvc-inval.
8924         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8925
8926 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8927
8928         dup2: minor simplifications
8929         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8930         that it's a performance win.
8931         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8932         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8933
8934 2011-09-24  Jim Meyering  <meyering@redhat.com>
8935
8936         test-futimens: avoid a warning from gcc -Wshadow
8937         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8938         to avoid a shadowing warning.
8939
8940 2011-09-24  Bruno Haible  <bruno@clisp.org>
8941
8942         fdopen: Support for MSVC 9.
8943         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8944         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8945         * lib/fdopen.c: Include msvc-inval.h.
8946         (fdopen_nothrow): New function.
8947         (rpl_fdopen): Use it.
8948         * modules/fdopen (Depends-on): Add msvc-inval.
8949         * modules/fclose-tests (Depends-on): Add fdopen.
8950         * modules/fflush-tests (Depends-on): Likewise.
8951         * modules/fgetc-tests (Depends-on): Likewise.
8952         * modules/fputc-tests (Depends-on): Likewise.
8953         * modules/fread-tests (Depends-on): Likewise.
8954         * modules/freopen-tests (Depends-on): Likewise.
8955         * modules/fseeko-tests (Depends-on): Likewise.
8956         * modules/ftello-tests (Depends-on): Likewise.
8957         * modules/fwrite-tests  (Depends-on): Likewise.
8958         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8959
8960 2011-09-24  Bruno Haible  <bruno@clisp.org>
8961
8962         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8963         * modules/fgetc-tests (Depends-on): Add unistd.
8964         * modules/fputc-tests (Depends-on): Likewise.
8965         * modules/fread-tests (Depends-on): Likewise.
8966         * modules/fwrite-tests (Depends-on): Likewise.
8967
8968 2011-09-24  Bruno Haible  <bruno@clisp.org>
8969
8970         dup: Simplify autoconf test.
8971         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8972         on gl_MSVC_INVAL's result.
8973
8974 2011-09-24  Bruno Haible  <bruno@clisp.org>
8975
8976         Tests for function fwrite().
8977         * modules/fwrite-tests: New file.
8978         * tests/test-fwrite.c: New file.
8979         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8980
8981         Tests for function fread().
8982         * modules/fread-tests: New file.
8983         * tests/test-fread.c: New file.
8984         * modules/stdio-tests (Depends-on): Add fread-tests.
8985
8986         Activate fputc tests.
8987         * modules/stdio-tests (Depends-on): Add fputc-tests.
8988
8989         Enhance fgetc, fputc tests.
8990         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8991         * tests/test-fputc.c (main): Likewise.
8992
8993 2011-09-24  Bruno Haible  <bruno@clisp.org>
8994
8995         write: Support for MSVC 9.
8996         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8997         is not 1.
8998         * lib/write.c (write_nothrow): New function.
8999         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
9000         not 1. Use write_nothrow.
9001         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
9002         invalid parameter handler.
9003         (gl_PREREQ_WRITE): New macro.
9004         * modules/write (Depends-on): Add msvc-inval.
9005         (configure.ac): Invoke gl_PREREQ_WRITE.
9006         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9007
9008 2011-09-24  Bruno Haible  <bruno@clisp.org>
9009
9010         read: Fix last commit.
9011         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9012
9013 2011-09-24  Bruno Haible  <bruno@clisp.org>
9014
9015         dup2: Fix last commit.
9016         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9017         (rpl_dup2): Disable fcntl workaround on native Windows.
9018
9019         sigprocmask: Make code safer.
9020         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9021         section that changes macro definitions for this compilation unit.
9022
9023 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9024
9025         dup2: clarify by coalescing Windows-specific material
9026         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9027         "msvc-nothrow.h"' to the Windows-specific section, so that the
9028         Emacs source need not contain these include files.
9029         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9030         Windows-specific fixes into this function rather than just the
9031         nothrow fix, as this shortens and clarifies the code.  Always
9032         define as a function, as that's a bit cleaner than having it be
9033         sometimes a function and sometimes a macro.
9034         (rpl_dup2): Move the Windows-specific stuff out of here and into
9035         ms_windows_dup2.  Don't protect the Haiku-related fix with
9036         "#if !defined __linux__", as the same code also works around
9037         a Linux kernel bug, and it doesn't add any system calls on any
9038         platform.  Add comment about FreeBSD 6.1.
9039
9040         sigprocmask: move #include directive
9041         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9042         Windows-specific section, so that the Emacs source need not
9043         contain msvc-inval.h.
9044
9045 2011-09-23  Bruno Haible  <bruno@clisp.org>
9046
9047         read: Support for MSVC 9.
9048         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9049         is not 1.
9050         * lib/read.c (read_nothrow): New function.
9051         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9052         read_nothrow.
9053         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9054         invalid parameter handler.
9055         (gl_PREREQ_READ): New macro.
9056         * modules/read (Depends-on): Add msvc-inval.
9057         (configure.ac): Invoke gl_PREREQ_READ.
9058         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9059
9060 2011-09-23  Bruno Haible  <bruno@clisp.org>
9061
9062         close: Support for MSVC 9.
9063         * lib/close.c: Include <errno.h>, msvc-inval.h.
9064         (close_nothrow): New function.
9065         (rpl_close): Use it.
9066         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9067         invalid parameter handler.
9068         * modules/close (Depends-on): Add msvc-inval.
9069         * modules/dup2-tests (Depends-on): Add close.
9070         * modules/dup3-tests (Depends-on): Likewise.
9071         * modules/fcntl-tests (Depends-on): Likewise.
9072         * modules/spawn-pipe-tests (Depends-on): Likewise.
9073         * modules/unistd-safer-tests (Depends-on): Likewise.
9074         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9075
9076 2011-09-23  Bruno Haible  <bruno@clisp.org>
9077
9078         New module 'dup'.
9079         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9080         Allow replacement.
9081         * lib/dup.c: New file.
9082         * lib/fchdir.c (rpl_dup): Remove function.
9083         * m4/dup.m4: New file.
9084         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9085         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9086         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9087         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9088         * modules/dup: New file.
9089         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9090         'dup' module is in use.
9091         * modules/fdopendir (Depends-on): Add dup.
9092         * modules/fdutimensat-tests (Depends-on): Likewise.
9093         * modules/fts (Depends-on): Likewise.
9094         * modules/futimens-tests (Depends-on): Likewise.
9095         * modules/posix_spawnp-tests (Depends-on): Likewise.
9096         * modules/unistd-safer-tests (Depends-on): Likewise.
9097         * modules/utimens-tests (Depends-on): Likewise.
9098         * doc/posix-functions/dup.texi: Mention the new module and the problem
9099         on MSVC.
9100
9101 2011-09-23  Bruno Haible  <bruno@clisp.org>
9102
9103         getdtablesize: Support for MSVC 9.
9104         * lib/getdtablesize.c: Include msvc-inval.h.
9105         (_setmaxstdio_nothrow): New function.
9106         (_setmaxstdio): Redefine it.
9107         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9108         * modules/getdtablesize (Depends-on): Add msvc-inval.
9109         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9110
9111 2011-09-23  Bruno Haible  <bruno@clisp.org>
9112
9113         signal-h: Rename from signal.
9114         * modules/signal-h: Renamed from modules/signal.
9115         * modules/pthread_sigmask (Depends-on): Update.
9116         * modules/raise (Depends-on): Likewise.
9117         * modules/sigaction (Depends-on): Likewise.
9118         * modules/sigpipe (Depends-on): Likewise.
9119         * modules/sigprocmask (Depends-on): Likewise.
9120         * modules/sys_select (Depends-on): Likewise.
9121         * modules/signal-h-tests: Renamed from modules/signal-tests.
9122         (Files, Depends-on, Makefile.am): Update.
9123         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9124         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9125         (Files, Makefile.am): Update.
9126         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9127         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9128         * modules/signal: New placeholder file.
9129         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9130         * doc/posix-headers/signal.texi: Update.
9131         * NEWS: Mention the change.
9132
9133 2011-09-23  Bruno Haible  <bruno@clisp.org>
9134
9135         sigprocmask: Avoid crashes through signal() on MSVC 9.
9136         * lib/sigprocmask.c: Include msvc-inval.h.
9137         (signal_nothrow): New function.
9138         (signal): Redefine it.
9139         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9140         * modules/sigprocmask (Depends-on): Add msvc-inval.
9141         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9142
9143 2011-09-23  Bruno Haible  <bruno@clisp.org>
9144
9145         Tests for module 'raise'.
9146         * modules/raise-tests: New file.
9147         * tests/test-raise.c: New file.
9148
9149         raise: Support for MSVC.
9150         * lib/signal.in.h (raise): New declaration.
9151         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
9152         for native Windows platforms.
9153         * m4/raise.m4: New file.
9154         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
9155         HAVE_RAISE, REPLACE_RAISE.
9156         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
9157         REPLACE_RAISE.
9158         * modules/raise (Status, Notice): Remove fields.
9159         (Files): Add m4/raise.m4.
9160         (Depends-on): Add signal, msvc-inval.
9161         (configure.ac): Use the common idioms.
9162         (Maintainer): Add me.
9163         * tests/test-signal-c++.cc: Check the signature of raise.
9164         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
9165
9166 2011-09-23  Bruno Haible  <bruno@clisp.org>
9167
9168         pipe2: Fix compilation on pre-C99 compilers.
9169         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
9170
9171 2011-09-23  Bruno Haible  <bruno@clisp.org>
9172
9173         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
9174         * lib/msvc-nothrow.h: New file.
9175         * lib/msvc-nothrow.c: New file.
9176         * m4/msvc-nothrow.m4: New file.
9177         * modules/msvc-nothrow: New file.
9178         * lib/dup2.c: Include msvc-nothrow.h.
9179         (rpl_dup2): No need to protect _get_osfhandle call here.
9180         * lib/accept4.c: Include msvc-nothrow.h.
9181         * lib/error.c: Likewise.
9182         * lib/fcntl.c: Likewise.
9183         * lib/lseek.c: Likewise.
9184         * lib/nonblocking.c: Likewise.
9185         * lib/poll.c: Likewise.
9186         * lib/read.c: Likewise.
9187         * lib/select.c: Likewise.
9188         * lib/sockets.h: Likewise.
9189         * lib/sockets.c: Likewise.
9190         * lib/stdio-read.c: Likewise.
9191         * lib/stdio-write.c: Likewise.
9192         * lib/write.c: Likewise.
9193         * lib/w32sock.h: Likewise.
9194         * lib/w32spawn.h: Likewise.
9195         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9196         * lib/fsync.c: Likewise.
9197         * lib/isapipe.c: Likewise.
9198         * modules/dup2 (Depends-on): Add msvc-nothrow.
9199         * modules/accept4 (Depends-on): Likewise.
9200         * modules/error (Depends-on): Likewise.
9201         * modules/fcntl (Depends-on): Likewise.
9202         * modules/lseek (Depends-on): Likewise.
9203         * modules/nonblocking (Depends-on): Likewise.
9204         * modules/poll (Depends-on): Likewise.
9205         * modules/read (Depends-on): Likewise.
9206         * modules/select (Depends-on): Likewise.
9207         * modules/sockets (Depends-on): Likewise.
9208         * modules/sigpipe (Depends-on): Likewise.
9209         * modules/write (Depends-on): Likewise.
9210         * modules/accept (Depends-on): Likewise.
9211         * modules/bind (Depends-on): Likewise.
9212         * modules/connect (Depends-on): Likewise.
9213         * modules/gethostname (Depends-on): Likewise.
9214         * modules/getpeername (Depends-on): Likewise.
9215         * modules/getsockname (Depends-on): Likewise.
9216         * modules/getsockopt (Depends-on): Likewise.
9217         * modules/ioctl (Depends-on): Likewise.
9218         * modules/listen (Depends-on): Likewise.
9219         * modules/recv (Depends-on): Likewise.
9220         * modules/recvfrom (Depends-on): Likewise.
9221         * modules/send (Depends-on): Likewise.
9222         * modules/sendto (Depends-on): Likewise.
9223         * modules/setsockopt (Depends-on): Likewise.
9224         * modules/shutdown (Depends-on): Likewise.
9225         * modules/socket (Depends-on): Likewise.
9226         * modules/execute (Depends-on): Likewise.
9227         * modules/spawn-pipe (Depends-on): Likewise.
9228         * modules/flock (Depends-on): Likewise.
9229         * modules/fsync (Depends-on): Likewise.
9230         * modules/isapipe (Depends-on): Likewise.
9231         * tests/test-cloexec.c: Include msvc-nothrow.h.
9232         * tests/test-dup-safer.c: Likewise.
9233         * tests/test-dup2.c: Likewise.
9234         * tests/test-dup3.c: Likewise.
9235         * tests/test-fcntl.c: Likewise.
9236         * tests/test-pipe.c: Likewise.
9237         * tests/test-pipe2.c: Likewise.
9238         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9239         * modules/unistd-safer-tests (Depends-on): Likewise.
9240         * modules/dup2-tests (Depends-on): Likewise.
9241         * modules/dup3-tests (Depends-on): Likewise.
9242         * modules/fcntl-tests (Depends-on): Likewise.
9243         * modules/pipe-posix-tests (Depends-on): Likewise.
9244         * modules/pipe2-tests (Depends-on): Likewise.
9245
9246 2011-09-23  Bruno Haible  <bruno@clisp.org>
9247
9248         dup2: Make code more maintainable.
9249         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
9250         (rpl_dup2): Use it.
9251         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
9252         * modules/dup2 (configure.ac): Invoke it.
9253         Reported by Paul Eggert.
9254
9255 2011-09-23  Bruno Haible  <bruno@clisp.org>
9256
9257         msvc-inval: Fix compilation error.
9258         * lib/msvc-inval.h: Include <excpt.h>.
9259
9260 2011-09-23  Bruno Haible  <bruno@clisp.org>
9261
9262         mkdir: Tweak for MSVC 9.
9263         * lib/sys_stat.in.h: Update comments.
9264         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9265
9266         Tests for module 'chdir'.
9267         * modules/chdir-tests: New file.
9268         * tests/test-chdir.c: New file.
9269
9270         New module 'chdir'.
9271         * modules/chdir: New file.
9272         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9273         (chdir): New declaration.
9274         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9275         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9276         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9277         * tests/test-unistd-c++.cc: Check signature of chdir.
9278         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9279         * modules/chdir-long (Depends-on): Add chdir.
9280         * modules/fchdir (Depends-on): Likewise.
9281         * modules/rename (Depends-on): Likewise.
9282         * modules/savewd (Depends-on): Likewise.
9283
9284         rmdir: Support for mingw, MSVC 9.
9285         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9286         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9287
9288         getcwd: Tweak for MSVC 9.
9289         * lib/unistd.in.h: Update comments.
9290         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9291
9292 2011-09-22  Bruno Haible  <bruno@clisp.org>
9293
9294         strerror_r-posix: Avoid a link error on MSVC.
9295         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9296         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9297
9298 2011-09-22  Bruno Haible  <bruno@clisp.org>
9299
9300         select: Avoid link errors on MSVC.
9301         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9302         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9303         * modules/pselect (Link): Likewise.
9304         * NEWS: Mention the change.
9305         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9306         test-select-stdin against $(LIB_SELECT).
9307         * modules/pselect-tests (Makefile.am): Link test-pselect against
9308         $(LIB_SELECT).
9309
9310 2011-09-22  Bruno Haible  <bruno@clisp.org>
9311
9312         select: Avoid compilation error on MSVC.
9313         * lib/select.c: Don't include <stdbool.h>.
9314
9315 2011-09-21  Bruno Haible  <bruno@clisp.org>
9316
9317         Consolidate all uses of PATH_MAX in *.m4 files.
9318         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9319         macros.
9320         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9321         and gl_PATHMAX_SNIPPET.
9322         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9323         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9324         * modules/chdir-long (Files): Add m4/pathmax.m4.
9325         * modules/getcwd (Files): Likewise.
9326
9327 2011-09-21  Bruno Haible  <bruno@clisp.org>
9328
9329         ftruncate: Un-deprecate, concentrate on Win32 support.
9330         * modules/ftruncate (Status, Notice): Remove sections.
9331         (Depends-on): Add largefile.
9332         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9333         non-mingw platforms.
9334         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9335         include <io.h>.
9336         * modules/perror-tests (Depends-on): Add ftruncate.
9337         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9338         'ftruncate' module.
9339
9340 2011-09-21  Bruno Haible  <bruno@clisp.org>
9341
9342         Add dependencies to new dirent related modules.
9343         * modules/opendir (Depends-on): Add closedir.
9344         * modules/getcwd (Depends-on): Add opendir, closedir.
9345         * modules/dirent-safer-tests (Depends-on): Likewise.
9346         * modules/fdopendir-tests (Depends-on): Likewise.
9347         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9348         * modules/renameat-tests (Depends-on): Likewise.
9349
9350 2011-09-21  Bruno Haible  <bruno@clisp.org>
9351
9352         opendir: Avoid compilation error on mingw.
9353         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9354         * modules/opendir (Depends-on): Add unistd.
9355
9356 2011-09-21  Bruno Haible  <bruno@clisp.org>
9357
9358         ftruncate tests: Avoid a test failure on mingw.
9359         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9360
9361 2011-09-21  Bruno Haible  <bruno@clisp.org>
9362
9363         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9364         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9365         native Windows.
9366
9367 2011-09-21  Bruno Haible  <bruno@clisp.org>
9368
9369         New module 'fdopen'.
9370         * lib/stdio.in.h (fdopen): New declaration.
9371         * lib/fdopen.c: New file.
9372         * m4/fdopen.m4: New file.
9373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9374         REPLACE_FDOPEN.
9375         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9376         REPLACE_FDOPEN.
9377         * modules/fdopen: New file.
9378         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9379         * tests/test-stdio-c++.cc: Check signature of fdopen.
9380         * doc/posix-functions/fdopen.texi: Mention the new module.
9381
9382 2011-09-21  Bruno Haible  <bruno@clisp.org>
9383
9384         unlockpt tests: Avoid test failure on NetBSD 5.1.
9385         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9386         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9387
9388 2011-09-21  Bruno Haible  <bruno@clisp.org>
9389
9390         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9391         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9392         * tests/test-getlogin_r.c (main): Likewise.
9393
9394 2011-09-20  Bruno Haible  <bruno@clisp.org>
9395
9396         time tests: Don't require pid_t.
9397         * doc/posix-headers/time.texi: Revert last change.
9398         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9399         * tests/test-time.c: Comment out the check for pid_t.
9400
9401 2011-09-20  Bruno Haible  <bruno@clisp.org>
9402
9403         fsync tests: Avoid a test failure on mingw.
9404         * tests/test-fsync.c (main): Allow a failure with EIO.
9405
9406 2011-09-20  Bruno Haible  <bruno@clisp.org>
9407
9408         euidaccess: Update comments.
9409         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9410
9411 2011-09-20  Bruno Haible  <bruno@clisp.org>
9412
9413         Ensure EBADF returns for socket functions on mingw.
9414         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9415         descriptor is invalid.
9416         * lib/bind.c (rpl_bind): Likewise.
9417         * lib/connect.c (rpl_connect): Likewise.
9418         * lib/getpeername.c (rpl_getpeername): Likewise.
9419         * lib/getsockname.c (rpl_getsockname): Likewise.
9420         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9421         * lib/listen.c (rpl_listen): Likewise.
9422         * lib/recv.c (rpl_recv): Likewise.
9423         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9424         * lib/send.c (rpl_send): Likewise.
9425         * lib/sendto.c (rpl_sendto): Likewise.
9426         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9427         * lib/shutdown.c (rpl_shutdown): Likewise.
9428
9429 2011-09-20  Bruno Haible  <bruno@clisp.org>
9430
9431         select tests: EBADF tests.
9432         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9433         test_bad_fd): New functions.
9434         (test_function): Invoke also test_bad_fd.
9435
9436 2011-09-20  Bruno Haible  <bruno@clisp.org>
9437
9438         Tests for module 'posix_spawn_file_actions_addopen.
9439         * modules/posix_spawn_file_actions_addopen-tests: New file.
9440         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9441
9442         Tests for module 'posix_spawn_file_actions_adddup2'.
9443         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9444         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9445
9446         Tests for module 'posix_spawn_file_actions_addclose'.
9447         * modules/posix_spawn_file_actions_addclose-tests: New file.
9448         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9449
9450 2011-09-20  Bruno Haible  <bruno@clisp.org>
9451
9452         Tests for module 'unlockpt'.
9453         * modules/unlockpt-tests: New file.
9454         * tests/test-unlockpt.c: New file.
9455         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9456
9457         Tests for module 'grantpt'.
9458         * modules/grantpt-tests: New file.
9459         * tests/test-grantpt.c: New file.
9460         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9461
9462 2011-09-20  Bruno Haible  <bruno@clisp.org>
9463
9464         freopen tests: EBADF tests.
9465         * tests/test-freopen.c: Include errno.h, unistd.h.
9466         (main): Add tests for EBADF, commented out for the moment.
9467
9468         fclose tests: EBADF tests.
9469         * tests/test-fclose.c (main): Add tests for EBADF.
9470
9471         fflush tests: EBADF tests.
9472         * tests/test-fflush.c: Include errno.h, macros.h.
9473         (main): Add tests for EBADF.
9474
9475         ftello tests: EBADF tests.
9476         * tests/test-ftello4.sh: New file.
9477         * tests/test-ftello4.c: New file.
9478         * modules/ftello-tests (Files): Add them.
9479         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9480
9481         fseeko tests: EBADF tests.
9482         * tests/test-fseeko4.sh: New file.
9483         * tests/test-fseeko4.c: New file.
9484         * modules/fseeko-tests (Files): Add them.
9485         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9486
9487         Tests for function fputc().
9488         * modules/fputc-tests: New file.
9489         * tests/test-fputc.c: New file.
9490         * modules/stdio-tests (Depends-on): Add fputc-tests.
9491
9492         Tests for function fgetc().
9493         * modules/fgetc-tests: New file.
9494         * tests/test-fgetc.c: New file.
9495         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9496
9497         Tests for function fdopen().
9498         * modules/fdopen-tests: New file.
9499         * tests/test-fdopen.c: New file.
9500         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9501
9502         Tests for module 'vdprintf'.
9503         * modules/vdprintf-tests: New file.
9504         * tests/test-vdprintf.c: New file.
9505
9506         Tests for module 'dprintf'.
9507         * modules/dprintf-tests: New file.
9508         * tests/test-dprintf.c: New file.
9509
9510 2011-09-20  Bruno Haible  <bruno@clisp.org>
9511
9512         Tests for module 'ioctl'.
9513         * modules/ioctl-tests: New file.
9514         * tests/test-ioctl.c: New file.
9515
9516 2011-09-20  Bruno Haible  <bruno@clisp.org>
9517
9518         fcntl tests: EBADF tests.
9519         * tests/test-fcntl.c (main): Add more tests for EBADF.
9520
9521 2011-09-20  Bruno Haible  <bruno@clisp.org>
9522
9523         utimensat tests: EBADF tests.
9524         * tests/test-utimensat.c (main): Add tests for EBADF.
9525
9526         renameat tests: EBADF tests.
9527         * tests/test-renameat.c (main): Add tests for EBADF.
9528
9529         mkfifoat tests: EBADF tests.
9530         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9531
9532         readlinkat tests: EBADF tests.
9533         * tests/test-readlinkat.c (main): Add tests for EBADF.
9534
9535         symlinkat tests: EBADF tests.
9536         * tests/test-symlinkat.c (main): Add tests for EBADF.
9537
9538         linkat tests: EBADF tests.
9539         * tests/test-linkat.c (main): Add tests for EBADF.
9540
9541         Tests for module 'faccessat'.
9542         * modules/faccessat-tests: New file.
9543         * tests/test-faccessat.c: New file.
9544
9545         fdopendir tests: EBADF tests.
9546         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9547
9548         openat tests: EBADF tests.
9549         * tests/test-fchownat.c (main): Add tests for EBADF.
9550         * tests/test-fstatat.c (main): Likewise.
9551         * tests/test-mkdirat.c (main): Likewise.
9552         * tests/test-openat.c (main): Likewise.
9553         * tests/test-unlinkat.c (main): Likewise.
9554         * tests/test-fchmodat.c: New file.
9555         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9556         (Makefile.am): Also run 'test-fchmodat'.
9557
9558 2011-09-20  Bruno Haible  <bruno@clisp.org>
9559
9560         utimens, futimens, fdutimensat tests: EBADF tests.
9561         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9562
9563         Tests for function fstat().
9564         * modules/fstat-tests: New file.
9565         * tests/test-fstat.c: New file.
9566         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9567
9568 2011-09-20  Bruno Haible  <bruno@clisp.org>
9569
9570         test-ttyname_r tests: EBADF tests.
9571         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9572
9573         Tests for module 'isatty'.
9574         * modules/isatty-tests: New file.
9575         * tests/test-isatty.c: New file.
9576
9577         Tests for module 'write'.
9578         * modules/write-tests: New file.
9579         * tests/test-write.c: New file.
9580
9581         Tests for module 'read'.
9582         * modules/read-tests: New file.
9583         * tests/test-read.c: New file.
9584
9585         pwrite tests: EBADF tests.
9586         * tests/test-pwrite.c (main): Add tests for EBADF.
9587
9588         pread tests: EBADF tests.
9589         * tests/test-pread.c (main): Add tests for EBADF.
9590
9591         lseek tests: EBADF tests.
9592         * tests/test-lseek.c (main): Add more tests for EBADF.
9593
9594         Tests for module 'ftruncate'.
9595         * modules/ftruncate-tests: New file.
9596         * tests/test-ftruncate.sh: New file.
9597         * tests/test-ftruncate.c: New file.
9598
9599         fsync tests: EBADF tests.
9600         * tests/test-fsync.c (main): Add more tests for EBADF.
9601
9602         fdatasync tests: EBADF tests.
9603         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9604
9605         Tests for module 'fchown'.
9606         * modules/fchown-tests: New file.
9607         * tests/test-fchown.c: New file.
9608
9609         Tests for module 'fchmod'.
9610         * modules/fchmod-tests: New file.
9611         * tests/test-fchmod.c: New file.
9612
9613         fchdir tests: EBADF tests.
9614         * tests/test-fchdir.c (main): Add more tests for EBADF.
9615
9616         dup2 tests: EBADF tests.
9617         * tests/test-dup2.c (main): Add more tests for EBADF.
9618
9619         Tests for module 'dup'.
9620         * modules/dup-tests: New file.
9621         * tests/test-dup.c: New file.
9622
9623         Tests for module 'close'.
9624         * modules/close-tests: New file.
9625         * tests/test-close.c: New file.
9626
9627 2011-09-20  Bruno Haible  <bruno@clisp.org>
9628
9629         Tests for module 'shutdown'.
9630         * modules/shutdown-tests: New file.
9631         * tests/test-shutdown.c: New file.
9632
9633         Tests for module 'setsockopt'.
9634         * modules/setsockopt-tests: New file.
9635         * tests/test-setsockopt.c: New file.
9636
9637         Tests for module 'sendto'.
9638         * modules/sendto-tests: New file.
9639         * tests/test-sendto.c: New file.
9640
9641         Tests for module 'send'.
9642         * modules/send-tests: New file.
9643         * tests/test-send.c: New file.
9644
9645         Tests for module 'recvfrom'.
9646         * modules/recvfrom-tests: New file.
9647         * tests/test-recvfrom.c: New file.
9648
9649         Tests for module 'recv'.
9650         * modules/recv-tests: New file.
9651         * tests/test-recv.c: New file.
9652
9653         Tests for module 'listen'.
9654         * modules/listen-tests: New file.
9655         * tests/test-listen.c: New file.
9656
9657         Tests for module 'getsockopt'.
9658         * modules/getsockopt-tests: New file.
9659         * tests/test-getsockopt.c: New file.
9660
9661         Tests for module 'getsockname'.
9662         * modules/getsockname-tests: New file.
9663         * tests/test-getsockname.c: New file.
9664
9665         Tests for module 'getpeername'.
9666         * modules/getpeername-tests: New file.
9667         * tests/test-getpeername.c: New file.
9668
9669         Tests for module 'connect'.
9670         * modules/connect-tests: New file.
9671         * tests/test-connect.c: New file.
9672
9673         Tests for module 'bind'.
9674         * modules/bind-tests: New file.
9675         * tests/test-bind.c: New file.
9676
9677         accept4 tests: Fix for native Windows.
9678         * tests/test-accept4.c: Include sockets.h.
9679         (main): Invoke gl_sockets_startup.
9680         * modules/accept4-tests (Depends-on): Add sockets.
9681
9682         accept tests: Fix for native Windows.
9683         * tests/test-accept.c: Include sockets.h.
9684         (main): Invoke gl_sockets_startup.
9685         * modules/accept-tests (Depends-on): Add sockets.
9686
9687 2011-09-19  Bruno Haible  <bruno@clisp.org>
9688
9689         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9690         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9691         do...while(0).
9692         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9693         Suggested by Paul Eggert.
9694
9695 2011-09-19  Bruno Haible  <bruno@clisp.org>
9696
9697         sched: Ensure pid_t is defined.
9698         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9699         not define pid_t.
9700         * lib/sched.in.h: Include <sys/types.h>.
9701         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9702         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9703
9704 2011-09-19  Bruno Haible  <bruno@clisp.org>
9705
9706         msvc-inval: Ensure the entire expansion is a single statement.
9707         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9708         of braces.
9709
9710 2011-09-19  Jim Meyering  <meyering@redhat.com>
9711
9712         tests: use printf, not echo in init.sh's warn_ function
9713         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9714         misbehave when given strings containing a backslash or starting
9715         with e.g., -n.  James Youngman suggested setting IFS.
9716
9717 2011-09-19  Eric Blake  <eblake@redhat.com>
9718
9719         futimens: enhance test
9720         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9721         closed non-negative fd.
9722
9723         date: accept 'hence' as opposite of 'ago'
9724         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9725         * tests/test-parse-datetime.c (main): Enhance test.
9726         Suggested by Jesse Wilson.
9727
9728 2011-09-19  Jim Meyering  <meyering@redhat.com>
9729
9730         getcwd: don't fail in a deep directory on a system without openat
9731         Before this change, getcwd would fail when called from a directory
9732         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9733         the non-openat implementation used "..", "../..", "../../..", etc.
9734         to access ancestor directories.  With too many, that string would
9735         be longer than PATH_MAX.
9736         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9737         using gnulib's openat replacement.
9738         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9739         we're using the replacement function.
9740
9741 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9742
9743         maint.mk: avoid warnings from perl about missing files
9744         * top/maint.mk (def_sym_regex): Ignore files listed in
9745         $(gl_other_headers_) that do not exist, say because a project
9746         does not use a corresponding module.
9747
9748 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9749
9750         stat: use pathmax.h only if needed
9751         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9752         This is better for Emacs, which does not have a mingw port and
9753         therefore can avoid the pathmax module.
9754
9755         utimens: remove dependency on dup2
9756         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9757         to work around the Linux kernel bug.
9758         * modules/utimens (Depends-on): Remove dup2.
9759
9760 2011-09-18  Bruno Haible  <bruno@clisp.org>
9761
9762         inet_ntop, inet_pton: Look for it also in libresolv.
9763         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9764         libnsl, search for it in libresolv.
9765         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9766         Needed on Solaris 7.
9767
9768 2011-09-18  Bruno Haible  <bruno@clisp.org>
9769
9770         accept, accept4 tests: Avoid link error on Solaris.
9771         * modules/accept-tests (Makefile.am): Link test-accept against
9772         $(LIBSOCKET).
9773         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9774         $(LIBSOCKET).
9775
9776         accept4: Avoid link error on Solaris.
9777         * modules/accept4 (Link): New section.
9778
9779         socket functions: Avoid link errors on Solaris.
9780         * modules/accept (Depends-on): Add socketlib.
9781         (Link): New section.
9782         * modules/bind (Depends-on): Add socketlib.
9783         (Link): New section.
9784         * modules/connect (Depends-on): Add socketlib.
9785         (Link): New section.
9786         * modules/getpeername (Depends-on): Add socketlib.
9787         (Link): New section.
9788         * modules/getsockname (Depends-on): Add socketlib.
9789         (Link): New section.
9790         * modules/getsockopt (Depends-on): Add socketlib.
9791         (Link): New section.
9792         * modules/listen (Depends-on): Add socketlib.
9793         (Link): New section.
9794         * modules/recv (Depends-on): Add socketlib.
9795         (Link): New section.
9796         * modules/recvfrom (Depends-on): Add socketlib.
9797         (Link): New section.
9798         * modules/send (Depends-on): Add socketlib.
9799         (Link): New section.
9800         * modules/sendto (Depends-on): Add socketlib.
9801         (Link): New section.
9802         * modules/setsockopt (Depends-on): Add socketlib.
9803         (Link): New section.
9804         * modules/shutdown (Depends-on): Add socketlib.
9805         (Link): New section.
9806         * modules/socket (Depends-on): Add socketlib.
9807         (Link): New section.
9808
9809 2011-09-18  Bruno Haible  <bruno@clisp.org>
9810
9811         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9812         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9813         than 5 seconds.
9814         * modules/ptsname-tests (configure.ac): Test for alarm.
9815
9816 2011-09-18  Bruno Haible  <bruno@clisp.org>
9817
9818         posix_spawn_file_actions_add*: Fix module dependencies.
9819         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9820         posix_spawn_file_actions_init.
9821         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9822         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9823
9824 2011-09-18  Bruno Haible  <bruno@clisp.org>
9825
9826         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9827         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9828         * tests/test-renameat.c (main): Likewise.
9829
9830 2011-09-18  Bruno Haible  <bruno@clisp.org>
9831
9832         Tests for module 'accept4'.
9833         * modules/accept4-tests: New file.
9834         * tests/test-accept4.c: New file.
9835
9836 2011-09-18  Bruno Haible  <bruno@clisp.org>
9837
9838         Tests for module 'accept'.
9839         * modules/accept-tests: New file.
9840         * tests/test-accept.c: New file.
9841
9842 2011-09-18  Bruno Haible  <bruno@clisp.org>
9843
9844         dup2: Support for MSVC.
9845         * lib/dup2.c: Include msvc-inval.h.
9846         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9847         _get_osfhandle calls.
9848         * modules/dup2 (Depends-on): Add msvc-inval.
9849         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9850
9851         New module 'msvc-inval'.
9852         * lib/msvc-inval.h: New file.
9853         * lib/msvc-inval.c: New file.
9854         * m4/msvc-inval.m4: New file.
9855         * modules/msvc-inval: New file.
9856
9857 2011-09-17  Bruno Haible  <bruno@clisp.org>
9858
9859         Tests for module 'pclose'.
9860         * modules/pclose-tests: New file.
9861
9862         New module 'pclose'.
9863         * lib/stdio.in.h (pclose): New declaration.
9864         * lib/pclose.c: New file.
9865         * m4/pclose.m4: New file.
9866         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9867         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9868         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9869         * modules/pclose: New file.
9870         * modules/popen-tests (Depends-on): Add pclose.
9871         * modules/popen-safer-tests (Depends-on): Likewise.
9872         * doc/posix-functions/pclose.texi: Mention the new module.
9873
9874 2011-09-17  Bruno Haible  <bruno@clisp.org>
9875
9876         popen: Support for MSVC.
9877         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9878         * lib/popen.c (popen): Provide alternate definition for native Windows.
9879         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9881         * modules/popen (Depends-on, configure.ac): Update condition.
9882         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9883         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9884         fixed.
9885
9886 2011-09-17  Bruno Haible  <bruno@clisp.org>
9887
9888         isnanl, isnand, isnanf: Work around MSVC bug.
9889         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9890
9891 2011-09-17  Bruno Haible  <bruno@clisp.org>
9892
9893         sys_socket tests: Fix recent mistake.
9894         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9895
9896 2011-09-17  Bruno Haible  <bruno@clisp.org>
9897
9898         putenv: Support for MSVC.
9899         * modules/putenv (Depends-on): Add environ.
9900         * lib/putenv.c (environ): Disable declaration.
9901         * lib/unistd.in.h: Update comment.
9902
9903 2011-09-17  Bruno Haible  <bruno@clisp.org>
9904
9905         math: Avoid macro redefinition warnings on MSVC.
9906         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9907         Undefine before redefining.
9908
9909 2011-09-17  Bruno Haible  <bruno@clisp.org>
9910
9911         doc: Mention functions which are declared as macros.
9912         * doc/posix-functions/*[fl].texi: Mention that some functions are
9913         defined as macros with arguments only.
9914
9915 2011-09-17  Bruno Haible  <bruno@clisp.org>
9916
9917         Add dependencies to new dirent related modules.
9918         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9919         * modules/fts (Depends-on): Likewise.
9920         * modules/glob (Depends-on): Likewise.
9921         * modules/savedir (Depends-on): Likewise.
9922         * modules/scandir (Depends-on): Likewise.
9923         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9924         * modules/fdopendir (Depends-on): Add opendir.
9925
9926 2011-09-17  Bruno Haible  <bruno@clisp.org>
9927
9928         inet_pton: Support for MSVC on Windows Vista or newer.
9929         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9930         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9931         HAVE_DECL_INET_PTON is defined.
9932         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9933         On platforms with <winsock2.h>, test whether inet_pton is declared in
9934         <ws2tcpip.h>. If so, arrange to replace it.
9935         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9936         REPLACE_INET_PTON.
9937         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9938         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9939         (Depends-on, configure.ac): Update condition.
9940         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9941
9942 2011-09-17  Bruno Haible  <bruno@clisp.org>
9943
9944         inet_ntop: Support for MSVC on Windows Vista or newer.
9945         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9946         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9947         HAVE_DECL_INET_NTOP is defined.
9948         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9949         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9950         <ws2tcpip.h>. If so, arrange to replace it.
9951         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9952         REPLACE_INET_NTOP.
9953         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9954         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9955         (Depends-on, configure.ac): Update condition.
9956         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9957
9958 2011-09-16  Eric Blake  <eblake@redhat.com>
9959
9960         test-fsync: yet another enhancement
9961         * tests/test-fsync.c (main): Also test behavior on read-only text
9962         file.
9963
9964 2011-09-16  Bruno Haible  <bruno@clisp.org>
9965
9966         Enhance fsync, fdatasync tests.
9967         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9968         * tests/test-fdatasync.c (main): Likewise.
9969
9970 2011-09-16  Bruno Haible  <bruno@clisp.org>
9971
9972         Support for MSVC compiler: Ensure mode_t gets defined.
9973         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9974         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9975         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9976         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9977         * tests/test-fcntl-h.c: Check that mode_t is defined.
9978         * tests/test-sys_stat.c: Likewise.
9979         * tests/test-sys_types.c: Likewise.
9980         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9981         * doc/posix-headers/sys_stat.texi: Likewise.
9982         * doc/posix-headers/sys_types.texi: Likewise.
9983
9984 2011-09-16  Bruno Haible  <bruno@clisp.org>
9985
9986         sys_stat: Support for MSVC.
9987         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9988         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9989         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9990         MSVC.
9991
9992 2011-09-16  Bruno Haible  <bruno@clisp.org>
9993
9994         Support for MSVC compiler: Ensure off_t gets defined.
9995         * lib/unistd.in.h: Include <sys/types.h>.
9996         * tests/test-fcntl-h.c: Check that off_t is defined.
9997         * tests/test-sys_stat.c: Likewise.
9998         * tests/test-sys_types.c: Likewise.
9999
10000 2011-09-16  Eric Blake  <eblake@redhat.com>
10001
10002         fdatasync: port to Solaris
10003         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
10004         * modules/fdatasync (Link): Document it.
10005         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
10006
10007         fdatasync: port to MacOS X 10.7
10008         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10009         declared.
10010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10011         * modules/unistd (Makefile.am): Substitute it.
10012         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10013         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10014
10015         fdatasync: minor improvements
10016         * modules/fdatasync (Depends-on): Add condition for fsync.
10017         * lib/fdatasync.c (fdatasync): Add comment.
10018         * tests/test-unistd-c++.cc: Test fdatasync.
10019
10020         unistd: update refs to newer POSIX
10021         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10022         Suggested by Bruno Haible.
10023
10024         fdatasync: new module
10025         * modules/fsync (Description): Document difference to fdatasync.
10026         * modules/fdatasync: New module.
10027         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10028         * lib/fdatasync.c (fdatasync): Likewise.
10029         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10030         defaults.
10031         * modules/unistd (Makefile.am): Set witnesses.
10032         * lib/unistd.in.h (fdatasync): Declare.
10033         * MODULES.html.sh: Document it.
10034         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10035         * modules/fdatasync-tests: New test.
10036         * tests/test-fdatasync.c: Likewise.
10037
10038 2011-09-16  Eric Blake  <eblake@redhat.com>
10039
10040         test-fsync: enhance tests
10041         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10042         * tests/test-fsync.c (main): Enhance test.
10043
10044 2011-09-15  Bruno Haible  <bruno@clisp.org>
10045
10046         Support for MSVC compiler: Ensure ssize_t gets defined.
10047         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10048         * doc/posix-headers/stdio.texi: Likewise.
10049         * modules/stdio (Depends-on): Add ssize_t.
10050         * modules/sys_socket (Depends-on): Likewise.
10051         * modules/sys_types (Depends-on): Likewise.
10052         * modules/sys_uio (Depends-on): Likewise.
10053         * modules/unistd (Depends-on): Likewise.
10054         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10055         * tests/test-sys_types.c: Check that ssize_t is defined.
10056
10057 2011-09-14  Bruno Haible  <bruno@clisp.org>
10058
10059         Avoid using #, the m4 comment starter character, near brackets.
10060         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10061         delimiter character in sed expressions.
10062         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10063         Suggested by Eric Blake.
10064
10065         Properly quote AC_CHECK_DECLS' 4th argument.
10066         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10067         argument.
10068         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10069         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10070         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10071         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10072         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10073         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10074         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10075         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10076         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10077         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10078         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10079         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10080         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10081         * m4/isinf.m4 (gl_ISINF): Likewise.
10082         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10083         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10084         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10085         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10086         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10087         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10088         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10089         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10090         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10091         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10092         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10093         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10094         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10095         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10096         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10097         Reported by Eric Blake.
10098
10099         Properly quote AC_CHECK_DECL's 4th argument.
10100         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10101         argument.
10102         * m4/argp.m4 (gl_ARGP): Likewise.
10103         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10104         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10105         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10106         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10107         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10108         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10109         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10110         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10111         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10112         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10113         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10114         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10115         Reported by Eric Blake.
10116
10117 2011-09-14  Eric Blake  <eblake@redhat.com>
10118
10119         opendir: avoid compile warning
10120         * lib/opendir.c (includes): Always include errno.h.
10121         Reported by Tatsuro MATSUOKA.
10122
10123 2011-09-14  Jim Meyering  <meyering@redhat.com>
10124
10125         maint.mk: sc_tight_scope: propagate failure from sub-make
10126         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10127         Reported by Martin von Gagern.
10128
10129 2011-09-13  Bruno Haible  <bruno@clisp.org>
10130
10131         tempname: Support for MSVC.
10132         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10133         MSVC.
10134         * modules/tempname (Depends-on): Add fcntl-h.
10135
10136 2011-09-13  Bruno Haible  <bruno@clisp.org>
10137
10138         sys_time: Support for MSVC.
10139         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10140         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10141         include <winsock2.h>.
10142         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
10143         function declarations that collide with POSIX.
10144         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
10145         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10146
10147 2011-09-13  Bruno Haible  <bruno@clisp.org>
10148
10149         stat: Support for MSVC.
10150         * lib/stat.c: Include pathmax.h.
10151         * modules/stat (Depends-on): Add pathmax.
10152
10153         pathmax: Support for native Windows.
10154         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
10155
10156 2011-09-12  Bruno Haible  <bruno@clisp.org>
10157
10158         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
10159         * lib/dirent.in.h (struct dirent): New type.
10160         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
10161         DT_WHT): New macros.
10162         (DIR): New type.
10163         (opendir, closedir): Declare only if the module 'opendir' is enabled.
10164         (readdir, rewinddir): New declarations.
10165         * lib/dirent-private.h: New file.
10166         * lib/opendir.c: New file.
10167         * lib/readdir.c: New file.
10168         * lib/rewinddir.c: New file.
10169         * lib/closedir.c: New file.
10170         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
10171         * m4/opendir.m4: New file.
10172         * m4/readdir.m4: New file.
10173         * m4/rewinddir.m4: New file.
10174         * m4/closedir.m4: New file.
10175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
10176         REPLACE_CLOSEDIR here.
10177         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
10178         readdir, rewinddir are declared.
10179         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10180         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10181         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10182         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10183         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10184         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10185         * modules/opendir: New file.
10186         * modules/readdir: New file.
10187         * modules/rewinddir: New file.
10188         * modules/closedir: New file.
10189         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10190         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10191         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10192         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10193         * NEWS: Mention the 'fchdir' change.
10194
10195 2011-09-11  Bruno Haible  <bruno@clisp.org>
10196
10197         asm-underscore.m4: Support for MSVC.
10198         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10199         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10200
10201 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10202
10203         Doc about crypt functions.
10204         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10205         needing for _GNU_SOURCE to get crypt.
10206         * doc/posix-functions/encrypt.texi: Likewise.
10207         * doc/posix-functions/setkey.texi: Likewise.
10208
10209 2011-09-11  Bruno Haible  <bruno@clisp.org>
10210
10211         doc: Update regarding MSVC 9.
10212         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10213         tested".
10214         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10215         * doc/posix-headers/*.texi: Likewise.
10216         * doc/pastposix-functions/*.texi: Likewise.
10217         * doc/glibc-functions/*.texi: Likewise.
10218         * doc/glibc-headers/*.texi: Likewise.
10219
10220 2011-09-11  Bruno Haible  <bruno@clisp.org>
10221
10222         unistd et al.: Don't assume <unistd.h> exists.
10223         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10224         does not exist.
10225         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10226         exist. But include <stdlib.h>.
10227         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10228         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10229         symlink() does not exist.
10230         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10231         include <io.h> instead.
10232         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10233         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10234         include <direct.h> instead.
10235         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10236         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10237         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10238         <io.h> instead.
10239         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
10240         correctly if the system does not have hard links.
10241         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
10242         <direct.h> instead.
10243         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
10244         it when looking for function declarations.
10245         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
10246         <direct.h> and <io.h> instead.
10247         * doc/posix-headers/unistd.texi: More details about MSVC problem.
10248
10249 2011-09-11  Bruno Haible  <bruno@clisp.org>
10250
10251         strcase: Support for MSVC.
10252         * modules/strcase (Status, Notice): Remove obsoletion mark.
10253         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10254         * doc/posix-functions/strncasecmp.texi: Likewise.
10255
10256         strings: Don't assume <strings.h> exists.
10257         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10258         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10259         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10260         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10261
10262 2011-09-11  Bruno Haible  <bruno@clisp.org>
10263
10264         dirent: Don't assume <dirent.h> exists.
10265         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10266         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10267         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10268         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10269
10270 2011-09-11  Bruno Haible  <bruno@clisp.org>
10271
10272         Fix wint_t on MSVC.
10273         * lib/wchar.in.h (wint_t): On MSVC, override it.
10274         * lib/wctype.in.h (wint_t): Likewise.
10275         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10276         MSVC.
10277         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10278         * doc/posix-headers/wctype.texi: Likewise.
10279
10280 2011-09-11  Bruno Haible  <bruno@clisp.org>
10281
10282         sys_types: Fix typo.
10283         * lib/sys_types.in.h: Fix typo in comment.
10284         Reported by Paul Eggert.
10285
10286         Support for MSVC compiler: Ensure size_t gets defined.
10287         * modules/strings (Depends-on): Add 'sys_types'.
10288         * modules/sys_uio (Depends-on): Likewise.
10289         * lib/sys_uio.in.h: Update comment.
10290
10291         C++ tests for module 'sys_types'.
10292         * modules/sys_types-c++-tests: New file.
10293         * tests/test-sys_types-c++.cc: New file.
10294
10295         Tests for module 'sys_types'.
10296         * modules/sys_types-tests: New file.
10297         * tests/test-sys_types.c: New file.
10298
10299         New module 'sys_types'.
10300         * lib/sys_types.in.h: New file.
10301         * m4/sys_types_h.m4: New file.
10302         * modules/sys_types: New file.
10303         * doc/posix-headers/sys_types.texi: Mention the new module and the
10304         size_t problem on MSVC 9.
10305
10306 2011-09-11  Bruno Haible  <bruno@clisp.org>
10307
10308         Support for MSVC compiler: Avoid division by a literal 0.
10309         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10310         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10311         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10312         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10313         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10314         * tests/infinity.h: New file.
10315         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10316         on MSVC.
10317         * tests/test-ceilf1.c: Include infinity.h.
10318         (main): Use Infinityf.
10319         * tests/test-ceil1.c: Include infinity.h.
10320         (main): Use Infinityd.
10321         * tests/test-ceill.c: Include infinity.h.
10322         (main): Use Infinityl.
10323         * tests/test-dprintf-posix.c: Include infinity.h.
10324         (test_function): Use Infinityd.
10325         * tests/test-floorf1.c: Include infinity.h.
10326         (main): Use Infinityf.
10327         * tests/test-floor1.c: Include infinity.h.
10328         (main): Use Infinityd.
10329         * tests/test-floorl.c: Include infinity.h.
10330         (main): Use Infinityl.
10331         * tests/test-fprintf-posix.c: Include infinity.h.
10332         (test_function): Use Infinityd.
10333         * tests/test-frexp.c: Include infinity.h.
10334         (main): Use Infinityd.
10335         * tests/test-frexpl.c: Include infinity.h.
10336         (main): Use Infinityl.
10337         * tests/test-isfinite.c: Include infinity.h.
10338         (test_isfinitef): Use Infinityf.
10339         (test_isfinited): Use Infinityd.
10340         (test_isfinitel): Use Infinityl.
10341         * tests/test-isinf.c: Include infinity.h.
10342         (test_isinff): Use Infinityf.
10343         (test_isinfd): Use Infinityd.
10344         (test_isinfl): Use Infinityl.
10345         * tests/test-isnan.c: Include infinity.h.
10346         (test_float): Use Infinityf.
10347         (test_double): Use Infinityd.
10348         (test_long_double): Use Infinityl.
10349         * tests/test-isnanf.h: Include infinity.h.
10350         (main): Use Infinityf.
10351         * tests/test-isnand.h: Include infinity.h.
10352         (main): Use Infinityd.
10353         * tests/test-isnanl.h: Include infinity.h.
10354         (main): Use Infinityl.
10355         * tests/test-ldexpl.c: Include infinity.h.
10356         (main): Use Infinityl.
10357         * tests/test-printf-posix.h: Include infinity.h.
10358         (test_function): Use Infinityd.
10359         * tests/test-roundf1.c: Include infinity.h.
10360         (main): Use Infinityf.
10361         * tests/test-round1.c: Include infinity.h.
10362         (main): Use Infinityd.
10363         * tests/test-roundl.c: Include infinity.h.
10364         (main): Use Infinityl.
10365         * tests/test-signbit.c: Include infinity.h.
10366         (test_signbitf): Use Infinityf.
10367         (test_signbitd): Use Infinityd.
10368         (test_signbitl): Use Infinityl.
10369         * tests/test-snprintf-posix.h: Include infinity.h.
10370         (test_function): Use Infinityd, Infinityl.
10371         * tests/test-sprintf-posix.h: Include infinity.h.
10372         (test_function): Use Infinityd, Infinityl.
10373         * tests/test-truncf1.c: Include infinity.h.
10374         (main): Use Infinityf.
10375         * tests/test-trunc1.c: Include infinity.h.
10376         (main): Use Infinityd.
10377         * tests/test-truncl.c: Include infinity.h.
10378         (main): Use Infinityl.
10379         * tests/test-vasnprintf-posix.c: Include infinity.h.
10380         (test_function): Use Infinityd, Infinityl.
10381         * tests/test-vasprintf-posix.c: Include infinity.h.
10382         (test_function): Use Infinityd, Infinityl.
10383         * modules/ceilf-tests (Files): Add tests/infinity.h.
10384         * modules/ceil-tests (Files): Likewise.
10385         * modules/ceill-tests (Files): Likewise.
10386         * modules/dprintf-posix-tests (Files): Likewise.
10387         * modules/floorf-tests (Files): Likewise.
10388         * modules/floor-tests (Files): Likewise.
10389         * modules/floorl-tests (Files): Likewise.
10390         * modules/fprintf-posix-tests (Files): Likewise.
10391         * modules/frexp-tests (Files): Likewise.
10392         * modules/frexp-nolibm-tests (Files): Likewise.
10393         * modules/frexpl-tests (Files): Likewise.
10394         * modules/frexpl-nolibm-tests (Files): Likewise.
10395         * modules/isfinite-tests (Files): Likewise.
10396         * modules/isinf-tests (Files): Likewise.
10397         * modules/isnan-tests (Files): Likewise.
10398         * modules/isnanf-tests (Files): Likewise.
10399         * modules/isnanf-nolibm-tests (Files): Likewise.
10400         * modules/isnand-tests (Files): Likewise.
10401         * modules/isnand-nolibm-tests (Files): Likewise.
10402         * modules/isnanl-tests (Files): Likewise.
10403         * modules/isnanl-nolibm-tests (Files): Likewise.
10404         * modules/ldexpl-tests (Files): Likewise.
10405         * modules/printf-posix-tests (Files): Likewise.
10406         * modules/roundf-tests (Files): Likewise.
10407         * modules/round-tests (Files): Likewise.
10408         * modules/roundl-tests (Files): Likewise.
10409         * modules/signbit-tests (Files): Likewise.
10410         * modules/snprintf-posix-tests (Files): Likewise.
10411         * modules/sprintf-posix-tests (Files): Likewise.
10412         * modules/truncf-tests (Files): Likewise.
10413         * modules/trunc-tests (Files): Likewise.
10414         * modules/truncl-tests (Files): Likewise.
10415         * modules/vasnprintf-posix-tests (Files): Likewise.
10416         * modules/vasprintf-posix-tests (Files): Likewise.
10417         * modules/vdprintf-posix-tests (Files): Likewise.
10418         * modules/vfprintf-posix-tests (Files): Likewise.
10419         * modules/vprintf-posix-tests (Files): Likewise.
10420         * modules/vsnprintf-posix-tests (Files): Likewise.
10421         * modules/vsprintf-posix-tests (Files): Likewise.
10422         * modules/xprintf-posix-tests (Files): Likewise.
10423
10424 2011-09-11  Bruno Haible  <bruno@clisp.org>
10425
10426         Ensure pid_t gets defined.
10427         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10428         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10429         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10430         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10431         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10432         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10433         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10434         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10435         * tests/test-fcntl-h.c: Check that pid_t is defined.
10436         * tests/test-sched.c: Likewise.
10437         * tests/test-termios.c: Likewise.
10438         * tests/test-time.c: Likewise.
10439         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10440         * doc/posix-headers/signal.texi: Likewise.
10441         * doc/posix-headers/sys_types.texi: Likewise.
10442         * doc/posix-headers/time.texi: Likewise.
10443
10444 2011-09-11  Bruno Haible  <bruno@clisp.org>
10445
10446         acl: Fix compilation on Solaris 10 (older version).
10447         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10448         of ACE_EVERYONE.
10449         * lib/set-mode-acl.c (qset_acl): Likewise.
10450         Reported by Christian Jullien <eligis@orange.fr>.
10451
10452 2011-09-10  Bruno Haible  <bruno@clisp.org>
10453
10454         iconv, unsetenv: Add support for MSVC compiler.
10455         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10456         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10457
10458 2011-09-10  Bruno Haible  <bruno@clisp.org>
10459
10460         *printf: Add support for MSVC compiler.
10461         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10462         handles the exception caused by the %n directive. When cross-compiling,
10463         guess no on native Windows.
10464         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10465         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10466         emulate it through vsnprintf.
10467         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10468         * doc/posix-functions/dprintf.texi: Update documentation regarding
10469         MSVC 9.
10470         * doc/posix-functions/fprintf.texi: Likewise.
10471         * doc/posix-functions/printf.texi: Likewise.
10472         * doc/posix-functions/snprintf.texi: Likewise.
10473         * doc/posix-functions/sprintf.texi: Likewise.
10474         * doc/posix-functions/swprintf.texi: Likewise.
10475         * doc/posix-functions/vdprintf.texi: Likewise.
10476         * doc/posix-functions/vfprintf.texi: Likewise.
10477         * doc/posix-functions/vprintf.texi: Likewise.
10478         * doc/posix-functions/vsnprintf.texi: Likewise.
10479         * doc/posix-functions/vsprintf.texi: Likewise.
10480         * doc/glibc-functions/asprintf.texi: Likewise.
10481         * doc/glibc-functions/obstack_printf.texi: Likewise.
10482         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10483         * doc/glibc-functions/vasprintf.texi: Likewise.
10484
10485 2011-09-10  Bruno Haible  <bruno@clisp.org>
10486
10487         nocrash: Add support for native Windows.
10488         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10489
10490 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10491             Bruno Haible  <bruno@clisp.org>
10492
10493         absolute-header, include-next: Add support for MSVC compiler.
10494         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10495         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10496         directory separator in #line directives.
10497         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10498         recognize also backslash as directory separator in #line directives.
10499
10500 2011-09-08  Jim Meyering  <meyering@redhat.com>
10501
10502         maint.mk: mark the post-release commit log with "maint: " prefix
10503         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10504         one-line commit-log summary.
10505
10506 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10507             Bruno Haible  <bruno@clisp.org>
10508
10509         Doc about crypt functions.
10510         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10511         systems.
10512         * doc/posix-functions/encrypt.texi: Likewise.
10513         * doc/posix-functions/setkey.texi: Likewise.
10514
10515 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10516
10517         * lib/gc.h: Fix copyright header.
10518
10519 2011-09-07  Bruno Haible  <bruno@clisp.org>
10520
10521         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10522         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10523         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10524
10525 2011-09-07  Bruno Haible  <bruno@clisp.org>
10526
10527         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10528         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10529         * lib/freopen.c: Likewise.
10530         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10531         * lib/lstat.c: Likewise.
10532         * lib/stat.c: Likewise.
10533         * lib/open.c: Use different syntax for include of <fcntl.h>.
10534         * lib/openat.c: Include fcntl.h again, explicitly.
10535
10536 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10537
10538         parse-datetime: document the newly accepted format
10539         * doc/parse-datetime.texi (Combined date and time of day items):
10540         New section.
10541
10542 2011-09-06  Bruno Haible  <bruno@clisp.org>
10543
10544         acl: Fix a test failure on newer Solaris 10 with ZFS.
10545         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10546         ENOSYS as no ACL.
10547         Reported by Jim Meyering.
10548
10549 2011-09-06  Bruno Haible  <bruno@clisp.org>
10550
10551         acl: Update for AIX >= 5.3 with NFS.
10552         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10553         ENOSYS as no ACL.
10554
10555         acl: Fix a test failure on AIX >= 5.3 with NFS.
10556         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10557         as no ACL.
10558
10559 2011-09-06  Bruno Haible  <bruno@clisp.org>
10560
10561         acl: Fix a test failure on IRIX 6.5 with NFS.
10562         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10563         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10564         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10565         * lib/copy-acl.c (qcopy_acl): Likewise.
10566
10567 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10568
10569         openat: port to AIX 7.1 with large files
10570         AIX 7.1 does a "#define openat open64at" if large files are in use,
10571         so we can't simply #undef openat.  Use the orig_openat trick (similar
10572         to orig_open in lib/open.c) to work around the problem.  Problem
10573         reported by Kevin Brott for GNU tar, in the thread containing
10574         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10575         * lib/openat.c (__need_system_fcntl_h): Define first.
10576         Include <fcntl.h> and <sys/types.h> before undefining.
10577         (orig_openat) [HAVE_OPENAT]: New inline function.
10578         (openat) [HAVE_OPENAT]: Do not undef.
10579         (rpl_openat): Use orig_openat, not openat.
10580
10581 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10582             Bruno Haible  <bruno@clisp.org>
10583
10584         acl: Avoid errors on NonStop Kernel.
10585         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10586         ENOTSUP errors.
10587
10588 2011-09-05  Bruno Haible  <bruno@clisp.org>
10589
10590         acl: Clean up Solaris code.
10591         * lib/acl-internal.h: Remove no-op #if.
10592         * lib/file-has-acl.c: Likewise.
10593         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10594         * lib/copy-acl.c (qcopy_acl): Likewise.
10595
10596 2011-09-05  Bruno Haible  <bruno@clisp.org>
10597
10598         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10599         binaries built on the original Solaris 10.
10600         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10601         trivial.
10602
10603 2011-09-05  Bruno Haible  <bruno@clisp.org>
10604
10605         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10606         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10607         10.
10608         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10609         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10610         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10611         instead of acl_get, facl_get, acl_set, facl_set.
10612
10613 2011-09-05  Bruno Haible  <bruno@clisp.org>
10614
10615         copy-file: Try unit tests on more file systems.
10616         * tests/test-copy-file-1.sh: New file.
10617         * tests/test-copy-file-2.sh: New file.
10618         * modules/copy-file-tests (Files): Add them.
10619         (Makefile.am): Add them to TESTS.
10620
10621         acl: Try unit tests on more file systems.
10622         * tests/test-file-has-acl-1.sh: New file.
10623         * tests/test-file-has-acl-2.sh: New file.
10624         * tests/test-set-mode-acl-1.sh: New file.
10625         * tests/test-set-mode-acl-2.sh: New file.
10626         * tests/test-copy-acl-1.sh: New file.
10627         * tests/test-copy-acl-2.sh: New file.
10628         * modules/acl-tests (Files): Add them.
10629         (Makefile.am): Add them to TESTS.
10630
10631 2011-09-04  Bruno Haible  <bruno@clisp.org>
10632
10633         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10634         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10635         10.
10636         (OLD_ALLOW, OLD_DENY): New macros.
10637         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10638         ACE_ACCESS_ALLOWED_ACE_TYPE.
10639         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10640         ACE_ACCESS_DENIED_ACE_TYPE.
10641         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10642         (NEW_ACE_EXECUTE): Fix value.
10643         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10644         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10645         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10646         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10647         NEW_ACE_SYNCHRONIZE): New macros.
10648         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10649         instead of acl_fromtext, acl_set, facl_set.
10650         Fixes a coreutils/tests/cp/perm failure.
10651
10652 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10653
10654         openat: test for fstatat (..., 0) bug
10655         Further testing with tar suggests that fstatat (..., 0)
10656         does not work in general, on AIX 7.1; see
10657         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10658         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10659         replacement fstatat (which is what older AIX releases were using
10660         anyway).
10661         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10662         use is now changed to orig_fstatat.  This was probably the right
10663         thing to do anyway.
10664         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10665         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10666         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10667         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10668         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10669         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10670         if the bug is found.
10671
10672         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10673         This tests for another fstatat bug on AIX 7.1:
10674         fstatat (AT_FDCWD, ..., 0) does not work.  See
10675         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10676         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10677         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10678         (rpl_fstatat): Adjust so that it works around either (or both)
10679         bugs if present.
10680         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10681
10682 2011-09-03  Karl Berry  <karl@gnu.org>
10683
10684         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10685         in index entries.
10686
10687 2011-09-02  Bruno Haible  <bruno@clisp.org>
10688
10689         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10690         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10691         values of AR, ARFLAGS, RANLIB.
10692         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10693
10694 2011-09-02  Bruno Haible  <bruno@clisp.org>
10695
10696         Find 'ar' program that fits with --host argument.
10697         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10698
10699 2011-09-02  Bruno Haible  <bruno@clisp.org>
10700
10701         tests: init.sh: Support any non-GNU diff.
10702         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10703         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10704         Solaris 8.
10705
10706 2011-09-02  Bruno Haible  <bruno@clisp.org>
10707
10708         tests: init.sh: work also with any non-GNU diff that supports -u
10709         * tests/init.sh: Relax check for diff -u support.
10710         Rather than checking for GNU diff via --version, simply check
10711         for support for -u itself.  Useful at least on OpenBSD 4.9,
10712         AIX 7.1, IRIX 6.5, and Solaris 10.
10713
10714 2011-09-01  Bruno Haible  <bruno@clisp.org>
10715
10716         strtoimax, strtoumax: Document problem on HP-UX 11.
10717         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10718         * doc/posix-functions/strtoumax.texi: Likewise.
10719
10720 2011-09-01  Bruno Haible  <bruno@clisp.org>
10721
10722         strtoumax: Avoid link error on OSF/1 with DTK cc.
10723         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10724         defined as a function.
10725         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10726         strtoumax is defined, not whether it is declared.
10727
10728 2011-09-01  Bruno Haible  <bruno@clisp.org>
10729
10730         strtoimax: Avoid link error on OSF/1 with DTK cc.
10731         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10732         defined as a function.
10733         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10734         strtoimax is defined, not whether it is declared.
10735
10736 2011-09-01  Bruno Haible  <bruno@clisp.org>
10737
10738         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10739         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10740         as a function.
10741         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10742         whether it is declared.
10743
10744 2011-09-01  Bruno Haible  <bruno@clisp.org>
10745
10746         imaxabs: Avoid link error on OSF/1 with DTK cc.
10747         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10748         as a function.
10749         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10750         whether it is declared.
10751
10752 2011-09-01  Bruno Haible  <bruno@clisp.org>
10753
10754         Tests for module 'strtoumax'.
10755         * modules/strtoumax-tests: New file.
10756         * tests/test-strtoumax.c: New file.
10757
10758         Tests for module 'strtoimax'.
10759         * modules/strtoimax-tests: New file.
10760         * tests/test-strtoimax.c: New file.
10761
10762         Tests for module 'imaxdiv'.
10763         * modules/imaxdiv-tests: New file.
10764         * tests/test-imaxdiv.c: New file.
10765
10766         Tests for module 'imaxabs'.
10767         * modules/imaxabs-tests: New file.
10768         * tests/test-imaxabs.c: New file.
10769
10770 2011-09-01  Bruno Haible  <bruno@clisp.org>
10771
10772         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10773         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10774         pthread_create.
10775
10776 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10777
10778         openat: work around AIX 7.1 fstatat issue
10779         This should fix the problem that was not properly fixed
10780         in the previous change, dated 2011-08-30.
10781         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10782         __need_system_stat_h defined.
10783         (orig_fstatat) [HAVE_FSTATAT]: New function.
10784         (rpl_fstatat): Go back to the old way of doing things,
10785         except call orig_fstatat instead of fstatat.
10786         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10787         Remove unnecessary check whether fstatat fills in st_size etc.
10788
10789 2011-09-01  Bruno Haible  <bruno@clisp.org>
10790
10791         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10792         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10793         just include the system's header.
10794
10795 2011-08-31  Jim Meyering  <meyering@redhat.com>
10796
10797         tests: avoid spurious assertion failure in test-float.c on ppc64
10798         * tests/test-float.c (test_long_double): Comment out an assertion,
10799         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10800         with gcc-4.4.4.
10801
10802         maint: indent with spaces, not TABs
10803         I need to get in the habit of running gnulib's "make check".
10804         Both of these would have been caught.
10805         * m4/largefile.m4: Indent with spaces, not TABs.
10806         * lib/parse-datetime.y (iso_8601_time): Likewise.
10807         Spotted by Pádraig Brady.
10808
10809         test-parse-datetime.c: accommodate a relatively strict gcc warning
10810         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10811         to avoid a warning from gcc's -Werror=missing-declarations.
10812         Insert a few spaces-before-funcall-parenthesis.
10813
10814 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10815
10816         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10817         The parser now accepts ISO 8601 date-time strings with "T" as the
10818         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10819         with a space between the date and time strings.  Now it also parses
10820         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10821         variants like "2004-02-29T16:21:42.333-07:00"
10822         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10823         of day representation using the 'T' separator character.
10824         * doc/parse-datetime.texi (General date syntax): replace use of
10825         deprecated --iso-8601 option with --rfc-3339 in example of date
10826         command output formats that can be parsed.
10827         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10828         lib/parse-datetime.y.
10829         (gmt_offset): New function.
10830         (main): Add additional test cases to validate ISO8601 extended
10831         date and time of day parsing.
10832
10833 2011-08-31  Bruno Haible  <bruno@clisp.org>
10834
10835         freopen: Documentation.
10836         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10837         name.
10838         Reported by Claudio Bley <claudio.bley@gmail.com>.
10839
10840 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10841
10842         freopen: Don't crash if the filename argument is NULL.
10843         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10844         NULL.
10845
10846 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10847
10848         openat: work around AIX 7.1 fstatat bug
10849         Problem reported by Kevin Brott for GNU tar, in the thread containing
10850         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10851         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10852         FSTATAT_ST_SIZE_ETC_BROKEN.
10853         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10854         rpl_fstatat.
10855         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10856         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10857         AC_CHECK_FUNCS_ONCE for fstatat.
10858         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10859         fchmodat, mkdirat, openat and unlinkat.
10860
10861 2011-08-30  Bruno Haible  <bruno@clisp.org>
10862
10863         Avoid endless recursions if config.h includes some header files.
10864         * lib/fopen.c (__need_FILE): Define already before including config.h.
10865         * lib/freopen.c (__need_FILE): Likewise.
10866         * lib/open.c (__need_system_fcntl_h): Likewise.
10867         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10868         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10869         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10870
10871 2011-08-25  Karl Berry  <karl@gnu.org>
10872
10873         * config/srclist.txt (ylwrap): new try.
10874         * build-aux/ylwrap: new file.
10875
10876 2011-08-23  Bruno Haible  <bruno@clisp.org>
10877
10878         tmpdir: Use a good default directory on native Windows.
10879         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10880         (P_tmpdir): Default to _P_tmpdir on native Windows.
10881         (path_search): On native Windows, try the value returned by GetTempPath
10882         before trying P_tmpdir.
10883         * modules/tmpdir (Depends-on): Add pathmax.
10884         Suggested by John Darrington <john@darrington.wattle.id.au>.
10885
10886 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10887
10888         doc: fix typo in README-release
10889         * top/README-release: Capitalize first word of a sentence.
10890
10891 2011-08-19  Jim Meyering  <meyering@redhat.com>
10892
10893         fts: do not exhaust memory when processing million-entry directories
10894         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10895         directory would require about 256*N bytes of memory.  Thus, it was
10896         easy to construct a directory too large to be processed by any of
10897         those tools.  With this change, fts' maximum memory utilization is
10898         now limited to around 30MB.
10899         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10900         (fts_read): When we've processed the final entry (i.e., when
10901         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10902         using the parent entry to read any remaining entries.  Dispatch
10903         depending on what fts_build returns:
10904         - NULL+stop, aka failure: stop
10905         - NULL otherwise: move up in the dir hierarchy
10906         - non-NULL: handle this new entry
10907         (fts_build): Declare and use new local, continue_readdir.
10908         Prepare to be called from fts_read, when the entries
10909         from a partially-read directory have just been exhausted.
10910         In that case, we'll skip the opendir and instead use the parent's
10911         fts_dirp and derive dir_fd from that.
10912         Finally, in the readdir loop, if we read max_entries entries,
10913         exit the loop ensuring *not* to call closedir.  This is required
10914         so that fts_dirp can be reused on a subsequent call.
10915         Prompted by Ben England's report of memory exhaustion in find
10916         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10917
10918         maint: fts: move decl of `dp' down into while loop; split a long line
10919         * lib/fts.c (fts_build): No semantic change.
10920
10921         fts: add/use new struct member, fts_dirp
10922         We are about to use this to manage any directory with
10923         too many entries to read all of them into memory at once.
10924         To do that, we'll need to save the DIR* pointer in each
10925         affected FTSENT struct.
10926         * lib/fts_.h: Include <dirent.h>.
10927         (struct FTSENT) [fts_dirp]: New member.
10928         * lib/fts.c (closedir_and_clear): Define.
10929         Use it in place of closedir so that we are sure to
10930         clear the new fts_dirp member when done with it.
10931         (fts_alloc): Initialize the new member.
10932         (fts_lfree): Free, if needed.
10933
10934         maint: fts: give __opendir2 a new parameter and rename
10935         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10936         than surreptitiously using sole caller's "dir_fd".
10937         (fts_opendir): Rename from __opendir2.
10938
10939         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10940         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10941
10942         maint: fts.c: correct off-by-one indentation
10943         * lib/fts.c (fts_build): Correct indentation, change style
10944         of a couple of block comments, and bracing style.
10945
10946         maint: fts.c: move __opendir2 #define "up" out of function body
10947         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10948
10949         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10950         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10951         out for a long time and besides was useful only on BSD systems.
10952
10953 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10954
10955         regex: port to Stratus OpenVOS
10956         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10957         define to empty, rather than attempting nonportable optimizations.
10958         Problem reported by Paul Green in:
10959         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10960         and fix suggested by Eric Blake in:
10961         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10962
10963 2011-08-17  Eric Blake  <eblake@redhat.com>
10964
10965         getcwd: fix test failures on mingw
10966         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10967         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10968         test if long directory cannot be created, and allow mingw errno.
10969
10970         getcwd-lgpl: fix m4 to match relaxed test for BSD
10971         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10972         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10973         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10974         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10975         signature problem.
10976
10977         getcwd: fix compilation on mingw64
10978         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10979         getcwd.
10980         Reported by Marc-André Lureau.
10981
10982         pipe2: silence compiler warning
10983         * lib/pipe2.c (pipe2): Hide label if it is not used.
10984
10985 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10986
10987         relocatable-prog: fix link error
10988         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10989         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10990         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10991         into modules/relocatable-lib without noticing that
10992         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10993         also needs to build relocatable.c.
10994
10995 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10996
10997         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10998         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10999         shell code: it contained a 'break' that was not in a loop.
11000         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
11001         via a shell-language loop; this may have been true in old Autoconf
11002         versions, but it's not true in Autoconf 2.68.  I found this bug
11003         when testing coreutils git on Solaris 8, whose shell complains
11004         about the syntax error.
11005
11006 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11007
11008         * lib/base64.c: Fix comment to reference RFC 4648.
11009         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11010         <gvtulder@gmail.com>.
11011
11012 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11013
11014         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11015
11016         po/Makefile.in.in: fix make -q problem
11017         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11018         rule, since there's no file named 'check-macro-version' and its
11019         use as a file breaks make -q.
11020         (all): Don't depend on check-macro-version.
11021         (CHECK_MACRO_VERSION): New macro.
11022         (stamp-po): Use it.
11023
11024         configmake: fix make -q problem
11025         * modules/configmake (configmake.h): Update configmake.h's time stamp
11026         even if the file does not change.  Otherwise, 'make -q' fails.
11027         Problem reported by Simon Josefsson in
11028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11029
11030 2011-08-11  Jim Meyering  <meyering@redhat.com>
11031
11032         git-version-gen: correct the advice in a comment
11033         * build-aux/git-version-gen: Correct comment.
11034         Don't recommend to list .tarball-version in .gitignore.
11035
11036 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11037
11038         base64: fix off-by-one buffer size bug
11039         Problem and (trivial) fix reported by Gijs van Tulder in
11040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11041         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11042         * tests/test-base64.c (main): Catch the bug.
11043
11044 2011-08-10  Eric Blake  <eblake@redhat.com>
11045
11046         closein: correct comments
11047         * lib/closein.c (close_stdin): Improve comments.
11048
11049 2011-08-09  Bruno Haible  <bruno@clisp.org>
11050
11051         More tests for 'fseeko'.
11052         * tests/test-fseeko3.c: New file, from Eric Blake.
11053         * tests/test-fseeko3.sh: New file.
11054         * modules/fseeko-tests (Files): Add them.
11055         (TESTS): Add test-fseeko3.sh.
11056         (check_PROGRAMS): Add test-fseeko3.
11057
11058 2011-08-09  Eric Blake  <eblake@redhat.com>
11059
11060         fseeko: remove unneeded hack
11061         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11062
11063         fseeko: fix bug on glibc
11064         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11065         Reported by John W. Eaton.
11066
11067 2011-08-08  Bruno Haible  <bruno@clisp.org>
11068
11069         unictype/base: Fix interoperability with preinstalled libunistring.
11070         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11071         Reported by Simon Josefsson.
11072
11073 2011-08-08  Bruno Haible  <bruno@clisp.org>
11074
11075         iswblank: Detect declaration correctly.
11076         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11077         AC_CHECK_DECLS invocation.
11078
11079 2011-08-08  Bruno Haible  <bruno@clisp.org>
11080
11081         tcgetsid: Detect declaration correctly.
11082         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11083         AC_CHECK_DECLS invocation.
11084         Reported by Simon Josefsson.
11085
11086 2011-08-08  Eric Blake  <eblake@redhat.com>
11087
11088         largefile: fix typo that regressed large file support
11089         * modules/largefile (configure.ac-early): Fix section name.
11090
11091 2011-08-06  Karl Berry  <karl@gnu.org>
11092
11093         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11094         a separate module.
11095
11096 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11097
11098         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11099         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11100         get prototype for free.
11101
11102 2011-08-04  Bruno Haible  <bruno@clisp.org>
11103
11104         Tests for module 'pathmax'.
11105         * modules/pathmax-tests: New file.
11106         * tests/test-pathmax.c: New file.
11107
11108         canonicalize-lgpl: Support larger filenames on the Hurd.
11109         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11110         Reported by Paul Eggert.
11111
11112         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11113         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11114         * lib/chdir-long.h: Include pathmax.h.
11115         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11116         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11117         (PATH_MAX): Remove code that is done by pathmax.h.
11118         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11119         * lib/tmpfile.c: Add a comment.
11120         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11121         * modules/chdir-long (Depends-on): Add pathmax.
11122         * modules/getcwd (Depends-on): Add pathmax.
11123         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11124         is not defined.
11125         * doc/posix-headers/limits.texi: Mention the pathmax module.
11126         * NEWS: Mention the change.
11127
11128 2011-08-02  Bruno Haible  <bruno@clisp.org>
11129
11130         pthread_sigmask: Actually use results of gl_THREADLIB.
11131         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11132         gl_THREADLIB, not gl_[]THREADLIB.
11133         Reported by Eric Blake.
11134
11135 2011-08-02  Jim Meyering  <meyering@redhat.com>
11136
11137         maint.mk: relax the default _gl_TS_function_match regexp
11138         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11139         space between function name and "(" in an "extern" declaration.
11140         That would fail to match a decl with no space there: extern void foo();
11141
11142 2011-07-31  Iain Nicol  <iain@thenicols.net>
11143
11144         git-version-gen: document that EXTRA_DIST must include .version
11145         * build-aux/git-version-gen: In the how-to-use comment, document
11146         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
11147         will fail when run from an unpacked distribution tarball.
11148
11149 2011-08-01  Bruno Haible  <bruno@clisp.org>
11150
11151         wctype-h: Fix last change.
11152         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
11153         REPLACE_TOWLOWER to 0.
11154         Reported by Sam Steingold <sds@gnu.org>.
11155
11156 2011-07-31  Bruno Haible  <bruno@clisp.org>
11157
11158         frexpl: Update autoconf test.
11159         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
11160         according to changes of 2011-06-20.
11161
11162 2011-07-31  Bruno Haible  <bruno@clisp.org>
11163
11164         sys_utsname: Add support for Minix.
11165         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
11166         <sys/utsname.h>.
11167         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11168         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
11169
11170 2011-07-31  Bruno Haible  <bruno@clisp.org>
11171
11172         strings: Add support for Minix.
11173         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
11174         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11175         * doc/posix-headers/strings.texi: Document the Minix problem.
11176
11177 2011-07-31  Bruno Haible  <bruno@clisp.org>
11178
11179         wctype-h: Add support for Minix.
11180         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11181         REPLACE_TOWLOWER.
11182         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11183         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11184         REPLACE_ISWCNTRL.
11185
11186 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11187
11188         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11189         This is a performance improvement for 64-bit hosts: it causes the
11190         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11191
11192 2011-07-31  Bruno Haible  <bruno@clisp.org>
11193
11194         stdioext: Add support for Minix.
11195         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11196         * lib/fpurge.c (fpurge): Likewise.
11197         * lib/freadahead.c (freadahead): Likewise.
11198         * lib/freadable.c (freadable): Likewise.
11199         * lib/freading.c (freading): Likewise.
11200         * lib/freadptr.c (freadptr): Likewise.
11201         * lib/freadseek.c (freadptrinc): Likewise.
11202         * lib/fseeko.c (rpl_fseeko): Likewise.
11203         * lib/fseterr.c (fseterr): Likewise.
11204         * lib/fwritable.c (fwritable): Likewise.
11205         * lib/fwriting.c (fwriting): Likewise.
11206         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11207         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11208
11209 2011-07-31  Bruno Haible  <bruno@clisp.org>
11210
11211         errno: Port to Minix.
11212         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11213         ECONNABORTED are defined.
11214         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11215         GNULIB_defined_ECONNABORTED): New macros.
11216         * lib/strerror-override.h (strerror_override): Test also
11217         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11218         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11219         ECONNABORTED.
11220         * doc/posix-headers/errno.texi: Mention the Minix problem.
11221
11222 2011-07-31  Bruno Haible  <bruno@clisp.org>
11223
11224         Work around declaration collisions on Minix.
11225         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11226         defined, set REPLACE_MBSINIT.
11227         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11228         defined, set REPLACE_MBRTOWC.
11229         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11230         set REPLACE_MBRLEN.
11231         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11232         defined, set REPLACE_MBSRTOWCS.
11233         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11234         defined, set REPLACE_WCRTOMB.
11235         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11236         defined, set REPLACE_WCSRTOMBS.
11237
11238 2011-07-31  Bruno Haible  <bruno@clisp.org>
11239
11240         Add support for Minix with ACK compiler.
11241         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
11242         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
11243         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
11244
11245 2011-07-31  Bruno Haible  <bruno@clisp.org>
11246
11247         Documentation about Minix.
11248         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
11249         * doc/glibc-headers/*.texi: Likewise.
11250         * doc/posix-functions/*.texi: Likewise.
11251         * doc/glibc-functions/*.texi: Likewise.
11252
11253 2011-07-31  Bruno Haible  <bruno@clisp.org>
11254
11255         snippet/warn-on-use: Fix indentation.
11256         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11257
11258 2011-07-25  Jim Meyering  <meyering@redhat.com>
11259
11260         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11261         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11262         commands.
11263
11264 2011-07-27  Jim Meyering  <meyering@redhat.com>
11265
11266         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11267         * top/maint.mk (gl_extract_significant_defines_): Now that
11268         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11269         gnulib/lib/signal.in.h, and now that we recommend to
11270         define-if-undefined those two symbols in application code,
11271         we must filter them out of the "significant" list.
11272         This avoids a "make syntax-check" failure in coreutils.
11273
11274 2011-07-26  Eric Blake  <eblake@redhat.com>
11275
11276         warnings: add comments about previous patch
11277         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11278         * m4/include_next.m4: Likewise.
11279         * m4/warn-on-use.m4: Likewise.
11280         * m4/warnings.m4: Likewise, and simplify use.
11281         Suggested by Stefano Lattarini.
11282
11283         include-next, warnings: support older autoconf
11284         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11285         AS_VAR_PUSHDEF in a way that works with older autoconf.
11286         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11287         Reported by Daniel P. Berrange.
11288
11289 2011-07-25  Bruno Haible  <bruno@clisp.org>
11290
11291         fseek, ftell: Fix doc.
11292         * doc/posix-functions/fseek.texi: Reword statement about
11293         AC_SYS_LARGEFILE.
11294         * doc/posix-functions/ftell.texi: Likewise.
11295
11296 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11297             Bruno Haible  <bruno@clisp.org>
11298
11299         Add dependencies to the 'largefile' module.
11300         * modules/fopen (Depends-on): Add 'largefile'.
11301         * modules/freopen (Depends-on): Likewise.
11302         * modules/fseeko (Depends-on): Likewise.
11303         * modules/ftello (Depends-on): Likewise.
11304         * modules/glob (Depends-on): Likewise.
11305         * modules/lseek (Depends-on): Likewise.
11306         * modules/lstat (Depends-on): Likewise.
11307         * modules/mkostemp (Depends-on): Likewise.
11308         * modules/mkostemps (Depends-on): Likewise.
11309         * modules/mkstemp (Depends-on): Likewise.
11310         * modules/mkstemps (Depends-on): Likewise.
11311         * modules/open (Depends-on): Likewise.
11312         * modules/openat (Depends-on): Likewise.
11313         * modules/pread (Depends-on): Likewise.
11314         * modules/pwrite (Depends-on): Likewise.
11315         * modules/scandir (Depends-on): Likewise.
11316         * modules/stat (Depends-on): Likewise.
11317         * modules/tmpfile (Depends-on): Likewise.
11318         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11319         since the containing module now depends on the largefile module.
11320         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11321         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11322         off_t is fixed by gnulib.
11323         * doc/posix-functions/freopen.texi: Likewise.
11324         * doc/posix-functions/fseeko.texi: Likewise.
11325         * doc/posix-functions/fstatat.texi: Likewise.
11326         * doc/posix-functions/ftello.texi: Likewise.
11327         * doc/posix-functions/glob.texi: Likewise.
11328         * doc/posix-functions/lseek.texi: Likewise.
11329         * doc/posix-functions/lstat.texi: Likewise.
11330         * doc/posix-functions/mkstemp.texi: Likewise.
11331         * doc/posix-functions/open.texi: Likewise.
11332         * doc/posix-functions/openat.texi: Likewise.
11333         * doc/posix-functions/pread.texi: Likewise.
11334         * doc/posix-functions/pwrite.texi: Likewise.
11335         * doc/posix-functions/scandir.texi: Likewise.
11336         * doc/posix-functions/stat.texi: Likewise.
11337         * doc/posix-functions/tmpfile.texi: Likewise.
11338         * doc/glibc-functions/mkostemp.texi: Likewise.
11339         * doc/glibc-functions/mkostemps.texi: Likewise.
11340         * doc/glibc-functions/mkstemps.texi: Likewise.
11341
11342 2011-07-25  Bruno Haible  <bruno@clisp.org>
11343
11344         fcntl: Move AC_LIBOBJ invocation to module description.
11345         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11346         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11347
11348         fcntl: Remove call-in from fchdir.m4.
11349         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11350         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11351
11352         dup3: Remove potential call-in from fchdir.m4.
11353         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11354         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11355
11356         dup2: Move AC_LIBOBJ invocation to module description.
11357         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11358         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11359         Don't invoke AC_LIBOBJ.
11360         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11361
11362         dup2: Remove call-in from fchdir.m4.
11363         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11364         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11365
11366         fclose: Move AC_LIBOBJ invocation to module description.
11367         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11368         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11369         to 1.
11370         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11371
11372         fclose: Remove call-in from close.m4.
11373         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11374         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11375
11376         close: Move AC_LIBOBJ invocation to module description.
11377         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11378         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11379         1.
11380         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11381
11382         close: Remove call-in from fchdir.m4.
11383         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11384         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11385
11386         open: Move AC_LIBOBJ invocation to module description.
11387         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11388         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11389         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11390
11391         open: Remove call-in from fchdir.m4.
11392         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11393         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11394
11395         fchdir: Start to remove gl_REPLACE_* idiom.
11396         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11397         (gl_FUNC_FCHDIR): Invoke it.
11398
11399 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11400
11401         * lib/ftell.c (ftell): Comment out cast.
11402
11403         close: use gl_REPLACE_FCLOSE only if defined
11404         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11405         is defined.  The close module doesn't depend on the fclose module
11406         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11408         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11409
11410 2011-07-24  Jim Meyering  <meyering@redhat.com>
11411
11412         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11413         * tests/test-select.h (test_function): Declare as "static".
11414
11415 2011-07-24  Bruno Haible  <bruno@clisp.org>
11416
11417         doc: Mention the effects of AC_SYS_LARGEFILE.
11418         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11419         on this function.
11420         * doc/posix-functions/aio_error.texi: Likewise.
11421         * doc/posix-functions/aio_fsync.texi: Likewise.
11422         * doc/posix-functions/aio_read.texi: Likewise.
11423         * doc/posix-functions/aio_return.texi: Likewise.
11424         * doc/posix-functions/aio_suspend.texi: Likewise.
11425         * doc/posix-functions/aio_write.texi: Likewise.
11426         * doc/posix-functions/fgetpos.texi: Likewise.
11427         * doc/posix-functions/fopen.texi: Likewise.
11428         * doc/posix-functions/freopen.texi: Likewise.
11429         * doc/posix-functions/fsetpos.texi: Likewise.
11430         * doc/posix-functions/fstatvfs.texi: Likewise.
11431         * doc/posix-functions/ftruncate.texi: Likewise.
11432         * doc/posix-functions/ftw.texi: Likewise.
11433         * doc/posix-functions/getrlimit.texi: Likewise.
11434         * doc/posix-functions/glob.texi: Likewise.
11435         * doc/posix-functions/lio_listio.texi: Likewise.
11436         * doc/posix-functions/lockf.texi: Likewise.
11437         * doc/posix-functions/mkstemp.texi: Likewise.
11438         * doc/posix-functions/mmap.texi: Likewise.
11439         * doc/posix-functions/nftw.texi: Likewise.
11440         * doc/posix-functions/openat.texi: Likewise.
11441         * doc/posix-functions/opendir.texi: Likewise.
11442         * doc/posix-functions/posix_fadvise.texi: Likewise.
11443         * doc/posix-functions/posix_fallocate.texi: Likewise.
11444         * doc/posix-functions/pread.texi: Likewise.
11445         * doc/posix-functions/pwrite.texi: Likewise.
11446         * doc/posix-functions/readdir.texi: Likewise.
11447         * doc/posix-functions/readdir_r.texi: Likewise.
11448         * doc/posix-functions/rewinddir.texi: Likewise.
11449         * doc/posix-functions/scandir.texi: Likewise.
11450         * doc/posix-functions/seekdir.texi: Likewise.
11451         * doc/posix-functions/setrlimit.texi: Likewise.
11452         * doc/posix-functions/statvfs.texi: Likewise.
11453         * doc/posix-functions/telldir.texi: Likewise.
11454         * doc/posix-functions/tmpfile.texi: Likewise.
11455         * doc/posix-functions/truncate.texi: Likewise.
11456         * doc/glibc-functions/fallocate.texi: Likewise.
11457         * doc/glibc-functions/fstatfs.texi: Likewise.
11458         * doc/glibc-functions/fts_children.texi: Likewise.
11459         * doc/glibc-functions/fts_read.texi: Likewise.
11460         * doc/glibc-functions/getdirentries.texi: Likewise.
11461         * doc/glibc-functions/mkostemp.texi: Likewise.
11462         * doc/glibc-functions/mkostemps.texi: Likewise.
11463         * doc/glibc-functions/mkstemps.texi: Likewise.
11464         * doc/glibc-functions/preadv.texi: Likewise.
11465         * doc/glibc-functions/pwritev.texi: Likewise.
11466         * doc/glibc-functions/sendfile.texi: Likewise.
11467         * doc/glibc-functions/statfs.texi: Likewise.
11468
11469 2011-07-24  Bruno Haible  <bruno@clisp.org>
11470
11471         doc: Fix typo.
11472         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11473
11474 2011-07-24  Bruno Haible  <bruno@clisp.org>
11475
11476         doc: Mention fsusage.
11477         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11478
11479 2011-07-24  Bruno Haible  <bruno@clisp.org>
11480
11481         doc: Mention new glibc headers and functions.
11482         * doc/glibc-headers/gshadow.texi: New file.
11483         * doc/glibc-functions/endsgent.texi: New file.
11484         * doc/glibc-functions/fgetsgent.texi: New file.
11485         * doc/glibc-functions/fgetsgent_r.texi: New file.
11486         * doc/glibc-functions/getsgent.texi: New file.
11487         * doc/glibc-functions/getsgent_r.texi: New file.
11488         * doc/glibc-functions/getsgnam.texi: New file.
11489         * doc/glibc-functions/getsgnam_r.texi: New file.
11490         * doc/glibc-functions/putsgent.texi: New file.
11491         * doc/glibc-functions/setsgent.texi: New file.
11492         * doc/glibc-functions/sgetsgent.texi: New file.
11493         * doc/glibc-functions/sgetsgent_r.texi: New file.
11494         * doc/glibc-functions/malloc_info.texi: New file.
11495         * doc/glibc-functions/preadv.texi: New file.
11496         * doc/glibc-functions/pwritev.texi: New file.
11497         * doc/glibc-functions/register_printf_modifier.texi: New file.
11498         * doc/glibc-functions/register_printf_specifier.texi: New file.
11499         * doc/glibc-functions/register_printf_type.texi: New file.
11500         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11501         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11502         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11503         * doc/glibc-functions/pthread_getname_np.texi: New file.
11504         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11505         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11506         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11507         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11508         * doc/glibc-functions/pthread_setname_np.texi: New file.
11509         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11510         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11511         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11512         * doc/glibc-functions/qsort_r.texi: New file.
11513         * doc/glibc-functions/quick_exit.texi: New file.
11514         * doc/glibc-functions/syncfs.texi: New file.
11515         * doc/gnulib.texi: Include them.
11516         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11517         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11518         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11519         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11520         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11521         * doc/glibc-functions/execvpe.texi: Likewise.
11522
11523 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11524
11525         ftell: don't include <unistd.h>
11526         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11527         guaranteed to define off_t, and the ftell module depends on the
11528         stdio module.
11529
11530         ftell: do not assume wraparound signed arithmetic
11531         * lib/ftell.c: Include <limits.h>.
11532         (ftell): Don't assume wraparound signed arithmetic.
11533
11534 2011-07-24  Bruno Haible  <bruno@clisp.org>
11535
11536         close: No longer depend on module 'fclose'.
11537         * modules/close (Depends-on): Remove fclose.
11538         * NEWS: Mention the change.
11539         Suggested by Sam Steingold <sds@gnu.org>.
11540
11541 2011-07-24  Bruno Haible  <bruno@clisp.org>
11542
11543         fsusage: Enable large volume support on AIX >= 5.2.
11544         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11545         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11546         instead of STAT_STATVFS.
11547         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11548
11549         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11550         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11551         f_blocks field only on MacOS X.
11552
11553         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11554         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11555         * modules/fsusage (Depends-on): Add largefile.
11556
11557 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11558
11559         * README: Modernize discussion of signed integers.
11560         Assuming overflow wraparound is no longer safe.
11561         Mention ones' complement and signed magnitude.
11562
11563 2011-07-22  Bruno Haible  <bruno@clisp.org>
11564
11565         select tests, pselect tests: Refactor.
11566         * tests/test-select.h: New file, extracted from tests/test-select.c.
11567         (select_fn): New type.
11568         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11569         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11570         test_pipe): Add my_select argument.
11571         (test_function): Renamed from main. Add my_select argument.
11572         * tests/test-select.c: Move most code to tests/test-select.h. Include
11573         test-select.h.
11574         * modules/select-tests (Files): Add tests/test-select.h.
11575         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11576         (my_select, main): New functions.
11577         * modules/pselect-tests (Files): Add tests/test-select.h,
11578         tests/macros.h, tests/signature.h.
11579         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11580         (configure.ac): Check for <sys/wait.h>.
11581
11582 2011-07-22  Bruno Haible  <bruno@clisp.org>
11583
11584         sys_select tests: Check the signature of FD_*.
11585         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11586         signature tests from here...
11587         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11588         here.
11589         * modules/sys_select-tests (Files): Add tests/signature.h.
11590
11591 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11592
11593         largefile: new module, replacing large-inode
11594         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11595         * MODULES.html.sh: Add largefile, remove large-inode.
11596         * modules/largefile, m4/largefile.m4: New files.
11597         * modules/large-inode, m4/large-inode.m4: Remove.
11598
11599         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11600         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11601         implementations that use only 32 bits to count blocks.
11602         On typical hosts with 1024-byte blocks, this fails with file
11603         systems as small as 4 TiB.  Problem reported by Herb Wartens
11604         <http://debbugs.gnu.org/9140> and this should also fix a similar
11605         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11606
11607         large-inode: New module
11608         * MODULES.html.sh: Add it.
11609         * modules/large-inode, m4/large-inode.m4: New files.
11610
11611         extensions: Enable extensions on MacOS X 10.5 and later.
11612         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11613
11614 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11615
11616         file-has-acl: use acl_extended_file_nofollow if available
11617         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11618         (acl_extended_file): New macro.
11619         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11620         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11621
11622 2011-07-21  Bruno Haible  <bruno@clisp.org>
11623
11624         Declare system functions in a way that works with C++.
11625         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11626         declare fdopendir as extern "C".
11627         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11628         declare frexpl as extern "C".
11629         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11630         declare gai_strerror as extern "C".
11631         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11632         programs, declare gai_strerror as extern "C".
11633         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11634         declare getlogin_r as extern "C".
11635         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11636         as extern "C".
11637         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11638         declare ldexpl as extern "C".
11639         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11640         as extern "C".
11641         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11642         program, declare getmntinfo as extern "C".
11643         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11644         stpncpy as extern "C".
11645         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11646         program, declare __xpg_strerror_r as extern "C".
11647         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11648         strndup as extern "C".
11649         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11650         declare memset and bzero as extern "C".
11651         Reported by Sam Steingold <sds@gnu.org>.
11652
11653 2011-07-12  Jim Meyering  <meyering@redhat.com>
11654
11655         maint.mk: prohibit inclusion of "verify.h" without use
11656         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11657
11658 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11659
11660         timer-time: A new module to check for timer_settime()
11661         * m4/timer_time.m4: Check for the posix function.
11662         * modules/timer-time: Add the new module.
11663         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11664         Mention it.
11665
11666 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11667             Bruno Haible  <bruno@clisp.org>
11668
11669         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11670         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11671         not defined, assume POSIX threads and look for pthread_sigmask in
11672         $LIBS, without changing $CPPFLAGS.
11673
11674 2011-07-19  Bruno Haible  <bruno@clisp.org>
11675
11676         strstr: Update cross-compilation guess.
11677         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11678         CPUs, guess no, in view of glibc
11679         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11680         Suggested by Eric Blake. Reported by Reuben Thomas.
11681
11682 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11683
11684         getopt-gnu: suppress core dumps from detection code
11685         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11686         to suppress core dumps that may well occur on glibc systems.
11687         * modules/getopt-gnu: Depend on nocrash.
11688
11689 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11690
11691         pthread_sigmask: ensure usleep is declared
11692         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11693         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11694
11695 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11696
11697         doc: Document NonStop portability issues.
11698         * doc/posix-functions/sigaction.texi (sigaction):
11699         * doc/posix-headers/signal.texi (signal.h):
11700         Document NonStop.  See Joachim Schmitz in
11701         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11702
11703 2011-07-15  Bruno Haible  <bruno@clisp.org>
11704
11705         ffsl, ffsll: Avoid unportable behaviour.
11706         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11707
11708 2011-07-15  Bruno Haible  <bruno@clisp.org>
11709
11710         ffs: More tests.
11711         * tests/test-ffs.c (NBITS): New macro.
11712         (main): Add more tests.
11713         * tests/test-ffsl.c (NBITS): New macro.
11714         (main): Add more tests.
11715         * tests/test-ffsll.c (NBITS): New macro.
11716         (main): Add more tests.
11717
11718 2011-07-15  Eric Blake  <eblake@redhat.com>
11719
11720         ffsl, ffsll: new modules
11721         * modules/ffsl: New file.
11722         * modules/ffsll: Likewise.
11723         * m4/ffsl.m4: Likewise.
11724         * m4/ffsll.m4: Likewise.
11725         * lib/ffsl.c: Likewise.
11726         * lib/ffsl.h: Likewise.
11727         * lib/ffsll.c: Likewise.
11728         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11729         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11730         * modules/string (Makefile.am): Substitute witnesses.
11731         * lib/strings.in.h (ffsl, ffsll): Declare.
11732         * modules/ffsl-tests: New test file.
11733         * modules/ffsll-tests: Likewise.
11734         * tests/test-ffsl.c: Likewise.
11735         * tests/test-ffsll.c: Likewise.
11736         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11737         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11738         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11739
11740         ffs: fix m4 prerequisite
11741         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11742
11743         ffs: avoid undefined behavior
11744         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11745         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11746         Reported by Bruno Haible.
11747
11748 2011-07-12  Bruno Haible  <bruno@clisp.org>
11749
11750         pthread_sigmask: Rely on module 'threadlib'.
11751         * modules/pthread_sigmask (Depends-on): Add threadlib.
11752         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11753         is defined.
11754
11755 2011-07-12  Bruno Haible  <bruno@clisp.org>
11756
11757         regex: Depend on module 'strcase'.
11758         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11759
11760 2011-07-12  Jim Meyering  <meyering@redhat.com>
11761
11762         warn-on-use: fix typo in file name
11763         * modules/snippet/warn-on-use (Files): Correct file name:
11764         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11765
11766 2011-07-12  Bruno Haible  <bruno@clisp.org>
11767
11768         strings: Document module.
11769         * doc/posix-headers/strings.texi: Mention module 'strings'.
11770
11771 2011-07-12  Bruno Haible  <bruno@clisp.org>
11772
11773         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11774         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11775         (Files, Makefile.am): Update.
11776         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11777         * modules/stdlib (Depends-on): Update.
11778
11779 2011-07-12  Bruno Haible  <bruno@clisp.org>
11780
11781         * NEWS: Mention the changes.
11782
11783         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11784         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11785         (Files, Makefile.am): Update.
11786         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11787         * modules/arpa_inet (Depends-on): Update.
11788         * modules/ctype (Depends-on): Update.
11789         * modules/dirent (Depends-on): Update.
11790         * modules/fcntl-h (Depends-on): Update.
11791         * modules/glob (Depends-on): Update.
11792         * modules/iconv-h (Depends-on): Update.
11793         * modules/inttypes-incomplete (Depends-on): Update.
11794         * modules/langinfo (Depends-on): Update.
11795         * modules/locale (Depends-on): Update.
11796         * modules/math (Depends-on): Update.
11797         * modules/netdb (Depends-on): Update.
11798         * modules/poll-h (Depends-on): Update.
11799         * modules/pty (Depends-on): Update.
11800         * modules/search (Depends-on): Update.
11801         * modules/signal (Depends-on): Update.
11802         * modules/spawn (Depends-on): Update.
11803         * modules/stdio (Depends-on): Update.
11804         * modules/stdlib (Depends-on): Update.
11805         * modules/string (Depends-on): Update.
11806         * modules/strings (Depends-on): Update.
11807         * modules/sys_file (Depends-on): Update.
11808         * modules/sys_ioctl (Depends-on): Update.
11809         * modules/sys_select (Depends-on): Update.
11810         * modules/sys_socket (Depends-on): Update.
11811         * modules/sys_stat (Depends-on): Update.
11812         * modules/sys_time (Depends-on): Update.
11813         * modules/sys_times (Depends-on): Update.
11814         * modules/sys_utsname (Depends-on): Update.
11815         * modules/sys_wait (Depends-on): Update.
11816         * modules/termios (Depends-on): Update.
11817         * modules/time (Depends-on): Update.
11818         * modules/unistd (Depends-on): Update.
11819         * modules/wchar (Depends-on): Update.
11820         * modules/wctype-h (Depends-on): Update.
11821         * MODULES.html.sh (Support for building libraries and executables):
11822         Update.
11823
11824         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11825         * modules/snippet/unused-parameter: Renamed from
11826         modules/unused-parameter.
11827         (Files, Makefile.am): Update.
11828         * build-aux/snippet/unused-parameter.h: Renamed from
11829         build-aux/unused-parameter.h.
11830         * modules/selinux-h (Depends-on): Update.
11831         * modules/unistr/base (Depends-on): Update.
11832         * MODULES.html.sh (Core language properties): Update.
11833
11834         Rename module 'link-warning' to 'snippet/link-warning'.
11835         * modules/snippet/link-warning: Renamed from modules/link-warning.
11836         (Files, Makefile.am): Update.
11837         * build-aux/snippet/link-warning.h: Renamed from
11838         build-aux/link-warning.h.
11839         * MODULES.html.sh (Support for building libraries and executables):
11840         Update.
11841
11842         Rename module 'c++defs' to 'snippet/c++defs'.
11843         * modules/snippet/c++defs: Renamed from modules/c++defs.
11844         (Files, Makefile.am): Update.
11845         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11846         * modules/arpa_inet (Depends-on): Update.
11847         * modules/ctype (Depends-on): Update.
11848         * modules/dirent (Depends-on): Update.
11849         * modules/fcntl-h (Depends-on): Update.
11850         * modules/glob (Depends-on): Update.
11851         * modules/iconv-h (Depends-on): Update.
11852         * modules/langinfo (Depends-on): Update.
11853         * modules/locale (Depends-on): Update.
11854         * modules/math (Depends-on): Update.
11855         * modules/netdb (Depends-on): Update.
11856         * modules/poll-h (Depends-on): Update.
11857         * modules/pty (Depends-on): Update.
11858         * modules/search (Depends-on): Update.
11859         * modules/signal (Depends-on): Update.
11860         * modules/spawn (Depends-on): Update.
11861         * modules/stdio (Depends-on): Update.
11862         * modules/stdlib (Depends-on): Update.
11863         * modules/string (Depends-on): Update.
11864         * modules/strings (Depends-on): Update.
11865         * modules/sys_ioctl (Depends-on): Update.
11866         * modules/sys_select (Depends-on): Update.
11867         * modules/sys_socket (Depends-on): Update.
11868         * modules/sys_stat (Depends-on): Update.
11869         * modules/sys_time (Depends-on): Update.
11870         * modules/sys_wait (Depends-on): Update.
11871         * modules/termios (Depends-on): Update.
11872         * modules/time (Depends-on): Update.
11873         * modules/unistd (Depends-on): Update.
11874         * modules/wchar (Depends-on): Update.
11875         * modules/wctype-h (Depends-on): Update.
11876
11877         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11878         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11879         (Files, Makefile.am): Update.
11880         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11881         * modules/argv-iter (Depends-on): Update.
11882         * modules/arpa_inet (Depends-on): Update.
11883         * modules/dirent (Depends-on): Update.
11884         * modules/fcntl-h (Depends-on): Update.
11885         * modules/fnmatch (Depends-on): Update.
11886         * modules/getopt-posix (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/locale (Depends-on): Update.
11891         * modules/math (Depends-on): Update.
11892         * modules/netdb (Depends-on): Update.
11893         * modules/search (Depends-on): Update.
11894         * modules/signal (Depends-on): Update.
11895         * modules/spawn (Depends-on): Update.
11896         * modules/stdio (Depends-on): Update.
11897         * modules/stdlib (Depends-on): Update.
11898         * modules/string (Depends-on): Update.
11899         * modules/strings (Depends-on): Update.
11900         * modules/sys_socket (Depends-on): Update.
11901         * modules/sys_stat (Depends-on): Update.
11902         * modules/sys_time (Depends-on): Update.
11903         * modules/sys_times (Depends-on): Update.
11904         * modules/sys_utsname (Depends-on): Update.
11905         * modules/time (Depends-on): Update.
11906         * modules/unistd (Depends-on): Update.
11907         * modules/wchar (Depends-on): Update.
11908         * MODULES.html.sh (Support for building libraries and executables):
11909         Update.
11910
11911 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11912
11913         Improvements on _Noreturn and related modules.
11914
11915         modules/_Exit-tests: test _Noreturn too
11916         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11917         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11918         (main): Use them.
11919
11920         stdnoreturn, stdnoreturn-tests: remove modules
11921         They're not needed here and a bit premature for use elsewhere.  See
11922         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11923         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11924         * tests/test-stdnoreturn.c: Remove files.
11925         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11926         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11927         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11928         and using noreturn.
11929         * modules/openat, modules/sigpipe-die, modules/xalloc:
11930         * modules/xmemdup0, modules/xstrtol:
11931         Remove dependency on stdnoreturn.
11932
11933         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11934         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11935         Reparenthesize to avoid GCC warning.
11936         Support Microsoft's syntax.
11937         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11938
11939         _Noreturn-tests: remove module
11940         * modules/_Noreturn-tests: Remove.
11941         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11942         * tests/test-_Noreturn.c: Remove.
11943         * tests/test-stdnoreturn.c: Merge from the old
11944         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11945
11946 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11947
11948         _Noreturn, stdnoreturn, and related modules.
11949
11950         * top/maint.mk: Adjust to new noreturn support.
11951         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11952         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11953
11954         xalloc: use stdnoreturn.h
11955         * lib/xalloc.h: Include <stdnoreturn.h>.
11956         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11957         * modules/xalloc (Depends-on): Add stdnoreturn.
11958
11959         xstrtol: use stdnoreturn.h
11960         * lib/xstrtol.h: Include <stdnoreturn.h>.
11961         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11962         * modules/xstrtol (Depends-on): Add stdnoreturn.
11963
11964         xmemdup0: use stdnoreturn.h
11965         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11966         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11967         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11968
11969         sigpipe-die: use stdnoreturn.h
11970         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11971         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11972         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11973
11974         openat: use stdnoreturn.h
11975         * lib/openat.h: Include <stdnoreturn.h>.
11976         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11977         * modules/openat (Depends-on): Add stdnoreturn.
11978
11979         * lib/openat-die.c (openat_save_fail): Modernize comment.
11980
11981         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11982
11983         * lib/glthread/thread.h: Modernize comment.
11984
11985         obstack: use _Noreturn
11986         * lib/obstack.c (__attribute__): Remove macro.
11987         (print_and_abort): Use _Noreturn.
11988
11989         c-stack: use _Noreturn
11990         * lib/c-stack.c (die, overflow_handler, segv_handler):
11991         Use _Noreturn rather than __attribute__((noreturn)).
11992
11993         argmatch-tests, exclude_tests: use _Noreturn
11994         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11995         Remove.
11996         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11997
11998         stdlib: use _Noreturn
11999         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
12000         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
12001         * modules/stdlib (Depends-on): Add _Noreturn.
12002         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
12003
12004         stdnoreturn-tests: new module
12005         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
12006
12007         stdnoreturn: new module
12008         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12009         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12010
12011         _Noreturn-tests: new module
12012         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12013
12014         _Noreturn: new module
12015         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12016         New section, mentioning it.
12017         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12018
12019         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12020
12021 2011-07-11  Eric Blake  <eblake@redhat.com>
12022
12023         ffs: new module
12024         * modules/ffs: New file.
12025         * m4/ffs.m4: Likewise.
12026         * lib/ffs.c: Likewise.
12027         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12028         * modules/strings (Makefile.am): Substitute witness.
12029         (Depends-on): Add c++defs.
12030         * lib/strings.in.h (ffs): Declare.
12031         * modules/ffs-tests: New test file.
12032         * tests/test-ffs.c: Test new module.
12033         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12034         * doc/posix-functions/ffs.texi (ffs): Likewise.
12035
12036         regex: avoid compiler warning
12037         * lib/regex.c (includes): Include <strings.h>, for use of
12038         strcasecmp in regcomp.c.
12039         Reported by Joachim Schmitz.
12040
12041 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12042
12043         stdint: respect system's intmax_t if INTMAX_MAX
12044         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12045         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12046         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12047         long but int64_t is long long, and where we will clash with the
12048         system intmax_t if we override it.  See
12049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12050         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12051         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12052         similarly for UINTMAX_C.
12053
12054 2011-07-08  Bruno Haible  <bruno@clisp.org>
12055
12056         pthread_sigmask tests: Avoid a compiler warning.
12057         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12058         non-zero.
12059
12060         sigprocmask tests: A better way to avoid a compiler warning.
12061         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12062         (main): Complain if system() returns non-zero.
12063         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12064
12065 2011-07-08  Bruno Haible  <bruno@clisp.org>
12066
12067         pthread_sigmask: Work around IRIX bug.
12068         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12069         bug.
12070         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12071         there may be unblocked pending signals.
12072         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12073
12074 2011-07-08  Bruno Haible  <bruno@clisp.org>
12075
12076         pthread_sigmask: Work around Cygwin bug.
12077         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12078         bug.
12079         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12080         the system's pthread_sigmask function.
12081         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12082
12083 2011-07-08  Bruno Haible  <bruno@clisp.org>
12084
12085         pthread_sigmask: Work around bug in single-threaded implementation.
12086         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12087         FreeBSD, HP-UX, Solaris bug.
12088         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12089         * lib/pthread_sigmask.c: Include <stddef.h>.
12090         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12091         the system's pthread_sigmask function.
12092         * modules/pthread_sigmask (configure.ac): Invoke
12093         gl_PREREQ_PTHREAD_SIGMASK.
12094         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12095         HP-UX, Solaris.
12096
12097 2011-07-08  Eric Blake  <eblake@redhat.com>
12098
12099         test-sigprocmask: avoid compiler warning
12100         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12101         * tests/test-sigprocmask.c (main): Use it to silence warning.
12102         Reported by Jim Meyering.
12103
12104         test-snprintf: avoid compiler warning
12105         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12106         * tests/test-vsnprintf.c (main): Likewise.
12107         Reported by Jim Meyering.
12108
12109 2011-07-08  Bruno Haible  <bruno@clisp.org>
12110
12111         Tests for module 'pthread_sigmask'.
12112         * modules/pthread_sigmask-tests: New file.
12113         * tests/test-pthread_sigmask1.c: New file, based on
12114         tests/test-sigprocmask.c.
12115         * tests/test-pthread_sigmask2.c: New file.
12116
12117 2011-07-08  Jim Meyering  <meyering@redhat.com>
12118
12119         test-getopt.h: avoid warning about an unused variable
12120         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12121
12122 2011-07-07  Jim Meyering  <meyering@redhat.com>
12123
12124         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12125         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12126         now that it no longer contains leading TABs.
12127         Remove unused "url=FIXME" statement.
12128
12129 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12130
12131         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12132         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12133         When gl_THREADLIB is not in use, assume that the POSIX sematics
12134         are desired.  This is better for Emacs, which uses POSIX semantics
12135         on GNUish and/or POSIXish platforms, and does not use threads at
12136         all otherwise.
12137
12138         pthread_sigmask: fix typo when testing for libraries
12139         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12140         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12141
12142 2011-07-08  Eric Blake  <eblake@redhat.com>
12143
12144         fts: introduce FTS_NOATIME
12145         * lib/fts_.h (FTS_NOATIME): New bit flag.
12146         (FTS_OPTIONMASK): Adjust.
12147         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
12148         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
12149
12150 2011-07-08  Bruno Haible  <bruno@clisp.org>
12151
12152         Tests for module 'thread'.
12153         * modules/thread-tests: New file.
12154         * tests/test-thread_self.c: New file.
12155         * tests/test-thread_create.cc: New file.
12156
12157 2011-07-08  Bruno Haible  <bruno@clisp.org>
12158
12159         thread: Avoid gcc warnings when using gl_thread_self().
12160         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12161         'void *'.
12162         (gl_thread_self_pointer): Update.
12163
12164 2011-07-07  Bruno Haible  <bruno@clisp.org>
12165
12166         signal-c++-tests: Check declaration of pthread_sigmask.
12167         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
12168         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
12169         $(LIB_PTHREAD_SIGMASK).
12170
12171 2011-07-07  Bruno Haible  <bruno@clisp.org>
12172
12173         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
12174         * lib/signal.in.h (pthread_sigmask): Override if
12175         REPLACE_PTHREAD_SIGMASK is 1.
12176         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12177         REPLACE_PTHREAD_SIGMASK.
12178         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
12179         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12180         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12181         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12182         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12183
12184 2011-07-07  Bruno Haible  <bruno@clisp.org>
12185
12186         pthread_sigmask: Ensure declaration in <signal.h>.
12187         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12188         include <pthread.h>.
12189         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12190         problem.
12191
12192 2011-07-07  Bruno Haible  <bruno@clisp.org>
12193
12194         pthread_sigmask: Document the module.
12195         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12196
12197 2011-07-07  Bruno Haible  <bruno@clisp.org>
12198
12199         pthread_sigmask: Follow gnulib conventions.
12200         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12201         gl_PTHREAD_SIGMASK.
12202         * modules/pthread_sigmask (configure.ac): Update.
12203
12204 2011-07-07  Bruno Haible  <bruno@clisp.org>
12205
12206         pthread_sigmask: Make declaration C++ safe.
12207         * lib/signal.in.h: In two special conditions, just do an #include_next.
12208         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12209         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12210         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12211         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12212         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12213         not REPLACE_PTHREAD_MASK.
12214         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12215         not REPLACE_PTHREAD_MASK.
12216         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12217
12218 2011-07-07  Bruno Haible  <bruno@clisp.org>
12219
12220         pthread_sigmask: Fix return value.
12221         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12222         * lib/pthread_sigmask.c: New file.
12223         * modules/pthread_sigmask (Files): Add it.
12224         (configure.ac): Invoke AC_LIBOBJ.
12225
12226 2011-07-07  Eric Blake  <eblake@redhat.com>
12227
12228         getopt: more portable argv creation
12229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12230         const, use char arrays rather than strings.
12231         Suggested by Paul Eggert.
12232
12233 2011-07-07  Bruno Haible  <bruno@clisp.org>
12234
12235         Tests for module 'sigprocmask'.
12236         * modules/sigprocmask-tests: New file.
12237         * tests/test-sigprocmask.c: New file.
12238
12239 2011-07-07  Bruno Haible  <bruno@clisp.org>
12240
12241         float tests: Tweak.
12242         * tests/test-float.c (main): Tweak skip message.
12243
12244 2011-07-07  Eric Blake  <eblake@redhat.com>
12245
12246         getopt: avoid compiler warning during configure
12247         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
12248         assigning string literals to non-const pointer.
12249
12250         getopt-gnu: avoid crash in glibc getopt
12251         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
12252         * tests/test-getopt.h (test_getopt): Enhance test.
12253         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12254         * doc/posix-functions/getopt.texi (getopt): Document it.
12255         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12256         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12257         Likewise.
12258
12259 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12260
12261         getopt: handle W; without long options in getopt [BZ #12922]
12262         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12263         but no long options are defined, just return 'W'.
12264
12265 2011-07-07  Bruno Haible  <bruno@clisp.org>
12266
12267         Avoid literal tabs.
12268         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12269         variable containing a tab instead of a literal tab.
12270         Reported by Jim Meyering.
12271
12272 2011-07-07  Bruno Haible  <bruno@clisp.org>
12273
12274         Comments.
12275         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12276
12277 2011-07-06  Bruno Haible  <bruno@clisp.org>
12278
12279         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12280         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12281         <winsock2.h>.
12282         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12283         lib/sys_socket.in.h.
12284         (close, gethostname): Hide declarations from <winsock2.h>.
12285         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12286         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12287         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12288         (select): Don't override if gnulib's <sys/select.h> was already
12289         included.
12290         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12291         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12292         setsockopt, shutdown, select): Tweak indentation.
12293
12294 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12295
12296         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12297         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12298         in an application that does not use the sys_select module.
12299
12300 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12301
12302         poll: do not return 0 on timeout=-1
12303         * lib/poll.c: Loop with yield if no events occured
12304
12305 2011-07-06  Eric Blake  <eblake@redhat.com>
12306
12307         pthread_sigmask: always replace when not using pthread
12308         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12309         replacement when using some threading other than pthread.  Fix
12310         logic bug.
12311
12312 2011-07-06  Bruno Haible  <bruno@clisp.org>
12313
12314         Comments.
12315         * m4/printf.m4: Update comments about mingw.
12316
12317 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12318
12319         sys_select: define sigset_t more portably
12320         * lib/sys_select.in.h: Always include <sys/types.h>, since
12321         we now need sigset_t and mingw defines it there.
12322         Include <signal.h> before split inclusion guard, to avoid
12323         mishaps on Solaris, whose <signal.h> eventually includes us.
12324         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12325         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12326         which come from ...
12327         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12328         gl_CHECK_TYPE_SIGSET_T.
12329         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12330         does the real work.
12331         * modules/sys_select (Depends-on): Add 'signal'.
12332
12333         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12334         Suggested by Bruno Haible.
12335
12336         pselect: Use pthread_sigmask, not sigprocmask.
12337         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12338         multithreaded apps better than sigprocmask does.
12339         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12340         sigprocmask directly.
12341
12342 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12343
12344         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12345         Don't #undef,  since we don't need any underlying pselect.
12346         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12347         (Depends-on): Add select.
12348         (Link): Add $(LIBSOCKET).
12349         These changes suggested by Bruno Haible.
12350
12351         pselect: document better
12352         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12353         * doc/posix-functions/pselect.texi (pselect): Document new module.
12354
12355         pthread_sigmask: new module
12356         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12357         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12358         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12359         This is done only as a macro; I don't know how well that'll
12360         work for C++.  Move <sys/types.h> include before the include_next,
12361         to avoid mishap on Solaris.
12362         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12363         * modules/signal (Makefile.am): Substitute the check's results.
12364         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12365
12366         test-pselect: new module
12367         * modules/pselect-tests, tests/test-pselect.c: New files.
12368         * tests/test-select.c, tests/test-sys_select-c++.cc:
12369         If TEST_PSELECT is defined, test pselect instead of testing select.
12370
12371         * tests/test-sys_select.c (sigset_t): Test for it, too.
12372         Suggested by Bruno Haible.
12373
12374 2011-07-05  Eric Blake  <eblake@redhat.com>
12375
12376         snprintf: guarantee %1$d, for libintl
12377         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12378         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12379         * doc/posix-functions/snprintf.texi (snprintf): Update.
12380         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12381         * tests/test-snprintf.c (main): Enhance test.
12382         * tests/test-vsnprintf.c (main): Likewise.
12383
12384 2011-07-05  Jim Meyering  <meyering@redhat.com>
12385
12386         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12387         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12388         per Bruno's request, to accommodate this idiom (no space after "#")
12389         even when the function is inside an #if block:
12390         char *
12391         gets (char *s)
12392         #undef gets
12393         {
12394           ...
12395         }
12396
12397 2011-07-04  Jim Meyering  <meyering@redhat.com>
12398
12399         maint: indent with spaces, not TABs, and add a rule to check this
12400         * tests/test-userspec.c: Indent with spaces, not TABs.
12401         * tests/test-argp.c: Likewise.
12402         * tests/test-c-stack2.sh: Likewise.
12403         * tests/test-parse-duration.sh: Likewise
12404         * m4/strtod.m4: Likewise.
12405         * m4/alloca.m4: Likewise.
12406         * m4/pselect.m4: Likewise.
12407         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12408
12409 2011-07-03  Jim Meyering  <meyering@redhat.com>
12410
12411         maint.mk: correct omissions in prohibit_argmatch_without_use check
12412         This rule would mistakenly report that argmatch.h is included without
12413         use even when both the argmatch and invalid_arg macro were used.
12414         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12415         of argmatch and invalid_arg.
12416
12417 2011-07-03  Bruno Haible  <bruno@clisp.org>
12418
12419         Comments about EINTR.
12420         * lib/safe-read.h: Explain the purpose of this module.
12421         * lib/safe-write.h: Likewise.
12422         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12423         module.
12424         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12425         module.
12426         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12427
12428 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12429
12430         xnanosleep: Rewrite to use new dtotimespec module.
12431         It has the conversion code that used to be in xnanosleep.
12432         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12433         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12434         (TIME_T_MAX): Remove.
12435         (xnanosleep): Rewrite in terms of dtotimespec.
12436         * modules/xnanosleep (Depends-on): Add dtotimespec.
12437         Remove intprops, stdbool.
12438
12439         timespec-add, timespec-sub: new modules
12440         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12441         * lib/timespec-add.c, lib/timespec-sub.c:
12442         * modules/timespec-add, modules/timespec-sub: New files.
12443
12444         dtotimespec: new module
12445         * lib/timespec.h (dtotimespec): New decl.
12446         * lib/dtotimespec.c, modules/dtotimespec: New files.
12447
12448         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12449
12450         pselect: new module
12451         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12452         (pselect): New decls.
12453         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12454         since the standard pselect decl uses 'restrict'.
12455         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12456         HAVE_PSELECT, REPLACE_PSELECT.
12457         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12458         HAVE_PSELECT, REPLACE_PSELECT.
12459         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12460
12461         sys_select: don't depend on sys_socket
12462         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12464         This fix works on GNU and GNU-like platforms, but has not been tested
12465         on native Windows.
12466         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12467         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12468         gl_HEADER_SYS_SOCKET.
12469         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12470         gl_PREREQ_SYS_H_WINSOCK2.
12471
12472 2011-06-29  Eric Blake  <eblake@redhat.com>
12473
12474         pipe2: fix C89 compile problem
12475         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12476         Reported by Bruno Haible.
12477
12478         pipe, pipe2: don't corrupt fd on error
12479         * lib/pipe.c (pipe): Leave fd unchanged on error.
12480         * lib/pipe2.c (pipe2): Likewise.
12481         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12482         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12483
12484 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12485
12486         mmap-anon: do not use regular expressions inadvertently
12487         * m4/mmap-anon.m4: Remove trailing period from strings sought
12488         in the output.
12489
12490 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12491
12492         nanosleep: fix integer overflow problem
12493         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12494         arithmetic wraps around on overflow.
12495
12496         nanosleep: simplify carrying
12497         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12498         first call to the underyling nanosleep, not for the last one.
12499         This doesn't fix any bugs, but it simplifies the computation of
12500         the remaining delay.  Found while auditing integer overflow issues.
12501
12502         dup2: remove test for existence of fcntl
12503         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12504         "#if HAVE_FCNTL", in the configure-time test program.
12505         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12506         and therefore speeds up "configure" a bit.  Found while
12507         adding the dup2 module to Emacs.
12508
12509 2011-06-24  Eric Blake  <eblake@redhat.com>
12510
12511         maint.mk: enhance useless header checks
12512         * top/maint.mk (_sc_header_without_use): Check both include
12513         styles.
12514         (sc_prohibit_assert_without_use)
12515         (sc_prohibit_close_stream_without_use)
12516         (sc_prohibit_getopt_without_use)
12517         (sc_prohibit_quotearg_without_use)
12518         (sc_prohibit_quote_without_use)
12519         (sc_prohibit_long_options_without_use)
12520         (sc_prohibit_inttostr_without_use)
12521         (sc_prohibit_ignore_value_without_use)
12522         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12523         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12524         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12525         (sc_prohibit_hash_pjw_without_use)
12526         (sc_prohibit_safe_read_without_use)
12527         (sc_prohibit_argmatch_without_use)
12528         (sc_prohibit_canonicalize_without_use)
12529         (sc_prohibit_root_dev_ino_without_use)
12530         (sc_prohibit_openat_without_use)
12531         (sc_prohibit_c_ctype_without_use)
12532         (sc_prohibit_signal_without_use)
12533         (sc_prohibit_stdio--_without_use)
12534         (sc_prohibit_stdio-safer_without_use)
12535         (sc_prohibit_strings_without_use)
12536         (sc_prohibit_intprops_without_use)
12537         (sc_prohibit_stddef_without_use)
12538         (sc_prohibit_xfreopen_without_use): Update clients.
12539
12540 2011-06-24  Jim Meyering  <meyering@redhat.com>
12541
12542         syntax-check: keep one maint.mk rule in sync with its header
12543         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12544         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12545         I prefer to avoid temporary files here, so use <(...), but that
12546         is not supported by /bin/sh, so...
12547         (SHELL): Define to /bin/bash.
12548
12549 2011-06-24  Eric Blake  <eblake@redhat.com>
12550
12551         maint.mk: update sc_prohibit_intprops_without_use
12552         * top/maint.mk (_intprops_names): Match recent changes.
12553
12554 2011-06-24  Bruno Haible  <bruno@clisp.org>
12555
12556         strerror-override: No-op tweak.
12557         * lib/strerror-override.h (strerror_override): Reorder conditions,
12558         for consistency with lib/strerror-override.c.
12559
12560 2011-06-23  Eric Blake  <eblake@redhat.com>
12561
12562         maint.mk: test further PATH_MAX issues
12563         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12564         (sc_prohibit_path_max_allocation): ...and also test alloca.
12565         Suggested by Jim Meyering.
12566
12567 2011-06-22  Eric Blake  <eblake@redhat.com>
12568
12569         maint.mk: add syntax-check to avoid char[PATH_MAX]
12570         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12571
12572         stat: be robust to PATH_MAX definition
12573         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12574         * modules/stat (Depends-on): Add verify.
12575
12576         link: work around IRIX bug
12577         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12578         * lib/link.c (rpl_link): Work around it.
12579         * tests/test-link.h (test_link): Enhance test.
12580         * doc/posix-functions/link.texi (link): Document the bug.
12581
12582         getopt: silence clang warning
12583         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12584         dereference.
12585         Reported by Gustavo Martin Domato.
12586
12587 2011-06-22  Jim Meyering  <meyering@redhat.com>
12588
12589         bootstrap: do not insert a blank line into each .gitignore file
12590         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12591
12592 2011-06-21  Eric Blake  <eblake@redhat.com>
12593
12594         perror: test for output mismatch
12595         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12596         perror on IRIX.
12597
12598         strerror_r: fix OpenBSD behavior on out-of-range
12599         * lib/strerror_r.c (strerror_r): Always use maximal string.
12600         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12601
12602         strerror_r: fix OpenBSD behavior on 0
12603         * lib/strerror-override.c (strerror_override): Also override 0
12604         when needed.
12605         * lib/strerror-override.h (strerror_override): Likewise.
12606         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12607         earlier.
12608         * lib/strerror_r.c (strerror_r): Likewise.
12609         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12610         behavior...
12611         (gl_FUNC_STRERROR_0): ...into new macro.
12612         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12613         is overridden.
12614         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12615         * modules/strerror-override (Files): Add strerror.m4.
12616         (configure.ac): Also provide override for 0 when needed.
12617         * doc/posix-functions/strerror.texi (strerror): Document this.
12618         * doc/posix-functions/perror.texi (perror): Likewise.
12619
12620         perror: adjust array size
12621         * modules/perror (Depends-on): Add strerror-override.
12622         * lib/perror.c (perror): Use it to avoid magic number.
12623
12624         strerror-override: reduce size
12625         * lib/strerror-override.c (strerror_override): Use fewer lines.
12626
12627 2011-06-20  Bruno Haible  <bruno@clisp.org>
12628
12629         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12630         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12631
12632 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12633
12634         alloca: port to compilers that can optimize like GCC 4.6.0
12635         * lib/alloca.c (find_stack_direction): New signature, taken from
12636         Autoconf git.  This works with GCC 4.6.0.  This code should never
12637         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12638         be used with other compilers that optimize as well as GCC 4.6.0 does.
12639         (alloca): Adjust to new signature.
12640         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12641         New macro, which patches Autoconf in a similar way.
12642
12643         c-stack: stop worrying about stack direction
12644         * lib/c-stack.c (find_stack_direction): Remove.
12645         (segv_handler): Don't worry about stack direction growth, as it's
12646         too much of a pain to configure this correctly, given how compilers
12647         are optimizing-away our stack-growth detection code.  Instead, assume
12648         that any access to just before or just after the stack is OK.
12649         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12650         Don't require AC_FUNC_ALLOCA; no longer needed.
12651
12652 2011-06-20  Eric Blake  <eblake@redhat.com>
12653
12654         test-stat: don't allocate PATH_MAX bytes
12655         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12656         PATH_MAX-sized buffer.
12657         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12658         * modules/stat-tests (Depends-on): Likewise.
12659         * tests/test-fstatat.c (includes): Drop pathmax.h.
12660         * tests/test-stat.c (includes): Likewise.
12661         Reported by Bruno Haible.
12662
12663 2011-06-20  Bruno Haible  <bruno@clisp.org>
12664
12665         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12666         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12667         * lib/float.c: New file.
12668         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12669         REPLACE_FLOAT_LDBL.
12670         * modules/float (Files): Add lib/float.c.
12671         (configure.ac): Invoke AC_LIBOBJ.
12672         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12673
12674 2011-06-20  Bruno Haible  <bruno@clisp.org>
12675
12676         Tests for module 'float'.
12677         * modules/float-tests: New file.
12678         * tests/test-float.c: New file.
12679
12680 2011-06-19  Bruno Haible  <bruno@clisp.org>
12681
12682         isinf: Coding style.
12683         * lib/isinf.c: Use GNU coding style.
12684
12685 2011-06-19  Bruno Haible  <bruno@clisp.org>
12686
12687         linkat test: Avoid test failure on AIX 7.1.
12688         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12689         * tests/test-link.h (test_link): Likewise.
12690
12691 2011-06-19  Bruno Haible  <bruno@clisp.org>
12692
12693         pread test: Avoid test failure on OpenBSD 4.9.
12694         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12695
12696 2011-06-19  Bruno Haible  <bruno@clisp.org>
12697
12698         sprintf-posix: Fix test failure on AIX 7.1.
12699         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12700         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12701         on AIX.
12702         * doc/posix-functions/fprintf.texi: Likewise.
12703         * doc/posix-functions/printf.texi: Likewise.
12704         * doc/posix-functions/snprintf.texi: Likewise.
12705         * doc/posix-functions/sprintf.texi: Likewise.
12706         * doc/posix-functions/vdprintf.texi: Likewise.
12707         * doc/posix-functions/vfprintf.texi: Likewise.
12708         * doc/posix-functions/vprintf.texi: Likewise.
12709         * doc/posix-functions/vsnprintf.texi: Likewise.
12710         * doc/posix-functions/vsprintf.texi: Likewise.
12711
12712 2011-06-19  Bruno Haible  <bruno@clisp.org>
12713
12714         roundl-ieee: Fix test failure on AIX 7.1.
12715         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12716         * doc/posix-functions/roundl.texi: Mention problem with negative
12717         arguments.
12718
12719 2011-06-19  Bruno Haible  <bruno@clisp.org>
12720
12721         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12722         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12723         * doc/posix-functions/round.texi: Mention problem with negative
12724         arguments.
12725         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12726
12727 2011-06-19  Bruno Haible  <bruno@clisp.org>
12728
12729         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12730         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12731         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12732         * doc/posix-functions/roundf.texi: Mention problem with negative
12733         arguments.
12734         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12735
12736 2011-06-19  Bruno Haible  <bruno@clisp.org>
12737
12738         ceilf-ieee: Work around bug on MacOS X 10.5.
12739         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12740
12741         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12742         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12743         IEEE compliant, avoid compiler optimizations.
12744         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12745         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12746         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12747         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12748         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12749         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12750         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12751         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12752         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12753         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12754
12755 2011-06-19  Bruno Haible  <bruno@clisp.org>
12756
12757         ceilf-ieee: Work around bug on AIX 7.1.
12758         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12759         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12760
12761 2011-06-19  Bruno Haible  <bruno@clisp.org>
12762
12763         ceil-ieee: Work around bug on AIX 7.1.
12764         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12765         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12766
12767 2011-06-18  Bruno Haible  <bruno@clisp.org>
12768
12769         fsync test: Avoid test failure on MacOS X and AIX.
12770         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12771         EINVAL.
12772
12773 2011-06-18  Bruno Haible  <bruno@clisp.org>
12774
12775         openat, fdopendir tests: Fix link errors.
12776         * modules/openat-tests (Depends-on): Add progname.
12777         * modules/fdopendir-tests (Depends-on): Likewise.
12778         * tests/test-fchownat.c: Include progname.h.
12779         (main): Call set_program_name.
12780         * tests/test-fstatat.c: Include progname.h.
12781         (main): Call set_program_name.
12782         * tests/test-mkdirat.c: Include progname.h.
12783         (main): Call set_program_name.
12784         * tests/test-openat.c: Include progname.h.
12785         (main): Call set_program_name.
12786         * tests/test-unlinkat.c: Include progname.h.
12787         (main): Call set_program_name.
12788         * tests/test-fdopendir.c: Include progname.h.
12789         (main): Call set_program_name.
12790
12791 2011-06-18  Bruno Haible  <bruno@clisp.org>
12792
12793         Doc update.
12794         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12795         HP-UX.
12796         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12797
12798 2011-06-18  Bruno Haible  <bruno@clisp.org>
12799
12800         getcwd tests: Avoid compilation error on HP-UX 11.31.
12801         * modules/getcwd-tests (Depends-on): Add pathmax.
12802         * tests/test-getcwd.c: Include pathmax.h.
12803
12804 2011-06-18  Bruno Haible  <bruno@clisp.org>
12805
12806         isfinite, isinf: Fix link error on AIX 6 and 7.
12807         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12808         needed, also test the macro with a 'float' argument.
12809         * m4/isinf.m4 (gl_ISINF): Likewise.
12810
12811 2011-06-18  Bruno Haible  <bruno@clisp.org>
12812
12813         getloadavg: Don't clobber LIBS. Regression from previous commit.
12814         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12815         AC_CHECK_LIB from here...
12816         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12817         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12818         gl_func_getloadavg_done.
12819         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12820
12821 2011-06-18  Bruno Haible  <bruno@clisp.org>
12822
12823         clean-temp: Improve documentation.
12824         * lib/clean-temp.h: Explain better how to use this module.
12825         Reported by John Darrington <john@darrington.wattle.id.au>.
12826
12827 2011-06-17  Bruno Haible  <bruno@clisp.org>
12828
12829         pread, pwrite: Avoid cc warning on AIX.
12830         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12831         (pwrite): Likewise.
12832
12833 2011-06-17  Bruno Haible  <bruno@clisp.org>
12834
12835         spawn-pipe tests: Fix link error.
12836         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12837         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12838
12839 2011-06-17  Bruno Haible  <bruno@clisp.org>
12840
12841         Tests: Remove unnecessary dependency.
12842         * modules/canonicalize-tests (Depends-on): Remove progname.
12843         * modules/chown-tests (Depends-on): Likewise.
12844         * modules/dirname-tests (Depends-on): Likewise.
12845         * modules/fdopendir-tests (Depends-on): Likewise.
12846         * modules/fdutimensat-tests (Depends-on): Likewise.
12847         * modules/hash-tests (Depends-on): Likewise.
12848         * modules/lchown-tests (Depends-on): Likewise.
12849         * modules/linkat-tests (Depends-on): Likewise.
12850         * modules/renameat-tests (Depends-on): Likewise.
12851         * modules/spawn-pipe-tests (Depends-on): Likewise.
12852         * modules/utimensat-tests (Depends-on): Likewise.
12853
12854 2011-06-17  Bruno Haible  <bruno@clisp.org>
12855
12856         spawn-pipe tests: Fix link error.
12857         * tests/test-spawn-pipe-child.c: Undefine fflush.
12858
12859 2011-06-17  Bruno Haible  <bruno@clisp.org>
12860
12861         Fix tests link errors.
12862         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12863         * modules/chown-tests (Makefile.am): Don't link test-chown with
12864         LIBINTL.
12865         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12866         LIBINTL.
12867         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12868         LIBINTL.
12869         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12870         LIBINTL.
12871
12872 2011-06-16  Bruno Haible  <bruno@clisp.org>
12873
12874         crypto/gc-sha1: Fix recent regression.
12875         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12876         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12877
12878         crypto/gc-md5: Fix recent regression.
12879         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12880
12881         crypto/gc-md4: Fix recent regression.
12882         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12883         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12884
12885         crypto/gc-arctwo: Fix recent regression.
12886         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12887         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12888
12889         crypto/gc-rijndael: Fix recent regression.
12890         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12891         (configure.ac): Invoke AC_LIBOBJ here.
12892         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12893         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12894
12895         crypto/gc-hmac-sha1: Fix recent regression.
12896         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12897         (configure.ac): Invoke AC_LIBOBJ here.
12898         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12899         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12900
12901         crypto/gc-hmac-md5: Fix recent regression.
12902         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12903         (configure.ac): Invoke AC_LIBOBJ here.
12904         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12905         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12906
12907         crypto/gc-des: Fix recent regression.
12908         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12909         (configure.ac): Invoke AC_LIBOBJ here.
12910         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12911         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12912
12913         crypto/gc-arcfour: Fix recent regression.
12914         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12915         (configure.ac): Invoke AC_LIBOBJ here.
12916         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12917         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12918
12919 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12920
12921         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12922         After the 2011-05-21 change, this macro requires
12923         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12924         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12925
12926 2011-06-16  Bruno Haible  <bruno@clisp.org>
12927
12928         fprintftime: Move AC_LIBOBJ invocations to module description.
12929         * m4/fprintftime.m4: Remove file.
12930         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12931         (configure.ac): Remove gl_FPRINTFTIME call.
12932         (Makefile.am): Augment lib_SOURCES.
12933         Reported by Jim Meyering.
12934
12935 2011-06-16  Bruno Haible  <bruno@clisp.org>
12936
12937         tmpfile-safer: Finish 2011-05-23 commit.
12938         * m4/stdio-safer.m4: Really remove file.
12939         Reported by Jim Meyering.
12940
12941 2011-06-16  Bruno Haible  <bruno@clisp.org>
12942
12943         syntax-check: Fix typo.
12944         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12945         printf-posix.m4.
12946         Reported by Jim Meyering.
12947
12948 2011-06-13  Jim Meyering  <meyering@redhat.com>
12949
12950         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12951         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12952
12953 2011-05-23  Bruno Haible  <bruno@clisp.org>
12954
12955         yesno: Move AC_LIBOBJ invocations to module description.
12956         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12957         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12958
12959 2011-05-23  Bruno Haible  <bruno@clisp.org>
12960
12961         xstrtol: Move AC_LIBOBJ invocations to module description.
12962         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12963         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12964
12965 2011-05-23  Bruno Haible  <bruno@clisp.org>
12966
12967         xstrtold: Move AC_LIBOBJ invocations to module description.
12968         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12969         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12970
12971 2011-05-23  Bruno Haible  <bruno@clisp.org>
12972
12973         xstrtod: Move AC_LIBOBJ invocations to module description.
12974         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12975         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12976
12977 2011-05-23  Bruno Haible  <bruno@clisp.org>
12978
12979         xnanosleep: Move AC_LIBOBJ invocations to module description.
12980         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12981         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12982
12983 2011-05-23  Bruno Haible  <bruno@clisp.org>
12984
12985         xgetcwd: Move AC_LIBOBJ invocations to module description.
12986         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12987         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12988
12989 2011-05-23  Bruno Haible  <bruno@clisp.org>
12990
12991         xalloc: Move AC_LIBOBJ invocations to module description.
12992         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12993         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12994
12995 2011-05-23  Bruno Haible  <bruno@clisp.org>
12996
12997         write-any-file: Move AC_LIBOBJ invocations to module description.
12998         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12999         invocation.
13000         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
13001
13002 2011-05-23  Bruno Haible  <bruno@clisp.org>
13003
13004         utimens: Move AC_LIBOBJ invocations to module description.
13005         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
13006         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13007
13008 2011-05-23  Bruno Haible  <bruno@clisp.org>
13009
13010         utimecmp: Move AC_LIBOBJ invocations to module description.
13011         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13012         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13013
13014 2011-05-23  Bruno Haible  <bruno@clisp.org>
13015
13016         userspec: Move AC_LIBOBJ invocations to module description.
13017         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13018         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13019
13020 2011-05-23  Bruno Haible  <bruno@clisp.org>
13021
13022         unlinkdir: Move AC_LIBOBJ invocations to module description.
13023         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13024         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13025
13026 2011-05-23  Bruno Haible  <bruno@clisp.org>
13027
13028         unistd-safer: Move AC_LIBOBJ invocations to module description.
13029         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13030         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13031
13032 2011-05-23  Bruno Haible  <bruno@clisp.org>
13033
13034         tempname: Move AC_LIBOBJ invocations to module description.
13035         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13036         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13037
13038 2011-05-23  Bruno Haible  <bruno@clisp.org>
13039
13040         strftime: Move AC_LIBOBJ invocations to module description.
13041         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13042         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13043
13044 2011-05-23  Bruno Haible  <bruno@clisp.org>
13045
13046         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13047         * m4/stdlib-safer.m4: Remove file.
13048         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13049         (configure.ac): Remove gl_STDLIB_SAFER call.
13050         (Makefile.am): Augment lib_SOURCES.
13051
13052 2011-05-23  Bruno Haible  <bruno@clisp.org>
13053
13054         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13055         * m4/stdio-safer.m4: Remove file.
13056         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13057         (configure.ac): Remove gl_TMPFILE_SAFER call.
13058         (Makefile.am): Augment lib_SOURCES.
13059
13060 2011-05-23  Bruno Haible  <bruno@clisp.org>
13061
13062         popen-safer: Move AC_LIBOBJ invocations to module description.
13063         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13064         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13065         (configure.ac): Remove gl_POPEN_SAFER call.
13066         (Makefile.am): Augment lib_SOURCES.
13067
13068 2011-05-23  Bruno Haible  <bruno@clisp.org>
13069
13070         freopen-safer: Move AC_LIBOBJ invocations to module description.
13071         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13072         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13073         (configure.ac): Remove gl_FREOPEN_SAFER call.
13074         (Makefile.am): Augment lib_SOURCES.
13075
13076 2011-05-23  Bruno Haible  <bruno@clisp.org>
13077
13078         fopen-safer: Move AC_LIBOBJ invocations to module description.
13079         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13080         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13081         (configure.ac): Remove gl_FOPEN_SAFER call.
13082         (Makefile.am): Augment lib_SOURCES.
13083
13084 2011-05-23  Bruno Haible  <bruno@clisp.org>
13085
13086         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13087         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13088         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13089
13090 2011-05-23  Bruno Haible  <bruno@clisp.org>
13091
13092         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13093         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13094         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13095
13096 2011-05-23  Bruno Haible  <bruno@clisp.org>
13097
13098         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13099         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13100         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13101
13102 2011-05-23  Bruno Haible  <bruno@clisp.org>
13103
13104         settime: Move AC_LIBOBJ invocations to module description.
13105         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13106         * modules/settime (Makefile.am): Augment lib_SOURCES.
13107
13108 2011-05-23  Bruno Haible  <bruno@clisp.org>
13109
13110         savedir: Move AC_LIBOBJ invocations to module description.
13111         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13112         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13113
13114 2011-05-23  Bruno Haible  <bruno@clisp.org>
13115
13116         save-cwd: Move AC_LIBOBJ invocations to module description.
13117         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13118         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13119
13120 2011-05-23  Bruno Haible  <bruno@clisp.org>
13121
13122         same: Move AC_LIBOBJ invocations to module description.
13123         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13124         * modules/same (Makefile.am): Augment lib_SOURCES.
13125
13126 2011-05-23  Bruno Haible  <bruno@clisp.org>
13127
13128         safe-write: Move AC_LIBOBJ invocations to module description.
13129         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13130         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13131         instead of gl_SAFE_WRITE.
13132         (Makefile.am): Augment lib_SOURCES.
13133
13134 2011-05-23  Bruno Haible  <bruno@clisp.org>
13135
13136         safe-read: Move AC_LIBOBJ invocations to module description.
13137         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13138         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13139         of gl_SAFE_READ.
13140         (Makefile.am): Augment lib_SOURCES.
13141
13142 2011-05-23  Bruno Haible  <bruno@clisp.org>
13143
13144         safe-alloc: Move AC_LIBOBJ invocations to module description.
13145         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13146         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
13147
13148 2011-05-23  Bruno Haible  <bruno@clisp.org>
13149
13150         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
13151         * m4/rijndael.m4: Remove file.
13152         * modules/crypto/rijndael (Files): Remove it.
13153         (configure.ac): Remove gl_RIJNDAEL call.
13154         (Makefile.am): Augment lib_SOURCES.
13155
13156 2011-05-23  Bruno Haible  <bruno@clisp.org>
13157
13158         readtokens: Move AC_LIBOBJ invocations to module description.
13159         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
13160         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
13161
13162 2011-05-23  Bruno Haible  <bruno@clisp.org>
13163
13164         read-file: Move AC_LIBOBJ invocations to module description.
13165         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
13166         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
13167         of gl_FUNC_READ_FILE.
13168         (Makefile.am): Augment lib_SOURCES.
13169
13170 2011-05-23  Bruno Haible  <bruno@clisp.org>
13171
13172         quotearg: Move AC_LIBOBJ invocations to module description.
13173         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
13174         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
13175
13176 2011-05-23  Bruno Haible  <bruno@clisp.org>
13177
13178         quote: Move AC_LIBOBJ invocations to module description.
13179         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13180         * modules/quote (Makefile.am): Augment lib_SOURCES.
13181
13182 2011-05-23  Bruno Haible  <bruno@clisp.org>
13183
13184         posixver: Move AC_LIBOBJ invocations to module description.
13185         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13186         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13187
13188 2011-05-23  Bruno Haible  <bruno@clisp.org>
13189
13190         posixtm: Move AC_LIBOBJ invocations to module description.
13191         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13192         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13193
13194 2011-05-23  Bruno Haible  <bruno@clisp.org>
13195
13196         physmem: Move AC_LIBOBJ invocations to module description.
13197         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13198         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13199
13200 2011-05-23  Bruno Haible  <bruno@clisp.org>
13201
13202         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13203         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13204         invocation.
13205         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13206
13207 2011-05-23  Bruno Haible  <bruno@clisp.org>
13208
13209         mpsort: Move AC_LIBOBJ invocations to module description.
13210         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13211         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13212
13213 2011-05-23  Bruno Haible  <bruno@clisp.org>
13214
13215         modechange: Move AC_LIBOBJ invocations to module description.
13216         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13217         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13218
13219 2011-05-23  Bruno Haible  <bruno@clisp.org>
13220
13221         mkdir-p: Move AC_LIBOBJ invocations to module description.
13222         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13223         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13224
13225 2011-05-23  Bruno Haible  <bruno@clisp.org>
13226
13227         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13228         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13229         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13230
13231 2011-05-23  Bruno Haible  <bruno@clisp.org>
13232
13233         mgetgroups: Move AC_LIBOBJ invocations to module description.
13234         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13235         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13236
13237 2011-05-23  Bruno Haible  <bruno@clisp.org>
13238
13239         memxor: Move AC_LIBOBJ invocations to module description.
13240         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
13241         * modules/memxor (Makefile.am): Augment lib_SOURCES.
13242
13243 2011-05-23  Bruno Haible  <bruno@clisp.org>
13244
13245         memcoll: Move AC_LIBOBJ invocations to module description.
13246         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
13247         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
13248
13249 2011-05-23  Bruno Haible  <bruno@clisp.org>
13250
13251         memcasecmp: Move AC_LIBOBJ invocations to module description.
13252         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
13253         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13254
13255 2011-05-23  Bruno Haible  <bruno@clisp.org>
13256
13257         crypto/md5: Move AC_LIBOBJ invocations to module description.
13258         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13259         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13260
13261 2011-05-23  Bruno Haible  <bruno@clisp.org>
13262
13263         crypto/md4: Move AC_LIBOBJ invocations to module description.
13264         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13265         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13266
13267 2011-05-23  Bruno Haible  <bruno@clisp.org>
13268
13269         crypto/md2: Move AC_LIBOBJ invocations to module description.
13270         * m4/md2.m4: Remove file.
13271         * modules/crypto/md2 (Files): Remove it.
13272         (configure.ac): Remove gl_MD2 call.
13273         (Makefile.am): Augment lib_SOURCES.
13274
13275 2011-05-23  Bruno Haible  <bruno@clisp.org>
13276
13277         long-options: Move AC_LIBOBJ invocations to module description.
13278         * m4/long-options.m4: Remove file.
13279         * modules/long-options (Files): Remove it.
13280         (configure.ac): Remove gl_LONG_OPTIONS call.
13281         (Makefile.am): Augment lib_SOURCES.
13282
13283 2011-05-23  Bruno Haible  <bruno@clisp.org>
13284
13285         i-ring: Move AC_LIBOBJ invocations to module description.
13286         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13287         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13288
13289 2011-05-23  Bruno Haible  <bruno@clisp.org>
13290
13291         idcache: Move AC_LIBOBJ invocations to module description.
13292         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13293         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13294
13295 2011-05-23  Bruno Haible  <bruno@clisp.org>
13296
13297         human: Move AC_LIBOBJ invocations to module description.
13298         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13299         * modules/human (Makefile.am): Augment lib_SOURCES.
13300
13301 2011-05-23  Bruno Haible  <bruno@clisp.org>
13302
13303         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13304         * m4/hmac-sha1.m4: Remove file.
13305         * modules/crypto/hmac-sha1 (Files): Remove it.
13306         (configure.ac): Remove gl_HMAC_SHA1 call.
13307         (Makefile.am): Augment lib_SOURCES.
13308
13309 2011-05-23  Bruno Haible  <bruno@clisp.org>
13310
13311         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13312         * m4/hmac-md5.m4: Remove file.
13313         * modules/crypto/hmac-md5 (Files): Remove it.
13314         (configure.ac): Remove gl_HMAC_MD5 call.
13315         (Makefile.am): Augment lib_SOURCES.
13316
13317 2011-05-23  Bruno Haible  <bruno@clisp.org>
13318
13319         hash: Move AC_LIBOBJ invocations to module description.
13320         * m4/hash.m4: Remove file.
13321         * modules/hash (Files): Remove it.
13322         (configure.ac): Remove gl_HASH call.
13323         (Makefile.am): Augment lib_SOURCES.
13324
13325 2011-05-23  Bruno Haible  <bruno@clisp.org>
13326
13327         hard-locale: Move AC_LIBOBJ invocations to module description.
13328         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13329         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13330
13331 2011-05-23  Bruno Haible  <bruno@clisp.org>
13332
13333         getugroups: Move AC_LIBOBJ invocations to module description.
13334         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13335         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13336
13337 2011-05-23  Bruno Haible  <bruno@clisp.org>
13338
13339         gettime: Move AC_LIBOBJ invocations to module description.
13340         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13341         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13342
13343 2011-05-23  Bruno Haible  <bruno@clisp.org>
13344
13345         getndelim2: Move AC_LIBOBJ invocations to module description.
13346         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13347         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13348
13349 2011-05-23  Bruno Haible  <bruno@clisp.org>
13350
13351         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13352         * m4/gc-pbkdf2-sha1.m4: Remove file.
13353         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13354         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13355         (Makefile.am): Augment lib_SOURCES.
13356
13357 2011-05-23  Bruno Haible  <bruno@clisp.org>
13358
13359         fts: Move AC_LIBOBJ invocations to module description.
13360         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13361         * modules/fts (configure.ac): ... to here.
13362
13363 2011-05-23  Bruno Haible  <bruno@clisp.org>
13364
13365         file-type: Move AC_LIBOBJ invocations to module description.
13366         * m4/file-type.m4: Remove file.
13367         * modules/file-type (Files): Remove it.
13368         (configure.ac): Remove gl_FILE_TYPE call.
13369         (Makefile.am): Augment lib_SOURCES.
13370
13371 2011-05-23  Bruno Haible  <bruno@clisp.org>
13372
13373         filenamecat*: Respect rules for use of AC_LIBOBJ.
13374         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13375         Remove AC_LIBOBJ invocation.
13376         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13377         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13378
13379 2011-05-23  Bruno Haible  <bruno@clisp.org>
13380
13381         filemode: Move AC_LIBOBJ invocations to module description.
13382         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13383         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13384
13385 2011-05-23  Bruno Haible  <bruno@clisp.org>
13386
13387         openat-safer: Move AC_LIBOBJ invocations to module description.
13388         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13389         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13390
13391 2011-05-23  Bruno Haible  <bruno@clisp.org>
13392
13393         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13394         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13395         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13396
13397 2011-05-23  Bruno Haible  <bruno@clisp.org>
13398
13399         exclude: Move AC_LIBOBJ invocations to module description.
13400         * m4/exclude.m4: Remove file.
13401         * modules/exclude (Files): Remove it.
13402         (configure.ac): Remove gl_EXCLUDE call.
13403         (Makefile.am): Augment lib_SOURCES.
13404
13405 2011-05-23  Bruno Haible  <bruno@clisp.org>
13406
13407         dirname*: Respect rules for use of AC_LIBOBJ.
13408         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13409         invocations.
13410         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13411         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13412
13413 2011-05-23  Bruno Haible  <bruno@clisp.org>
13414
13415         dirent-safer: Move AC_LIBOBJ invocations to module description.
13416         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13417         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13418
13419 2011-05-23  Bruno Haible  <bruno@clisp.org>
13420
13421         crypto/des: Move AC_LIBOBJ invocations to module description.
13422         * m4/des.m4: Remove file.
13423         * modules/crypto/des (Files): Remove it.
13424         (configure.ac): Remove gl_DES call.
13425         (Makefile.am): Augment lib_SOURCES.
13426
13427 2011-05-23  Bruno Haible  <bruno@clisp.org>
13428
13429         cycle-check: Move AC_LIBOBJ invocations to module description.
13430         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13431         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13432
13433 2011-05-23  Bruno Haible  <bruno@clisp.org>
13434
13435         c-strtold: Move AC_LIBOBJ invocations to module description.
13436         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13437         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13438
13439 2011-05-23  Bruno Haible  <bruno@clisp.org>
13440
13441         c-strtod: Move AC_LIBOBJ invocations to module description.
13442         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13443         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13444
13445 2011-05-23  Bruno Haible  <bruno@clisp.org>
13446
13447         crc: Move AC_LIBOBJ invocations to module description.
13448         * m4/crc.m4: Remove file.
13449         * modules/crc (Files): Remove it.
13450         (configure.ac): Remove gl_CRC call.
13451         (Makefile.am): Augment lib_SOURCES.
13452
13453 2011-05-23  Bruno Haible  <bruno@clisp.org>
13454
13455         close-stream: Move AC_LIBOBJ invocations to module description.
13456         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13457         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13458
13459 2011-05-23  Bruno Haible  <bruno@clisp.org>
13460
13461         closeout: Move AC_LIBOBJ invocations to module description.
13462         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13463         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13464
13465 2011-05-23  Bruno Haible  <bruno@clisp.org>
13466
13467         closein: Move AC_LIBOBJ invocations to module description.
13468         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13469         * modules/closein (Makefile.am): Augment lib_SOURCES.
13470
13471 2011-05-23  Bruno Haible  <bruno@clisp.org>
13472
13473         cloexec: Move AC_LIBOBJ invocations to module description.
13474         * m4/cloexec.m4: Remove file.
13475         * modules/cloexec (Files): Remove it.
13476         (configure.ac): Remove gl_CLOEXEC call.
13477         (Makefile.am): Augment lib_SOURCES.
13478
13479 2011-05-23  Bruno Haible  <bruno@clisp.org>
13480
13481         check-version: Move AC_LIBOBJ invocations to module description.
13482         * m4/check-version.m4: Remove file.
13483         * modules/check-version (Files): Remove it.
13484         (configure.ac): Remove gl_CHECK_VERSION call.
13485         (Makefile.am): Augment lib_SOURCES.
13486
13487 2011-05-23  Bruno Haible  <bruno@clisp.org>
13488
13489         chdir-safer: Move AC_LIBOBJ invocations to module description.
13490         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13491         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13492
13493 2011-05-23  Bruno Haible  <bruno@clisp.org>
13494
13495         canonicalize: Move AC_LIBOBJ invocations to module description.
13496         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13497         AC_LIBOBJ invocation.
13498         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13499
13500 2011-05-23  Bruno Haible  <bruno@clisp.org>
13501
13502         canon-host: Move AC_LIBOBJ invocations to module description.
13503         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13504         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13505         instead of gl_CANON_HOST.
13506         (Makefile.am): Augment lib_SOURCES.
13507
13508 2011-05-23  Bruno Haible  <bruno@clisp.org>
13509
13510         backupfile: Move AC_LIBOBJ invocations to module description.
13511         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13512         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13513
13514 2011-05-23  Bruno Haible  <bruno@clisp.org>
13515
13516         argmatch: Move AC_LIBOBJ invocations to module description.
13517         * m4/argmatch.m4: Remove file.
13518         * modules/argmatch (Files): Remove it.
13519         (configure.ac): Remove gl_ARGMATCH call.
13520         (Makefile.am): Augment lib_SOURCES.
13521
13522 2011-05-23  Bruno Haible  <bruno@clisp.org>
13523
13524         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13525         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13526         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13527
13528 2011-05-23  Bruno Haible  <bruno@clisp.org>
13529
13530         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13531         * m4/arcfour.m4: Remove file.
13532         * modules/crypto/arcfour (Files): Remove it.
13533         (configure.ac): Remove gl_ARCFOUR call.
13534         (Makefile.am): Augment lib_SOURCES.
13535
13536 2011-05-22  Bruno Haible  <bruno@clisp.org>
13537
13538         write: Move AC_LIBOBJ invocations to module description.
13539         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13540         * modules/write (configure.ac): ... to here.
13541
13542 2011-05-22  Bruno Haible  <bruno@clisp.org>
13543
13544         wmemset: Move AC_LIBOBJ invocations to module description.
13545         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13546         here...
13547         * modules/wmemset (configure.ac): ... to here.
13548
13549 2011-05-22  Bruno Haible  <bruno@clisp.org>
13550
13551         wmemmove: Move AC_LIBOBJ invocations to module description.
13552         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13553         here...
13554         * modules/wmemmove (configure.ac): ... to here.
13555
13556 2011-05-22  Bruno Haible  <bruno@clisp.org>
13557
13558         wmemcpy: Move AC_LIBOBJ invocations to module description.
13559         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13560         here...
13561         * modules/wmemcpy (configure.ac): ... to here.
13562
13563 2011-05-22  Bruno Haible  <bruno@clisp.org>
13564
13565         wmemcmp: Move AC_LIBOBJ invocations to module description.
13566         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13567         here...
13568         * modules/wmemcmp (configure.ac): ... to here.
13569
13570 2011-05-22  Bruno Haible  <bruno@clisp.org>
13571
13572         wmemchr: Move AC_LIBOBJ invocations to module description.
13573         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13574         here...
13575         * modules/wmemchr (configure.ac): ... to here.
13576
13577 2011-05-22  Bruno Haible  <bruno@clisp.org>
13578
13579         wcswidth: Move AC_LIBOBJ invocations to module description.
13580         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13581         here...
13582         * modules/wcswidth (configure.ac): ... to here.
13583
13584 2011-05-22  Bruno Haible  <bruno@clisp.org>
13585
13586         wcwidth: Respect rules for use of AC_LIBOBJ.
13587         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13588         invocation from here...
13589         * modules/wcwidth (configure.ac): ... to here.
13590         (Depends-on): Update conditions.
13591
13592 2011-05-22  Bruno Haible  <bruno@clisp.org>
13593
13594         wctype: Move AC_LIBOBJ invocations to module description.
13595         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13596         invocation from here...
13597         * modules/wctype (configure.ac): ... to here.
13598         (Depends-on): Update conditions.
13599
13600 2011-05-22  Bruno Haible  <bruno@clisp.org>
13601
13602         wctrans: Move AC_LIBOBJ invocations to module description.
13603         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13604         invocation from here...
13605         * modules/wctrans (configure.ac): ... to here.
13606
13607 2011-05-22  Bruno Haible  <bruno@clisp.org>
13608
13609         wctomb: Move AC_LIBOBJ invocations to module description.
13610         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13611         invocations from here...
13612         * modules/wctomb (configure.ac): ... to here.
13613
13614 2011-05-22  Bruno Haible  <bruno@clisp.org>
13615
13616         wctob: Move AC_LIBOBJ invocations to module description.
13617         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13618         gl_PREREQ_WCTOB invocations from here...
13619         * modules/wctob (configure.ac): ... to here.
13620         (Depends-on): Update conditions.
13621
13622 2011-05-22  Bruno Haible  <bruno@clisp.org>
13623
13624         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13625         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13626         here...
13627         * modules/wcsxfrm (configure.ac): ... to here.
13628
13629 2011-05-22  Bruno Haible  <bruno@clisp.org>
13630
13631         wcstok: Move AC_LIBOBJ invocations to module description.
13632         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13633         * modules/wcstok (configure.ac): ... to here.
13634
13635 2011-05-22  Bruno Haible  <bruno@clisp.org>
13636
13637         wcsstr: Move AC_LIBOBJ invocations to module description.
13638         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13639         * modules/wcsstr (configure.ac): ... to here.
13640
13641 2011-05-22  Bruno Haible  <bruno@clisp.org>
13642
13643         wcsspn: Move AC_LIBOBJ invocations to module description.
13644         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13645         * modules/wcsspn (configure.ac): ... to here.
13646
13647 2011-05-22  Bruno Haible  <bruno@clisp.org>
13648
13649         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13650         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13651         gl_PREREQ_WCSRTOMBS invocations from here...
13652         * modules/wcsrtombs (configure.ac): ... to here.
13653
13654 2011-05-22  Bruno Haible  <bruno@clisp.org>
13655
13656         wcsrchr: Move AC_LIBOBJ invocations to module description.
13657         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13658         here...
13659         * modules/wcsrchr (configure.ac): ... to here.
13660
13661 2011-05-22  Bruno Haible  <bruno@clisp.org>
13662
13663         wcspbrk: Move AC_LIBOBJ invocations to module description.
13664         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13665         here...
13666         * modules/wcspbrk (configure.ac): ... to here.
13667
13668 2011-05-22  Bruno Haible  <bruno@clisp.org>
13669
13670         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13671         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13672         gl_PREREQ_WCSNRTOMBS invocations from here...
13673         * modules/wcsnrtombs (configure.ac): ... to here.
13674
13675 2011-05-22  Bruno Haible  <bruno@clisp.org>
13676
13677         wcsnlen: Move AC_LIBOBJ invocations to module description.
13678         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13679         here...
13680         * modules/wcsnlen (configure.ac): ... to here.
13681
13682 2011-05-22  Bruno Haible  <bruno@clisp.org>
13683
13684         wcsncpy: Move AC_LIBOBJ invocations to module description.
13685         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13686         here...
13687         * modules/wcsncpy (configure.ac): ... to here.
13688
13689 2011-05-22  Bruno Haible  <bruno@clisp.org>
13690
13691         wcsncmp: Move AC_LIBOBJ invocations to module description.
13692         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13693         here...
13694         * modules/wcsncmp (configure.ac): ... to here.
13695
13696 2011-05-22  Bruno Haible  <bruno@clisp.org>
13697
13698         wcsncat: Move AC_LIBOBJ invocations to module description.
13699         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13700         here...
13701         * modules/wcsncat (configure.ac): ... to here.
13702
13703 2011-05-22  Bruno Haible  <bruno@clisp.org>
13704
13705         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13706         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13707         from here...
13708         * modules/wcsncasecmp (configure.ac): ... to here.
13709
13710 2011-05-22  Bruno Haible  <bruno@clisp.org>
13711
13712         wcslen: Move AC_LIBOBJ invocations to module description.
13713         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13714         * modules/wcslen (configure.ac): ... to here.
13715
13716 2011-05-22  Bruno Haible  <bruno@clisp.org>
13717
13718         wcsdup: Move AC_LIBOBJ invocations to module description.
13719         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13720         * modules/wcsdup (configure.ac): ... to here.
13721
13722 2011-05-22  Bruno Haible  <bruno@clisp.org>
13723
13724         wcscspn: Move AC_LIBOBJ invocations to module description.
13725         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13726         here...
13727         * modules/wcscspn (configure.ac): ... to here.
13728
13729 2011-05-22  Bruno Haible  <bruno@clisp.org>
13730
13731         wcscpy: Move AC_LIBOBJ invocations to module description.
13732         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13733         * modules/wcscpy (configure.ac): ... to here.
13734
13735 2011-05-22  Bruno Haible  <bruno@clisp.org>
13736
13737         wcscoll: Move AC_LIBOBJ invocations to module description.
13738         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13739         here...
13740         * modules/wcscoll (configure.ac): ... to here.
13741
13742 2011-05-22  Bruno Haible  <bruno@clisp.org>
13743
13744         wcscmp: Move AC_LIBOBJ invocations to module description.
13745         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13746         * modules/wcscmp (configure.ac): ... to here.
13747
13748 2011-05-22  Bruno Haible  <bruno@clisp.org>
13749
13750         wcschr: Move AC_LIBOBJ invocations to module description.
13751         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13752         * modules/wcschr (configure.ac): ... to here.
13753
13754 2011-05-22  Bruno Haible  <bruno@clisp.org>
13755
13756         wcscat: Move AC_LIBOBJ invocations to module description.
13757         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13758         * modules/wcscat (configure.ac): ... to here.
13759
13760 2011-05-22  Bruno Haible  <bruno@clisp.org>
13761
13762         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13763         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13764         here...
13765         * modules/wcscasecmp (configure.ac): ... to here.
13766
13767 2011-05-22  Bruno Haible  <bruno@clisp.org>
13768
13769         wcrtomb: Move AC_LIBOBJ invocations to module description.
13770         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13771         invocations from here...
13772         * modules/wcrtomb (configure.ac): ... to here.
13773
13774 2011-05-22  Bruno Haible  <bruno@clisp.org>
13775
13776         wcpncpy: Move AC_LIBOBJ invocations to module description.
13777         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13778         here...
13779         * modules/wcpncpy (configure.ac): ... to here.
13780
13781 2011-05-22  Bruno Haible  <bruno@clisp.org>
13782
13783         wcpcpy: Move AC_LIBOBJ invocations to module description.
13784         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13785         * modules/wcpcpy (configure.ac): ... to here.
13786
13787 2011-05-22  Bruno Haible  <bruno@clisp.org>
13788
13789         waitpid: Move AC_LIBOBJ invocations to module description.
13790         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13791         invocation from here...
13792         * modules/waitpid (configure.ac): ... to here.
13793
13794 2011-05-22  Bruno Haible  <bruno@clisp.org>
13795
13796         utimensat: Move AC_LIBOBJ invocations to module description.
13797         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13798         here...
13799         * modules/utimensat (configure.ac): ... to here.
13800
13801 2011-05-22  Bruno Haible  <bruno@clisp.org>
13802
13803         usleep: Move AC_LIBOBJ invocations to module description.
13804         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13805         here...
13806         * modules/usleep (configure.ac): ... to here.
13807
13808 2011-05-22  Bruno Haible  <bruno@clisp.org>
13809
13810         unlockpt: Move AC_LIBOBJ invocations to module description.
13811         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13812         gl_PREREQ_UNLOCKPT invocations from here...
13813         * modules/unlockpt (configure.ac): ... to here.
13814
13815 2011-05-22  Bruno Haible  <bruno@clisp.org>
13816
13817         unlink: Respect rules for use of AC_LIBOBJ.
13818         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13819         * modules/unlink (configure.ac): ... to here.
13820
13821 2011-05-22  Bruno Haible  <bruno@clisp.org>
13822
13823         uname: Move AC_LIBOBJ invocations to module description.
13824         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13825         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13826         here...
13827         * modules/uname (configure.ac): ... to here.
13828
13829 2011-05-22  Bruno Haible  <bruno@clisp.org>
13830
13831         ttyname_r: Move AC_LIBOBJ invocations to module description.
13832         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13833         gl_PREREQ_TTYNAME_R invocations from here...
13834         * modules/ttyname_r (configure.ac): ... to here.
13835
13836 2011-05-22  Bruno Haible  <bruno@clisp.org>
13837
13838         tsearch: Move AC_LIBOBJ invocations to module description.
13839         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13840         invocations from here...
13841         * modules/tsearch (configure.ac): ... to here.
13842
13843 2011-05-22  Bruno Haible  <bruno@clisp.org>
13844
13845         towctrans: Move AC_LIBOBJ invocations to module description.
13846         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13847         AC_LIBOBJ invocation from here...
13848         * modules/towctrans (configure.ac): ... to here.
13849
13850 2011-05-22  Bruno Haible  <bruno@clisp.org>
13851
13852         tmpfile: Move AC_LIBOBJ invocations to module description.
13853         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13854         invocations from here...
13855         * modules/tmpfile (configure.ac): ... to here.
13856
13857 2011-05-22  Bruno Haible  <bruno@clisp.org>
13858
13859         times: Move AC_LIBOBJ invocations to module description.
13860         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13861         * modules/times (configure.ac): ... to here.
13862
13863 2011-05-22  Bruno Haible  <bruno@clisp.org>
13864
13865         time_r: Move AC_LIBOBJ invocations to module description.
13866         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13867         invocations from here...
13868         * modules/time_r (configure.ac): ... to here.
13869
13870 2011-05-22  Bruno Haible  <bruno@clisp.org>
13871
13872         timegm: Move AC_LIBOBJ invocations to module description.
13873         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13874         invocations from here...
13875         * modules/timegm (configure.ac): ... to here.
13876
13877 2011-05-22  Bruno Haible  <bruno@clisp.org>
13878
13879         tcgetsid: Move AC_LIBOBJ invocations to module description.
13880         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13881         and gl_PREREQ_TCGETSID invocations from here...
13882         * modules/tcgetsid (configure.ac): ... to here.
13883         (Depends-on): Update conditions.
13884
13885 2011-05-22  Bruno Haible  <bruno@clisp.org>
13886
13887         symlinkat: Move AC_LIBOBJ invocations to module description.
13888         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13889         here...
13890         * modules/symlinkat (configure.ac): ... to here.
13891
13892 2011-05-22  Bruno Haible  <bruno@clisp.org>
13893
13894         symlink: Move AC_LIBOBJ invocations to module description.
13895         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13896         here...
13897         * modules/symlink (configure.ac): ... to here.
13898
13899 2011-05-22  Bruno Haible  <bruno@clisp.org>
13900
13901         strverscmp: Move AC_LIBOBJ invocations to module description.
13902         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13903         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13904         from here...
13905         * modules/strverscmp (configure.ac): ... to here.
13906
13907 2011-05-22  Bruno Haible  <bruno@clisp.org>
13908
13909         strtok_r: Move AC_LIBOBJ invocations to module description.
13910         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13911         and gl_PREREQ_STRTOK_R invocations from here...
13912         * modules/strtok_r (configure.ac): ... to here.
13913         (Depends-on): Update conditions.
13914
13915 2011-05-22  Bruno Haible  <bruno@clisp.org>
13916
13917         strtoumax: Move AC_LIBOBJ invocations to module description.
13918         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13919         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13920         from here...
13921         * modules/strtoumax (configure.ac): ... to here.
13922
13923 2011-05-22  Bruno Haible  <bruno@clisp.org>
13924
13925         strtoimax: Move AC_LIBOBJ invocations to module description.
13926         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13927         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13928         from here...
13929         * modules/strtoimax (configure.ac): ... to here.
13930
13931 2011-05-22  Bruno Haible  <bruno@clisp.org>
13932
13933         strtoull: Move AC_LIBOBJ invocations to module description.
13934         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13935         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13936         from here...
13937         * modules/strtoull (configure.ac): ... to here.
13938
13939 2011-05-22  Bruno Haible  <bruno@clisp.org>
13940
13941         strtoll: Move AC_LIBOBJ invocations to module description.
13942         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13943         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13944         here...
13945         * modules/strtoll (configure.ac): ... to here.
13946
13947 2011-05-22  Bruno Haible  <bruno@clisp.org>
13948
13949         strtoul: Move AC_LIBOBJ invocations to module description.
13950         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13951         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13952         * modules/strtoul (configure.ac): ... to here.
13953
13954 2011-05-22  Bruno Haible  <bruno@clisp.org>
13955
13956         strtol: Move AC_LIBOBJ invocations to module description.
13957         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13958         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13959         * modules/strtol (configure.ac): ... to here.
13960
13961 2011-05-22  Bruno Haible  <bruno@clisp.org>
13962
13963         strtod: Move AC_LIBOBJ invocations to module description.
13964         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13965         invocations from here...
13966         * modules/strtod (configure.ac): ... to here.
13967
13968 2011-05-22  Bruno Haible  <bruno@clisp.org>
13969
13970         strstr*: Move AC_LIBOBJ invocations to module description.
13971         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13972         invocations from here...
13973         * modules/strstr-simple (configure.ac): ... to here.
13974         * modules/strstr (configure.ac): ... and here.
13975
13976 2011-05-22  Bruno Haible  <bruno@clisp.org>
13977
13978         strsignal: Move AC_LIBOBJ invocations to module description.
13979         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13980         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13981         * modules/strsignal (configure.ac): ... to here.
13982         (Depends-on): Update conditions.
13983
13984 2011-05-22  Bruno Haible  <bruno@clisp.org>
13985
13986         strsep: Move AC_LIBOBJ invocations to module description.
13987         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13988         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13989         here...
13990         * modules/strsep (configure.ac): ... to here.
13991
13992 2011-05-22  Bruno Haible  <bruno@clisp.org>
13993
13994         strptime: Move AC_LIBOBJ invocations to module description.
13995         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13996         gl_PREREQ_STRPTIME invocations from here...
13997         * modules/strptime (configure.ac): ... to here.
13998
13999 2011-05-22  Bruno Haible  <bruno@clisp.org>
14000
14001         strpbrk: Move AC_LIBOBJ invocations to module description.
14002         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
14003         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
14004         here...
14005         * modules/strpbrk (configure.ac): ... to here.
14006
14007 2011-05-22  Bruno Haible  <bruno@clisp.org>
14008
14009         strnlen: Move AC_LIBOBJ invocations to module description.
14010         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14011         invocations from here...
14012         * modules/strnlen (configure.ac): ... to here.
14013
14014 2011-05-22  Bruno Haible  <bruno@clisp.org>
14015
14016         strndup: Move AC_LIBOBJ invocations to module description.
14017         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14018         invocations from here...
14019         * modules/strndup (configure.ac): ... to here.
14020         (Depends-on): Update conditions.
14021
14022 2011-05-22  Bruno Haible  <bruno@clisp.org>
14023
14024         strncat: Move AC_LIBOBJ invocations to module description.
14025         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14026         invocations from here...
14027         * modules/strncat (configure.ac): ... to here.
14028
14029 2011-05-22  Bruno Haible  <bruno@clisp.org>
14030
14031         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14032         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14033         invocations from here...
14034         * modules/strdup (configure.ac): ... to here.
14035         * modules/strdup-posix (configure.ac): ... and here.
14036
14037 2011-05-22  Bruno Haible  <bruno@clisp.org>
14038
14039         strcspn: Move AC_LIBOBJ invocations to module description.
14040         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14041         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14042         here...
14043         * modules/strcspn (configure.ac): ... to here.
14044
14045 2011-05-22  Bruno Haible  <bruno@clisp.org>
14046
14047         strchrnul: Move AC_LIBOBJ invocations to module description.
14048         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14049         gl_PREREQ_STRCHRNUL invocations from here...
14050         * modules/strchrnul (configure.ac): ... to here.
14051
14052 2011-05-22  Bruno Haible  <bruno@clisp.org>
14053
14054         strcasestr*: Move AC_LIBOBJ invocations to module description.
14055         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14056         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14057         * modules/strcasestr-simple (configure.ac): ... to here.
14058         * modules/strcasestr (configure.ac): ... and here.
14059
14060 2011-05-22  Bruno Haible  <bruno@clisp.org>
14061
14062         strcase: Move AC_LIBOBJ invocations to module description.
14063         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14064         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14065         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14066         gl_PREREQ_STRNCASECMP invocations from here...
14067         * modules/strcase (configure.ac): ... to here.
14068
14069 2011-05-22  Bruno Haible  <bruno@clisp.org>
14070
14071         stpncpy: Move AC_LIBOBJ invocations to module description.
14072         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14073         here...
14074         * modules/stpncpy (configure.ac): ... to here.
14075
14076 2011-05-22  Bruno Haible  <bruno@clisp.org>
14077
14078         stpcpy: Move AC_LIBOBJ invocations to module description.
14079         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14080         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14081         here...
14082         * modules/stpcpy (configure.ac): ... to here.
14083
14084 2011-05-21  Bruno Haible  <bruno@clisp.org>
14085
14086         stat: Move AC_LIBOBJ invocations to module description.
14087         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14088         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14089         here...
14090         * modules/stat (configure.ac): ... to here.
14091
14092 2011-05-21  Bruno Haible  <bruno@clisp.org>
14093
14094         sleep: Move AC_LIBOBJ invocations to module description.
14095         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14096         * modules/sleep (configure.ac): ... to here.
14097
14098 2011-05-21  Bruno Haible  <bruno@clisp.org>
14099
14100         signbit: Move AC_LIBOBJ invocations to module description.
14101         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14102         * modules/signbit (configure.ac): ... to here.
14103
14104 2011-05-21  Bruno Haible  <bruno@clisp.org>
14105
14106         sigprocmask: Move AC_LIBOBJ invocations to module description.
14107         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14108         gl_PREREQ_SIGPROMASK invocations from here...
14109         * modules/sigprocmask (configure.ac): ... to here.
14110
14111 2011-05-21  Bruno Haible  <bruno@clisp.org>
14112
14113         sigaction: Move AC_LIBOBJ invocations to module description.
14114         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14115         gl_PREREQ_SIGACTION invocations from here...
14116         * modules/sigaction (configure.ac): ... to here.
14117
14118 2011-05-21  Bruno Haible  <bruno@clisp.org>
14119
14120         sig2str: Move AC_LIBOBJ invocations to module description.
14121         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14122         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14123         here...
14124         * modules/sig2str (configure.ac): ... to here.
14125
14126 2011-05-21  Bruno Haible  <bruno@clisp.org>
14127
14128         setlocale: Move AC_LIBOBJ invocations to module description.
14129         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14130         gl_PREREQ_SETLOCALE invocations from here...
14131         * modules/setlocale (configure.ac): ... to here.
14132
14133 2011-05-21  Bruno Haible  <bruno@clisp.org>
14134
14135         unsetenv: Move AC_LIBOBJ invocations to module description.
14136         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14137         and gl_PREREQ_UNSETENV invocations from here...
14138         * modules/unsetenv (configure.ac): ... to here.
14139         (Depends-on): Update.
14140
14141 2011-05-21  Bruno Haible  <bruno@clisp.org>
14142
14143         setenv: Move AC_LIBOBJ invocations to module description.
14144         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
14145         here...
14146         * modules/setenv (configure.ac): ... to here.
14147
14148 2011-05-21  Bruno Haible  <bruno@clisp.org>
14149
14150         selinux-h: Move AC_LIBOBJ invocations to module description.
14151         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
14152         AC_LIBOBJ invocation from here...
14153         * modules/selinux-h (configure.ac): ... to here.
14154
14155 2011-05-21  Bruno Haible  <bruno@clisp.org>
14156
14157         select: Respect rules for use of AC_LIBOBJ.
14158         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
14159         here...
14160         * modules/select (configure.ac): ... to here.
14161
14162 2011-05-21  Bruno Haible  <bruno@clisp.org>
14163
14164         scandir: Move AC_LIBOBJ invocations to module description.
14165         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
14166         invocations from here...
14167         * modules/scandir (configure.ac): ... to here.
14168
14169 2011-05-21  Bruno Haible  <bruno@clisp.org>
14170
14171         rpmatch: Move AC_LIBOBJ invocations to module description.
14172         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
14173         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
14174         here...
14175         * modules/rpmatch (configure.ac): ... to here.
14176
14177 2011-05-21  Bruno Haible  <bruno@clisp.org>
14178
14179         rmdir: Respect rules for use of AC_LIBOBJ.
14180         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14181         * modules/rmdir (configure.ac): ... to here.
14182
14183 2011-05-21  Bruno Haible  <bruno@clisp.org>
14184
14185         renameat: Move AC_LIBOBJ invocations to module description.
14186         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14187         here...
14188         * modules/renameat (configure.ac): ... to here.
14189
14190 2011-05-21  Bruno Haible  <bruno@clisp.org>
14191
14192         rename: Respect rules for use of AC_LIBOBJ.
14193         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14194         here...
14195         * modules/rename (configure.ac): ... to here.
14196
14197 2011-05-21  Bruno Haible  <bruno@clisp.org>
14198
14199         remove: Move AC_LIBOBJ invocations to module description.
14200         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14201         here...
14202         * modules/remove (configure.ac): ... to here.
14203
14204 2011-05-21  Bruno Haible  <bruno@clisp.org>
14205
14206         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14207         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14208         macro.
14209         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14210         * modules/relocatable-lib (configure.ac): ... to here.
14211         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14212         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14213
14214 2011-05-21  Bruno Haible  <bruno@clisp.org>
14215
14216         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14217         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14218         here...
14219         * modules/relocatable-prog (configure.ac): ... to here.
14220
14221 2011-05-21  Bruno Haible  <bruno@clisp.org>
14222
14223         regex: Move AC_LIBOBJ invocations to module description.
14224         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14225         invocations from here...
14226         * modules/regex (configure.ac): ... to here.
14227
14228 2011-05-21  Bruno Haible  <bruno@clisp.org>
14229
14230         realloc-*: Move AC_LIBOBJ invocations to module description.
14231         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14232         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14233         AC_LIBOBJ invocations from here...
14234         * modules/realloc-gnu (configure.ac): ... to here.
14235         * modules/realloc-posix (configure.ac): ... and here.
14236
14237 2011-05-21  Bruno Haible  <bruno@clisp.org>
14238
14239         readutmp: Move AC_LIBOBJ invocations to module description.
14240         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
14241         * modules/readutmp (configure.ac): ... to here.
14242
14243 2011-05-21  Bruno Haible  <bruno@clisp.org>
14244
14245         readlinkat: Move AC_LIBOBJ invocations to module description.
14246         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
14247         here...
14248         * modules/readlinkat (configure.ac): ... to here.
14249
14250 2011-05-21  Bruno Haible  <bruno@clisp.org>
14251
14252         readlink: Move AC_LIBOBJ invocations to module description.
14253         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14254         gl_PREREQ_READLINK invocations from here...
14255         * modules/readlink (configure.ac): ... to here.
14256
14257 2011-05-21  Bruno Haible  <bruno@clisp.org>
14258
14259         readline: Move AC_LIBOBJ invocations to module description.
14260         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14261         gl_PREREQ_READLINE invocations from here...
14262         * modules/readline (configure.ac): ... to here.
14263
14264 2011-05-21  Bruno Haible  <bruno@clisp.org>
14265
14266         read: Move AC_LIBOBJ invocations to module description.
14267         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14268         * modules/read (configure.ac): ... to here.
14269
14270 2011-05-21  Bruno Haible  <bruno@clisp.org>
14271
14272         rawmemchr: Move AC_LIBOBJ invocations to module description.
14273         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14274         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14275         from here...
14276         * modules/rawmemchr (configure.ac): ... to here.
14277
14278 2011-05-21  Bruno Haible  <bruno@clisp.org>
14279
14280         random_r: Move AC_LIBOBJ invocations to module description.
14281         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14282         gl_PREREQ_RANDOM_R invocations from here...
14283         * modules/random_r (configure.ac): ... to here.
14284
14285 2011-05-21  Bruno Haible  <bruno@clisp.org>
14286
14287         pwrite: Move AC_LIBOBJ invocations to module description.
14288         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14289         * modules/pwrite (configure.ac): ... to here.
14290
14291 2011-05-21  Bruno Haible  <bruno@clisp.org>
14292
14293         putenv: Move AC_LIBOBJ invocations to module description.
14294         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14295         * modules/putenv (configure.ac): ... to here.
14296
14297 2011-05-21  Bruno Haible  <bruno@clisp.org>
14298
14299         login_tty: Move AC_LIBOBJ invocations to module description.
14300         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14301         * modules/login_tty (configure.ac): ... to here.
14302
14303 2011-05-21  Bruno Haible  <bruno@clisp.org>
14304
14305         openpty: Move AC_LIBOBJ invocations to module description.
14306         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14307         * modules/openpty (configure.ac): ... to here.
14308
14309 2011-05-21  Bruno Haible  <bruno@clisp.org>
14310
14311         forkpty: Move AC_LIBOBJ invocations to module description.
14312         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14313         * modules/forkpty (configure.ac): ... to here.
14314
14315 2011-05-21  Bruno Haible  <bruno@clisp.org>
14316
14317         ptsname: Move AC_LIBOBJ invocations to module description.
14318         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14319         invocations from here...
14320         * modules/ptsname (configure.ac): ... to here.
14321
14322 2011-05-21  Bruno Haible  <bruno@clisp.org>
14323
14324         pread: Move AC_LIBOBJ invocations to module description.
14325         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14326         * modules/pread (configure.ac): ... to here.
14327
14328 2011-05-21  Bruno Haible  <bruno@clisp.org>
14329
14330         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14331         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14332         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14333         * modules/posix_spawn (configure.ac): ... to here.
14334         * modules/posix_spawnp (configure.ac): ... and here.
14335
14336 2011-05-21  Bruno Haible  <bruno@clisp.org>
14337
14338         popen: Move AC_LIBOBJ invocations to module description.
14339         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14340         invocations from here...
14341         * modules/popen (configure.ac): ... to here.
14342
14343 2011-05-21  Bruno Haible  <bruno@clisp.org>
14344
14345         poll: Move AC_LIBOBJ invocations to module description.
14346         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14347         invocations from here...
14348         * modules/poll (configure.ac): ... to here.
14349
14350 2011-05-21  Bruno Haible  <bruno@clisp.org>
14351
14352         pipe-posix: Move AC_LIBOBJ invocations to module description.
14353         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14354         * modules/pipe-posix (configure.ac): ... to here.
14355
14356 2011-05-21  Bruno Haible  <bruno@clisp.org>
14357
14358         openat: Respect rules for use of AC_LIBOBJ.
14359         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14360         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14361         * modules/openat (configure.ac): ... to here.
14362
14363 2011-05-21  Bruno Haible  <bruno@clisp.org>
14364
14365         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14366         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14367         invocation from here...
14368         * modules/obstack-printf (configure.ac): ... to here.
14369         * modules/obstack-printf-posix (configure.ac): ... and here.
14370
14371 2011-05-21  Bruno Haible  <bruno@clisp.org>
14372
14373         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14374         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14375         from here...
14376         * modules/nl_langinfo (configure.ac): ... to here.
14377
14378 2011-05-21  Bruno Haible  <bruno@clisp.org>
14379
14380         nanosleep: Move AC_LIBOBJ invocations to module description.
14381         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14382         gl_PREREQ_NANOSLEEP invocations from here...
14383         * modules/nanosleep (configure.ac): ... to here.
14384
14385 2011-05-21  Bruno Haible  <bruno@clisp.org>
14386
14387         mountlist: Move AC_LIBOBJ invocations to module description.
14388         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14389         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14390         * modules/mountlist (configure.ac): ... to here.
14391
14392 2011-05-21  Bruno Haible  <bruno@clisp.org>
14393
14394         mktime: Respect rules for use of AC_LIBOBJ.
14395         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14396         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14397         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14398         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14399         * modules/mktime (configure.ac): ... to here.
14400         * modules/mktime-internal (configure.ac): ... and here.
14401         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14402
14403 2011-05-21  Bruno Haible  <bruno@clisp.org>
14404
14405         mkstemps: Move AC_LIBOBJ invocations to module description.
14406         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14407         here...
14408         * modules/mkstemps (configure.ac): ... to here.
14409
14410 2011-05-21  Bruno Haible  <bruno@clisp.org>
14411
14412         mkstemp: Move AC_LIBOBJ invocations to module description.
14413         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14414         gl_PREREQ_MKSTEMP invocations from here...
14415         * modules/mkstemp (configure.ac): ... to here.
14416
14417 2011-05-21  Bruno Haible  <bruno@clisp.org>
14418
14419         mkostemps: Move AC_LIBOBJ invocations to module description.
14420         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14421         here...
14422         * modules/mkostemps (configure.ac): ... to here.
14423
14424 2011-05-21  Bruno Haible  <bruno@clisp.org>
14425
14426         mkostemp: Move AC_LIBOBJ invocations to module description.
14427         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14428         gl_PREREQ_MKOSTEMP invocations from here...
14429         * modules/mkostemp (configure.ac): ... to here.
14430
14431 2011-05-21  Bruno Haible  <bruno@clisp.org>
14432
14433         mknod: Move AC_LIBOBJ invocations to module description.
14434         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14435         * modules/mknod (configure.ac): ... to here.
14436
14437 2011-05-21  Bruno Haible  <bruno@clisp.org>
14438
14439         mkfifoat: Move AC_LIBOBJ invocations to module description.
14440         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14441         here...
14442         * modules/mkfifoat (configure.ac): ... to here.
14443
14444 2011-05-21  Bruno Haible  <bruno@clisp.org>
14445
14446         mkfifo: Respect rules for use of AC_LIBOBJ.
14447         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14448         here...
14449         * modules/mkfifo (configure.ac): ... to here.
14450
14451 2011-05-21  Bruno Haible  <bruno@clisp.org>
14452
14453         mkdtemp: Move AC_LIBOBJ invocations to module description.
14454         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14455         invocations from here...
14456         * modules/mkdtemp (configure.ac): ... to here.
14457
14458 2011-05-21  Bruno Haible  <bruno@clisp.org>
14459
14460         mkdir: Move AC_LIBOBJ invocations to module description.
14461         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14462         * modules/mkdir (configure.ac): ... to here.
14463
14464 2011-05-21  Bruno Haible  <bruno@clisp.org>
14465
14466         memset: Move AC_LIBOBJ invocations to module description.
14467         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14468         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14469         here...
14470         * modules/memset (configure.ac): ... to here.
14471
14472 2011-05-21  Bruno Haible  <bruno@clisp.org>
14473
14474         memrchr: Move AC_LIBOBJ invocations to module description.
14475         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14476         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14477         here...
14478         * modules/memrchr (configure.ac): ... to here.
14479
14480 2011-05-21  Bruno Haible  <bruno@clisp.org>
14481
14482         mempcpy: Move AC_LIBOBJ invocations to module description.
14483         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14484         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14485         here...
14486         * modules/mempcpy (configure.ac): ... to here.
14487
14488 2011-05-21  Bruno Haible  <bruno@clisp.org>
14489
14490         memmove: Move AC_LIBOBJ invocations to module description.
14491         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14492         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14493         here...
14494         * modules/memmove (configure.ac): ... to here.
14495
14496 2011-05-21  Bruno Haible  <bruno@clisp.org>
14497
14498         memmem*: Move AC_LIBOBJ invocations to module description.
14499         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14500         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14501         here...
14502         (gl_FUNC_MEMMEM): ... and here...
14503         * modules/memmem-simple (configure.ac): ... to here.
14504         * modules/memmem (configure.ac): ... and here.
14505
14506 2011-05-21  Bruno Haible  <bruno@clisp.org>
14507
14508         memcpy: Move AC_LIBOBJ invocations to module description.
14509         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14510         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14511         here...
14512         * modules/memcpy (configure.ac): ... to here.
14513
14514 2011-05-21  Bruno Haible  <bruno@clisp.org>
14515
14516         memcmp: Simplify autoconf macro.
14517         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14518         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14519         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14520
14521 2011-05-21  Bruno Haible  <bruno@clisp.org>
14522
14523         memcmp: Move AC_LIBOBJ invocations to module description.
14524         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14525         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14526         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14527         * modules/memcmp (configure.ac): ... to here.
14528         (Depends-on): Update conditions.
14529
14530 2011-05-21  Bruno Haible  <bruno@clisp.org>
14531
14532         memchr: Respect rules for use of AC_LIBOBJ.
14533         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14534         invocations from here...
14535         * modules/memchr (configure.ac): ... to here.
14536
14537 2011-05-21  Bruno Haible  <bruno@clisp.org>
14538
14539         mbtowc: Move AC_LIBOBJ invocations to module description.
14540         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14541         invocations from here...
14542         * modules/mbtowc (configure.ac): ... to here.
14543
14544 2011-05-21  Bruno Haible  <bruno@clisp.org>
14545
14546         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14547         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14548         gl_PREREQ_MBSRTOWCS invocations from here...
14549         * modules/mbsrtowcs (configure.ac): ... to here.
14550
14551 2011-05-21  Bruno Haible  <bruno@clisp.org>
14552
14553         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14554         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14555         gl_PREREQ_MBSNRTOWCS invocations from here...
14556         * modules/mbsnrtowcs (configure.ac): ... to here.
14557
14558 2011-05-21  Bruno Haible  <bruno@clisp.org>
14559
14560         mbsinit: Move AC_LIBOBJ invocations to module description.
14561         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14562         invocations from here...
14563         * modules/mbsinit (configure.ac): ... to here.
14564
14565 2011-05-21  Bruno Haible  <bruno@clisp.org>
14566
14567         mbrlen: Move AC_LIBOBJ invocations to module description.
14568         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14569         invocations from here...
14570         * modules/mbrlen (configure.ac): ... to here.
14571
14572 2011-05-21  Bruno Haible  <bruno@clisp.org>
14573
14574         mbrtowc: Respect rules for use of AC_LIBOBJ.
14575         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14576         invocations from here...
14577         * modules/mbrtowc (configure.ac): ... to here.
14578
14579 2011-05-21  Bruno Haible  <bruno@clisp.org>
14580
14581         malloc-*: Move AC_LIBOBJ invocations to module description.
14582         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14583         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14584         AC_LIBOBJ invocations from here...
14585         * modules/malloc-gnu (configure.ac): ... to here.
14586         * modules/malloc-posix (configure.ac): ... and here.
14587
14588 2011-05-21  Bruno Haible  <bruno@clisp.org>
14589
14590         lstat, openat: Respect rules for use of AC_LIBOBJ.
14591         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14592         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14593         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14594         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14595         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14596         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14597         here.
14598         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14599
14600 2011-05-21  Bruno Haible  <bruno@clisp.org>
14601
14602         lseek: Move AC_LIBOBJ invocations to module description.
14603         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14604         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14605         * modules/lseek (configure.ac): ... to here.
14606
14607 2011-05-21  Bruno Haible  <bruno@clisp.org>
14608
14609         linkat: Move AC_LIBOBJ invocations to module description.
14610         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14611         here...
14612         * modules/linkat (configure.ac): ... to here.
14613
14614 2011-05-21  Bruno Haible  <bruno@clisp.org>
14615
14616         link: Respect rules for use of AC_LIBOBJ.
14617         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14618         * modules/link (configure.ac): ... to here.
14619
14620 2011-05-21  Bruno Haible  <bruno@clisp.org>
14621
14622         lchown: Move AC_LIBOBJ invocations to module description.
14623         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14624         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14625         * modules/lchown (configure.ac): ... to here.
14626
14627 2011-05-21  Bruno Haible  <bruno@clisp.org>
14628
14629         iswctype: Move AC_LIBOBJ invocations to module description.
14630         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14631         here...
14632         * modules/iswctype (configure.ac): ... to here.
14633
14634 2011-05-21  Bruno Haible  <bruno@clisp.org>
14635
14636         iswblank: Move AC_LIBOBJ invocations to module description.
14637         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14638         here...
14639         * modules/iswblank (configure.ac): ... to here.
14640
14641 2011-05-21  Bruno Haible  <bruno@clisp.org>
14642
14643         atanl: Move AC_LIBOBJ invocations to module description.
14644         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14645         * modules/atanl (configure.ac): ... to here.
14646
14647 2011-05-21  Bruno Haible  <bruno@clisp.org>
14648
14649         acosl: Move AC_LIBOBJ invocations to module description.
14650         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14651         * modules/acosl (configure.ac): ... to here.
14652
14653 2011-05-21  Bruno Haible  <bruno@clisp.org>
14654
14655         asinl: Respect rules for use of AC_LIBOBJ.
14656         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14657         * modules/asinl (configure.ac): ... to here.
14658
14659 2011-05-21  Bruno Haible  <bruno@clisp.org>
14660
14661         tanl: Move AC_LIBOBJ invocations to module description.
14662         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14663         * modules/tanl (configure.ac): ... to here.
14664
14665 2011-05-21  Bruno Haible  <bruno@clisp.org>
14666
14667         cosl: Move AC_LIBOBJ invocations to module description.
14668         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14669         * modules/cosl (configure.ac): ... to here.
14670
14671 2011-05-21  Bruno Haible  <bruno@clisp.org>
14672
14673         sinl: Move AC_LIBOBJ invocations to module description.
14674         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14675         * modules/sinl (configure.ac): ... to here.
14676
14677 2011-05-21  Bruno Haible  <bruno@clisp.org>
14678
14679         logl: Move AC_LIBOBJ invocations to module description.
14680         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14681         * modules/logl (configure.ac): ... to here.
14682
14683 2011-05-21  Bruno Haible  <bruno@clisp.org>
14684
14685         expl: Move AC_LIBOBJ invocations to module description.
14686         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14687         * modules/expl (configure.ac): ... to here.
14688
14689 2011-05-21  Bruno Haible  <bruno@clisp.org>
14690
14691         roundl: Move AC_LIBOBJ invocations to module description.
14692         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14693         * modules/roundl (configure.ac): ... to here.
14694
14695 2011-05-21  Bruno Haible  <bruno@clisp.org>
14696
14697         round: Move AC_LIBOBJ invocations to module description.
14698         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14699         * modules/round (configure.ac): ... to here.
14700
14701 2011-05-21  Bruno Haible  <bruno@clisp.org>
14702
14703         roundf: Move AC_LIBOBJ invocations to module description.
14704         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14705         * modules/roundf (configure.ac): ... to here.
14706
14707 2011-05-21  Bruno Haible  <bruno@clisp.org>
14708
14709         truncl: Move AC_LIBOBJ invocations to module description.
14710         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14711         * modules/truncl (configure.ac): ... to here.
14712
14713 2011-05-21  Bruno Haible  <bruno@clisp.org>
14714
14715         trunc: Move AC_LIBOBJ invocations to module description.
14716         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14717         * modules/trunc (configure.ac): ... to here.
14718
14719 2011-05-21  Bruno Haible  <bruno@clisp.org>
14720
14721         truncf: Move AC_LIBOBJ invocations to module description.
14722         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14723         * modules/truncf (configure.ac): ... to here.
14724
14725 2011-05-21  Bruno Haible  <bruno@clisp.org>
14726
14727         ceill: Move AC_LIBOBJ invocations to module description.
14728         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14729         * modules/ceill (configure.ac): ... to here.
14730
14731 2011-05-21  Bruno Haible  <bruno@clisp.org>
14732
14733         ceil: Move AC_LIBOBJ invocations to module description.
14734         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14735         * modules/ceil (configure.ac): ... to here.
14736
14737 2011-05-21  Bruno Haible  <bruno@clisp.org>
14738
14739         ceilf: Move AC_LIBOBJ invocations to module description.
14740         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14741         * modules/ceilf (configure.ac): ... to here.
14742
14743 2011-05-21  Bruno Haible  <bruno@clisp.org>
14744
14745         floorl: Respect rules for use of AC_LIBOBJ.
14746         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14747         * modules/floorl (configure.ac): ... to here.
14748
14749 2011-05-21  Bruno Haible  <bruno@clisp.org>
14750
14751         floor: Respect rules for use of AC_LIBOBJ.
14752         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14753         * modules/floor (configure.ac): ... to here.
14754
14755 2011-05-21  Bruno Haible  <bruno@clisp.org>
14756
14757         floorf: Move AC_LIBOBJ invocations to module description.
14758         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14759         * modules/floorf (configure.ac): ... to here.
14760
14761 2011-05-20  Bruno Haible  <bruno@clisp.org>
14762
14763         sqrtl: Respect rules for use of AC_LIBOBJ.
14764         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14765         * modules/sqrtl (configure.ac): ... to here.
14766
14767 2011-05-20  Bruno Haible  <bruno@clisp.org>
14768
14769         ldexpl: Respect rules for use of AC_LIBOBJ.
14770         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14771         * modules/ldexpl (configure.ac): ... to here.
14772
14773 2011-05-20  Bruno Haible  <bruno@clisp.org>
14774
14775         frexpl*: Respect rules for use of AC_LIBOBJ.
14776         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14777         invocation from here...
14778         * modules/frexpl (configure.ac): ... to here.
14779         * modules/frexpl-nolibm (configure.ac): ... and here.
14780
14781 2011-05-20  Bruno Haible  <bruno@clisp.org>
14782
14783         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14784         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14785         invocation from here...
14786         * modules/frexp (configure.ac): ... to here.
14787         * modules/frexp-nolibm (configure.ac): ... and here.
14788
14789 2011-05-20  Bruno Haible  <bruno@clisp.org>
14790
14791         isnan: Respect rules for use of AC_LIBOBJ.
14792         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14793         invocations here.
14794         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14795         REPLACE_ISNAN.
14796         * modules/isnand (configure.ac): Likewise.
14797         * modules/isnanl (configure.ac): Likewise.
14798
14799 2011-05-20  Bruno Haible  <bruno@clisp.org>
14800
14801         isnanl*: Respect rules for use of AC_LIBOBJ.
14802         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14803         invocation from here...
14804         * modules/isnanl (configure.ac): ... to here.
14805         * modules/isnanl-nolibm (configure.ac): ... and here.
14806
14807 2011-05-20  Bruno Haible  <bruno@clisp.org>
14808
14809         isnand*: Move AC_LIBOBJ invocations to module description.
14810         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14811         invocation from here...
14812         * modules/isnand (configure.ac): ... to here.
14813         * modules/isnand-nolibm (configure.ac): ... and here.
14814
14815 2011-05-20  Bruno Haible  <bruno@clisp.org>
14816
14817         isnanf*: Move AC_LIBOBJ invocations to module description.
14818         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14819         invocation from here...
14820         * modules/isnanf (configure.ac): ... to here.
14821         * modules/isnanf-nolibm (configure.ac): ... and here.
14822
14823 2011-05-20  Bruno Haible  <bruno@clisp.org>
14824
14825         isnan*: Separate the AC_LIBOBJ invocations.
14826         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14827         AC_LIBOBJ invocation.
14828         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14829         here.
14830         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14831         AC_LIBOBJ invocation.
14832         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14833         here.
14834         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14835         AC_LIBOBJ invocation.
14836         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14837         here.
14838         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14839
14840 2011-05-08  Bruno Haible  <bruno@clisp.org>
14841
14842         isinf: Move AC_LIBOBJ invocations to module description.
14843         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14844         * modules/isinf (configure.ac): ... to here.
14845
14846 2011-05-08  Bruno Haible  <bruno@clisp.org>
14847
14848         isfinite: Move AC_LIBOBJ invocations to module description.
14849         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14850         * modules/isfinite (configure.ac): ... to here.
14851
14852 2011-05-08  Bruno Haible  <bruno@clisp.org>
14853
14854         isblank: Move AC_LIBOBJ invocations to module description.
14855         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14856         here...
14857         * modules/isblank (configure.ac): ... to here.
14858
14859 2011-05-08  Bruno Haible  <bruno@clisp.org>
14860
14861         isapipe: Move AC_LIBOBJ invocations to module description.
14862         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14863         gl_PREREQ_ISAPIPE invocations from here...
14864         * modules/isapipe (configure.ac): ... to here.
14865         (Depends-on): Update condition.
14866
14867 2011-05-08  Bruno Haible  <bruno@clisp.org>
14868
14869         ioctl: Move AC_LIBOBJ invocations to module description.
14870         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14871         invocations from here...
14872         * modules/ioctl (configure.ac): ... to here.
14873         (Depends-on): Update condition.
14874
14875 2011-05-08  Bruno Haible  <bruno@clisp.org>
14876
14877         imaxdiv: Move AC_LIBOBJ invocations to module description.
14878         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14879         invocations from here...
14880         * modules/imaxdiv (configure.ac): ... to here.
14881
14882 2011-05-08  Bruno Haible  <bruno@clisp.org>
14883
14884         imaxabs: Move AC_LIBOBJ invocations to module description.
14885         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14886         invocations from here...
14887         * modules/imaxabs (configure.ac): ... to here.
14888
14889 2011-05-08  Bruno Haible  <bruno@clisp.org>
14890
14891         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14892         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14893         AC_LIBOBJ invocations from here...
14894         * modules/getaddrinfo (configure.ac): ... to here.
14895         (Depends-on): Add conditions.
14896
14897 2011-05-08  Bruno Haible  <bruno@clisp.org>
14898
14899         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14900         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14901         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14902         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14903         (gl_PREREQ_INET_PTON): ... from here.
14904         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14905         gl_PREREQ_INET_PTON here.
14906         (Depends-on): Update condition.
14907
14908 2011-05-08  Bruno Haible  <bruno@clisp.org>
14909
14910         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14911         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14912         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14913         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14914         (gl_PREREQ_INET_NTOP): ... from here.
14915         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14916         gl_PREREQ_INET_NTOP here.
14917         (Depends-on): Update condition.
14918
14919 2011-05-08  Bruno Haible  <bruno@clisp.org>
14920
14921         iconv_open: Move AC_LIBOBJ invocations to module description.
14922         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14923         AC_LIBOBJ invocations from here...
14924         * modules/iconv_open (configure.ac): ... to here.
14925
14926 2011-05-08  Bruno Haible  <bruno@clisp.org>
14927
14928         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14929         If module 'iconv_open' is among the main modules and module
14930         'iconv_open-utf' is among the tests dependencies, then
14931         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14932         return the special iconv_t values. Therefore iconv() and iconv_close()
14933         must support these special iconv_t values, already in lib, not only in
14934         tests.
14935         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14936         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14937         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14938         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14939         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14940         (Depends-on): Add the dependencies of iconv_open-utf.
14941         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14942         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14943         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14944
14945 2011-05-08  Bruno Haible  <bruno@clisp.org>
14946
14947         group-member: Move AC_LIBOBJ invocations to module description.
14948         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14949         gl_PREREQ_GROUP_MEMBER invocations from here...
14950         * modules/group-member (configure.ac): ... to here.
14951
14952 2011-05-08  Bruno Haible  <bruno@clisp.org>
14953
14954         grantpt: Move AC_LIBOBJ invocations to module description.
14955         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14956         invocations from here...
14957         * modules/grantpt (configure.ac): ... to here.
14958
14959 2011-05-08  Bruno Haible  <bruno@clisp.org>
14960
14961         glob: Move AC_LIBOBJ invocations to module description.
14962         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14963         from here...
14964         * modules/glob (configure.ac): ... to here.
14965
14966 2011-05-08  Bruno Haible  <bruno@clisp.org>
14967
14968         getusershell: Move AC_LIBOBJ invocations to module description.
14969         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14970         Move AC_LIBOBJ invocation from here...
14971         * modules/getusershell (configure.ac): ... to here.
14972         (Depends-on): Update condition.
14973
14974 2011-05-08  Bruno Haible  <bruno@clisp.org>
14975
14976         gettimeofday: Move AC_LIBOBJ invocations to module description.
14977         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14978         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14979         gl_PREREQ_GETTIMEOFDAY invocations from here...
14980         * modules/gettimeofday (configure.ac): ... to here.
14981
14982 2011-05-08  Bruno Haible  <bruno@clisp.org>
14983
14984         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14985         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14986         just gl_FUNC_TZSET.
14987         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14988         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14989         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14990         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14991
14992 2011-05-08  Bruno Haible  <bruno@clisp.org>
14993
14994         getsubopt: Move AC_LIBOBJ invocations to module description.
14995         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14996         gl_PREREQ_GETSUBOPT invocations from here...
14997         * modules/getsubopt (configure.ac): ... to here.
14998
14999 2011-05-08  Bruno Haible  <bruno@clisp.org>
15000
15001         getpass-gnu: Move AC_LIBOBJ invocations to module description.
15002         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
15003         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
15004         * modules/getpass-gnu (configure.ac): ... to here.
15005
15006 2011-05-08  Bruno Haible  <bruno@clisp.org>
15007
15008         getpass: Move AC_LIBOBJ invocations to module description.
15009         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15010         gl_PREREQ_GETPASS invocations from here...
15011         * modules/getpass (configure.ac): ... to here.
15012
15013 2011-05-08  Bruno Haible  <bruno@clisp.org>
15014
15015         getpagesize: Move AC_LIBOBJ invocations to module description.
15016         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15017         from here...
15018         * modules/getpagesize (configure.ac): ... to here.
15019
15020 2011-05-08  Bruno Haible  <bruno@clisp.org>
15021
15022         getopt: Move AC_LIBOBJ invocations to module description.
15023         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15024         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15025         invocations from here...
15026         * modules/getopt-gnu (configure.ac): ... to here.
15027         * modules/getopt-posix (configure.ac): ... and here.
15028         (Depends-on): Update condition.
15029
15030 2011-05-08  Bruno Haible  <bruno@clisp.org>
15031
15032         getopt, argp: Respect rules for use of AC_LIBOBJ.
15033         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15034         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15035         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15036         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15037
15038 2011-05-08  Bruno Haible  <bruno@clisp.org>
15039
15040         getlogin_r: Move AC_LIBOBJ invocations to module description.
15041         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15042         gl_PREREQ_GETLOGIN_R invocations from here...
15043         * modules/getlogin_r (configure.ac): ... to here.
15044
15045 2011-05-08  Bruno Haible  <bruno@clisp.org>
15046
15047         getlogin: Move AC_LIBOBJ invocations to module description.
15048         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15049         here...
15050         * modules/getlogin (configure.ac): ... to here.
15051
15052 2011-05-08  Bruno Haible  <bruno@clisp.org>
15053
15054         getloadavg: Move AC_LIBOBJ invocations to module description.
15055         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15056         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15057         * modules/getloadavg (configure.ac): ... to here.
15058
15059 2011-05-08  Bruno Haible  <bruno@clisp.org>
15060
15061         gethrxtime: Move AC_LIBOBJ invocations to module description.
15062         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15063         LIB_GETHRXTIME from here...
15064         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15065         invocations from here...
15066         * modules/gethrxtime (configure.ac): ... to here.
15067
15068 2011-05-08  Bruno Haible  <bruno@clisp.org>
15069
15070         gethostname: Move AC_LIBOBJ invocations to module description.
15071         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15072         gl_PREREQ_GETHOSTNAME invocations from here...
15073         * modules/gethostname (configure.ac): ... to here.
15074
15075 2011-05-08  Bruno Haible  <bruno@clisp.org>
15076
15077         getgroups: Move AC_LIBOBJ invocations to module description.
15078         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15079         here...
15080         * modules/getgroups (configure.ac): ... to here.
15081
15082 2011-05-08  Bruno Haible  <bruno@clisp.org>
15083
15084         getdtablesize: Move AC_LIBOBJ invocations to module description.
15085         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15086         invocation from here...
15087         * modules/getdtablesize (configure.ac): ... to here.
15088
15089 2011-05-08  Bruno Haible  <bruno@clisp.org>
15090
15091         getdomainname: Move AC_LIBOBJ invocations to module description.
15092         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15093         gl_PREREQ_GETDOMAINNAME invocations from here...
15094         * modules/getdomainname (configure.ac): ... to here.
15095
15096 2011-05-08  Bruno Haible  <bruno@clisp.org>
15097
15098         getline: Move AC_LIBOBJ invocations to module description.
15099         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15100         invocations from here...
15101         * modules/getline (configure.ac): ... to here.
15102
15103 2011-05-08  Bruno Haible  <bruno@clisp.org>
15104
15105         getline: Simplify.
15106         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15107         It's already handled through the module dependency.
15108
15109 2011-05-08  Bruno Haible  <bruno@clisp.org>
15110
15111         getdelim: Move AC_LIBOBJ invocations to module description.
15112         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15113         and gl_PREREQ_GETDELIM invocations from here...
15114         * modules/getdelim (configure.ac): ... to here.
15115         (Depends-on): Fix condition.
15116
15117 2011-05-08  Bruno Haible  <bruno@clisp.org>
15118
15119         getcwd: Move AC_LIBOBJ invocations to module description.
15120         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15121         invocations from here...
15122         * modules/getcwd (configure.ac): ... to here.
15123
15124 2011-05-08  Bruno Haible  <bruno@clisp.org>
15125
15126         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15127         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15128         here...
15129         * modules/getcwd-lgpl (configure.ac): ... to here.
15130
15131 2011-05-07  Bruno Haible  <bruno@clisp.org>
15132
15133         crypto/gc: Move AC_LIBOBJ invocations to module description.
15134         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15135         * modules/crypto/gc (configure.ac): ... to here.
15136
15137 2011-05-07  Bruno Haible  <bruno@clisp.org>
15138
15139         fwriting: Move AC_LIBOBJ invocations to module description.
15140         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15141         here...
15142         * modules/fwriting (configure.ac): ... to here.
15143
15144 2011-05-07  Bruno Haible  <bruno@clisp.org>
15145
15146         fwritable: Move AC_LIBOBJ invocations to module description.
15147         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
15148         here...
15149         * modules/fwritable (configure.ac): ... to here.
15150
15151 2011-05-07  Bruno Haible  <bruno@clisp.org>
15152
15153         futimens: Move AC_LIBOBJ invocations to module description.
15154         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
15155         here...
15156         * modules/futimens (configure.ac): ... to here.
15157
15158 2011-05-07  Bruno Haible  <bruno@clisp.org>
15159
15160         ftruncate: Move AC_LIBOBJ invocations to module description.
15161         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
15162         gl_PREREQ_FTRUNCATE invocations from here...
15163         * modules/ftruncate (configure.ac): ... to here.
15164
15165 2011-05-07  Bruno Haible  <bruno@clisp.org>
15166
15167         fsync: Move AC_LIBOBJ invocations to module description.
15168         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
15169         invocations from here...
15170         * modules/fsync (configure.ac): ... to here.
15171
15172 2011-05-07  Bruno Haible  <bruno@clisp.org>
15173
15174         fsusage: Move AC_LIBOBJ invocations to module description.
15175         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
15176         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
15177         * modules/fsusage (configure.ac): ... to here.
15178
15179 2011-05-07  Bruno Haible  <bruno@clisp.org>
15180
15181         freopen: Move AC_LIBOBJ invocations to module description.
15182         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15183         invocations from here...
15184         * modules/freopen (configure.ac): ... to here.
15185
15186 2011-05-07  Bruno Haible  <bruno@clisp.org>
15187
15188         free: Move AC_LIBOBJ invocations to module description.
15189         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15190         invocations from here...
15191         * modules/free (configure.ac): ... to here.
15192
15193 2011-05-07  Bruno Haible  <bruno@clisp.org>
15194
15195         freadable: Move AC_LIBOBJ invocations to module description.
15196         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15197         here...
15198         * modules/freadable (configure.ac): ... to here.
15199
15200 2011-05-07  Bruno Haible  <bruno@clisp.org>
15201
15202         fpurge: Move AC_LIBOBJ invocations to module description.
15203         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15204         invocations from here...
15205         * modules/fpurge (configure.ac): ... to here.
15206
15207 2011-05-07  Bruno Haible  <bruno@clisp.org>
15208
15209         fpending: Move AC_LIBOBJ invocations to module description.
15210         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15211         gl_FUNC_FPENDING.
15212         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15213         invocations from here...
15214         * modules/fpending (configure.ac): ... to here.
15215
15216 2011-05-07  Bruno Haible  <bruno@clisp.org>
15217
15218         fopen: Move AC_LIBOBJ invocations to module description.
15219         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15220         invocations from here...
15221         * modules/fopen (configure.ac): ... to here.
15222
15223 2011-05-07  Bruno Haible  <bruno@clisp.org>
15224
15225         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15226         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15227         gl_FUNC_FNMATCH_POSIX.
15228         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15229         invocations from here...
15230         * modules/fnmatch (configure.ac): ... to here.
15231         * modules/fnmatch-gnu (configure.ac): ... and here.
15232
15233 2011-05-07  Bruno Haible  <bruno@clisp.org>
15234
15235         flock: Move AC_LIBOBJ invocations to module description.
15236         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15237         invocations from here...
15238         * modules/flock (configure.ac): ... to here.
15239
15240 2011-05-07  Bruno Haible  <bruno@clisp.org>
15241
15242         fileblocks: Move AC_LIBOBJ invocations to module description.
15243         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
15244         gl_PREREQ_FILEBLOCKS invocations from here...
15245         * modules/fileblocks (configure.ac): ... to here.
15246
15247 2011-05-06  Bruno Haible  <bruno@clisp.org>
15248
15249         fflush: Move AC_LIBOBJ invocations to module description.
15250         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
15251         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
15252         invocations from here...
15253         * modules/fflush (configure.ac): ... to here.
15254
15255 2011-05-06  Bruno Haible  <bruno@clisp.org>
15256
15257         fdopendir: Move AC_LIBOBJ invocations to module description.
15258         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15259         here...
15260         * modules/fdopendir (configure.ac): ... to here.
15261         (Depends-on): Improve conditions.
15262
15263 2011-05-06  Bruno Haible  <bruno@clisp.org>
15264
15265         _Exit: Move AC_LIBOBJ invocations to module description.
15266         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15267         invocations from here...
15268         * modules/_Exit (configure.ac): ... to here.
15269
15270 2011-05-21  Bruno Haible  <bruno@clisp.org>
15271
15272         euidaccess: Respect rules for use of AC_LIBOBJ.
15273         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15274         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15275         from here...
15276         * modules/euidaccess (configure.ac): ... to here.
15277
15278 2011-05-06  Bruno Haible  <bruno@clisp.org>
15279
15280         error: Move AC_LIBOBJ invocations to module description.
15281         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15282         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15283         invocations from here...
15284         * modules/error (configure.ac): ... to here.
15285
15286 2011-05-06  Bruno Haible  <bruno@clisp.org>
15287
15288         duplocale: Move AC_LIBOBJ invocations to module description.
15289         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15290         gl_PREREQ_DUPLOCALE invocations from here...
15291         * modules/duplocale (configure.ac): ... to here.
15292
15293 2011-05-05  Bruno Haible  <bruno@clisp.org>
15294
15295         dirfd: Move AC_LIBOBJ invocations to module description.
15296         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15297         gl_FUNC_DIRFD.
15298         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15299         here...
15300         * modules/dirfd (configure.ac): ... to here.
15301         (Depends-on): Fix condition.
15302
15303 2011-05-05  Bruno Haible  <bruno@clisp.org>
15304
15305         chown: Respect rules for use of AC_LIBOBJ.
15306         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15307         * modules/chown (configure.ac): ... to here.
15308
15309 2011-05-05  Bruno Haible  <bruno@clisp.org>
15310
15311         chdir-long: Move AC_LIBOBJ invocations to module description.
15312         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15313         gl_PREREQ_CHDIR_LONG invocations from here...
15314         * modules/chdir-long (configure.ac): ... to here.
15315
15316 2011-05-05  Bruno Haible  <bruno@clisp.org>
15317
15318         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15319         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15320         from here...
15321         * modules/canonicalize-lgpl (configure.ac): ... to here.
15322
15323 2011-05-05  Bruno Haible  <bruno@clisp.org>
15324
15325         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15326         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15327         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15328         REPLACE_CALLOC.
15329         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15330         * modules/calloc-gnu (configure.ac): Likewise.
15331
15332 2011-05-05  Bruno Haible  <bruno@clisp.org>
15333
15334         btowc: Move AC_LIBOBJ invocations to module description.
15335         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15336         invocations from here...
15337         * modules/btowc (configure.ac): ... to here.
15338
15339 2011-05-21  Bruno Haible  <bruno@clisp.org>
15340
15341         atexit: Move AC_LIBOBJ invocations to module description.
15342         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15343         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15344         here...
15345         * modules/atexit (configure.ac): ... to here.
15346
15347 2011-05-05  Bruno Haible  <bruno@clisp.org>
15348
15349         atoll: Move AC_LIBOBJ invocations to module description.
15350         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15351         invocations from here...
15352         * modules/atoll (configure.ac): ... to here.
15353
15354 2011-05-05  Bruno Haible  <bruno@clisp.org>
15355
15356         argz: Move AC_LIBOBJ invocations to module description.
15357         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15358         * modules/argz (configure.ac): ... to here.
15359
15360 2011-05-05  Bruno Haible  <bruno@clisp.org>
15361
15362         alphasort: Move AC_LIBOBJ invocations to module description.
15363         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15364         gl_PREREQ_ALPHASORT invocations from here...
15365         * modules/alphasort (configure.ac): ... to here.
15366
15367 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15368
15369         verify: new macro verify_expr; verify_true deprecated
15370         * NEWS: Mention this.
15371         * doc/verify.texi (Compile-time Assertions): Document this.
15372         * lib/verify.h (verify_true): Deprecate.
15373         (verify_expr): New macro.
15374         * tests/test-verify.c (function): Test verify_expr.
15375
15376 2011-06-14  Jim Meyering  <meyering@redhat.com>
15377
15378         init.sh: give more portable redirection-related advice in a comment
15379         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15380         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15381         for lots of discussion.  Stefano Lattarini suggested the solution
15382         of putting "9>&2" after the command.  Reported by Bruno Haible.
15383
15384 2011-06-13  Bruno Haible  <bruno@clisp.org>
15385
15386         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15387         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15388         'none'.
15389
15390 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15391
15392         ftoastr: use strtof only if HAVE_STRTOF
15393         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15395         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15396         * modules/ftoastr (configure.ac): Check for strtof.
15397
15398 2011-06-13  Bruno Haible  <bruno@clisp.org>
15399
15400         gnulib-tool: Addendum to 2011-06-08 commit.
15401         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15402         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15403
15404 2011-06-13  Bruno Haible  <bruno@clisp.org>
15405
15406         fseeko: Provide a non-inline replacement of fseek().
15407         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15408         * modules/fseeko (Depends-on): Add fseek.
15409         * modules/fseek (License): Change to LGPLv2+.
15410
15411 2011-06-13  Bruno Haible  <bruno@clisp.org>
15412
15413         ftello: Provide a non-inline replacement of ftell().
15414         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15415         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15416         not have ftello() (such as on mingw).
15417         * modules/ftello (Depends-on): Add ftell.
15418         * modules/ftell (License): Change to LGPLv2+.
15419
15420 2011-05-07  Bruno Haible  <bruno@clisp.org>
15421
15422         ftell: Move AC_LIBOBJ invocations to module description.
15423         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15424         * modules/ftell (configure.ac): ... to here.
15425
15426 2011-05-07  Bruno Haible  <bruno@clisp.org>
15427
15428         ftello: Respect rules for use of AC_LIBOBJ.
15429         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15430         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15431         here...
15432         * modules/ftello (configure.ac): ... to here.
15433
15434 2011-05-07  Bruno Haible  <bruno@clisp.org>
15435
15436         fseeko: Simplify.
15437         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15438         (gl_FUNC_FSEEKO): Inline it here.
15439
15440 2011-05-07  Bruno Haible  <bruno@clisp.org>
15441
15442         fseek: Move AC_LIBOBJ invocations to module description.
15443         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15444         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15445         * modules/fseek (configure.ac): ... to here.
15446
15447 2011-05-07  Bruno Haible  <bruno@clisp.org>
15448
15449         fseek: Respect rules for use of AC_LIBOBJ.
15450         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15451         here...
15452         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15453
15454 2011-05-07  Bruno Haible  <bruno@clisp.org>
15455
15456         fseeko: Respect rules for use of AC_LIBOBJ.
15457         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15458         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15459         here...
15460         * modules/fseeko (configure.ac): ... to here.
15461
15462 2011-06-13  Bruno Haible  <bruno@clisp.org>
15463
15464         gnulib-tool: Allow comments in the 'Depends-on' section.
15465         * doc/gnulib.texi (Module description): Mention comment syntax in the
15466         Depends-on section.
15467         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15468
15469 2011-06-13  Bruno Haible  <bruno@clisp.org>
15470
15471         file-set.h: guard __attibute__ use, now that it's not always defined
15472         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15473         versions that support it.  This fixes a coreutils build failure with
15474         the vendor cc on HP-UX 11.31.
15475
15476 2011-06-12  Bruno Haible  <bruno@clisp.org>
15477
15478         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15479         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15480         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15481         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15482         (acl, aclsort): New declarations.
15483         (aclv_nontrivial): New declaration.
15484         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15485         (file_has_acl): Read also the second kind of HP-UX ACLs.
15486         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15487         kind of HP-UX ACLs if the first kind fails.
15488         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15489         second kind of HP-UX ACLs.
15490         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15491         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15492         agree.
15493         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15494         hpuxjfs.
15495         Handle hpuxjfs.
15496         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15497         hpuxjfs.
15498         Handle hpuxjfs.
15499         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15500         (func_test_same_acls): Use both lsacl and getacl.
15501         Handle hpuxjfs.
15502         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15503         (func_test_same_acls): Use both lsacl and getacl.
15504         Handle hpuxjfs.
15505
15506 2011-06-12  Bruno Haible  <bruno@clisp.org>
15507
15508         acl: Complete the 2010-08-10 fix.
15509         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15510         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15511         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15512         explicitly.
15513         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15514         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15515
15516 2011-06-12  Bruno Haible  <bruno@clisp.org>
15517
15518         spawn-pipe tests: Comments.
15519         * tests/test-spawn-pipe-child.c (main): Update comment.
15520         Reported by James Youngman <jay@gnu.org>.
15521
15522 2011-06-11  James Youngman  <jay@gnu.org>
15523
15524         New module 'stat-size'.
15525         * modules/stat-size: New module.  Provides macros for accessing
15526         file size information in instances of struct stat.  Depends on the
15527         fileblocks module because it calls st_blocks.
15528         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15529         * doc/gnulib.texi: Include stat-size.texi.
15530         * doc/stat-size.texi: Documentation for this module.
15531         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15532         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15533         AC_STRUCT_ST_BLOCKS.
15534
15535 2011-06-09  Bruno Haible  <bruno@clisp.org>
15536
15537         thread: Support pthreads-win32.
15538         * lib/glthread/thread.h (gl_thread_self): Define differently on
15539         pthreads-win32.
15540         (gl_null_thread): New declaration.
15541         (gl_thread_self_pointer): New macro.
15542         * lib/glthread/thread.c (gl_null_thread): New constant.
15543         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15544         gl_thread_self.
15545         * tests/test-tls.c: Likewise.
15546         Suggested by Paul Eggert. Reported by Eric Blake.
15547
15548 2011-06-09  Bruno Haible  <bruno@clisp.org>
15549
15550         thread: Fix confusion between NULL and 0.
15551         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15552         Reported by Paul Eggert.
15553
15554 2011-06-09  Bruno Haible  <bruno@clisp.org>
15555
15556         spawn-pipe tests: Avoid test failure on HP-UX 11.
15557         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15558         is closed.
15559
15560 2011-06-09  Bruno Haible  <bruno@clisp.org>
15561
15562         acl tests: Fix compilation error on HP-UX 11.
15563         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15564
15565 2011-06-09  Bruno Haible  <bruno@clisp.org>
15566
15567         rmdir: Avoid test failure on HP-UX 10.20.
15568         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15569         EEXIST.
15570
15571 2011-06-08  Eric Blake  <eblake@redhat.com>
15572
15573         perror: fix test on mingw
15574         * modules/perror-tests (Depends-on): Add dup2.
15575
15576         strerror_r-posix: fix on MacOS
15577         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15578         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15579         logic bug.
15580         * lib/strerror_r.c (strerror_r): Fix the bug.
15581         * lib/strerror.c (strerror): Likewise.
15582         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15583         problem.
15584         * doc/posix-functions/strerror.texi (strerror): Likewise.
15585         * doc/posix-functions/perror.texi (perror): Likewise.
15586         * tests/test-strerror.c (main): Enhance test.
15587         * tests/test-strerror_r.c (main): Likewise.
15588
15589 2011-06-08  Bruno Haible  <bruno@clisp.org>
15590
15591         gnulib-tool: Better isolation between different gnulib-tool invocations.
15592         * gnulib-tool: New option --witness-c-macro.
15593         (witness_c_macro): New variable.
15594         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15595         AM_CPPFLAGS define it as a C macro.
15596         (func_emit_tests_Makefile_am): Likewise.
15597         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15598         read it from there.
15599         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15600         m4_define, not AC_DEFUN.
15601         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15602         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15603         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15604         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15605         s|...|...|, to substitute the values of the GNULIB_* module indicator
15606         variables.
15607         * modules/dirent (Makefile.am): Likewise.
15608         * modules/fcntl-h (Makefile.am): Likewise.
15609         * modules/iconv-h (Makefile.am): Likewise.
15610         * modules/langinfo (Makefile.am): Likewise.
15611         * modules/locale (Makefile.am): Likewise.
15612         * modules/math (Makefile.am): Likewise.
15613         * modules/netdb (Makefile.am): Likewise.
15614         * modules/poll-h (Makefile.am): Likewise.
15615         * modules/pty (Makefile.am): Likewise.
15616         * modules/search (Makefile.am): Likewise.
15617         * modules/signal (Makefile.am): Likewise.
15618         * modules/spawn (Makefile.am): Likewise.
15619         * modules/stdio (Makefile.am): Likewise.
15620         * modules/stdlib (Makefile.am): Likewise.
15621         * modules/string (Makefile.am): Likewise.
15622         * modules/sys_ioctl (Makefile.am): Likewise.
15623         * modules/sys_select (Makefile.am): Likewise.
15624         * modules/sys_socket (Makefile.am): Likewise.
15625         * modules/sys_stat (Makefile.am): Likewise.
15626         * modules/sys_times (Makefile.am): Likewise.
15627         * modules/sys_utsname (Makefile.am): Likewise.
15628         * modules/sys_wait (Makefile.am): Likewise.
15629         * modules/termios (Makefile.am): Likewise.
15630         * modules/time (Makefile.am): Likewise.
15631         * modules/unistd (Makefile.am): Likewise.
15632         * modules/wchar (Makefile.am): Likewise.
15633
15634 2011-06-08  Eric Blake  <eblake@redhat.com>
15635
15636         strerror: simplify replacement
15637         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15638         * modules/strerror (configure.ac): No prereqs needed here...
15639         * modules/strerror-override (configure.ac): ...but this needs it.
15640         (Files): Add file for needed prereq macro.
15641
15642 2011-06-08  Bruno Haible  <bruno@clisp.org>
15643
15644         strerror_r-posix: Tweaks.
15645         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15646         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15647         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15648         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15649         (gl_FUNC_STRERROR_R): ... to here.
15650         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15651
15652 2011-06-07  Eric Blake  <eblake@redhat.com>
15653
15654         perror: document fixed bugs
15655         * doc/posix-functions/perror.texi (perror): Document recent
15656         patches.
15657
15658 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15659
15660         stat-time: get_stat_birthtime failure is better-defined
15661         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15662         return a timestamp whose tv_sec and tv_nsec values are both -1.
15663         Previously, the spec said only that the tv_nsec value was negative.
15664         This upward-compatible change simplifies GNU tar a bit.
15665
15666 2011-06-07  Eric Blake  <eblake@redhat.com>
15667
15668         strerror_r-posix: work around cygwin 1.7.9
15669         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15670         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15671         bug without replacing strerror_r.
15672         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15673         strerror_r is buggy, but without requiring strerror_r compilation.
15674         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15675
15676         test-perror: relax test to ignore cygwin bug
15677         * tests/test-perror2.c (main): Relax test on requiring detection
15678         of stream errors, and use unbuffered stream.
15679         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15680         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15681         * doc/posix-functions/fputc.texi (fputc): Likewise.
15682         * doc/posix-functions/fputs.texi (fputs): Likewise.
15683         * doc/posix-functions/fputws.texi (fputws): Likewise.
15684         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15685         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15686         * doc/posix-functions/getopt.texi (getopt): Likewise.
15687         * doc/posix-functions/perror.texi (perror): Likewise.
15688         * doc/posix-functions/printf.texi (printf): Likewise.
15689         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15690         * doc/posix-functions/psignal.texi (psignal): Likewise.
15691         * doc/posix-functions/putc.texi (putc): Likewise.
15692         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15693         Likewise.
15694         * doc/posix-functions/putchar.texi (putchar): Likewise.
15695         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15696         Likewise.
15697         * doc/posix-functions/puts.texi (puts): Likewise.
15698         * doc/posix-functions/putwc.texi (putwc): Likewise.
15699         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15700         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15701         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15702         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15703         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15704         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15705         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15706         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15707
15708 2011-05-22  Bruno Haible  <bruno@clisp.org>
15709
15710         strerror: Move AC_LIBOBJ invocations to module description.
15711         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15712         gl_PREREQ_STRERROR invocations from here...
15713         * modules/strerror (configure.ac): ... to here.
15714
15715 2011-05-21  Bruno Haible  <bruno@clisp.org>
15716
15717         perror: Use common idiom.
15718         * modules/perror (configure.ac): Reorder statements.
15719
15720 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15721
15722         tests: fix usage message in 'mktempd_'
15723         * tests/init.sh (mktempd_): In the usage message, use literal
15724         'mktempd_', not '$ME' (which is even undefined), as the name of
15725         the subroutine.
15726
15727 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15728
15729         tests init: new function 'fatal_', for hard errors
15730         Before this patch, the only way offered by tests/init.sh to
15731         properly signal a hard error was the `framework_failure_'
15732         function.  But the error message issued by that function,
15733         as its name would suggest, refers to a set-up failure in the
15734         testsuite, while hard errors can obviously also be due to
15735         other reasons.  The best way to fix this inconsistency is to
15736         introduce a new function with a more general error message.
15737         * tests/init.sh (fatal_): New function.
15738
15739 2011-06-06  Eric Blake  <eblake@redhat.com>
15740
15741         canonicalize-lgpl: use common idiom
15742         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15743         over newer POSIX -Rf.
15744         Reported by Bruno Haible.
15745
15746         canonicalize-lgpl: work around AIX realpath bug
15747         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15748         * doc/posix-functions/realpath.texi (realpath): Document it.
15749         Reported by Bruno Haible.
15750
15751         strerror: work around FreeBSD bug
15752         * lib/strerror.c (strerror): Special case 0.
15753         Reported by Bruno Haible.
15754
15755         strerror-override: avoid bloating errno module
15756         * modules/errno (Files, configure.ac): Move replacement strings...
15757         * modules/strerror-override: ...to new module.
15758         * modules/strerror (Depends-on): Add strerror-override.
15759         * modules/strerror_r-posix (Depends-on): Likewise.
15760         * MODULES.html.sh: Document new module.
15761         Reported by Bruno Haible.
15762
15763 2011-06-06  Bruno Haible  <bruno@clisp.org>
15764
15765         spawn-pipe tests: Rename program.
15766         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15767         * tests/test-spawn-pipe-child.c: Update comment.
15768         * tests/test-spawn-pipe.sh: Update.
15769         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15770
15771         spawn-pipe tests: Link the child program only against libc.
15772         * tests/test-spawn-pipe-child.c: New file, extracted from
15773         tests/test-spawn-pipe.c.
15774         (main): Expect only one argument.
15775         (is_open): New function, copied from tests/test-pipe.c.
15776         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15777         (child_main): Remove function.
15778         (test_pipe): Pass only one argument to the child program.
15779         (main): Remove child process code. Expect the child program's name as
15780         first argument.
15781         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15782         argument.
15783         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15784         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15785         test-spawn-pipe-child against no libraries.
15786
15787 2011-06-06  Bruno Haible  <bruno@clisp.org>
15788
15789         careadlinkat: Avoid mismatch between ssize_t and int.
15790         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15791         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15792
15793 2011-06-06  Jim Meyering  <meyering@redhat.com>
15794
15795         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15796         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15797         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15798
15799 2011-06-05  Bruno Haible  <bruno@clisp.org>
15800
15801         ansi-c++-opt: Interoperability with libtool.
15802         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15803         set the variable to "no", not to ":".
15804         * NEWS: Mention the change.
15805
15806 2011-06-05  Bruno Haible  <bruno@clisp.org>
15807
15808         acl: Fix test failure on AIX 7.
15809         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15810         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15811
15812 2011-06-05  Bruno Haible  <bruno@clisp.org>
15813
15814         pipe-filter-ii: Fix test failure on AIX and IRIX.
15815         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15816         with EAGAIN, retry with a smaller buffer size.
15817
15818 2011-06-05  Bruno Haible  <bruno@clisp.org>
15819
15820         localename: Fix link dependencies.
15821         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15822         * modules/localename-tests (Makefile.am): Link test-localename with
15823         $(LIBTHREAD).
15824
15825 2011-06-05  Bruno Haible  <bruno@clisp.org>
15826
15827         error: Avoid gcc warning.
15828         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15829
15830 2011-06-05  Bruno Haible  <bruno@clisp.org>
15831
15832         unsetenv: Avoid gcc warning.
15833         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15834
15835 2011-06-05  Bruno Haible  <bruno@clisp.org>
15836
15837         setenv: Avoid gcc warning.
15838         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15839
15840 2011-06-05  Bruno Haible  <bruno@clisp.org>
15841
15842         sys_select: Ensure memset is declared also on AIX 7.
15843         * lib/sys_select.in.h: Include <string.h> also on AIX.
15844         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15845         self-contained also on AIX 7.1.
15846
15847 2011-06-04  Jim Meyering  <meyering@redhat.com>
15848
15849         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15850         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15851         function name, "error".
15852         (_gl_translatable_diag_func_re): New configurable variable.
15853
15854 2011-06-04  Bruno Haible  <bruno@clisp.org>
15855
15856         getopt: Avoid gcc warning.
15857         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15858
15859 2011-06-04  Bruno Haible  <bruno@clisp.org>
15860
15861         strerror_r: Fix comments.
15862         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15863         commit.
15864
15865 2011-06-04  Bruno Haible  <bruno@clisp.org>
15866
15867         perror: Fix compilation error.
15868         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15869         Undefine fprintf, not sprintf.
15870         * modules/perror (Depends-on): Remove intprops, verify.
15871
15872 2011-06-04  Bruno Haible  <bruno@clisp.org>
15873
15874         setlocale: Enable replacement on Cygwin 1.5.
15875         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15876         Cygwin 1.5.x.
15877         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15878         LC_CTYPE category also exists on Cygwin 1.5.x.
15879
15880 2011-06-04  Bruno Haible  <bruno@clisp.org>
15881
15882         strerror-override: Don't disable symbol renamings.
15883         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15884         * lib/strerror-override.c: Include config.h.
15885         (strerror_override): Don't undefine.
15886
15887 2011-06-03  Bruno Haible  <bruno@clisp.org>
15888
15889         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15890         * lib/localename.h: Update copyright header.
15891         * lib/localename.c: Likewise.
15892         * lib/relocatable.h: Likewise.
15893         * lib/relocatable.c: Likewise.
15894
15895 2011-06-02  Bruno Haible  <bruno@clisp.org>
15896
15897         doc: Fix a module name.
15898         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15899
15900 2011-06-02  Bruno Haible  <bruno@clisp.org>
15901
15902         pipe2: Remove dependency on 'nonblocking' module.
15903         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15904         O_NONBLOCK is defined by gnulib.
15905         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15906         is zero.
15907         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15908         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15909         defined by gnulib.
15910         (get_nonblocking_flag): New function.
15911         (main): Test O_NONBLOCK flag only if it is nonzero.
15912         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15913
15914 2011-06-03  Jim Meyering  <meyering@redhat.com>
15915
15916         maint: three new prohibit-header-without-use rules
15917         Prohibit use of cloexec.h, posixver.h, same.h without use.
15918         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15919         (sc_prohibit_posixver_without_use): Likewise.
15920         (sc_prohibit_same_without_use): Likewise.
15921
15922 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15923
15924         allocator: 'die' routine is now given requested size
15925         * lib/allocator.h (struct allocator.die): New size arg.
15926         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15927         If the actual problem is an ssize_t limitation, not a size_t or
15928         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15929
15930 2011-06-01  Eric Blake  <eblake@redhat.com>
15931
15932         strerror: drop strerror_r dependency
15933         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15934         * lib/strerror-override.c (strerror_override): ...to new file.
15935         * lib/strerror-override.h: Add prototype.
15936         * lib/strerror-impl.h: Delete.
15937         * lib/strerror.c (strerror): New implementation.
15938         * modules/errno (Files): Add new files.
15939         (configure.ac): Compile new file as appropriate.
15940         * modules/strerror (Files): Drop unused file.
15941         (Depends-on): Drop strerror_r-posix.
15942         * MODULES.html.sh: Document strerror_r-posix.
15943         Requested by Sam Steingold.
15944
15945         perror: call strerror_r directly
15946         * modules/perror (Files): Drop strerror-impl.h.
15947         * lib/perror.c (perror): Use our own stack buffer, rather than
15948         calling a wrapper that uses static storage.
15949         * doc/posix-functions/perror.texi (perror): Document a limitation
15950         of our replacement.
15951
15952         strerror_r: fix includes for FreeBSD
15953         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15954         since we use abort on some platforms.
15955         Reported by Matthias Bolte.
15956
15957 2011-05-31  Bruno Haible  <bruno@clisp.org>
15958
15959         Fix link errors in tests: openat-die uses gettext-h.
15960         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15961         against $(LIBINTL).
15962         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15963         against $(LIBINTL).
15964         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15965         $(LIBINTL).
15966         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15967         against $(LIBINTL).
15968         * modules/linkat-tests (Makefile.am): Link test-linkat against
15969         $(LIBINTL).
15970         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15971         $(LIBINTL).
15972         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15973         against $(LIBINTL).
15974         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15975         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15976         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15977         $(LIBINTL).
15978         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15979         $(LIBINTL).
15980         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15981         $(LIBINTL).
15982         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15983
15984 2011-05-31  Bruno Haible  <bruno@clisp.org>
15985
15986         Fix link errors in tests: wait-process uses gettext-h.
15987         * modules/nonblocking-pipe-tests (Makefile.am): Set
15988         test_nonblocking_pipe_main_LDADD.
15989         * modules/nonblocking-socket-tests (Makefile.am): Link
15990         test-nonblocking-socket-main against $(LIBINTL).
15991         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15992
15993 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15994
15995         assert-h: work around 'verify' incompatibility
15996         * lib/verify.h: Use @...@ directives, not ifdef.
15997         * modules/assert-h (assert.h): Implement the directives.
15998         (assert.h): Substitute the symbol-prefix more consistently.
15999
16000 2011-05-29  Jim Meyering  <meyering@redhat.com>
16001
16002         trim: remove three superfluous assignments
16003         * lib/trim.c (trim2): Remove three superfluous assignments
16004         and correct brace positioning.
16005
16006 2011-05-29  Bruno Haible  <bruno@clisp.org>
16007
16008         wctype-h: Avoid namespace pollution on Solaris 2.6.
16009         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16010         identifiers.
16011         * doc/posix-headers/wctype.texi: Mention the problem.
16012         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16013
16014 2011-05-28  Jim Meyering  <meyering@redhat.com>
16015
16016         parse-datetime.y: accommodate -Wstrict-overflow
16017         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16018         placate -Wstrict-overflow.
16019
16020         trim: avoid a warning from -O2 -Wstrict-overflow
16021         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16022
16023 2011-05-29  Bruno Haible  <bruno@clisp.org>
16024
16025         gnulib-tool: Fix bug in yesterday's commit.
16026         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16027         twice.
16028
16029 2011-05-29  Bruno Haible  <bruno@clisp.org>
16030
16031         Allow multiple gnulib generated include files to be combined.
16032         * gnulib-tool (func_compute_include_guard_prefix): New function.
16033         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16034         ${gl_include_guard_prefix} references.
16035         (func_import, func_create_testdir): Invoke
16036         func_compute_include_guard_prefix.
16037         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16038         * lib/ctype.in.h: Likewise.
16039         * lib/dirent.in.h: Likewise.
16040         * lib/errno.in.h: Likewise.
16041         * lib/fcntl.in.h: Likewise.
16042         * lib/float.in.h: Likewise.
16043         * lib/getopt.in.h: Likewise.
16044         * lib/iconv.in.h: Likewise.
16045         * lib/langinfo.in.h: Likewise.
16046         * lib/locale.in.h: Likewise.
16047         * lib/math.in.h: Likewise.
16048         * lib/netdb.in.h: Likewise.
16049         * lib/netinet_in.in.h: Likewise.
16050         * lib/poll.in.h: Likewise.
16051         * lib/pthread.in.h: Likewise.
16052         * lib/pty.in.h: Likewise.
16053         * lib/sched.in.h: Likewise.
16054         * lib/se-selinux.in.h: Likewise.
16055         * lib/search.in.h: Likewise.
16056         * lib/signal.in.h: Likewise.
16057         * lib/spawn.in.h: Likewise.
16058         * lib/stdarg.in.h: Likewise.
16059         * lib/stddef.in.h: Likewise.
16060         * lib/stdint.in.h: Likewise.
16061         * lib/stdio.in.h: Likewise.
16062         * lib/stdlib.in.h: Likewise.
16063         * lib/string.in.h: Likewise.
16064         * lib/strings.in.h: Likewise.
16065         * lib/sys_file.in.h: Likewise.
16066         * lib/sys_ioctl.in.h: Likewise.
16067         * lib/sys_select.in.h: Likewise.
16068         * lib/sys_socket.in.h: Likewise.
16069         * lib/sys_stat.in.h: Likewise.
16070         * lib/sys_time.in.h: Likewise.
16071         * lib/sys_times.in.h: Likewise.
16072         * lib/sys_uio.in.h: Likewise.
16073         * lib/sys_utsname.in.h: Likewise.
16074         * lib/sys_wait.in.h: Likewise.
16075         * lib/sysexits.in.h: Likewise.
16076         * lib/termios.in.h: Likewise.
16077         * lib/time.in.h: Likewise.
16078         * lib/unistd.in.h: Likewise.
16079         * lib/wchar.in.h: Likewise.
16080         * lib/wctype.in.h: Likewise.
16081         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16082         * modules/ctype (Makefile.am): Likewise.
16083         * modules/dirent (Makefile.am): Likewise.
16084         * modules/errno (Makefile.am): Likewise.
16085         * modules/fcntl-h (Makefile.am): Likewise.
16086         * modules/float (Makefile.am): Likewise.
16087         * modules/getopt-posix (Makefile.am): Likewise.
16088         * modules/iconv-h (Makefile.am): Likewise.
16089         * modules/langinfo (Makefile.am): Likewise.
16090         * modules/locale (Makefile.am): Likewise.
16091         * modules/math (Makefile.am): Likewise.
16092         * modules/netdb (Makefile.am): Likewise.
16093         * modules/netinet_in (Makefile.am): Likewise.
16094         * modules/poll-h (Makefile.am): Likewise.
16095         * modules/pthread (Makefile.am): Likewise.
16096         * modules/pty (Makefile.am): Likewise.
16097         * modules/sched (Makefile.am): Likewise.
16098         * modules/search (Makefile.am): Likewise.
16099         * modules/selinux-h (Makefile.am): Likewise.
16100         * modules/signal (Makefile.am): Likewise.
16101         * modules/spawn (Makefile.am): Likewise.
16102         * modules/stdarg (Makefile.am): Likewise.
16103         * modules/stddef (Makefile.am): Likewise.
16104         * modules/stdint (Makefile.am): Likewise.
16105         * modules/stdio (Makefile.am): Likewise.
16106         * modules/stdlib (Makefile.am): Likewise.
16107         * modules/string (Makefile.am): Likewise.
16108         * modules/strings (Makefile.am): Likewise.
16109         * modules/sys_file (Makefile.am): Likewise.
16110         * modules/sys_ioctl (Makefile.am): Likewise.
16111         * modules/sys_select (Makefile.am): Likewise.
16112         * modules/sys_socket (Makefile.am): Likewise.
16113         * modules/sys_stat (Makefile.am): Likewise.
16114         * modules/sys_time (Makefile.am): Likewise.
16115         * modules/sys_times (Makefile.am): Likewise.
16116         * modules/sys_uio (Makefile.am): Likewise.
16117         * modules/sys_utsname (Makefile.am): Likewise.
16118         * modules/sys_wait (Makefile.am): Likewise.
16119         * modules/sysexits (Makefile.am): Likewise.
16120         * modules/termios (Makefile.am): Likewise.
16121         * modules/time (Makefile.am): Likewise.
16122         * modules/unistd (Makefile.am): Likewise.
16123         * modules/wchar (Makefile.am): Likewise.
16124         * modules/wctype-h (Makefile.am): Likewise.
16125         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16126
16127 2011-05-29  Bruno Haible  <bruno@clisp.org>
16128
16129         assert-h: Allow multiple gnulib generated replacements to coexist.
16130         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16131
16132 2011-05-29  Bruno Haible  <bruno@clisp.org>
16133
16134         argp: Allow coexistence with strerror_r-posix module.
16135         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16136         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16137         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16138         not the glibc signature.
16139
16140 2011-05-28  Bruno Haible  <bruno@clisp.org>
16141
16142         gnulib-tool: Alternative structure of testdirs, similar to --import.
16143         * gnulib-tool: New option --single-configure.
16144         (func_usage): Document it.
16145         (single_configure): New variable.
16146         (func_modules_transitive_closure_separately,
16147         func_modules_transitive_closure_separately,
16148         func_determine_use_libtests, func_modules_add_dummy_separately,
16149         func_modules_to_filelist_separately): New functions, extracted from
16150         func_import.
16151         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
16152         (func_import): Use the new functions.
16153         (func_create_testdir): Set final_modules. Handle $single_configure =
16154         true case.
16155
16156 2011-05-28  Bruno Haible  <bruno@clisp.org>
16157
16158         getloadavg: Remove an unreliable safety check.
16159         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
16160         getloadavg.c is in place.
16161         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
16162         Reported by Sam Steingold <sds@gnu.org>.
16163
16164 2011-05-28  Bruno Haible  <bruno@clisp.org>
16165
16166         doc: Cleanup yet another file produced by texinfo.tex.
16167         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
16168
16169 2011-05-28  Bruno Haible  <bruno@clisp.org>
16170
16171         Finish the conditional dependencies mechanism.
16172         * gnulib-tool: New option --no-conditional-dependencies.
16173         (func_usage): Document it. Don't mark --conditional-dependencies as
16174         experimental.
16175         (cond_dependencies): The possible values can now be true, false, empty.
16176         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
16177         (func_import): Store setting in gnulib-cache.m4 and read it from there.
16178         * doc/gnulib-tool.texi (Conditional dependencies): New section.
16179
16180 2011-05-28  Bruno Haible  <bruno@clisp.org>
16181
16182         doc: Use a recent texinfo.tex.
16183         * doc/Makefile (tex_opts): New variable.
16184         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16185
16186 2011-05-28  Jim Meyering  <meyering@redhat.com>
16187
16188         intprops.h: adjust comment to match code change
16189         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16190         only once, it *may* have side effects.  Also fix an unrelated typo.
16191         (_GL_INT_SIGNED): Likewise.
16192
16193 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16194
16195         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16196
16197 2011-05-26  Bruno Haible  <bruno@clisp.org>
16198
16199         mbsrchr: Avoid collision with system function on Interix.
16200         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16201         Reported by Markus Duft <mduft@gentoo.org>.
16202
16203 2011-05-15  James Youngman  <jay@gnu.org>
16204
16205         getopt: for ambiguous options, enumerate the possibilities.
16206         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16207         the ambiguous options when an ambiguous prefix is given. This was
16208         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16209         glibc change was
16210         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16211
16212 2011-05-25  Eric Blake  <eblake@redhat.com>
16213
16214         getcwd: work around mingw bug
16215         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16216         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16217         Reported by Matthias Bolte.
16218
16219 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16220
16221         test-intprops: disable -Wtype-limits diagnostics
16222         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16223         diagnostics.  Otherwise, the integer overflow macros generate many
16224         diagnostics.  Reported by Jim Meyering in
16225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16226
16227         intprops: shorten, to pacify gcc -Woverlength-strings
16228         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16229         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16230         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16231         likely to run afoul of C compiler limits for string constant lengths.
16232         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16233
16234 2011-05-24  Eric Blake  <eblake@redhat.com>
16235
16236         docs: document recently fixed glibc printf bug
16237         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16238         * doc/posix-functions/printf.texi (printf): Likewise.
16239         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16240         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16241
16242         closein-tests: convert to init.sh
16243         * modules/closein-tests (Files): Add init.sh
16244         * tests/test-closein.sh Use it.
16245
16246         yesno-tests: convert to init.sh
16247         * modules/yesno-tests (Files): Add init.sh.
16248         * tests/test-yesno.sh: Use it.
16249
16250         atexit-tests: ensure reliable exit status
16251         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
16252         Reported by Bruno Haible.
16253
16254 2011-05-24  Bruno Haible  <bruno@clisp.org>
16255
16256         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16257         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16258         gl_PREREQ_STRERROR_R invocations from here...
16259         * modules/strerror_r-posix (configure.ac): ... to here.
16260
16261 2011-05-24  Eric Blake  <eblake@redhat.com>
16262
16263         strerror_r: fix missing header
16264         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16265
16266         strerror_r: fix AIX test failures
16267         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16268         ERANGE failure.
16269
16270         strerror_r: fix Solaris test failures
16271         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16272         failures.
16273         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16274
16275         strerror_r: enforce POSIX recommendations
16276         * lib/strerror_r.c (safe_copy): New helper method.
16277         (strerror_r): Guarantee a non-empty string.
16278         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16279         recent POSIX rulings and to match our strerror guarantees.
16280         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16281
16282 2011-05-24  Jim Meyering  <meyering@redhat.com>
16283
16284         test-perror2.c: avoid warning about unused variable
16285         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16286
16287 2011-05-24  Eric Blake  <eblake@redhat.com>
16288
16289         perror: avoid spurious test failure on HP-UX
16290         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16291
16292         tests: fix logic bug in init.sh
16293         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16294         shell.
16295
16296 2011-05-24  Jim Meyering  <meyering@redhat.com>
16297
16298         utimensat: do not reference an out-of-scope buffer
16299         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16300         declared in an inner scope, yet "times" would be dereferenced outside
16301         the scope in which "ts" was valid.
16302         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16303         of ts[2] "out/up", so that the use of aliased "times" (via
16304         "times = ts;") does not end up referencing an out-of-scope "ts"
16305
16306         opendir-safer.c: don't clobber errno; don't close negative FD
16307         * lib/opendir-safer.c (opendir_safer):
16308         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16309         file descriptor, and more importantly, don't clobber the
16310         offending errno value with EINVAL.  Before, upon failure
16311         of dup_safer, we would pass the negative file descriptor to
16312         fdopendir, which would clobber errno.
16313
16314 2011-05-23  Bruno Haible  <bruno@clisp.org>
16315
16316         idcache: Fix module description.
16317         * modules/idcache (Include): Set to "idcache.h".
16318
16319 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16320
16321         gnulib-tool: fix portability problem with MacOS sed
16322         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16323         before the "}".  Problem reported by Leo in
16324         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16325         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16326         sed_extract_condition1, sed_extract_condition2.
16327
16328 2011-05-23  Bruno Haible  <bruno@clisp.org>
16329
16330         hash: Simplify autoconf macro.
16331         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16332
16333 2011-05-23  Bruno Haible  <bruno@clisp.org>
16334
16335         getugroups: Fix module description.
16336         * modules/getugroups (Include): Set to "getugroups.h".
16337
16338 2011-05-23  Bruno Haible  <bruno@clisp.org>
16339
16340         linkat: Simplify autoconf macro.
16341         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16342
16343 2011-05-23  Bruno Haible  <bruno@clisp.org>
16344             Eric Blake  <eblake@redhat.com>
16345
16346         linkat, renameat: Update dependencies.
16347         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16348         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16349         symlinkat.
16350
16351 2011-05-23  Jim Meyering  <meyering@redhat.com>
16352
16353         maint.mk: more tight_scope improvements
16354         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16355         (_gl_TS_headers): Define only in if-0'd block.
16356         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16357         sometimes we must *not* use it.  Adjust uses accordingly.
16358         (sc_tight_scope): Use much simpler grep-based test to determine
16359         whether we skip this rule.
16360
16361         maint.mk: generalize/improve the tight-scope rule
16362         * top/maint.mk: Emit a warning when the test is skipped.
16363         (_gl_TS_dir): Add $(srcdir)/ prefix.
16364         (_gl_TS_function_match): Simplify, rather than trying
16365         to enumerate common types.  Otherwise, it would fail to match an
16366         "extern unsigned char const *" declaration in idutils.
16367         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16368         a way to support use of that type of macro.
16369         (_gl_TS_var_match): Simplify regexp.
16370         (_gl_TS_obj_files): New configurable variable.
16371         (_gl_TS_headers): Likewise.
16372
16373 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16374
16375         verify: fix bug when gnulib <assert.h> is also included
16376         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16377         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16378         Perhaps there's a better way, but this fixes the immediate problem.
16379         Problem reported by Bruno Haible in
16380         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16381
16382 2011-05-22  Bruno Haible  <bruno@clisp.org>
16383
16384         xgetcwd: Simplify autoconf macro.
16385         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16386
16387 2011-05-22  Bruno Haible  <bruno@clisp.org>
16388
16389         New module 'mktime-internal'.
16390         * modules/mktime-internal: New file.
16391         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16392         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16393         mktime_internal as a C macro if libc has __mktime_internal.
16394         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16395         conditions.
16396         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16397
16398 2011-05-22  Bruno Haible  <bruno@clisp.org>
16399
16400         timegm: Correct mktime replacement statements.
16401         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16402         defining mktime as a C macro. This completes a 2009-07-28 commit.
16403
16404 2011-05-22  Bruno Haible  <bruno@clisp.org>
16405
16406         timegm: Simplify autoconf macro.
16407         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16408
16409 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16410
16411         clock-time: change to LGPLv2+.
16412         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16413         BSD-like but we have no mark for that; this is good enough for now.
16414
16415 2011-05-21  Bruno Haible  <bruno@clisp.org>
16416
16417         strerror_r: Fix comments.
16418         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16419
16420 2011-05-21  Bruno Haible  <bruno@clisp.org>
16421
16422         relocatable-prog-wrapper: Fix possible link error.
16423         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16424         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16425         (gl_FUNC_SETENV): ... to here.
16426         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16427         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16428
16429 2011-05-21  Bruno Haible  <bruno@clisp.org>
16430
16431         relocatable-prog-wrapper: Assume strerror() exists.
16432         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16433         m4/strerror.m4.
16434         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16435         * lib/relocwrapper.c: Remove mention of strerror module.
16436         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16437         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16438         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16439         C macro.
16440
16441 2011-05-21  Bruno Haible  <bruno@clisp.org>
16442
16443         select: Simplify replacement idiom.
16444         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16445         Win32 platforms.
16446         * lib/sys_select.in.h (select): Simplify accordingly.
16447         * modules/select (Depends-on): Likewise.
16448
16449 2011-05-21  Bruno Haible  <bruno@clisp.org>
16450
16451         mkdir-p: Simplify autoconf macro.
16452         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16453         gl_FUNC_LCHOWN.
16454
16455 2011-05-21  Eric Blake  <eblake@redhat.com>
16456
16457         strerror_r: avoid clobbering strerror on cygwin
16458         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16459         fall back instead to sys_errlist.
16460         * modules/strerror (configure.ac): Add witness.
16461         * tests/test-strerror_r.c (main): Enhance test.
16462         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16463         * tests/test-perror2.c (main): Free memory before exit.
16464
16465 2011-05-21  Bruno Haible  <bruno@clisp.org>
16466
16467         mkdtemp: Use gnulib naming conventions.
16468         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16469         * modules/mkdtemp (configure.ac): Update.
16470
16471 2011-05-20  Eric Blake  <eblake@redhat.com>
16472
16473         strerror_r: avoid corrupting errno on Solaris
16474         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16475         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16476
16477         strerror_r: avoid compiler warning
16478         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16479
16480         strerror_r: simplify AIX code
16481         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16482
16483         test-perror: avoid spurious failure on FreeBSD
16484         * modules/perror-tests (Depends-on): Add strerror, now that
16485         strerror_r no longer pulls it in.
16486
16487 2011-05-20  Bruno Haible  <bruno@clisp.org>
16488
16489         strerror_r-posix: Remove unused dependencies.
16490         * modules/strerror_r-posix (Depends-on): Remove strerror.
16491         Reported by Eric Blake.
16492
16493 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16494
16495         intprops: remove assumption about A|B representation
16496         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16497         is a valid integer if both A and B are.  Although this is true for
16498         all known practical hosts, the C standard doesn't guarantee it,
16499         and the code need not assume it.  Also, this change may work around
16500         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16502
16503 2011-05-20  Eric Blake  <eblake@redhat.com>
16504
16505         perror: work around FreeBSD bug
16506         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16507         is broken.  Move AC_LIBOBJ...
16508         * modules/perror (configure.ac): Here.
16509         * doc/posix-functions/perror.texi (perror): Document this.
16510         * tests/test-perror2.c (main): Enhance test.
16511
16512         test-perror: check for strerror interactions
16513         * tests/macros.h (STREQ): Add macro.
16514         * modules/perror-tests (Files): Add second test.
16515         * tests/test-perror2.c (main): New file.
16516         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16517
16518         test-perror: rewrite to use init script
16519         * modules/perror-tests (Files): Add init.sh.
16520         * tests/test-perror.sh: Use temporary directory.
16521
16522 2011-05-20  Jim Meyering  <meyering@redhat.com>
16523
16524         maint: replace misused "a" with "an"
16525         * doc/intprops.texi: "a integer"
16526         * doc/regex.texi: "a explanation"
16527         * lib/alignof.h: "a object"
16528         * lib/argmatch.h: "a explanation"
16529         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16530         * lib/stdint.in.h: "a integer"
16531         * lib/userspec.c: "a owner"
16532         * doc/gnulib.texi: Fix "a idea", and reword.
16533
16534 2011-05-19  Jim Meyering  <meyering@redhat.com>
16535
16536         maint: correct misuse of "a" and "an"
16537         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16538         * lib/argp-help.c: "an docum...": s/an/a/
16539         * lib/argp-parse.c: "An vector": s/An/A/
16540         * lib/execute.c: "an native": s/an/a/
16541         * lib/spawn-pipe.c: Likewise.
16542         * lib/gc.h: "an Gc_rc": s/an/a/
16543         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16544         * lib/fts.c: "an stat.st_dev": s/an/a/
16545
16546 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16547
16548         intprops-tests: work around HP-UX 11.23 cc bug with constants
16549         * tests/test-intprops.c (VERIFY): New macro.
16550         (main): Use it, instead of verify, to work around the compiler bug; see
16551         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16552
16553         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16554         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16555         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16556         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16557         (_GL_REMAINDER_OVERFLOW): Use it.
16558
16559         intprops-tests: revert unsigned part of previous change
16560         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16561         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16562         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16564
16565 2011-05-19  Bruno Haible  <bruno@clisp.org>
16566
16567         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16568         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16569         strerror_r() returned without filling the buffer.
16570         Reported by Eric Blake.
16571
16572 2011-05-19  Eric Blake  <eblake@redhat.com>
16573
16574         strerror_r: guarantee unchanged errno
16575         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16576         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16577         failure.
16578         * tests/test-strerror_r.c (main): Enhance test.
16579
16580 2011-05-19  Bruno Haible  <bruno@clisp.org>
16581
16582         strerror_r: Reorder #if blocks.
16583         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16584         for consistency with the previous commit.
16585
16586 2011-05-19  Bruno Haible  <bruno@clisp.org>
16587
16588         perror: Avoid clobbering the strerror buffer when possible.
16589         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16590         * lib/strerror.c: Include it.
16591         * modules/strerror (Files): Add lib/strerror-impl.h.
16592         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16593         (my_strerror): New function, defined through lib/strerror-impl.h.
16594         (perror): Use it instead of strerror.
16595         * modules/perror (Files): Add lib/strerror-impl.h.
16596         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16597
16598 2011-05-19  Eric Blake  <eblake@redhat.com>
16599
16600         strerror_r: fix on newer cygwin
16601         * lib/strerror_r.c (strerror_r): Cygwin now has
16602         __xpg_strerror_r, use it.
16603
16604 2011-05-19  Bruno Haible  <bruno@clisp.org>
16605
16606         strerror_r: Avoid clobbering the strerror buffer when possible.
16607         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16608         (sys_nerr, sys_errlist): New declarations.
16609         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16610         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16611         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16612
16613 2011-05-19  Bruno Haible  <bruno@clisp.org>
16614
16615         strerror_r: Fix test failure on mingw.
16616         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16617         EXTEND_STRERROR_R.
16618         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16619         macros from errno.in.h instead.
16620
16621 2011-05-19  Eric Blake  <eblake@redhat.com>
16622
16623         strerror: relax test for Solaris
16624         * tests/test-strerror.c (main): Permit Solaris behavior.
16625         * tests/test-strerror_r.c (main): Likewise.
16626
16627         strerror: enforce POSIX ruling on strerror(0)
16628         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16629         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16630         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16631         * doc/posix-functions/strerror.texi (strerror): Document it.
16632         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16633         * tests/test-strerror.c (main): Strengthen test.
16634         * tests/test-strerror_r.c (main): Likewise.
16635
16636 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16637
16638         intprop-tests: port to older and more-pedantic compilers
16639         * modules/intprops-tests (Files): Add tests/macros.h.
16640         * tests/test-intprops.c: Include macros.h.
16641         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16642         it's no longer documented to expand to an integer constant expression.
16643         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16644         argument is floating point, as it's no longer documented to expand
16645         to an integer constant expression in that case.
16646         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16647         compiler bugs reported by Bruno Haible.  See
16648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16649         (U0, U1): New constants, to work around the same bugs.  Also,
16650         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16651
16652         intprops: work around C compiler bugs
16653         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16654         bug in Sun C 5.11 2010/08/13 and other compilers; see
16655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16656
16657         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16658         * doc/intprops.texi (Integer Type Determination): Fix
16659         documentation for TYPE_IS_INTEGER: it returns an constant
16660         expression, not an integer constant expression.  Fix doc for
16661         TYPE_SIGNED: it returns an integer constant expression only if its
16662         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16663         hardly worth documented that way....)
16664
16665 2011-05-18  Bruno Haible  <bruno@clisp.org>
16666
16667         strerror_r: Avoid clobbering the strerror buffer when possible.
16668         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16669         Handle gnulib defined errno values here. When strerror() returns NULL
16670         or an empty string, return EINVAL.
16671         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16672         gnulib defined errno values here.
16673         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16674
16675 2011-05-18  Eric Blake  <eblake@redhat.com>
16676
16677         fnmatch: avoid compiler warning
16678         * lib/fnmatch_loop.c (FCT): Use correct type.
16679         Reported by Matthias Bolte.
16680
16681 2011-05-13  Jim Meyering  <meyering@redhat.com>
16682
16683         maint.mk: three new prohibit_<HDR>_without_use rules
16684         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16685         (sc_prohibit_stdio-safer_without_use): Likewise.
16686         (sc_prohibit_xfreopen_without_use): Likewise.
16687
16688 2011-05-17  Jim Meyering  <meyering@redhat.com>
16689
16690         announce-gen: fail if the NEWS delta is empty
16691         If there's nothing noteworthy in NEWS, then either you forgot
16692         or you shouldn't be releasing.
16693         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16694
16695 2011-05-17  Pádraig Brady <P@draigBrady.com>
16696
16697         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16698         reserved symbols starting with double underscore from the check.
16699
16700 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16701
16702         intprops: add doc
16703         * doc/intprops.texi: New file, documenting intprops.
16704         * doc/gnulib.texi (Particular Modules): Include it.
16705
16706         verify: add doc to gnulib manual and fix example
16707         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16708         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16709         (Compile-time Assertions): Fix example so it can't overflow.
16710
16711 2011-05-17  Jim Meyering  <meyering@redhat.com>
16712
16713         warnings.m4: don't usurp save_CPPFLAGS variable name
16714         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16715
16716         doc: fix typo
16717         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16718
16719 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16720             Bruno Haible  <bruno@clisp.org>
16721
16722         doc: Tweak recent change.
16723         * README (Portability guidelines): Tweak new text.
16724         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16725         Interix 6.1.
16726
16727 2011-05-16  Eric Blake  <eblake@redhat.com>
16728
16729         inttypes: avoid autoconf warning
16730         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16731         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16732
16733 2011-05-16  Sam Steingold <sds@gnu.org>
16734         and Eric Blake  <eblake@redhat.com>
16735
16736         vc-list-files: accept multiple directory operands
16737         * build-aux/vc-list-files: Iterate over all remaining operands.
16738
16739 2011-05-16  Bruno Haible  <bruno@clisp.org>
16740
16741         Fix confusion regarding deprecated modules.
16742         * modules/calloc (Status, Notice): Mark module as deprecated, not
16743         obsolete.
16744         * modules/fnmatch-posix (Status, Notice): Likewise.
16745         * modules/getdate (Status, Notice): Likewise.
16746         * modules/getopt (Status, Notice): Likewise.
16747         * modules/malloc (Status, Notice): Likewise.
16748         * modules/pipe (Status, Notice): Likewise.
16749         * modules/realloc (Status, Notice): Likewise.
16750         * modules/rename-dest-slash (Status, Notice): Likewise.
16751         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16752         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16753         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16754         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16755         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16756
16757 2011-05-16  Bruno Haible  <bruno@clisp.org>
16758
16759         doc: List the target platforms.
16760         * doc/gnulib-intro.texi (Target Platforms): New section.
16761         * doc/gnulib.texi (Introduction): Update menu.
16762         * README (Portability guidelines): Refer to the new section. Update
16763         statement about oldest supported environment. Remove rationale why
16764         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16765         unportable C89 function.
16766         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16767         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16768
16769 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16770
16771         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16772
16773 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16774
16775         intprops-tests: new module
16776         * modules/intprops-tests, tests/test-intprops.c: New files.
16777
16778         intprops: add safe, portable integer overflow checking
16779         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16780         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16781         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16782         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16783         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16784         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16785         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16786         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16787         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16788         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16789         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16790
16791 2011-05-12  James Youngman  <jay@gnu.org>
16792
16793         Add a test for glibc's Bugzilla bug #12378.
16794         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16795         doesn't allow the literal matching of a lone "[" (which is
16796         required by POSIX).
16797         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16798
16799 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16800
16801         Sync glibc change fixing Bugzilla bug #12378.
16802         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16803         beginning and fall back to matching as normal character if the
16804         string ends before the matching ']' is found.  This is what POSIX
16805         requires.
16806
16807 2011-05-13  Eric Blake  <eblake@redhat.com>
16808
16809         getcwd-lgpl: relax test for FreeBSD
16810         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16811         issue.
16812         * tests/test-getcwd-lgpl.c (main): Relax test.
16813         Reported by Matthias Bolte.
16814
16815 2011-05-11  Eric Blake  <eblake@redhat.com>
16816
16817         test-fflush: silence compiler warning
16818         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16819
16820 2011-05-11  Bruno Haible  <bruno@clisp.org>
16821
16822         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16823         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16824         * modules/canonicalize (Depends-on): Add 'nocrash'.
16825         * modules/canonicalize-lgpl (Depends-on): Likewise.
16826         * doc/posix-functions/realpath.texi: Update platforms list.
16827         Reported by Ryan Schmidt <ryandesign@macports.org>.
16828
16829 2011-05-11  Bruno Haible  <bruno@clisp.org>
16830
16831         group-member: Declare function in <unistd.h>.
16832         * lib/unistd.in.h (group_member): New declaration.
16833         * lib/group-member.h: Remove file.
16834         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16835         * tests/test-unistd-c++.cc: Check signature of group_member.
16836         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16837         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16838         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16839         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16840         HAVE_GROUP_MEMBER.
16841         * modules/group-member (Files): Remove lib/group-member.h.
16842         (Depends-on): Add unistd. Specify conditions.
16843         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16844         (Include): Change to <unistd.h>.
16845         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16846         HAVE_GROUP_MEMBER.
16847         * NEWS: Mention the change.
16848         * lib/euidaccess.c: Don't include group-member.h.
16849
16850 2011-05-11  Bruno Haible  <bruno@clisp.org>
16851
16852         group-member: Document module.
16853         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16854         module.
16855
16856 2011-05-11  Bruno Haible  <bruno@clisp.org>
16857
16858         fclose: Fix mistake earlier today.
16859         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16860
16861 2011-05-11  Eric Blake  <eblake@redhat.com>
16862
16863         fclose: preserve fflush errors
16864         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16865         Reported by Jim Meyering.
16866
16867         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16868         * build-aux/bootstrap (check_versions): When no specific version
16869         is required, merely check that the app produces an exit status
16870         that indicates its existence.
16871
16872         maint.mk: drop redundant check
16873         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16874         the same but better.
16875
16876 2011-05-11  Bruno Haible  <bruno@clisp.org>
16877
16878         fclose: Fix possible link error.
16879         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16880         unregister_shadow_fd. Improve comments.
16881         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16882         Eric Blake.
16883
16884 2011-05-11  Jim Meyering  <meyering@redhat.com>
16885
16886         maint.mk: improve "can not" detection and generalize rule name
16887         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16888         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16889         Use the same technique as in sc_prohibit_doubled_word, so that
16890         we recognize "can not" also when the words are separated by a newline.
16891         Suggested by Eric Blake.
16892         (perl_filename_lineno_text_): Define.  Factored out of...
16893         (prohibit_doubled_word_): ...here.  Use the new definition.
16894         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16895         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16896         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16897
16898 2011-05-10  Eric Blake  <eblake@redhat.com>
16899
16900         fclose: avoid double close race when possible
16901         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16902         all but WINDOWS_SOCKETS.
16903
16904 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16905
16906         openat: correct new comment
16907         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16908
16909 2011-05-10  Jim Meyering  <meyering@redhat.com>
16910
16911         openat: add comments
16912         * lib/openat-proc.c (openat_proc_name): Add comments,
16913         mostly from Eric Blake.
16914
16915 2011-05-09  Eric Blake  <eblake@redhat.com>
16916
16917         openat: reduce syscalls in first probe of /proc
16918         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16919         be a directory.  Simplify the probe for .. bugs.
16920         * modules/openat (Depends-on): Drop same-inode.
16921         Reported by Bastien ROUCARIES.
16922
16923 2011-05-09  Jim Meyering  <meyering@redhat.com>
16924
16925         maint.mk: change semantics/name of tight_scope variables
16926         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16927         Rename variables to align with semantics that make them more useful.
16928
16929         maint.mk: tweak new rule's name not to impinge
16930         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16931         (sc_tight_scope): Use new rule name rather than $@-0.
16932
16933         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16934         * top/maint.mk (sc_tight_scope): New rule.
16935         (sc_tight_scope-0): New rule, ifdef'd out.
16936         (_gl_TS_dir): Default.
16937         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16938         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16939
16940 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16941
16942         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16943         Haible <bruno@clisp.org>.
16944
16945 2011-05-08  Bruno Haible  <bruno@clisp.org>
16946
16947         Comments.
16948         * m4/isnanf.m4: Add comment.
16949         * m4/isnanl.m4: Likewise.
16950
16951 2011-05-08  Bruno Haible  <bruno@clisp.org>
16952
16953         glob: Remove obsolete macro.
16954         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16955
16956 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16957
16958         intprops: Sun C 5.11 supports __typeof__
16959         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16960         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16961         which is new.
16962         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16963
16964         intprops: switch to usual gnulib indenting and naming
16965         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16966         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16967
16968         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16969
16970 2011-05-08  Jim Meyering  <meyering@redhat.com>
16971
16972         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16973         * top/maint.mk (release-prep): Use make's --no-print-directory
16974         option when generating the announcement.  This eliminates the
16975         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16976         generated announcement template.
16977
16978 2011-05-08  Bruno Haible  <bruno@clisp.org>
16979
16980         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16981         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16982         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16983
16984 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16985
16986         ignore-value, verify: Omit include files from lib_SOURCES.
16987         * modules/ignore-value, modules/verify (Makefile.am):
16988         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16989         that leads Automake to duplicate use of am__objects_... variables
16990         in Makefile.in.  See
16991         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16992
16993 2011-05-07  Bruno Haible  <bruno@clisp.org>
16994
16995         fclose: Simplify autoconf macro.
16996         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16997         defined.
16998
16999 2011-05-07  Bruno Haible  <bruno@clisp.org>
17000
17001         canonicalize-lgpl: Fix autoconf macro ordering bug.
17002         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
17003         gl_STDLIB_H_DEFAULTS.
17004
17005 2011-05-06  Eric Blake  <eblake@redhat.com>
17006
17007         maintainer-makefile: make sc_po_check easier to tune
17008         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17009         to probe for strings, such as an alternate location for gnulib.
17010
17011         fclose: guarantee behavior on seekable stdin
17012         * modules/fclose (Depends-on): Add fflush.
17013         * doc/posix-functions/fclose.texi (fclose): Document this.
17014         * tests/test-fclose.c (main): Make test for this unconditional.
17015
17016 2011-05-06  Bruno Haible  <bruno@clisp.org>
17017
17018         fflush, fpurge: Relicense under LGPLv2+.
17019         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17020         * modules/fpurge (License): Likewise.
17021         With permission from Eric Blake and Jim Meyering.
17022         Suggested by Eric Blake.
17023
17024 2011-05-06  Karl Berry  <karl@gnu.org>
17025
17026         * MODULES.html.sh (func_all_modules): remove exit.
17027
17028 2011-05-06  Jim Meyering  <meyering@redhat.com>
17029
17030         maint.mk: use info-gnu@ as the default only for a stable release
17031         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17032         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17033         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17034         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17035
17036 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17037
17038         assert-h: new module, which supports C1X-style static_assert
17039         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17040         * lib/verify.h: Revamp so that this can be copied into assert.h,
17041         while retaining the ability to use it standalone as before.
17042         Rename private identifiers so as not to encroach on the
17043         standard C namespace, since this is now used by assert.h.
17044         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17045         the old verify_true.
17046         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17047         the old verify_true.  Use _GL_VERIFY_TYPE.
17048         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17049         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17050         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17051         defined when this file is copied into the replacement assert.h.
17052         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17053         and _Static_assert is not built in.
17054         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17055         defined, and use the new macros mentioned above.
17056         * doc/posix-headers/assert.texi: Document this.
17057
17058 2011-05-05  Bruno Haible  <bruno@clisp.org>
17059
17060         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17061         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17062         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17063         gl_REPLACE_FCLOSE here.
17064         * modules/fflush (Depends-on): Remove fclose.
17065         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17066         combination with module 'fclose'.
17067
17068 2011-05-05  Bruno Haible  <bruno@clisp.org>
17069
17070         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17071         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17072         gl_FUNC_FFLUSH.
17073         (gl_FUNC_FFLUSH): Use it.
17074         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17075         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17076         gl_REPLACE_FSEEKO here.
17077
17078 2011-05-05  Bruno Haible  <bruno@clisp.org>
17079
17080         tzset: Relicense under LGPL.
17081         * modules/tzset (License): Change to LGPL.
17082         No agreement needed; it's a no-op.
17083
17084         strtoimax, strtoumax: Relicense under LGPL.
17085         * modules/strtoimax (License): Change to LGPL.
17086         * modules/strtoumax (License): Likewise.
17087         With permission from Jim Meyering, Paul Eggert:
17088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17090
17091         getgroups: Relicense under LGPL.
17092         * modules/getgroups (License): Change to LGPL.
17093         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17097
17098         nanosleep: Relicense under LGPL.
17099         * modules/nanosleep (License): Change to LGPL.
17100         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17101         Haible:
17102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17106
17107         futimens: Relicense under LGPL.
17108         * modules/futimens (License): Change to LGPL.
17109         With permission from Eric Blake:
17110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17111
17112         fflush: Relicense under LGPL.
17113         * modules/fflush (License): Change to LGPL.
17114         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17118
17119         tmpfile: Relicense under LGPL.
17120         * modules/tmpfile (License): Change to LGPL.
17121         With permission from Ben Pfaff:
17122         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17123
17124         isfinite: Relicense under LGPL.
17125         * modules/isfinite (License): Change to LGPL.
17126         With permission from Ben Pfaff, Bruno Haible:
17127         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17129
17130         acosl..tanl: Relicense under LGPL.
17131         * modules/acosl (License): Change to LGPL.
17132         * modules/asinl (License): Likewise.
17133         * modules/atanl (License): Likewise.
17134         * modules/cosl (License): Likewise.
17135         * modules/expl (License): Likewise.
17136         * modules/logl (License): Likewise.
17137         * modules/sinl (License): Likewise.
17138         * modules/sqrtl (License): Likewise.
17139         * modules/tanl (License): Likewise.
17140         Source code originally from glibc and Paolo Bonzini. Agreements:
17141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
17143
17144 2011-05-05  Bruno Haible  <bruno@clisp.org>
17145
17146         signal: Define sighandler_t.
17147         * lib/signal.in.h (sighandler_t): New type.
17148         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
17149         whether sighandler_t is defined.
17150         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
17151         * modules/signal (Depends-on): Add extensions.
17152         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
17153         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
17154         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
17155
17156 2011-05-05  Eric Blake  <eblake@redhat.com>
17157
17158         maint: remove useless REPLACE_*_H macros
17159         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17160         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17161         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17162         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
17163         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17164         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17165         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
17166         * m4/btowc.m4: Update callers.
17167         * m4/dirfd.m4: Likewise.
17168         * m4/duplocale.m4: Likewise.
17169         * m4/fchdir.m4: Likewise.
17170         * m4/fdopendir.m4: Likewise.
17171         * m4/inet_ntop.m4: Likewise.
17172         * m4/inet_pton.m4: Likewise.
17173         * m4/ioctl.m4: Likewise.
17174         * m4/mbrlen.m4: Likewise.
17175         * m4/mbrtowc.m4: Likewise.
17176         * m4/mbsinit.m4: Likewise.
17177         * m4/mbsnrtowcs.m4: Likewise.
17178         * m4/mbsrtowcs.m4: Likewise.
17179         * m4/poll.m4: Likewise.
17180         * m4/setlocale.m4: Likewise.
17181         * m4/wcrtomb.m4: Likewise.
17182         * m4/wcsnrtombs.m4: Likewise.
17183         * m4/wcsrtombs.m4: Likewise.
17184         * m4/wctob.m4: Likewise.
17185         * m4/wcwidth.m4: Likewise.
17186         * modules/posix_spawn: Likewise.
17187         * modules/posix_spawn_file_actions_addclose: Likewise.
17188         * modules/posix_spawn_file_actions_adddup2: Likewise.
17189         * modules/posix_spawn_file_actions_addopen: Likewise.
17190         * modules/posix_spawn_file_actions_destroy: Likewise.
17191         * modules/posix_spawn_file_actions_init: Likewise.
17192         * modules/posix_spawnattr_destroy: Likewise.
17193         * modules/posix_spawnattr_getflags: Likewise.
17194         * modules/posix_spawnattr_getpgroup: Likewise.
17195         * modules/posix_spawnattr_getschedparam: Likewise.
17196         * modules/posix_spawnattr_getschedpolicy: Likewise.
17197         * modules/posix_spawnattr_getsigdefault: Likewise.
17198         * modules/posix_spawnattr_getsigmask: Likewise.
17199         * modules/posix_spawnattr_init: Likewise.
17200         * modules/posix_spawnattr_setflags: Likewise.
17201         * modules/posix_spawnattr_setpgroup: Likewise.
17202         * modules/posix_spawnattr_setschedparam: Likewise.
17203         * modules/posix_spawnattr_setschedpolicy: Likewise.
17204         * modules/posix_spawnattr_setsigdefault: Likewise.
17205         * modules/posix_spawnattr_setsigmask: Likewise.
17206         * modules/posix_spawnp: Likewise.
17207
17208 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17209
17210         Add option to do-release-commit-and-tag to specify branch.
17211         * build-aux/do-release-commit-and-tag: Add --branch.
17212
17213 2011-05-03  Bruno Haible  <bruno@clisp.org>
17214
17215         Avoid unnecessary compilation units, through conditional dependencies.
17216         * modules/accept (Depends-on): Add conditions to the dependencies.
17217         * modules/acosl (Depends-on): Likewise.
17218         * modules/argz (Depends-on): Likewise.
17219         * modules/asinl (Depends-on): Likewise.
17220         * modules/atanl (Depends-on): Likewise.
17221         * modules/atoll (Depends-on): Likewise.
17222         * modules/bind (Depends-on): Likewise.
17223         * modules/btowc (Depends-on): Likewise.
17224         * modules/canonicalize-lgpl (Depends-on): Likewise.
17225         * modules/ceil (Depends-on): Likewise.
17226         * modules/ceilf (Depends-on): Likewise.
17227         * modules/ceill (Depends-on): Likewise.
17228         * modules/chdir-long (Depends-on): Likewise.
17229         * modules/chown (Depends-on): Likewise.
17230         * modules/close (Depends-on): Likewise.
17231         * modules/connect (Depends-on): Likewise.
17232         * modules/cosl (Depends-on): Likewise.
17233         * modules/dirfd (Depends-on): Likewise.
17234         * modules/dprintf (Depends-on): Likewise.
17235         * modules/dprintf-posix (Depends-on): Likewise.
17236         * modules/error (Depends-on): Likewise.
17237         * modules/euidaccess (Depends-on): Likewise.
17238         * modules/expl (Depends-on): Likewise.
17239         * modules/faccessat (Depends-on): Likewise.
17240         * modules/fchdir (Depends-on): Likewise.
17241         * modules/fclose (Depends-on): Likewise.
17242         * modules/fcntl (Depends-on): Likewise.
17243         * modules/fdopendir (Depends-on): Likewise.
17244         * modules/fflush (Depends-on): Likewise.
17245         * modules/floor (Depends-on): Likewise.
17246         * modules/floorf (Depends-on): Likewise.
17247         * modules/floorl (Depends-on): Likewise.
17248         * modules/fnmatch (Depends-on): Likewise.
17249         * modules/fopen (Depends-on): Likewise.
17250         * modules/fprintf-posix (Depends-on): Likewise.
17251         * modules/frexp (Depends-on): Likewise.
17252         * modules/frexp-nolibm (Depends-on): Likewise.
17253         * modules/frexpl (Depends-on): Likewise.
17254         * modules/frexpl-nolibm (Depends-on): Likewise.
17255         * modules/fseek (Depends-on): Likewise.
17256         * modules/fsusage (Depends-on): Likewise.
17257         * modules/ftell (Depends-on): Likewise.
17258         * modules/ftello (Depends-on): Likewise.
17259         * modules/futimens (Depends-on): Likewise.
17260         * modules/getcwd (Depends-on): Likewise.
17261         * modules/getcwd-lgpl (Depends-on): Likewise.
17262         * modules/getdelim (Depends-on): Likewise.
17263         * modules/getdomainname (Depends-on): Likewise.
17264         * modules/getgroups (Depends-on): Likewise.
17265         * modules/gethostname (Depends-on): Likewise.
17266         * modules/getline (Depends-on): Likewise.
17267         * modules/getlogin_r (Depends-on): Likewise.
17268         * modules/getopt-posix (Depends-on): Likewise.
17269         * modules/getpeername (Depends-on): Likewise.
17270         * modules/getsockname (Depends-on): Likewise.
17271         * modules/getsockopt (Depends-on): Likewise.
17272         * modules/getsubopt (Depends-on): Likewise.
17273         * modules/getusershell (Depends-on): Likewise.
17274         * modules/glob (Depends-on): Likewise.
17275         * modules/grantpt (Depends-on): Likewise.
17276         * modules/iconv_open (Depends-on): Likewise.
17277         * modules/iconv_open-utf (Depends-on): Likewise.
17278         * modules/inet_ntop (Depends-on): Likewise.
17279         * modules/inet_pton (Depends-on): Likewise.
17280         * modules/ioctl (Depends-on): Likewise.
17281         * modules/isapipe (Depends-on): Likewise.
17282         * modules/isfinite (Depends-on): Likewise.
17283         * modules/isinf (Depends-on): Likewise.
17284         * modules/lchown (Depends-on): Likewise.
17285         * modules/ldexpl (Depends-on): Likewise.
17286         * modules/link (Depends-on): Likewise.
17287         * modules/linkat (Depends-on): Likewise.
17288         * modules/listen (Depends-on): Likewise.
17289         * modules/logl (Depends-on): Likewise.
17290         * modules/lstat (Depends-on): Likewise.
17291         * modules/mbrlen (Depends-on): Likewise.
17292         * modules/mbrtowc (Depends-on): Likewise.
17293         * modules/mbsinit (Depends-on): Likewise.
17294         * modules/mbsnrtowcs (Depends-on): Likewise.
17295         * modules/mbsrtowcs (Depends-on): Likewise.
17296         * modules/mbtowc (Depends-on): Likewise.
17297         * modules/memcmp (Depends-on): Likewise.
17298         * modules/mkdir (Depends-on): Likewise.
17299         * modules/mkdtemp (Depends-on): Likewise.
17300         * modules/mkfifo (Depends-on): Likewise.
17301         * modules/mkfifoat (Depends-on): Likewise.
17302         * modules/mknod (Depends-on): Likewise.
17303         * modules/mkostemp (Depends-on): Likewise.
17304         * modules/mkostemps (Depends-on): Likewise.
17305         * modules/mkstemp (Depends-on): Likewise.
17306         * modules/mkstemps (Depends-on): Likewise.
17307         * modules/mktime (Depends-on): Likewise.
17308         * modules/nanosleep (Depends-on): Likewise.
17309         * modules/open (Depends-on): Likewise.
17310         * modules/openat (Depends-on): Likewise.
17311         * modules/perror (Depends-on): Likewise.
17312         * modules/poll (Depends-on): Likewise.
17313         * modules/popen (Depends-on): Likewise.
17314         * modules/posix_spawn (Depends-on): Likewise.
17315         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17316         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17317         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17318         * modules/posix_spawnp (Depends-on): Likewise.
17319         * modules/pread (Depends-on): Likewise.
17320         * modules/printf-posix (Depends-on): Likewise.
17321         * modules/ptsname (Depends-on): Likewise.
17322         * modules/putenv (Depends-on): Likewise.
17323         * modules/pwrite (Depends-on): Likewise.
17324         * modules/readline (Depends-on): Likewise.
17325         * modules/readlink (Depends-on): Likewise.
17326         * modules/readlinkat (Depends-on): Likewise.
17327         * modules/recv (Depends-on): Likewise.
17328         * modules/recvfrom (Depends-on): Likewise.
17329         * modules/regex (Depends-on): Likewise.
17330         * modules/remove (Depends-on): Likewise.
17331         * modules/rename (Depends-on): Likewise.
17332         * modules/renameat (Depends-on): Likewise.
17333         * modules/rmdir (Depends-on): Likewise.
17334         * modules/round (Depends-on): Likewise.
17335         * modules/roundf (Depends-on): Likewise.
17336         * modules/roundl (Depends-on): Likewise.
17337         * modules/rpmatch (Depends-on): Likewise.
17338         * modules/select (Depends-on): Likewise.
17339         * modules/send (Depends-on): Likewise.
17340         * modules/sendto (Depends-on): Likewise.
17341         * modules/setenv (Depends-on): Likewise.
17342         * modules/setlocale (Depends-on): Likewise.
17343         * modules/setsockopt (Depends-on): Likewise.
17344         * modules/shutdown (Depends-on): Likewise.
17345         * modules/sigaction (Depends-on): Likewise.
17346         * modules/signbit (Depends-on): Likewise.
17347         * modules/sigprocmask (Depends-on): Likewise.
17348         * modules/sinl (Depends-on): Likewise.
17349         * modules/sleep (Depends-on): Likewise.
17350         * modules/snprintf (Depends-on): Likewise.
17351         * modules/snprintf-posix (Depends-on): Likewise.
17352         * modules/socket (Depends-on): Likewise.
17353         * modules/sprintf-posix (Depends-on): Likewise.
17354         * modules/sqrtl (Depends-on): Likewise.
17355         * modules/stat (Depends-on): Likewise.
17356         * modules/strchrnul (Depends-on): Likewise.
17357         * modules/strdup-posix (Depends-on): Likewise.
17358         * modules/strerror (Depends-on): Likewise.
17359         * modules/strerror_r-posix (Depends-on): Likewise.
17360         * modules/strndup (Depends-on): Likewise.
17361         * modules/strnlen (Depends-on): Likewise.
17362         * modules/strptime (Depends-on): Likewise.
17363         * modules/strsep (Depends-on): Likewise.
17364         * modules/strsignal (Depends-on): Likewise.
17365         * modules/strstr-simple (Depends-on): Likewise.
17366         * modules/strtod (Depends-on): Likewise.
17367         * modules/strtoimax (Depends-on): Likewise.
17368         * modules/strtok_r (Depends-on): Likewise.
17369         * modules/strtoumax (Depends-on): Likewise.
17370         * modules/symlink (Depends-on): Likewise.
17371         * modules/symlinkat (Depends-on): Likewise.
17372         * modules/tanl (Depends-on): Likewise.
17373         * modules/tcgetsid (Depends-on): Likewise.
17374         * modules/tmpfile (Depends-on): Likewise.
17375         * modules/trunc (Depends-on): Likewise.
17376         * modules/truncf (Depends-on): Likewise.
17377         * modules/truncl (Depends-on): Likewise.
17378         * modules/uname (Depends-on): Likewise.
17379         * modules/unlink (Depends-on): Likewise.
17380         * modules/unlockpt (Depends-on): Likewise.
17381         * modules/unsetenv (Depends-on): Likewise.
17382         * modules/usleep (Depends-on): Likewise.
17383         * modules/utimensat (Depends-on): Likewise.
17384         * modules/vasprintf (Depends-on): Likewise.
17385         * modules/vdprintf (Depends-on): Likewise.
17386         * modules/vdprintf-posix (Depends-on): Likewise.
17387         * modules/vfprintf-posix (Depends-on): Likewise.
17388         * modules/vprintf-posix (Depends-on): Likewise.
17389         * modules/vsnprintf (Depends-on): Likewise.
17390         * modules/vsnprintf-posix (Depends-on): Likewise.
17391         * modules/vsprintf-posix (Depends-on): Likewise.
17392         * modules/wcrtomb (Depends-on): Likewise.
17393         * modules/wcscasecmp (Depends-on): Likewise.
17394         * modules/wcscspn (Depends-on): Likewise.
17395         * modules/wcsdup (Depends-on): Likewise.
17396         * modules/wcsncasecmp (Depends-on): Likewise.
17397         * modules/wcsnrtombs (Depends-on): Likewise.
17398         * modules/wcspbrk (Depends-on): Likewise.
17399         * modules/wcsrtombs (Depends-on): Likewise.
17400         * modules/wcsspn (Depends-on): Likewise.
17401         * modules/wcsstr (Depends-on): Likewise.
17402         * modules/wcstok (Depends-on): Likewise.
17403         * modules/wcswidth (Depends-on): Likewise.
17404         * modules/wctob (Depends-on): Likewise.
17405         * modules/wctomb (Depends-on): Likewise.
17406         * modules/wctype (Depends-on): Likewise.
17407         * modules/wcwidth (Depends-on): Likewise.
17408         * modules/write (Depends-on): Likewise.
17409
17410 2011-05-03  Bruno Haible  <bruno@clisp.org>
17411
17412         Support for conditional dependencies.
17413         * doc/gnulib.texi (Module description): Document the syntax of
17414         conditional dependencies.
17415         * gnulib-tool: New option --conditional-dependencies.
17416         (func_usage): Document it.
17417         (cond_dependencies): New variable.
17418         (func_get_automake_snippet_conditional,
17419         func_get_automake_snippet_unconditional): New functions, extracted from
17420         func_get_automake_snippet.
17421         (func_get_automake_snippet): Use them.
17422         (sed_first_32_chars): New variable.
17423         (func_module_shellfunc_name): New function.
17424         (func_module_shellvar_name): New function.
17425         (func_module_conditional_name): New function.
17426         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17427         func_cond_module_condition): New functions.
17428         (func_modules_transitive_closure): Add support for conditional
17429         dependencies.
17430         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17431         conditional automake snippet in an automake conditional.
17432         (func_emit_autoconf_snippets): Emit shell functions that contain the
17433         code for conditional modules.
17434         (func_import, func_create_testdir): Update specification.
17435
17436 2011-05-03  Eric Blake  <eblake@redhat.com>
17437
17438         test-getaddrinfo: report error information
17439         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17440
17441 2011-05-03  Jim Meyering  <meyering@redhat.com>
17442
17443         bootstrap: avoid build failure when $GZIP is set
17444         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17445         program name.  If defined at all, it is supposed to list gzip options.
17446         Reported by Alan Curry in http://debbugs.gnu.org/8609
17447
17448 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17449
17450         readme-release: new module with release instructions
17451         * modules/readme-release: New module.
17452         * top/README-release: New file, from coreutils, grep, diffutils.
17453         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17454
17455 2011-05-02  Eric Blake  <eblake@redhat.com>
17456
17457         fflush: also replace fclose when fixing fflush
17458         * modules/fflush (Depends-on): Add fclose.
17459         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17460         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17461         memstreams with no backing fd.
17462         * doc/posix-functions/fclose.texi (fclose): Document the use of
17463         fflush module to fix the bug.
17464         * tests/test-fclose.c (main): Relax test when fclose is used in
17465         isolation.
17466
17467         fclose: add some tests
17468         * modules/fclose-tests: New test module.
17469         * tests/test-fclose.c: New file.
17470         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17471
17472         fclose: reduced dependencies
17473         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17474         simpler lseek.
17475         * lib/fclose.c (rpl_fclose): Likewise.
17476         Reported by Simon Josefsson.
17477
17478         exit: drop remaining clients
17479         * modules/argmatch (Depends-on): Replace exit with stdlib.
17480         * modules/copy-file (Depends-on): Likewise.
17481         * modules/execute (Depends-on): Likewise.
17482         * modules/exitfail (Depends-on): Likewise.
17483         * modules/obstack (Depends-on): Likewise.
17484         * modules/pagealign_alloc (Depends-on): Likewise.
17485         * modules/pipe-filter-gi (Depends-on): Likewise.
17486         * modules/pipe-filter-ii (Depends-on): Likewise.
17487         * modules/savewd (Depends-on): Likewise.
17488         * modules/spawn-pipe (Depends-on): Likewise.
17489         * modules/wait-process (Depends-on): Likewise.
17490         * modules/xsetenv (Depends-on): Likewise.
17491         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17492         * modules/git-merge-changelog (Depends-on): Likewise.
17493         * modules/long-options (Depends-on): Likewise.
17494         * modules/pt_chown (Depends-on): Likewise.
17495         * modules/sysexits (Depends-on): Likewise.
17496
17497         freading: relax license from LGPLv3+ to LGPLv2+
17498         * modules/freading (License): Relax LGPL version.
17499
17500 2011-05-02  Bruno Haible  <bruno@clisp.org>
17501
17502         fchdir: Remove unused dependencies.
17503         * modules/fchdir (Depends-on): Remove include_next.
17504
17505 2011-05-02  Bruno Haible  <bruno@clisp.org>
17506
17507         gnulib-tool: Refactor.
17508         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17509         from func_emit_autoconf_snippets.
17510         (func_emit_autoconf_snippets): Use it.
17511
17512 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17513
17514         * NEWS: Document removal of 'exit'.
17515         * modules/exit: Remove file.
17516
17517 2011-05-01  Bruno Haible  <bruno@clisp.org>
17518
17519         Update DEPENDENCIES.
17520         * DEPENDENCIES (gettext): Recommend the newest release.
17521         Reported by Simon Josefsson.
17522
17523 2011-05-01  Bruno Haible  <bruno@clisp.org>
17524
17525         gnulib-tool: Reduce code duplication.
17526         * gnulib-tool (func_emit_autoconf_snippets): New function.
17527         (func_import, func_create_testdir): Use it.
17528
17529 2011-04-30  Eric Blake  <eblake@redhat.com>
17530
17531         fclose: don't fail on non-seekable input stream
17532         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17533         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17534         since fflush is allowed to fail in that case.
17535
17536 2011-04-30  Bruno Haible  <bruno@clisp.org>
17537
17538         dup3: cleanup
17539         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17540
17541 2011-04-30  Bruno Haible  <bruno@clisp.org>
17542
17543         netdb: Make it work in C++ mode.
17544         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17545         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17546         module.
17547         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17548         gl_MODULE_INDICATOR_FOR_TESTS.
17549         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17550         * modules/netdb-c++-tests: New file.
17551         * tests/test-netdb-c++.cc: New file.
17552
17553 2011-04-30  Bruno Haible  <bruno@clisp.org>
17554
17555         New modules 'vfscanf', 'vscanf'.
17556         * modules/vfscanf: New file.
17557         * modules/vscanf: New file.
17558         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17559         here.
17560         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17561         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17562
17563 2011-04-30  Bruno Haible  <bruno@clisp.org>
17564
17565         passfd: Add comments.
17566         * lib/passfd.c: Add comments about platforms.
17567
17568 2011-04-30  Bruno Haible  <bruno@clisp.org>
17569
17570         sys_uio: Make <sys/uio.h> self-contained.
17571         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17572         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17573
17574 2011-04-30  Bruno Haible  <bruno@clisp.org>
17575
17576         sys_socket: Ensure 'struct iovec' definition.
17577         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17578         <sys/socket.h>.
17579         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17580
17581 2011-04-30  Bruno Haible  <bruno@clisp.org>
17582
17583         sys_uio: Protect definition of 'struct iovec'.
17584         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17585         it as a C struct.
17586
17587 2011-04-30  Bruno Haible  <bruno@clisp.org>
17588
17589         manywarnings: fix indentation
17590         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17591
17592 2011-04-30  Pádraig Brady <P@draigBrady.com>
17593
17594         manywarnings: add -Wno-missing-field-initializers if needed.
17595         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17596         option if it's needed to allow initialization with { 0, }
17597
17598 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17599
17600         announce-gen: cosmetic improvement
17601         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17602
17603 2011-04-29  Jim Meyering  <meyering@redhat.com>
17604
17605         vc-list-files: indent with spaces, not TABs
17606         * build-aux/vc-list-files: Convert leading TABs to spaces,
17607         to match the style of most other files in gnulib.
17608
17609         announce-gen: indent with spaces, not TABs
17610         * build-aux/announce-gen: Convert all TABs to spaces, to match
17611         the style of most other files in gnulib.
17612
17613 2011-04-29  Eric Blake  <eblake@redhat.com>
17614
17615         quotearg: avoid uninitialized variable use
17616         * lib/quotearg.c (quoting_options_from_style): Initialize
17617         remaining fields, and ensure that custom styles are only used via
17618         quoting_options rather than quoting_style.
17619
17620 2011-04-29  Jim Meyering  <meyering@redhat.com>
17621
17622         maint.mk: remove unused VC-tag variable
17623         * top/maint.mk (VC-tag): Remove unused variable.
17624
17625 2011-04-29  Bruno Haible  <bruno@clisp.org>
17626
17627         netdb: fix gai_strerror replacements
17628         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17629         * modules/netdb: Substitute it.
17630
17631 2011-04-29  Jim Meyering  <meyering@redhat.com>
17632
17633         test-getcwd.c: avoid new set-but-not-used warning
17634         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17635         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17636         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17637         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17638
17639         test-hash.c: avoid a new shadowing warning
17640         * tests/test-hash.c (main): Don't shadow "dup".
17641
17642 2011-04-28  Eric Blake  <eblake@redhat.com>
17643
17644         getaddrinfo: fix gai_strerror signature
17645         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17646         and work around mingw with UNICODE defined.
17647         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17648         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17649         * modules/netdb (Makefile.am): Substitute it.
17650         * lib/netdb.in.h (gai_strerror): Declare replacement.
17651         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17652         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17653         the fix.
17654
17655         getsockopt: avoid compiler warning
17656         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17657         Reported by Matthias Bolte.
17658
17659         tests: drop unused link dependency
17660         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17661         * modules/dirent-safer-tests (Makefile.am): Likewise.
17662         * modules/fdopendir-tests (Makefile.am): Likewise.
17663         * modules/mkfifoat-tests (Makefile.am): Likewise.
17664         * modules/openat-safer-tests (Makefile.am): Likewise.
17665         * modules/openat-tests (Makefile.am): Likewise.
17666         * modules/readlinkat-tests (Makefile.am): Likewise.
17667         * modules/symlinkat-tests (Makefile.am): Likewise.
17668         * modules/linkat-tests (Makefile.am): Likewise.
17669         (Depends-on): Switch to filenamecat-lgpl.
17670         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17671         LIBINTL.
17672         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17673         * tests/test-linkat.c (main): Don't require xalloc.
17674
17675         hash, mgetgroups: drop xalloc dependency
17676         * lib/hash.c (includes): Adjust includes.
17677         * lib/mgetgroups.c (includes): Likewise.
17678         (xgetgroups): Move...
17679         * lib/xgetgroups.c: ...to new file.
17680         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17681         * modules/xgetgroups: New file, split from...
17682         * modules/mgetgroups: ...here.
17683         (Depends-on): Add xalloc-oversized.
17684         * modules/hash (Depends-on): Likewise.
17685         * modules/hash-tests (Depends-on): Drop xalloc.
17686         (test_hash_LDADD): Drop unused library.
17687         * tests/test-hash.c (main): Break xalloc dependency.
17688         (includes): Drop unused include.
17689
17690         xalloc-oversized: new module
17691         * modules/xalloc-oversized: New module.
17692         * modules/xalloc (Depends-on): Add it.
17693         * lib/xalloc.h (xalloc_oversized): Move...
17694         * lib/xalloc-oversized.h: ...into new file.
17695
17696         utimecmp: drop dependency on xmalloc
17697         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17698         due to memory pressure.
17699         * modules/utimecmp (Depends-on): Drop xalloc.
17700
17701 2011-04-27  Eric Blake  <eblake@redhat.com>
17702
17703         getcwd: fix mingw bugs
17704         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17705         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17706         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17707
17708 2011-04-27  Bruno Haible  <bruno@clisp.org>
17709
17710         mkstemps: Ensure declaration on MacOS X 10.5.
17711         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17712         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17713         MacOS X.
17714
17715 2011-04-27  Bruno Haible  <bruno@clisp.org>
17716
17717         mkstemp: More documentation.
17718         * doc/posix-functions/mkstemp.texi: Document header file problem on
17719         MacOS X.
17720
17721 2011-04-27  Bruno Haible  <bruno@clisp.org>
17722
17723         mkstemp: Tweak configure message when cross-compiling.
17724         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17725         result as a guess.
17726
17727 2011-04-27  Bruno Haible  <bruno@clisp.org>
17728
17729         clean-temp: Clarify what it does.
17730         * lib/clean-temp.h: Add more comments.
17731         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17732         module.
17733         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17734         * doc/glibc-functions/mkstemps.texi: Likewise.
17735         * doc/glibc-functions/mkostemps.texi: Likewise.
17736
17737 2011-04-27  Eric Blake  <eblake@redhat.com>
17738
17739         fchdir: avoid extra chdir and fix test
17740         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17741         getcwd-lgpl.
17742         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17743         have to be canonical.
17744         (canonicalize_file_name): Drop unused macro.
17745         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17746
17747         filenamecat-lgpl: fix licence
17748         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17749         when it was first created.
17750
17751         linkat, renameat: add missing dependency
17752         * modules/linkat (Depends-on): Require getcwd-lgpl.
17753         * modules/renameat (Depends-on): Likewise.
17754
17755         tests: reduce dependencies
17756         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17757         * tests/test-renameat.c (main): Likewise.
17758         * modules/linkat-tests (Depends-on): Relax dependency.
17759         * modules/renameat-tests (Depends-on): Likewise.
17760         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17761         dependency explicit.
17762
17763         save-cwd: reduce default dependency
17764         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17765         * lib/save-cwd.c: Update comments.
17766         * NEWS: Document the semantic change.
17767
17768         getcwd: enhance tests
17769         * tests/test-getcwd-lgpl.c: New file, taken from...
17770         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17771         repeat long path stress tests from m4 probe.
17772         * modules/getcwd-lgpl-tests: New module.
17773         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17774         * m4/getcwd-abort-bug.m4: Update comment.
17775         * m4/getcwd-path-max.m4: Likewise.
17776
17777         getcwd-lgpl: new module
17778         * modules/getcwd-lgpl: New module.
17779         * lib/getcwd-lgpl.c: New file.
17780         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17781         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17782         * modules/getcwd (configure.ac): Set C witness.
17783         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17784
17785         getcwd: tweak comments
17786         * m4/getcwd-abort-bug.m4: Fix comments.
17787         * m4/getcwd-path-max.m4: Likewise.
17788         * m4/getcwd.m4: Likewise.
17789
17790 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17791         and Eric Blake  <eblake@redhat.com>
17792
17793         mkstemp: replace if system version uses wrong permissions
17794         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17795         read/write mode bits set in file created by mkstemp.
17796         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17797
17798 2011-04-27  Eric Blake  <eblake@redhat.com>
17799
17800         passfd: avoid compiler warning
17801         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17802         Reported by Laine Stump.
17803
17804 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17805
17806         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17807         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17808
17809 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17810         and Eric Blake  <eblake@redhat.com>
17811
17812         mkstemp: mention clean-temp module
17813         * lib/mkstemp.c: Add comment.
17814         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17815
17816 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17817
17818         inttypes: also provide default values for 32-bit tests
17819         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17820         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17821
17822 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17823
17824         strtoumax: remove dependency on strtoimax
17825         This is like the strtoull change of yesterday.
17826         * modules/strtoumax (Files): Add lib/strtoimax.c.
17827         (Depends-on): Remove strtoimax and add verify.
17828
17829         inttypes-incomplete: new module
17830         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17831         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17832         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17833         of gl_INTTYPES_H.
17834         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17835         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17836         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17837         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17838         * modules/strtoumax, modules/xstrtol (Depends-on):
17839         Depend on inttypes-incomplete, not inttypes.
17840         * modules/inttypes-incomplete: New module, containing the contents
17841         of the old modules/inttypes module, except that the Files: section
17842         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17843         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17844         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17845         (Depends-on): Depend only on inttypes-incomplete.
17846         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17847
17848         inttypes: omit now-redundant strtoimax and strtoumax work
17849         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17850         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17851
17852         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17853         This supports apps that need pointers to strtoimax and strtoumax,
17854         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17855         nonexistent functions.  See
17856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17857         et seq.
17858         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17859         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17860         a macro.
17861         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17862
17863 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17864
17865         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17866
17867 2011-04-25  Bruno Haible  <bruno@clisp.org>
17868
17869         strtol, strtoul: Mark modules as obsolete.
17870         * modules/strtol (Status, Notice): New sections.
17871         * modules/strtoul (Status, Notice): New sections.
17872
17873 2011-04-25  Bruno Haible  <bruno@clisp.org>
17874
17875         strtod: Remove check for strtod, unless supporting old platforms.
17876         * modules/strtod-obsolete: New file.
17877         * m4/strtod-obsolete.m4: New file.
17878         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17879         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17880         * modules/strtod (Depends-on): Add strtod-obsolete.
17881         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17882
17883 2011-04-25  Bruno Haible  <bruno@clisp.org>
17884
17885         strcase: Make module obsolete.
17886         * modules/strcase (Status, Notice): New sections.
17887
17888 2011-04-25  Bruno Haible  <bruno@clisp.org>
17889
17890         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17891         * modules/dup2-obsolete: New file.
17892         * m4/dup2-obsolete.m4: New file.
17893         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17894         gl_FUNC_DUP2_OBSOLETE is not also defined.
17895         * modules/dup2 (Depends-on): Add dup2-obsolete.
17896         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17897
17898 2011-04-25  Bruno Haible  <bruno@clisp.org>
17899
17900         strnlen: Avoid memchr related link error on old obsolete platforms.
17901         * modules/memchr-obsolete: New file.
17902         * m4/memchr-obsolete.m4: New file.
17903         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17904         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17905         * modules/memchr (Depends-on): Add memchr-obsolete.
17906         * modules/strnlen (Depends-on): Likewise.
17907         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17908
17909 2011-04-25  Jim Meyering  <meyering@redhat.com>
17910
17911         maint.mk: makefile_at_at_check extend and clean up
17912         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17913         in addition to */Makefile.am.
17914         Exempt legitimate uses of @VAR@ notation, e.g.,
17915         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17916         Remove obsolete coreutils-specific comment.
17917         Prompted by discussion here:
17918         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17919
17920 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17921
17922         strtoul: remove dependency on strtol
17923         This is so that 'configure' need not check for strtol merely because
17924         the application needs strtoul.
17925         * modules/strtoul (Files): Add lib/strtol.c.
17926         (Depends-on): Remove strtol.
17927
17928         strtoull: remove dependency on strtoul
17929         This is like the strtoll change.
17930         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17931         (Depends-on): Remove strtoul.
17932
17933         strtoll: remove dependency on strtol
17934         This is so that 'configure' need not check for strtol merely because
17935         the application needs strtoll.
17936         * modules/strtoll (Files): Add lib/strtol.c.
17937         (Depends-on): Remove strtol.
17938
17939 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17940
17941         inttypes: Move some configure check to module 'imaxdiv'.
17942         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17943         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17944         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17945
17946 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17947
17948         inttypes: Move some configure check to module 'imaxabs'.
17949         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17950         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17951         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17952
17953 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17954
17955         inttypes: Remove configure tests that are not needed since 2009-12-31.
17956         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17957         gl_cv_header_working_inttypes_h.
17958
17959 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17960
17961         * modules/strnlen (Depends-on): Remove memchr.
17962         The strnlen implementation doesn't need the memchr module's fixes; see
17963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17964
17965         strtol: remove dependency on wchar
17966         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17967         * modules/strtol (Depends-on): Remove wchar.
17968
17969 2011-04-21  Eric Blake  <eblake@redhat.com>
17970
17971         passfd: fix test regression on Linux
17972         * modules/passfd-tests (configure.ac): Correct socketpair check.
17973
17974         passfd: speed up configure and drop unused code
17975         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17976         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17977         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17978         Instead of probing at configure for unix_scm_rights_bsd44_way,
17979         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17980         check to a struct member probe.
17981         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17982         (sendfd, recvfd): Update preprocessor checks.
17983         * modules/passfd (Files): Reflect rename, and drop unused file.
17984         (Depends-on): Drop unused dependency.
17985
17986         passfd: allow compilation on mingw
17987         * modules/sys_socket (Depends-on): Add sys_uio.
17988         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17989         iovec and a minimal struct msghdr.
17990         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17991         * tests/test-sys_socket.c (main): Enhance test.
17992         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17993         guaranteed to provide what we need.
17994         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17995         * modules/passfd-tests (Depends-on): Add sys_wait.
17996         * tests/test-passfd.c (main): Skip test on mingw, for now.
17997         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17998         partial 'struct msghdr' implementation.
17999
18000         sys_uio: new module
18001         * modules/sys_uio: New module.
18002         * modules/sys_uio-tests: Likewise.
18003         * lib/sys_uio.in.h: New file.
18004         * m4/sys_uio_h.m4: Likewise.
18005         * tests/test-sys_uio.c: Likewise.
18006         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18007         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18008
18009 2011-04-20  Jim Meyering  <meyering@redhat.com>
18010
18011         useless-if-before-free: avoid false-positive
18012         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18013         disjunct so that it too requires a terminating ";".  Without that,
18014         this script would identify as useless one statement from gcc that
18015         was not:
18016           if (aligned_ptr)
18017             free (((void **) aligned_ptr) [-1]);
18018
18019 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18020
18021         doc: update users.txt.
18022         * users.txt: Add barcode.
18023
18024 2011-04-19  Bruno Haible  <bruno@clisp.org>
18025
18026         ioctl: Remove link dependency on native Windows.
18027         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18028         (gl_close_fn, gl_ioctl_fn): New types.
18029         (struct fd_hook): Renamed from struct close_hook. Change type of
18030         private_close_fn field. Add private_ioctl_fn field.
18031         (close_hook_fn): Add parameter for primary close method.
18032         (execute_close_hooks, execute_all_close_hooks): Likewise.
18033         (ioctl_hook_fn): New type.
18034         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18035         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18036         argument.
18037         (unregister_fd_hook): Renamed from unregister_close_hook.
18038         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18039         Don't include <unistd.h>.
18040         (close): Remove undef.
18041         (anchor): Update.
18042         (execute_close_hooks): Add argument for primary close method.
18043         (execute_all_close_hooks): Likewise.
18044         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18045         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18046         argument. Allow each argument to be NULL.
18047         (unregister_fd_hook): Renamed from unregister_close_hook.
18048         * lib/close.c (rpl_close): Pass 'close' function pointer to
18049         execute_all_close_hooks.
18050         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18051         (primary_ioctl): New function.
18052         (ioctl): Don't call ioctlsocket here. Instead, call
18053         execute_all_ioctl_hooks.
18054         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18055         close method.
18056         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18057         (fd_sockets_hook): Renamed from close_sockets_hook.
18058         (gl_sockets_startup, gl_sockets_cleanup): Update.
18059         * modules/fd-hook: Renamed from modules/close-hook. Update.
18060         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18061         * modules/sockets (Depends-on): Likewise.
18062         * modules/ioctl (Depends-on): Add fd-hook.
18063         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18064         GNULIB_SOCKET.
18065
18066 2011-04-19  Bruno Haible  <bruno@clisp.org>
18067
18068         Move the support of O_NONBLOCK in open() to the 'open' module.
18069         * modules/nonblocking (Depends-on): Remove 'open'.
18070         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18071         gl_cv_have_open_O_NONBLOCK.
18072         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18073         O_NONBLOCK support.
18074         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18075
18076 2011-04-17  Bruno Haible  <bruno@clisp.org>
18077
18078         pipe2: Simplify code.
18079         * lib/pipe2.c (pipe2): Reduce code duplication.
18080
18081 2011-04-17  Bruno Haible  <bruno@clisp.org>
18082
18083         nonblocking: Add comment.
18084         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18085
18086 2011-04-17  Bruno Haible  <bruno@clisp.org>
18087
18088         nonblocking: Add tests for sockets.
18089         * tests/test-nonblocking-socket.sh: New file.
18090         * tests/test-nonblocking-socket-main.c: New file.
18091         * tests/test-nonblocking-socket-child.c: New file.
18092         * tests/test-nonblocking-socket.h: New file.
18093         * tests/socket-server.h: New file.
18094         * tests/socket-client.h: New file.
18095         * modules/nonblocking-socket-tests: New file.
18096         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18097
18098 2011-04-17  Bruno Haible  <bruno@clisp.org>
18099
18100         nonblocking: Add tests for pipes.
18101         * tests/test-nonblocking-pipe.sh: New file.
18102         * tests/test-nonblocking-pipe-main.c: New file.
18103         * tests/test-nonblocking-pipe-child.c: New file.
18104         * tests/test-nonblocking-pipe.h: New file.
18105         * tests/test-nonblocking-writer.h: New file.
18106         * tests/test-nonblocking-reader.h: New file.
18107         * tests/test-nonblocking-misc.h: New file.
18108         * modules/nonblocking-pipe-tests: New file.
18109         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18110
18111 2011-04-16  Bruno Haible  <bruno@clisp.org>
18112
18113         gettext: Clarify the needed programmer actions.
18114         * modules/gettext (Notice): New field.
18115         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18116
18117 2011-04-16  Bruno Haible  <bruno@clisp.org>
18118
18119         strchrnul: Tweak last commit.
18120         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18121         bug.
18122         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18123         as in _GL_FUNCDECL_SYS.
18124         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18125         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18126
18127 2011-04-15  Eric Blake  <eblake@redhat.com>
18128
18129         strchrnul: work around cygwin bug
18130         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18131         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18132         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18133         * modules/string (Makefile.am): Substitute it.
18134         * lib/string.in.h (strchrnul): Use it.
18135
18136 2011-04-15  Bruno Haible  <bruno@clisp.org>
18137
18138         Don't require lib/stdio-write.c when only module 'stdio' is used.
18139         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18140         invocation.
18141         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18142
18143 2011-04-14  Bruno Haible  <bruno@clisp.org>
18144
18145         Support non-blocking pipe I/O in read() on native Windows.
18146         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
18147         (read): New declaration.
18148         * lib/read.c: New file.
18149         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
18150         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
18151         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
18152         vscanf): New declarations.
18153         * lib/stdio-read.c: New file.
18154         * m4/read.m4: New file.
18155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
18156         REPLACE_READ.
18157         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
18158         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18159         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
18160         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
18161         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
18162         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18163         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18164         * modules/read: New file.
18165         * modules/nonblocking (Files): Add lib/stdio-read.c.
18166         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
18167         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
18168         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18169         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18170         * modules/pread (Depends-on): Add read.
18171         * modules/safe-read (Depends-on): Likewise.
18172         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
18173         gets, scanf, vfscanf, vscanf): Verify signatures.
18174         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
18175         problem with non-blocking pipes.
18176         * doc/posix-functions/fgetc.texi: Likewise.
18177         * doc/posix-functions/fgets.texi: Likewise.
18178         * doc/posix-functions/fread.texi: Likewise.
18179         * doc/posix-functions/fscanf.texi: Likewise.
18180         * doc/posix-functions/getc.texi: Likewise.
18181         * doc/posix-functions/getchar.texi: Likewise.
18182         * doc/posix-functions/gets.texi: Likewise.
18183         * doc/posix-functions/scanf.texi: Likewise.
18184         * doc/posix-functions/vfscanf.texi: Likewise.
18185         * doc/posix-functions/vscanf.texi: Likewise.
18186
18187 2011-04-14  Bruno Haible  <bruno@clisp.org>
18188
18189         Support non-blocking pipe I/O in write() on native Windows.
18190         * lib/write.c (rpl_write): Split a write request that failed merely
18191         because the byte count was larger than the pipe buffer's size.
18192         * doc/posix-functions/write.texi: Mention the problem with large byte
18193         counts.
18194
18195 2011-04-14  Bruno Haible  <bruno@clisp.org>
18196
18197         wchar: Ensure that wchar_t gets defined on uClibc.
18198         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18199         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18200
18201 2011-04-13  Bruno Haible  <bruno@clisp.org>
18202
18203         safe-write, full-read: Avoid unnecessary compilation units.
18204         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18205         (Depends-on): Remove safe-read. Add ssize_t.
18206         * modules/full-read (Files): Add lib/full-write.c.
18207         (Depends-on): Add full-write.
18208
18209 2011-04-13  Bruno Haible  <bruno@clisp.org>
18210
18211         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18212         * modules/pwrite (Depends-on): Add 'write'.
18213
18214 2011-04-13  Bruno Haible  <bruno@clisp.org>
18215
18216         Support non-blocking pipe I/O in write() on native Windows.
18217         * lib/unistd.in.h (write): Enable replacement also if
18218         GNULIB_UNISTD_H_NONBLOCKING is 1.
18219         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18220         (rpl_write): When failing to write on a non-blocking pipe, change
18221         errno from ENOSPC to EAGAIN.
18222         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18223         putchar, puts, vfprintf, vprintf): Enable replacement also if
18224         GNULIB_STDIO_H_NONBLOCKING is 1.
18225         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18226         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18227         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18228         CALL_WITH_SIGPIPE_EMULATION.
18229         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18230         * m4/nonblocking.m4: New file.
18231         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18232         for non-blocking I/O support.
18233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18234         GNULIB_UNISTD_H_NONBLOCKING.
18235         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18236         required for non-blocking I/O support.
18237         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18238         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18239         lib/stdio-write.c, m4/asm-underscore.m4.
18240         (Depends-on): Add stdio, unistd.
18241         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
18242         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
18243         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
18244         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
18245         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
18246         problem with non-blocking pipes.
18247         * doc/posix-functions/fputc.texi: Likewise.
18248         * doc/posix-functions/fputs.texi: Likewise.
18249         * doc/posix-functions/fwrite.texi: Likewise.
18250         * doc/posix-functions/printf.texi: Likewise.
18251         * doc/posix-functions/putc.texi: Likewise.
18252         * doc/posix-functions/putchar.texi: Likewise.
18253         * doc/posix-functions/puts.texi: Likewise.
18254         * doc/posix-functions/vfprintf.texi: Likewise.
18255         * doc/posix-functions/vprintf.texi: Likewise.
18256         * doc/posix-functions/write.texi: Likewise.
18257
18258 2011-04-10  Jim Meyering  <meyering@redhat.com>
18259
18260         maint.mk: prohibit doubled words
18261         Detect them also when they're separated by a newline.
18262         There are 3 ways to customize it:
18263           - disable the test on a per file basis, as usual with rules using
18264             $(VC_LIST_EXCEPT)
18265           - replace the default doubled-word-selecting regexp (affects all files)
18266           - ignore a particular file-vs-doubled-word match
18267         I nearly used that last one to ignore the "is is" match in
18268         coreutils' NEWS file, since the text was "ls -is is ..."
18269         To do that, I would have added this line to cfg.mk:
18270           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18271         but it would have ignored any "is is" match in NEWS.
18272         Low probability, but still...
18273         Instead, I changed the text, slightly:
18274           -  ls -is is now consistent with ls -lis in ignoring values returned
18275           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18276         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18277         (prohibit_doubled_word_): Define.
18278         (sc_prohibit_doubled_word): New rule.
18279         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18280
18281 2011-04-10  Jim Meyering  <meyering@redhat.com>
18282
18283         maint: fix doubled-word typo in comment
18284         * m4/gethostname.m4: s/is is/it is/
18285         * m4/getdomainname.m4: Likewise.
18286
18287 2011-04-10  Jim Meyering  <meyering@redhat.com>
18288
18289         maint: remove doubled word: s/it it/it/
18290         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18291
18292 2011-04-10  Jim Meyering  <meyering@redhat.com>
18293
18294         maint.mk: remove useless semicolon and backslash
18295         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18296         semicolon and backslash.
18297
18298 2011-04-10  Bruno Haible  <bruno@clisp.org>
18299
18300         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18301         * modules/stdint-tests (Depends-on): Add wchar.
18302
18303 2011-04-10  Jim Meyering  <meyering@redhat.com>
18304
18305         maint: remove doubled words in comments, e.g., s/a a/a/
18306         * lib/strptime.c (day_of_the_week): s/the the/the/
18307         * tests/test-chown.h (test_chown): s/a a/a/
18308
18309         test-chown.h: correct a cast
18310         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18311         when the destination is a stat.st_gid.
18312
18313 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18314
18315         getaddrinfo: Fix test for sa_len member.
18316         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18317         include <sys/types.h> before <sys/socket.h>.
18318
18319 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18320
18321         maint: change "can not" to "cannot"
18322         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18323         boundaries.
18324
18325 2011-04-09  Jim Meyering  <meyering@redhat.com>
18326
18327         maint: change "a a" to "a"
18328         * tests/test-lchown.h (test_lchown): s/a a/a/
18329
18330         maint.mk: prohibit \<the the\>
18331         * top/maint.mk (sc_prohibit_the_the): New rule.
18332
18333         maint: fix "the the" in comment
18334         * lib/count-one-bits.h: s/the the/the/
18335
18336         maint: change "can not" to "cannot"
18337         But do not change the occurrences in maintain.texi or in
18338         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18339         * doc/gnulib-tool.texi: s/can not/cannot/
18340         * doc/posix-functions/accept.texi (accept): Likewise.
18341         * doc/posix-functions/socket.texi (socket): Likewise.
18342         * lib/mbrtowc.c: Likewise.
18343
18344         maint.mk: prohibit use of "can not"
18345         * top/maint.mk (sc_prohibit_can_not): New rule.
18346         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18347
18348 2011-04-09  Bruno Haible  <bruno@clisp.org>
18349
18350         careadlinkat: Guard against misuse of careadlinkatcwd.
18351         * lib/careadlinkat.c: Include <stdlib.h>.
18352         (careadlinkatcwd): Check that the fd argument is as expected.
18353
18354 2011-04-09  Bruno Haible  <bruno@clisp.org>
18355
18356         careadlinkat: Use common coding style.
18357         * lib/careadlinkat.c: Move gnulib includes after system includes.
18358
18359 2011-04-09  Bruno Haible  <bruno@clisp.org>
18360
18361         careadlinkat: Clarify specification.
18362         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18363         (careadlinkatcwd): Add comment.
18364         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18365
18366 2011-04-09  Bruno Haible  <bruno@clisp.org>
18367
18368         areadlinkat: Avoid link error on many platforms.
18369         * modules/areadlinkat (Depends-on): Add areadlink.
18370
18371 2011-04-09  Bruno Haible  <bruno@clisp.org>
18372
18373         allocator, careadlinkat: Fix double-inclusion guard.
18374         * lib/allocator.h: Fix double-inclusion guard.
18375         * lib/careadlinkat.h: Likewise.
18376
18377 2011-04-09  Bruno Haible  <bruno@clisp.org>
18378
18379         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18380         * lib/relocwrapper.c: Update dependencies hierarchy.
18381         * build-aux/install-reloc: Update list of files to be compiled.
18382         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18383         lib/allocator.[hc].
18384
18385 2011-04-08  Eric Blake  <eblake@redhat.com>
18386
18387         strftime: silence gnulib-tool warning
18388         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18389
18390 2011-04-08  Bruno Haible  <bruno@clisp.org>
18391
18392         verify: Fix syntax error with GCC 4.6 in C++ mode.
18393         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18394         (HAVE_STATIC_ASSERT): New macro.
18395         (verify_true, verify): Use 'static_assert' if it is supported and
18396         '_Static_assert' is not supported.
18397
18398 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18399
18400         allocator: New module.
18401         * modules/allocator, lib/allocator.c: New files.
18402         * lib/allocator.h (stdlib_allocator): New decl.
18403         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18404         Remove.  Do not include <stdlib.h>.
18405         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18406         * modules/careadlinkat (Files): Remove lib/allocator.h.
18407         (Depends-on): Add allocator.
18408
18409         stdlib: let modules use system malloc, realloc
18410         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18411         if !_GL_USE_STDLIB_ALLOC.
18412         (malloc, realloc): Limit this change to a smaller scope.
18413
18414         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18415         (malloc, realloc): Don't #undef; no longer needed.
18416         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18417         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18418         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18419         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18420         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18421         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18422         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18423         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18424
18425         careadlinkat: rename members to avoid problem
18426         * lib/allocator.h (struct allocator): Rename members from
18427         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18428         and realloc are #define'd.  Reported by Eric Blake in
18429         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18430         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18431
18432 2011-04-08  Eric Blake  <eblake@redhat.com>
18433
18434         nonblocking: reduce dependency
18435         * tests/test-nonblocking.c: Only test sockets when in use.
18436         * modules/nonblocking-tests (Depends-on): Drop socket.
18437         (Makefile.am): Link even if sockets are not present.
18438         * modules/pipe2-tests (Makefile.am): Likewise.
18439         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18440
18441         pipe2: fix O_NONBLOCK support on mingw
18442         * modules/pipe2 (Depends-on): Add nonblocking.
18443         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18444         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18445         * tests/test-nonblocking.c (main): Likewise.
18446         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18447
18448         fcntl-h: fix O_ACCMODE on cygwin
18449         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18450         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18451
18452         pipe-filter: drop O_NONBLOCK workarounds
18453         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18454         * modules/pipe-filter-ii (Depends-on): Likewise.
18455         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18456
18457         nonblocking: provide O_NONBLOCK for mingw
18458         * modules/nonblocking (Depends-on): Add open.
18459         (configure.ac): Set new witness macro.
18460         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18461         * modules/fcntl-h (Makefile.am): Substitute it.
18462         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18463         nonblocking module is in use.
18464         * lib/nonblocking.c: Adjust portability test.
18465         * lib/open.c (open): Don't let native open see gnulib flag.
18466         * tests/test-fcntl-h.c (main): Enhance test.
18467         * tests/test-open.h (test_open): Likewise.
18468         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18469
18470         careadlinkat: fix compilation error on mingw
18471         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18472         within struct allocator.
18473
18474 2011-04-06  Eric Blake  <eblake@redhat.com>
18475
18476         binary-io: relicense under LGPLv2+
18477         * modules/binary-io (License): Relax to LGPLv2+.
18478         Requested for libvirt, and required by pipe2.
18479
18480 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18481
18482         verify: use _Static_assert if available
18483         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18484         (verify_true, verify): Use it if available.  This generates better
18485         diagnostics with GCC 4.6.0 and later.
18486
18487 2011-04-05  Bruno Haible  <bruno@clisp.org>
18488
18489         Remove leftover generated .h files after config.status changed.
18490
18491         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18492         GL_GENERATE_ALLOCA_H.
18493         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18494         GL_GENERATE_ALLOCA_H evaluates to false.
18495
18496         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18497         GL_GENERATE_ARGZ_H.
18498         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18499         evaluates to false.
18500
18501         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18502         GL_GENERATE_BYTESWAP_H.
18503         * modules/byteswap (Makefile.am): Remove byteswap.h if
18504         GL_GENERATE_BYTESWAP_H evaluates to false.
18505
18506         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18507         GL_GENERATE_ERRNO_H.
18508         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18509         evaluates to false.
18510
18511         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18512         GL_GENERATE_FLOAT_H.
18513         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18514         evaluates to false.
18515
18516         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18517         GL_GENERATE_FNMATCH_H.
18518         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18519         GL_GENERATE_FNMATCH_H evaluates to false.
18520
18521         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18522         GL_GENERATE_GLOB_H.
18523         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18524         evaluates to false.
18525
18526         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18527         automake conditional GL_GENERATE_ICONV_H.
18528         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18529         evaluates to false.
18530
18531         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18532         GL_GENERATE_NETINET_IN_H.
18533         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18534         GL_GENERATE_NETINET_IN_H evaluates to false.
18535
18536         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18537         conditional GL_GENERATE_PTHREAD_H.
18538         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18539         * modules/pthread (Makefile.am): Remove pthread.h if
18540         GL_GENERATE_PTHREAD_H evaluates to false.
18541
18542         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18543         GL_GENERATE_SCHED_H.
18544         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18545         evaluates to false.
18546
18547         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18548         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18549         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18550         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18551
18552         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18553         GL_GENERATE_STDARG_H.
18554         * modules/stdarg (Makefile.am): Remove stdarg.h if
18555         GL_GENERATE_STDARG_H evaluates to false.
18556
18557         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18558         GL_GENERATE_STDBOOL_H.
18559         * modules/stdbool (Makefile.am): Remove stdbool.h if
18560         GL_GENERATE_STDBOOL_H evaluates to false.
18561
18562         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18563         conditional GL_GENERATE_STDDEF_H.
18564         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18565         * modules/stddef (Makefile.am): Remove stddef.h if
18566         GL_GENERATE_STDDEF_H evaluates to false.
18567
18568         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18569         GL_GENERATE_STDINT_H.
18570         * modules/stdint (Makefile.am): Remove stdint.h if
18571         GL_GENERATE_STDINT_H evaluates to false.
18572
18573         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18574         GL_GENERATE_SYSEXITS_H.
18575         * modules/sysexits (Makefile.am): Remove sysexits.h if
18576         GL_GENERATE_SYSEXITS_H evaluates to false.
18577
18578         Reported by Karl Berry and Ralf Wildenhues.
18579
18580 2011-04-05  Bruno Haible  <bruno@clisp.org>
18581
18582         Ensure to rebuild generated .h files when config.status has changed.
18583         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18584         config.status.
18585         * modules/ctype (Makefile.am): Likewise.
18586         * modules/dirent (Makefile.am): Likewise.
18587         * modules/errno (Makefile.am): Likewise.
18588         * modules/fcntl-h (Makefile.am): Likewise.
18589         * modules/float (Makefile.am): Likewise.
18590         * modules/getopt-posix (Makefile.am): Likewise.
18591         * modules/glob (Makefile.am): Likewise.
18592         * modules/iconv-h (Makefile.am): Likewise.
18593         * modules/inttypes (Makefile.am): Likewise.
18594         * modules/langinfo (Makefile.am): Likewise.
18595         * modules/locale (Makefile.am): Likewise.
18596         * modules/math (Makefile.am): Likewise.
18597         * modules/netdb (Makefile.am): Likewise.
18598         * modules/netinet_in (Makefile.am): Likewise.
18599         * modules/poll-h (Makefile.am): Likewise.
18600         * modules/pthread (Makefile.am): Likewise.
18601         * modules/pty (Makefile.am): Likewise.
18602         * modules/sched (Makefile.am): Likewise.
18603         * modules/search (Makefile.am): Likewise.
18604         * modules/selinux-h (Makefile.am): Likewise.
18605         * modules/signal (Makefile.am): Likewise.
18606         * modules/spawn (Makefile.am): Likewise.
18607         * modules/stdarg (Makefile.am): Likewise.
18608         * modules/stdbool (Makefile.am): Likewise.
18609         * modules/stddef (Makefile.am): Likewise.
18610         * modules/stdint (Makefile.am): Likewise.
18611         * modules/stdio (Makefile.am): Likewise.
18612         * modules/stdlib (Makefile.am): Likewise.
18613         * modules/string (Makefile.am): Likewise.
18614         * modules/strings (Makefile.am): Likewise.
18615         * modules/sys_file (Makefile.am): Likewise.
18616         * modules/sys_ioctl (Makefile.am): Likewise.
18617         * modules/sys_select (Makefile.am): Likewise.
18618         * modules/sys_socket (Makefile.am): Likewise.
18619         * modules/sys_stat (Makefile.am): Likewise.
18620         * modules/sys_time (Makefile.am): Likewise.
18621         * modules/sys_times (Makefile.am): Likewise.
18622         * modules/sys_utsname (Makefile.am): Likewise.
18623         * modules/sys_wait (Makefile.am): Likewise.
18624         * modules/sysexits (Makefile.am): Likewise.
18625         * modules/termios (Makefile.am): Likewise.
18626         * modules/time (Makefile.am): Likewise.
18627         * modules/unistd (Makefile.am): Likewise.
18628         * modules/wchar (Makefile.am): Likewise.
18629         * modules/wctype-h (Makefile.am): Likewise.
18630         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18631
18632 2011-04-05  Bruno Haible  <bruno@clisp.org>
18633
18634         pipe2: Relicense under LGPLv2+.
18635         * modules/pipe2 (License): Change to LGPLv2+.
18636         Requested by Eric Blake, for libvirt.
18637
18638 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18639
18640         bootstrap: compute gnulib_extra_files after updating build_aux
18641         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18642         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18643
18644 2011-04-05  Eric Blake  <eblake@redhat.com>
18645
18646         bootstrap: preserve git whitelist item sorting
18647         * build-aux/bootstrap (sort_patterns): New function.
18648         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18649
18650 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18651
18652         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18653         sc_space_tab check.
18654
18655 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18656
18657         areadlink, areadlinkat: rewrite in terms of careadlinkat
18658         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18659         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18660         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18661         (malloc, realloc): Remove #undefs.
18662         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18663         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18664         readlink, ssize_t, stdint, unistd.
18665         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18666         areadlink, stdint.
18667
18668         careadlinkat: new module
18669         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18670         * modules/careadlinkat: New files, written by me with
18671         a review and feedback from Ben Pfaff in
18672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18673
18674 2011-04-01  Bruno Haible  <bruno@clisp.org>
18675
18676         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18677         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18678         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18679         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18680         Reported by Bruce Korb <bruce.korb@gmail.com>.
18681
18682 2011-04-01  Bruno Haible  <bruno@clisp.org>
18683
18684         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18685         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18686         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18687         * modules/wcpcpy (Depends-on): Add extensions.
18688         * modules/wcpncpy (Depends-on): Likewise.
18689         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18690         systems.
18691         * doc/posix-functions/wcpncpy.texi: Likewise.
18692         * doc/posix-functions/wcwidth.texi: Likewise.
18693
18694 2011-03-31  Eric Blake  <eblake@redhat.com>
18695
18696         nonblocking: fix mingw test failures
18697         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18698         non-blocking flag on regular file.
18699         (get_nonblocking_flag): Set errno on invalid fd.
18700         * tests/test-nonblocking.c (main): Avoid test failure on
18701         directories if fchdir is not active.
18702         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18703
18704 2011-03-31  Bruno Haible  <bruno@clisp.org>
18705
18706         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18707         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18708         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18709         Reported by Simon Josefsson <simon@josefsson.org>.
18710
18711 2011-03-31  Bruno Haible  <bruno@clisp.org>
18712         and Eric Blake  <eblake@redhat.com>
18713
18714         nonblocking: new module
18715         * modules/nonblocking: New module.
18716         * modules/nonblocking-tests: Likewise.
18717         * lib/nonblocking.h: New file.
18718         * lib/nonblocking.c: Likewise.
18719         * tests/test-nonblocking.c: New test.
18720         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18721
18722 2011-03-30  Bruno Haible  <bruno@clisp.org>
18723
18724         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18725         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18726         instead of 'printf' format for GCC >= 4.4.
18727         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18728         (fprintf, printf, vfprintf, vprintf): Declare with
18729         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18730         the system's vfprintf() function.
18731         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18732
18733 2011-03-30  Eric Blake  <eblake@redhat.com>
18734
18735         passfd: fix scoping bug
18736         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18737         before sendmsg/recvmsg.
18738
18739         passfd: standardize coding conventions
18740         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18741         can be learned at compile time.
18742         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18743         ifdefs.
18744         (sendfd, recvfd): Follow gnulib code conventions.
18745
18746         passfd: fix incorrect sendmsg arguments
18747         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18748         incorrect msg_controllen value.
18749         * modules/passfd-tests (Depends-on): Check for alarm.
18750         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18751         Reported by Bastien ROUCARIES.
18752
18753 2011-03-30  Bruno Haible  <bruno@clisp.org>
18754
18755         c-strcasestr: Relicense under LGPLv2+.
18756         * modules/c-strcasestr (License): Change to LGPLv2+.
18757         Requested by Eric Blake, for libvirt.
18758
18759 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18760
18761         * users.txt: Add libidn2.  Fix libtasn1 link.
18762
18763 2011-03-30  Jim Meyering  <meyering@redhat.com>
18764
18765         tests: readlink* ("",... fails with EINVAL on newer kernels
18766         readlink and readlinkat have typically failed with ENOENT for
18767         the invalid, empty file name,  "".  However, with the advent
18768         of linux-2.6.39, they fail with EINVAL.
18769         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18770         when operating on the empty file name.
18771         * tests/test-readlink.h (test_readlink): Likewise.
18772
18773 2011-03-29  Bruno Haible  <bruno@clisp.org>
18774
18775         Relicense some modules under LGPLv2+, for libidn2.
18776         * modules/array-mergesort (License): Change to LGPLv2+.
18777         * modules/c-strcaseeq (License): Likewise.
18778         * modules/striconveh (License): Likewise.
18779         * modules/striconveha (License): Likewise.
18780         * modules/uniconv/base (License): Likewise.
18781         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18782         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18783         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18784         * modules/unictype/base (License): Likewise.
18785         * modules/unictype/bidiclass-of (License): Likewise.
18786         * modules/unictype/category-M (License): Likewise.
18787         * modules/unictype/category-none (License): Likewise.
18788         * modules/unictype/category-of (License): Likewise.
18789         * modules/unictype/category-test (License): Likewise.
18790         * modules/unictype/category-test-withtable (License): Likewise.
18791         * modules/unictype/combining-class (License): Likewise.
18792         * modules/unictype/joiningtype-of (License): Likewise.
18793         * modules/unictype/scripts (License): Likewise.
18794         * modules/uninorm/base (License): Likewise.
18795         * modules/uninorm/canonical-decomposition (License): Likewise.
18796         * modules/uninorm/composition (License): Likewise.
18797         * modules/uninorm/decompose-internal (License): Likewise.
18798         * modules/uninorm/decomposition-table (License): Likewise.
18799         * modules/uninorm/nfc (License): Likewise.
18800         * modules/uninorm/nfd (License): Likewise.
18801         * modules/uninorm/u32-normalize (License): Likewise.
18802         * modules/unistr/base (License): Likewise.
18803         * modules/unistr/u32-cpy (License): Likewise.
18804         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18805         * modules/unistr/u32-to-u8 (License): Likewise.
18806         * modules/unistr/u32-uctomb (License): Likewise.
18807         * modules/unistr/u8-check (License): Likewise.
18808         * modules/unistr/u8-mblen (License): Likewise.
18809         * modules/unistr/u8-mbtouc (License): Likewise.
18810         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18811         * modules/unistr/u8-mbtoucr (License): Likewise.
18812         * modules/unistr/u8-prev (License): Likewise.
18813         * modules/unistr/u8-strlen (License): Likewise.
18814         * modules/unistr/u8-to-u32 (License): Likewise.
18815         * modules/unistr/u8-uctomb (License): Likewise.
18816         * modules/unitypes (License): Likewise.
18817         Requested by Simon Josefsson.
18818
18819 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18820
18821         lib-symbol-visibility: Add a notice.
18822         * modules/lib-symbol-visibility (Notice): New field.
18823
18824 2011-03-29  Bruno Haible  <bruno@clisp.org>
18825
18826         getaddrinfo: Doc fix.
18827         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18828         section "fixed in Gnulib".
18829
18830 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18831
18832         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18833         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18834
18835 2011-03-26  Bruno Haible  <bruno@clisp.org>
18836
18837         unictype/property-byname: Reduce the number of load-time relocations.
18838         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18839         (UC_PROPERTY_INDEX_*): New enumeration values.
18840         (uc_property_byname): Convert an index from the lookup table to an
18841         uc_property_t.
18842         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18843         values.
18844
18845 2011-03-26  Bruno Haible  <bruno@clisp.org>
18846
18847         unictype/property-byname: Allow omitted word separators and aliases.
18848         * lib/unictype/pr_byname.gperf: Add property names without word
18849         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18850         for 'space'.
18851
18852 2011-03-26  Bruno Haible  <bruno@clisp.org>
18853
18854         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18855         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18856         also hyphens to space.
18857         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18858         without spaces.
18859         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18860
18861 2011-03-26  Bruno Haible  <bruno@clisp.org>
18862
18863         unictype/joiningtype-byname: Recognize long names as well.
18864         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18865         a long name.
18866         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18867         unictype/joiningtype_byname.h.
18868         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18869         * lib/unictype/joiningtype_byname.gperf: New file.
18870         * modules/unictype/joiningtype-byname (Files): Add
18871         lib/unictype/joiningtype_byname.gperf.
18872         (Depends-on): Add gperf.
18873         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18874         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18875         long names.
18876
18877         Tests for module 'unictype/joiningtype-longname'.
18878         * modules/unictype/joiningtype-longname-tests: New file.
18879         * tests/unictype/test-joiningtype_longname.c: New file.
18880
18881         New module 'unictype/joiningtype-longname'.
18882         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18883         * lib/unictype/joiningtype_longname.c: New file.
18884         * modules/unictype/joiningtype-longname: New file.
18885         * modules/unictype/joiningtype-all (Depends-on): Add
18886         unictype/joiningtype-longname.
18887
18888 2011-03-26  Bruno Haible  <bruno@clisp.org>
18889
18890         unictype/bidiclass-byname: Recognize long names as well.
18891         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18892         name.
18893         * lib/unictype/bidi_byname.c: Include <string.h>,
18894         unictype/bidi_byname.h.
18895         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18896         * lib/unictype/bidi_byname.gperf: New file.
18897         * modules/unictype/bidiclass-byname (Files): Add
18898         lib/unictype/bidi_byname.gperf.
18899         (Depends-on): Add gperf.
18900         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18901         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18902         long names.
18903
18904         Tests for module 'unictype/bidiclass-longname'.
18905         * modules/unictype/bidiclass-longname-tests: New file.
18906         * tests/unictype/test-bidi_longname.c: New file.
18907
18908         New module 'unictype/bidiclass-longname'.
18909         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18910         * lib/unictype/bidi_longname.c: New file.
18911         * modules/unictype/bidiclass-longname: New file.
18912         * modules/unictype/bidiclass-all (Depends-on): Add
18913         unictype/bidiclass-longname.
18914
18915 2011-03-26  Bruno Haible  <bruno@clisp.org>
18916
18917         unictype/bidi*: Rename modules.
18918         * modules/unictype/bidiclass-all: Renamed from
18919         modules/unictype/bidicategory-all.
18920         * modules/unictype/bidiclass-name: Renamed from
18921         modules/unictype/bidiclass-name.
18922         (Description): Update.
18923         * modules/unictype/bidiclass-name-tests: Renamed from
18924         modules/unictype/bidicategory-name-tests.
18925         * modules/unictype/bidiclass-byname: Renamed from
18926         modules/unictype/bidicategory-byname.
18927         (Description): Update.
18928         * modules/unictype/bidiclass-byname-tests: Renamed from
18929         modules/unictype/bidicategory-byname-tests.
18930         * modules/unictype/bidiclass-of: Renamed from
18931         modules/unictype/bidicategory-of.
18932         (Description): Update.
18933         * modules/unictype/bidiclass-of-tests: Renamed from
18934         modules/unictype/bidicategory-of-tests.
18935         * modules/unictype/bidiclass-test: Renamed from
18936         modules/unictype/bidicategory-test.
18937         (Description): Update.
18938         * modules/unictype/bidiclass-test-tests: Renamed from
18939         modules/unictype/bidicategory-test-tests.
18940         * modules/unictype/bidicategory-all: New file, a simple redirection.
18941         * modules/unictype/bidicategory-name: Likewise.
18942         * modules/unictype/bidicategory-byname: Likewise.
18943         * modules/unictype/bidicategory-of: Likewise.
18944         * modules/unictype/bidicategory-test: Likewise.
18945         * modules/unictype/property-bidi-* (Dependencies): Update.
18946         * lib/unictype/bidi_*.c: Update comment.
18947
18948 2011-03-26  Bruno Haible  <bruno@clisp.org>
18949
18950         unictype/bidi*: Rename functions, part 2.
18951         * modules/unictype/bidicategory-name (configure.ac): Update required
18952         libunistring version.
18953         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18954
18955 2011-03-25  Bruno Haible  <bruno@clisp.org>
18956
18957         New module 'unictype/combining-class-all'.
18958         * modules/unictype/combining-class-all: New file.
18959
18960         Tests for module 'unictype/combining-class-byname'.
18961         * modules/unictype/combining-class-byname-tests: New file.
18962         * tests/unictype/test-combiningclass_byname.c: New file.
18963
18964         New module 'unictype/combining-class-byname'.
18965         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18966         * lib/unictype/combiningclass_byname.c: New file.
18967         * lib/unictype/combiningclass_byname.gperf: New file.
18968         * modules/unictype/combining-class-byname: New file.
18969
18970         Tests for module 'unictype/combining-class-longname'.
18971         * modules/unictype/combining-class-longname-tests: New file.
18972         * tests/unictype/test-combiningclass_longname.c: New file.
18973
18974         New module 'unictype/combining-class-longname'.
18975         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18976         * lib/unictype/combiningclass_longname.c: New file.
18977         * modules/unictype/combining-class-longname: New file.
18978
18979         Tests for module 'unictype/combining-class-name'.
18980         * modules/unictype/combining-class-name-tests: New file.
18981         * tests/unictype/test-combiningclass_name.c: New file.
18982
18983         New module 'unictype/combining-class-name'.
18984         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18985         * lib/unictype/combiningclass_name.c: New file.
18986         * modules/unictype/combining-class-name: New file.
18987
18988 2011-03-25  Bruno Haible  <bruno@clisp.org>
18989
18990         unictype/combining-class: Rename source files.
18991         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18992         of unictype/combining.h.
18993         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18994         Update.
18995         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18996         * modules/unictype/combining-class (Description): Fix.
18997         (Files, Makefile.am): Update.
18998         * tests/unictype/test-combiningclass.c: Renamed from
18999         tests/unictype/test-combining.c.
19000         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
19001
19002 2011-03-25  Bruno Haible  <bruno@clisp.org>
19003
19004         unictype: Update list of canonical combining classes.
19005         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
19006
19007 2011-03-25  Bruno Haible  <bruno@clisp.org>
19008
19009         unictype/category-byname: Recognize long names as well.
19010         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19011         a long name.
19012         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19013         unictype/categ_byname.h.
19014         (UC_CATEGORY_INDEX_*): New enumeration values.
19015         (uc_general_category_byname): Use uc_general_category_lookup and
19016         convert from index to value.
19017         * lib/unictype/categ_byname.gperf: New file.
19018         * modules/unictype/category-byname (Files): Add
19019         lib/unictype/categ_byname.gperf.
19020         (Depends-on): Add gperf.
19021         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19022         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19023         long names.
19024
19025         Tests for module 'unictype/category-longname'.
19026         * modules/unictype/category-longname-tests: New file.
19027         * tests/unictype/test-categ_longname.c: New file.
19028
19029         New module 'unictype/category-longname'.
19030         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19031         * lib/unictype/categ_longname.c: New file.
19032         * modules/unictype/category-longname: New file.
19033         * modules/unictype/category-all (Depends-on): Add it.
19034
19035 2011-03-25  Bruno Haible  <bruno@clisp.org>
19036
19037         Tests for module 'unictype/category-LC'.
19038         * modules/unictype/category-LC-tests: New file.
19039         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19040
19041         New module 'unictype/category-LC'.
19042         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19043         (UC_CATEGORY_LC): New declaration.
19044         (UC_CASED_LETTER): New macro.
19045         * lib/gen-uni-tables.c (is_category_LC): New function.
19046         (output_categories): Also handle category LC.
19047         (UC_CATEGORY_MASK_LC): New enumeration value.
19048         (general_category_byname): Also handle category LC.
19049         * lib/unictype/categ_LC.c: New file.
19050         * lib/unictype/categ_LC.h: New file, automatically generated.
19051         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19052         category LC.
19053         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19054         * modules/unictype/category-LC: New file.
19055         * modules/unictype/category-byname (Depends-on): Add
19056         unictype/category-LC.
19057         * modules/unictype/category-all (Depends-on): Likewise.
19058
19059 2011-03-25  Eric Blake  <eblake@redhat.com>
19060
19061         xmalloc: revert yesterday's regression
19062         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19063         realloc's underlying behavior (allowing allocation of zero-size
19064         objects, especially if malloc-gnu is also in use).
19065
19066 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19067
19068         maint.mk: add missing version to VC-tag
19069         * top/maint.mk: git tag was missing actual tag name; add it.
19070
19071         valgrind: do leak checking, and exit with code 1 on error (not 0)
19072         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19073         to VALGRIND.
19074
19075 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19076
19077         posix-modules: say what it does.
19078         * posix-modules: Add a line to the --help output saying what it does.
19079
19080 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19081
19082         xmalloc: Do not leak if underlying realloc is C99 compatible.
19083         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19084         This avoids a leak on C99-based systems.  See
19085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19086
19087 2011-03-24  Eric Blake  <eblake@redhat.com>
19088
19089         realloc: document portability problem
19090         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19091         passing 0 size to realloc.
19092
19093 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19094
19095         doc: update users.txt
19096         * users.txt: Add cvsps, tmpwatch
19097
19098 2011-03-23  Matt Rice  <ratmice@gmail.com>
19099
19100         doc: update users.txt
19101         * users.txt: Add gdb.
19102
19103 2011-03-23  Jim Meyering  <meyering@redhat.com>
19104
19105         doc: update users.txt
19106         Looking through matches up to the following URL (there are still
19107         several more pages), I found several projects that use gnulib:
19108         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19109         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19110         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19111
19112 2011-03-22  Bruno Haible  <bruno@clisp.org>
19113
19114         unictype/bidi*: Rename functions.
19115         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19116         uc_bidi_class, uc_is_bidi_class): New declarations.
19117         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19118         uc_bidi_category_byname.
19119         (uc_bidi_category_byname): New function.
19120         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19121         u_bidi_category_name.
19122         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19123         (uc_bidi_category_name): New function.
19124         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19125         uc_bidi_category.
19126         (uc_bidi_category): New function.
19127         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19128         uc_is_bidi_category. Invoke uc_bidi_class.
19129         (uc_is_bidi_category): New function.
19130         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19131         instead of uc_bidi_category_byname.
19132         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19133         instead of uc_bidi_category_name.
19134         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19135         uc_bidi_category.
19136         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19137         instead of uc_is_bidi_category.
19138
19139 2011-03-21  Bruno Haible  <bruno@clisp.org>
19140
19141         New module 'unictype/joininggroup-all'.
19142         * modules/unictype/joininggroup-all: New file.
19143
19144         Tests for module 'unictype/joininggroup-of'.
19145         * modules/unictype/joininggroup-of-tests: New file.
19146         * tests/unictype/test-joininggroup_of.c: New file.
19147         * tests/unictype/test-joininggroup_of.h: New file, automatically
19148         generated by gen-uni-tables.
19149
19150         New module 'unictype/joininggroup-of'.
19151         * modules/unictype/joininggroup-of: New file.
19152         * lib/unictype/joininggroup_of.c: New file.
19153         * lib/unictype/joininggroup_of.h: New file, automatically generated by
19154         gen-uni-tables.
19155
19156         Tests for module 'unictype/joininggroup-byname'.
19157         * modules/unictype/joininggroup-byname-tests: New file.
19158         * tests/unictype/test-joininggroup_byname.c: New file.
19159
19160         New module 'unictype/joininggroup-byname'.
19161         * modules/unictype/joininggroup-byname: New file.
19162         * lib/unictype/joininggroup_byname.c: New file.
19163         * lib/unictype/joininggroup_byname.gperf: New file.
19164
19165         Tests for module 'unictype/joininggroup-name'.
19166         * modules/unictype/joininggroup-name-tests: New file.
19167         * tests/unictype/test-joininggroup_name.c: New file.
19168
19169         New module 'unictype/joininggroup-name'.
19170         * modules/unictype/joininggroup-name: New file.
19171         * lib/unictype/joininggroup_name.c: New file.
19172         * lib/unictype/joininggroup_name.h: New file.
19173
19174         New module 'unictype/joiningtype-all'.
19175         * modules/unictype/joiningtype-all: New file.
19176
19177         Tests for module 'unictype/joiningtype-of'.
19178         * modules/unictype/joiningtype-of-tests: New file.
19179         * tests/unictype/test-joiningtype_of.c: New file.
19180         * tests/unictype/test-joiningtype_of.h: New file, automatically
19181         generated by gen-uni-tables.
19182
19183         New module 'unictype/joiningtype-of'.
19184         * modules/unictype/joiningtype-of: New file.
19185         * lib/unictype/joiningtype_of.c: New file.
19186         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19187         gen-uni-tables.
19188
19189         Tests for module 'unictype/joiningtype-byname'.
19190         * modules/unictype/joiningtype-byname-tests: New file.
19191         * tests/unictype/test-joiningtype_byname.c: New file.
19192
19193         New module 'unictype/joiningtype-byname'.
19194         * modules/unictype/joiningtype-byname: New file.
19195         * lib/unictype/joiningtype_byname.c: New file.
19196
19197         Tests for module 'unictype/joiningtype-name'.
19198         * modules/unictype/joiningtype-name-tests: New file.
19199         * tests/unictype/test-joiningtype_name.c: New file.
19200
19201         New module 'unictype/joiningtype-name'.
19202         * modules/unictype/joiningtype-name: New file.
19203         * lib/unictype/joiningtype_name.c: New file.
19204
19205         unictype: Add support for Arabic shaping properties.
19206         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19207         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19208         declarations.
19209         (UC_JOINING_GROUP_*): New enumeration values.
19210         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19211         declarations.
19212         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19213         (unicode_joining_type): New variable.
19214         (UC_JOINING_GROUP_*): New enumeration values.
19215         (unicode_joining_group): New variable.
19216         (fill_arabicshaping, joining_type_as_c_identifier,
19217         output_joining_type_test, output_joining_type,
19218         joining_group_as_c_identifier, output_joining_group_test,
19219         output_joining_group): New functions.
19220         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19221         fill_arabicshaping and output_joining_type_test, output_joining_type,
19222         output_joining_group_test, output_joining_group.
19223         Reported by Simon Josefsson.
19224
19225 2011-03-21  Jim Meyering  <meyering@redhat.com>
19226
19227         strftime: fix a bug in yesterday's change
19228         * lib/strftime.c (add): Accommodate width's initial value of -1.
19229         Otherwise, nstrftime would copy uninitialized data into
19230         the result buffer.
19231
19232 2011-03-21  Jim Meyering  <meyering@redhat.com>
19233
19234         tests: add strftime-tests module
19235         * tests/test-strftime.c: New file.
19236         * modules/strftime-tests: New module.
19237
19238 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19239
19240         strftime: don't assume a byte count fits in 'int'
19241         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
19242         found this problem by static analysis, using gcc -Wstrict-overflow
19243         (GCC 4.5.2, x86-64).  This reported an optimization that depended
19244         on an integer overflow having undefined behavior, but it turns out
19245         that the argument is a size, which might not fit in 'int' anyway,
19246
19247 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19248
19249         stdio: don't require ignore_value around fwrite
19250
19251         This patch works around libc bug 11959
19252         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
19253         Without this patch, applications must often write
19254         ignore_value (fwrite (...)) even though the ignore_value is
19255         not helpful here.  It's common to write many objects, using
19256         fwrite/printf/etc., and then use ferror to detect output error.
19257
19258         I considered making this patch optional, but decided against it,
19259         because libc is obviously being inconsistent here: there is no
19260         reason libc should insist that user code must inspect fwrite
19261         return's value without also insisting that it inspect printf's,
19262         putchar's, etc.  If user code wants to have a strict style where
19263         all these functions' values are checked (so that ferror need not
19264         be checked), we could add support for that style in a new gnulib
19265         module, but in the meantime it's better to be consistent and to
19266         support common usage.
19267
19268         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19269         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19270         that we are compiling in checking mode, and if not C++, and
19271         if not already wrapping fwrite for some other reason.
19272         (fwrite): #define to rpl_fwrite if the latter is defined.
19273
19274 2011-03-20  Bruno Haible  <bruno@clisp.org>
19275
19276         verror: Fix compilation error introduced on 2011-02-13.
19277         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19278         instead of __attribute__.
19279         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19280
19281 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19282             Bruno Haible  <bruno@clisp.org>
19283
19284         socklen: do not depend on sys_socket
19285         While trying to modify Emacs to use gnulib's socklen module,
19286         I discovered a circular dependency: socklen depends on sys_socket
19287         and vice versa.  Emacs can use socklen, but it does not need
19288         sys_socket because it has its own substitute for sys/socket.h.
19289         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19290         gl_TYPE_SOCKLEN_T.
19291         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19292         gl_PREREQ_SYS_H_SOCKET.
19293         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19294         gl_PREREQ_SYS_H_SOCKET.
19295         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19296         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19297         * modules/socklen (Depends-on): Do not depend on sys_socket.
19298         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19299
19300 2011-03-20  Jim Meyering  <meyering@redhat.com>
19301
19302         maint.mk: sort file names *after* new transformation
19303         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19304         prefix would have led to an unwarranted failure in GNU parted.
19305         Sort after that transformation.
19306
19307 2011-03-19  Jim Meyering  <meyering@redhat.com>
19308
19309         maint.mk: fix po-file syntax-check rule
19310         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19311         Patch by Bruno Haible.
19312
19313 2011-03-19  Bruno Haible  <bruno@clisp.org>
19314
19315         socklen: Update comment.
19316         * m4/socklen.m4: Update comment about platforms.
19317
19318 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19319             Bruno Haible  <bruno@clisp.org>
19320
19321         inet_ntop, inet_pton: Simplify.
19322         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19323         documented to provide socklen_t and we already depend on sys_socket.
19324         * modules/inet_pton (Depends-on): Likewise.
19325         * lib/arpa_inet.in.h: Adjust comment.
19326
19327 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19328             Bruno Haible  <bruno@clisp.org>
19329
19330         netdb: Simplify.
19331         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19332         documented to provide socklen_t and we already depend on sys_socket.
19333         * lib/netdb.in.h: Adjust comment.
19334
19335 2011-03-19  Bruno Haible  <bruno@clisp.org>
19336
19337         sys_socket, netdb: Document problem with socklen_t.
19338         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19339         platforms.
19340         * doc/posix-headers/netdb.texi: Likewise.
19341
19342 2011-03-18  Eric Blake  <eblake@redhat.com>
19343
19344         maint.mk: let po check work in VPATH build
19345         * top/maint.mk (po_file): Allow cfg.mk override.
19346         (sc_po_check): Allow VPATH use.
19347         Reported by Jiri Denemark.
19348
19349 2011-03-16  Jim Meyering  <meyering@redhat.com>
19350
19351         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19352         Before, you would have had to create one .x-sc_ file per rule in order
19353         to exempt offending files.  Now, you may instead use a Make variable --
19354         usually defined in cfg.mk -- whose name identifies the affected rule.
19355         * top/maint.mk (_sc_excl): Define.
19356         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19357         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19358
19359 2011-03-13  Bruno Haible  <bruno@clisp.org>
19360
19361         ignore-value tests: Avoid warnings.
19362         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19363         empty for gcc < 3.4.
19364
19365 2011-03-13  Bruno Haible  <bruno@clisp.org>
19366
19367         passfd: Fix link error on Solaris.
19368         * modules/passfd (Description): Correct.
19369         (Depends-on): Add socketlib.
19370         (Link): New section.
19371         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19372
19373 2011-03-13  Bruno Haible  <bruno@clisp.org>
19374
19375         passfd: Fix link error on AIX 5.2.
19376         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19377
19378 2011-03-13  Bruno Haible  <bruno@clisp.org>
19379
19380         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19381         * lib/sys_socket.in.h: Include <stddef.h>.
19382         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19383         CMSG_FIRSTHDR. Remove unused variable.
19384
19385 2011-03-13  Bruno Haible  <bruno@clisp.org>
19386
19387         passfd: Fix compilation error on OpenBSD.
19388         * lib/passfd.c: Include <sys/uio.h>.
19389
19390 2011-03-13  Bruno Haible  <bruno@clisp.org>
19391
19392         passfd test: Fix warnings.
19393         * tests/test-passfd.c: Include <sys/wait.h>.
19394         (main): Fix typo.
19395
19396 2011-03-13  Bruno Haible  <bruno@clisp.org>
19397
19398         passfd module, part 4, tweaks.
19399         * tests/test-passfd.c: Reorder includes.
19400         (main): Fix perror and printf calls.
19401
19402 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19403
19404         passfd module, part 4.
19405         * modules/passfd-tests: New file.
19406         * tests/test-passfd.c: New file.
19407
19408 2011-03-13  Jim Meyering  <meyering@redhat.com>
19409
19410         Makefile: rely on GNU make; derive syntax-check rule names
19411         Rather than requiring that each sc_ rule be listed as a dependent
19412         of "check", use features of GNU make to derive the list.
19413         * Makefile (syntax-check-rules): Define.
19414         (check): Depend on the new variable, not the hard-coded list.
19415
19416 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19417             Bruno Haible  <bruno@clisp.org>
19418
19419         passfd module, part 3.
19420         * lib/passfd.h (recvfd): Add a flags argument.
19421         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19422         (recvfd): Add a flags argument.
19423         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19424         exists.
19425         * modules/passfd (Depends-on): Add cloexec.
19426         Suggested by Eric Blake.
19427
19428 2011-03-13  Bruno Haible  <bruno@clisp.org>
19429
19430         passfd module, part 2, tweaks.
19431         * modules/passfd (Files): Reorder.
19432         (Depends-on): Remove errno.
19433         (Include): Remove <sys/socket.h>, <sys/un.h>.
19434         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19435         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19436         specification header. Include <sys/socket.h> always. Don't include
19437         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19438         (sendfd): Clarify that it sets errno when it fails.
19439         (recvfd): Fix specification.
19440
19441 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19442
19443         passfd module, part 2.
19444         * modules/passfd: New file.
19445         * lib/passfd.h: New file.
19446         * lib/passfd.c: New file.
19447
19448 2011-03-12  Bruno Haible  <bruno@clisp.org>
19449
19450         wcswidth, mbswidth: Avoid integer overflow.
19451         * lib/wcswidth.c: Include <limits.h>.
19452         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19453         * lib/mbswidth.c: Include <limits.h>.
19454         (mbsnwidth): Avoid 'int' overflow.
19455         Reported by Jim Meyering.
19456
19457 2011-03-12  Bruno Haible  <bruno@clisp.org>
19458
19459         futimens, utimensat: Avoid endless recursion on Solaris 10.
19460         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19461         Solaris.
19462         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19463         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19464
19465 2011-03-11  Jim Meyering  <meyering@redhat.com>
19466
19467         maint.mk: relax a regexp to accommodate other formatting styles
19468         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19469         between "ngettext" and the following "(".
19470
19471 2011-03-11  Pádraig Brady <P@draigBrady.com>
19472
19473         maint.mk: suppress a false positive warning
19474         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19475         diagnostics are marked with ngettext.
19476
19477 2011-03-10  Eric Blake  <eblake@redhat.com>
19478
19479         wchar: add explicit dependencies, for Tru64
19480         * modules/mbmemcasecoll (Depends-on): Add wchar.
19481         * modules/mbtowc (Depends-on): Likewise.
19482         * modules/vasnprintf (Depends-on): Likewise.
19483         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19484         * modules/wctomb (Depends-on): Likewise.
19485         Reported by Peter O'Gorman.
19486
19487 2011-03-08  Bruno Haible  <bruno@clisp.org>
19488
19489         passfd module, part 1, tweaks.
19490         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19491         Improve indentation. Improve AC_MSG_CHECKING messages.
19492         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19493         gl_SOCKET_FAMILIES.
19494
19495 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19496
19497         passfd module, part 1.
19498         * m4/afunix.m4: New file.
19499         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19500         sockets.
19501
19502 2011-03-08  Bruno Haible  <bruno@clisp.org>
19503
19504         regex-quote: New API.
19505         * lib/regex-quote.h: Include <stdbool.h>.
19506         (struct regex_quote_spec): New type.
19507         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19508         New declarations.
19509         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19510         'const struct regex_quote_spec *' argument.
19511         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19512         (pcre_special): New constant.
19513         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19514         New functions.
19515         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19516         'const struct regex_quote_spec *' argument.
19517         * modules/regex-quote (Depends-on): Add stdbool.
19518         * tests/test-regex-quote.c (check): Update for new API. Add test for
19519         anchored results.
19520         * NEWS: Mention the API change.
19521         Reported by Reuben Thomas and Eric Blake.
19522
19523 2011-03-06  Bruno Haible  <bruno@clisp.org>
19524
19525         regex-quote: Fix creation of POSIX extended regular expressions.
19526         * lib/regex-quote.c (ere_special): Add grouping and alternation
19527         operators.
19528
19529 2011-03-05  Bruno Haible  <bruno@clisp.org>
19530
19531         doc: Improve doc regarding autopoint vs. gnulib.
19532         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19533         disable autopoint while running autoreconf.
19534         Suggested by Ralf Wildenhues.
19535
19536 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19537
19538         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19539         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19540
19541 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19542
19543         parse-duration: remove xalloc.h dependency
19544         * lib/parse-duration.c (parse_period): handle NULL return from
19545         strdup instead of calling xstrdup().
19546         * modules/parse-duration: remove "xalloc" dependency
19547
19548 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19549
19550         bootstrap: honor m4_base when running aclocal
19551         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19552
19553 2011-03-02  Jim Meyering  <meyering@redhat.com>
19554
19555         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19556         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19557         on request from Matt Booth.
19558
19559 2011-03-01  Eric Blake  <eblake@redhat.com>
19560
19561         test-link: work on Hurd
19562         * tests/test-link.h (test_link): Hurd rejects linking directories
19563         with EISDIR instead of the POSIX-mandated EPERM.
19564
19565 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19566
19567         stdio: simplify by moving files to printf-posix, sigpipe
19568         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19569         since this symbol is needed only if printf is replaced.
19570         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19571         Require gl_ASM_SYMBOL_PREFIX.
19572         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19573         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19574         (Depends-on): Add 'raise'.
19575         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19576         * modules/stdio (Files): Remove lib/stdio-write.c,
19577         m4/asm-underscore.m4.
19578         (Depends-on): Remove 'raise'.
19579
19580         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19581         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19582         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19583         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19584
19585 2011-02-28  Bruno Haible  <bruno@clisp.org>
19586
19587         localcharset: Assume ANSI C behaviour of free().
19588         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19589         calling free().
19590         Suggested by Simon Josefsson <simon@josefsson.org>.
19591
19592 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19593             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19594             Bruno Haible  <bruno@clisp.org>  (tiny change)
19595
19596         On Cygwin, use /proc file system instead of win32 API.
19597         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19598         Win32 file names.
19599         (DllMain): Simplify by removing Cygwin specific code.
19600         (find_shared_library_fullname): Use Linux specific implementation also
19601         for Cygwin.
19602         (get_shared_library_fullname): Update accordingly.
19603         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19604         Win32 file names.
19605         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19606         Cygwin specific code.
19607
19608 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19609             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19610
19611         Fix OpenMP flag detection for various Fortran compilers.
19612         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19613         OpenMP-conditional compilation construct, to force compile
19614         failure with missing OpenMP flag.
19615         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19616
19617 2011-02-25  Eric Blake  <eblake@redhat.com>
19618
19619         strstr: expand test coverage
19620         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19621         compilation.
19622         * tests/test-memmem.c (main): Duplicate tests.
19623         * tests/test-strcasestr.c (main): Likewise.
19624         * tests/test-c-strcasestr.c (main): Likewise.
19625
19626 2011-02-25  Jim Meyering  <meyering@redhat.com>
19627
19628         maint.mk: detect missing-NL-at-EOF, too
19629         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19630         it also detects when a file lacks a newline at EOF.
19631         (require_exactly_one_NL_at_EOF_): Renamed from
19632         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19633         since people may well have .x-sc_... file names tied to the
19634         existing name.  Suggested by Eric Blake.
19635
19636 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19637
19638         dirname: move m4/dos.m4 functionality into lib/dosname.h
19639
19640         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19641         extracts symbols from it, puts them into config.h; but it's much
19642         easier to use the symbols directly.  filename.h already does this,
19643         but it disagrees with dos.m4 in some respects.  This patch
19644         introduces a different include file dosname.h that packages up
19645         dos.m4, and then later we can work on merging filename.h and
19646         dosname.h.  Applications that need only the easy-to-configure
19647         symbols should consider including dosname.h rather than dirname.h.
19648         * NEWS: Mention incompatible changes.
19649         * m4/dos.m4: Remove.
19650         * lib/dosname.h, modules/dosname: New files.
19651         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19652         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19653         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19654         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19655         Include dosname.h, not dirname.h.
19656         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19657         Include dosname.h, for definitions of symbols like ISSLASH
19658         that used to be in config.h.
19659         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19660         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19661         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19662         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19663         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19664         * modules/rmdir (Files): Likewise.
19665         * modules/stat (Files): Likewise.
19666         * modules/unlink (Files): Likewise.
19667         * modules/dirname-lgpl (Depends-on): Add dosname.
19668         * modules/lstat (Depends-on): Likewise.
19669         * modules/openat (Depends-on): Likewise.
19670         * modules/rmdir (Depends-on): Likewise.
19671         * modules/savewd (Depends-on): Likewise.
19672         * modules/stat (Depends-on): Likewise.
19673         * modules/unlink (Depends-on): Likewise.
19674         * modules/openat (Depends-on): Remove dirname-lgpl.
19675         * modules/savewd (Depends-on): Likewise.
19676         * tests/test-dirname.c: Do not use removed symbols like
19677         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19678         the remaining symbols, e.g., ISSLASH ('\\').
19679
19680 2011-02-25  Eric Blake  <eblake@redhat.com>
19681
19682         strstr: revert patches that introduced bug and pessimization
19683         * lib/str-two-way.h: Add another reference.
19684         (two_way_short_needle, two_way_long_needle): Revert changes from
19685         2011-02-24; they pessimize search speed.
19686         (critical_factorization): Partially revert changes from
19687         2010-06-22; they violate the requirement that the left half of the
19688         needle be smaller than the period of the needle.
19689
19690 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19691
19692         filenamecat: remove unnecessary dependency on dirname-lgpl
19693         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19694         is no direct dependency, just an indirect one via filenamecat-lgpl.
19695
19696         remove: remove unnecessary use of m4/dos.m4
19697         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19698         * modules/remove (FILES): Remove m4/dos.m4.
19699
19700         * lib/openat-proc.c: Don't include dirname.h; not needed.
19701
19702         backupfile: remove unnecessary use of m4/dos.m4
19703         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19704         of its symbols are used by the backupfile code.  backupfile.c does
19705         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19706         for the rare case of programs that want all their backup file
19707         names to live within 8+3 limits, and dos.m4 doesn't address that.
19708         * modules/backupfile (Files): Remove m4/dos.m4.
19709
19710 2011-02-24  Jim Meyering  <meyering@redhat.com>
19711
19712         strstr: fix a bug whereby strstr would mistakenly return NULL
19713         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19714         in period calculation.
19715         (two_way_long_needle): Likewise.
19716         The original problem was reported by Mike Stump in
19717         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19718         Ralf Wildenhues provided the short needle and haystack.
19719         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19720         Add a more involved test to trigger the bug in two_way_long_needle.
19721
19722 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19723
19724         gnulib-tool: remove use of bold display in help screen
19725         * gnulib-tool (func_usage): Do not use bold display anymore in the
19726         help screen.  That was just meant to be a temporary emphasis for a
19727         backward-incompatible change.
19728
19729 2011-02-23  Bruno Haible  <bruno@clisp.org>
19730
19731         Fix misindentation of preprocessor directives.
19732         * lib/argp-namefrob.h: Reindent preprocessor directives.
19733         * lib/getopt_int.h (struct _getopt_data): Likewise.
19734         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19735         * lib/vasnprintf.c (decode_long_double): Likewise.
19736         * tests/test-argmatch.c: Insert blank lines, for clarity.
19737         * tests/test-exclude.c: Likewise.
19738
19739 2011-02-22  Bruno Haible  <bruno@clisp.org>
19740
19741         ioctl: Fix for MacOS X in 64-bit mode.
19742         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19743         value.
19744         Suggested by Eric Blake.
19745         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19746
19747 2011-02-22  Jim Meyering  <meyering@redhat.com>
19748
19749         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19750         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19751         in lib/.
19752
19753 2011-02-22  Eric Blake  <eblake@redhat.com>
19754
19755         maint: avoid any CDPATH issue
19756         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19757
19758         maint: adjust cpp indentation for my modules, as well
19759         * Makefile (sc_cpp_indent_check): Add my name.
19760         * lib/fbufmode.c: Filter through cppi.
19761         * lib/fpurge.c: Likewise.
19762         * lib/freadable.c: Likewise.
19763         * lib/freading.c: Likewise.
19764         * lib/fwritable.c: Likewise.
19765         * lib/fwriting.c: Likewise.
19766         * lib/sigaction.c: Likewise.
19767
19768 2011-02-22  Jim Meyering  <meyering@redhat.com>
19769
19770         maint: adjust cpp indentation to reflect nesting depth
19771         I.e., in a block of code that begins with an unnested "#if",
19772         put one space between the "#" in column 1 and following token.
19773         For example,
19774         -#include <sys/vfs.h>
19775         +# include <sys/vfs.h>
19776         Do this only in .c files that are part of a module I maintain.
19777         * lib/linkat.c: Filter through cppi.
19778         * lib/nanosleep.c: Likewise.
19779         * lib/openat.c: Likewise.
19780         * lib/openat-die.c: Likewise.
19781         * lib/dup3.c: Likewise.
19782         * lib/fchownat.c: Likewise.
19783         * lib/flock.c: Likewise.
19784         * lib/fsync.c: Likewise.
19785         * lib/fts.c: Likewise.
19786         * lib/getpass.c: Likewise.
19787         * lib/gettimeofday.c: Likewise.
19788         * lib/userspec.c: Likewise.
19789         * Makefile (sc_cpp_indent_check): New rule, to check this.
19790
19791 2011-02-22  Bruno Haible  <bruno@clisp.org>
19792
19793         New module 'wctomb'.
19794         * lib/stdlib.in.h (wctomb): New declaration.
19795         * lib/wctomb.c: New file.
19796         * lib/wctomb-impl.h: New file.
19797         * m4/wctomb.m4: New file.
19798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19799         REPLACE_WCTOMB.
19800         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19801         REPLACE_WCTOMB.
19802         * modules/wctomb: New file.
19803         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19804         * doc/posix-functions/wctomb.texi: Mention the new module.
19805         * modules/wctob (Depends-on): Add wctomb.
19806
19807 2011-02-22  Bruno Haible  <bruno@clisp.org>
19808
19809         New module 'mbtowc'.
19810         * lib/stdlib.in.h (mbtowc): New declaration.
19811         * lib/mbtowc.c: New file.
19812         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19813         * m4/mbtowc.m4: New file.
19814         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19815         REPLACE_MBTOWC.
19816         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19817         REPLACE_MBTOWC.
19818         * modules/mbtowc: New file.
19819         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19820         * doc/posix-functions/mbtowc.texi: Mention the new module.
19821         * modules/btowc (Depends-on): Add mbtowc.
19822
19823 2011-02-22  Bruno Haible  <bruno@clisp.org>
19824
19825         wcrtomb: Add more tests for native Windows platforms.
19826         * tests/test-wcrtomb-w32-1.sh: New file.
19827         * tests/test-wcrtomb-w32-2.sh: New file.
19828         * tests/test-wcrtomb-w32-3.sh: New file.
19829         * tests/test-wcrtomb-w32-4.sh: New file.
19830         * tests/test-wcrtomb-w32-5.sh: New file.
19831         * tests/test-wcrtomb-w32.c: New file.
19832         * modules/wcrtomb-tests (Files): Add them.
19833         (Makefile.am): Arrange to run these tests.
19834         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19835         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19836
19837 2011-02-20  Bruno Haible  <bruno@clisp.org>
19838
19839         wcrtomb: Enhance test.
19840         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19841
19842 2011-02-20  Bruno Haible  <bruno@clisp.org>
19843
19844         mbrtowc: Tiny optimization.
19845         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19846
19847 2011-02-20  Jim Meyering  <meyering@redhat.com>
19848
19849         test-exclude.c: remove unmatched #endif
19850         * tests/test-exclude.c: Remove stray #endif, left over from
19851         the change of a week ago.
19852
19853 2011-02-19  Jim Meyering  <meyering@redhat.com>
19854
19855         git-version-gen: skip "-dirty" check when appropriate
19856         * build-aux/git-version-gen: Don't run any git commands when the
19857         version string comes from .tarball-version.  Prior to this, we
19858         would run git update-index --refresh even from a just-unpacked
19859         tarball directory, and that could affect a .git/ directory in a
19860         parent of the build directory.  Reported by Mike Frysinger.
19861
19862 2011-02-19  Bruno Haible  <bruno@clisp.org>
19863
19864         unictype/property-byname: Reduce the size of the 'data' segment.
19865         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19866
19867 2011-02-19  Bruno Haible  <bruno@clisp.org>
19868
19869         unictype/scripts: Reduce the size of the 'data' segment.
19870         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19871         '%pic'.
19872         * lib/unictype/scripts_byname.gperf: Regenerated.
19873
19874 2011-02-19  Bruno Haible  <bruno@clisp.org>
19875
19876         stdint: Update documentation.
19877         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19878
19879 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19880
19881         stdint: omit redundant check for wchar.h
19882         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19883         always tests whether wchar.h exists, so remove the now-redundant test.
19884
19885 2011-02-18  Bruno Haible  <bruno@clisp.org>
19886
19887         stdint: Cut dependency to module 'wchar'.
19888         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19889         include the necessary prerequisites.
19890         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19891         * modules/stdint (Depends-on): Remove wchar.
19892         (Makefile.am): Substitute HAVE_WCHAR_H.
19893         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19894
19895 2011-02-18  Eric Blake  <eblake@redhat.com>
19896
19897         longlong: skip, rather than fail, on cross-compilation
19898         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19899         when cross-compiling; regression from 2011-02-16.
19900
19901 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19902
19903         * NEWS: Mention 2011-02-08 change to stdlib.
19904
19905 2011-02-17  Bruno Haible  <bruno@clisp.org>
19906
19907         getloadavg: Add comments about platforms.
19908         * m4/getloadavg.m4: Add comment.
19909         * lib/getloadavg.c: Likewise.
19910
19911 2011-02-17  Bruno Haible  <bruno@clisp.org>
19912
19913         getloadavg: Fix link error on Solaris 2.6.
19914         * modules/getloadavg (Link): New section.
19915         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19916         linking test-getloadavg.
19917         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19918         getloadavg.
19919
19920 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19921
19922         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19923         It was 'int', but this doesn't match the IRIX 6.5 manual.
19924         Suggested by Bruno Haible in
19925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19926
19927 2011-02-17  Bruno Haible  <bruno@clisp.org>
19928
19929         havelib: Fix comments.
19930         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19931         change.
19932
19933 2011-02-17  Bruno Haible  <bruno@clisp.org>
19934
19935         havelib: Update config.rpath.
19936         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19937
19938 2011-02-17  Bruno Haible  <bruno@clisp.org>
19939
19940         getloadavg test: Add some plausibility checks.
19941         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19942         is improbable.
19943
19944 2011-02-16  Eric Blake  <eblake@redhat.com>
19945
19946         maintainer-makefile: make syntax-check a no-op from tarballs
19947         * top/maint.mk (no-vc-detected): New rule.
19948         (local-checks-available): Use it to avoid hanging if someone tries
19949         'make syntax-check' from a tarball.  Also append to any non-syntax
19950         checks already defined in cfg.mk.
19951
19952 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19953
19954         longlong: tune, particularly for common case of c99
19955
19956         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19957         or running anything if c99, or if unsigned long long int does not
19958         work.  In either case, we know the answer without further tests.
19959         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19960         it at most once, and use its results for both long long int and
19961         unsigned long long int.  This is more likely to be efficient in
19962         the common case where the program wants to check for both long
19963         long int and unsigned long long int.
19964         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19965         since the answer is already known.
19966
19967 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19968
19969         getloadavg: set errno
19970         * lib/getloadavg.c: Set errno when returning -1.  If no other
19971         error number looks appropriate, set it to ENOSYS if the getloadavg
19972         looks like it can't possibly ever work, ENOTSUP otherwise.
19973         Suggested by Bruno Haible in
19974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19975
19976         getloadavg: trim unused parts and speed up 'configure'
19977         * NEWS: Document this.
19978         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19979         always compiled if getloadavg is absent.
19980         Move test code to ...
19981         * tests/test-getloadavg.c: New file, containing previous
19982         contents of test from lib/getloadavg.c.  It also contains
19983         suggestions by Bruno Haible in
19984         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19985         * modules/getloadavg-tests: New file.
19986         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19987         Do tests in the same order as they're needed for getloadavg.c.
19988         Omit setgid-related tests that generate symbols KMEM_GROUP,
19989         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19990         Do only the tests that are needed to see whether the system has
19991         getloadavg, moving the other tests into ...
19992         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19993         NLIST_NAME_UNION; nobody should be using it.  Do not define
19994         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19995         relevant, as the user of this module shouldn't care how getloadavg
19996         is implemented.
19997
19998         getloadavg: omit unused var
19999         * lib/getloadavg.c (getloadavg): Omit unused local variable.
20000
20001 2011-02-15  Jim Meyering  <meyering@redhat.com>
20002
20003         doc: update users.txt
20004         * users.txt: Update iwhd's URL.
20005
20006 2011-02-13  Bruno Haible  <bruno@clisp.org>
20007
20008         Consistent macro naming for macros that use GCC __attribute__.
20009         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20010         _ATTRIBUTE_NONNULL_.
20011         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20012         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20013         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20014         ATTRIBUTE_DEPRECATED.
20015         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20016         ATTRIBUTE_NORETURN.
20017         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20018         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20019         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20020         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20021         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20022         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20023         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20024         ATTRIBUTE_SENTINEL.
20025         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20026         ATTRIBUTE_RETURN_CHECK.
20027         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20028         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20029         ATTRIBUTE_NORETURN.
20030         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20031         Reported by Paul Eggert.
20032
20033 2011-02-13  Bruno Haible  <bruno@clisp.org>
20034
20035         Don't interfere with a program's definition of __attribute__.
20036         * lib/argp.h (__attribute__): Remove definition.
20037         (_GL_ATTRIBUTE_FORMAT): New macro.
20038         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20039         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20040         (_GL_ATTRIBUTE_FORMAT): New macro.
20041         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20042         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20043         GCC 3 or newer.
20044         * lib/error.h (__attribute__): Remove definition.
20045         (_GL_ATTRIBUTE_FORMAT): New macro.
20046         (error, error_at_line): Use it.
20047         * lib/hash.h (__attribute__): Remove definition.
20048         (ATTRIBUTE_WUR): Update definition. Define always.
20049         * lib/openat.h (__attribute__): Remove definition.
20050         (ATTRIBUTE_NORETURN): Update definition. Define always.
20051         * lib/sigpipe-die.h (__attribute__): Remove definition.
20052         (ATTRIBUTE_NORETURN): Update definition. Define always.
20053         * lib/vasnprintf.h (__attribute__): Remove definition.
20054         (_GL_ATTRIBUTE_FORMAT): New macro.
20055         (asnprintf, vasnprintf): Use it.
20056         * lib/xalloc.h (__attribute__): Remove definition.
20057         (ATTRIBUTE_NORETURN): Update definition. Define always.
20058         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20059         * lib/xmemdup0.h (__attribute__): Remove definition.
20060         (ATTRIBUTE_NORETURN): Update definition. Define always.
20061         * lib/xprintf.h (__attribute__): Remove definition.
20062         (_GL_ATTRIBUTE_FORMAT): New macro.
20063         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20064         * lib/xstrtol.h (__attribute__): Remove definition.
20065         (ATTRIBUTE_NORETURN): Update definition. Define always.
20066         * lib/xvasprintf.h (__attribute__): Remove definition.
20067         (_GL_ATTRIBUTE_FORMAT): New macro.
20068         (xasprintf, xvasprintf): Use it.
20069         * tests/test-argmatch.c (__attribute__): Remove definition.
20070         (ATTRIBUTE_NORETURN): Update definition. Define always.
20071         * tests/test-exclude.c (__attribute__): Remove definition.
20072         (ATTRIBUTE_NORETURN): Update definition. Define always.
20073         Reported by Paul Eggert.
20074
20075 2011-02-13  Bruno Haible  <bruno@clisp.org>
20076
20077         mbrtowc: Add more tests for native Windows platforms.
20078         * tests/test-mbrtowc-w32-1.sh: New file.
20079         * tests/test-mbrtowc-w32-2.sh: New file.
20080         * tests/test-mbrtowc-w32-3.sh: New file.
20081         * tests/test-mbrtowc-w32-4.sh: New file.
20082         * tests/test-mbrtowc-w32-5.sh: New file.
20083         * tests/test-mbrtowc-w32.c: New file.
20084         * modules/mbrtowc-tests (Files): Add them.
20085         (Makefile.am): Arrange to run these tests.
20086         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20087         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20088
20089 2011-02-13  Bruno Haible  <bruno@clisp.org>
20090
20091         mbrtowc: Work around native Windows bug.
20092         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20093         guess when no suitable locale for testing was found.
20094         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20095
20096 2011-02-13  Bruno Haible  <bruno@clisp.org>
20097
20098         mbsinit: Work around mingw bug.
20099         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20100         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20101         Windows.
20102         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20103
20104 2011-02-13  Bruno Haible  <bruno@clisp.org>
20105
20106         mbsinit: Don't crash for a NULL argument.
20107         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20108         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20109
20110 2011-02-13  Bruno Haible  <bruno@clisp.org>
20111
20112         Don't interfere with a program's definition of __attribute__.
20113         * lib/stdio.in.h (__attribute__): Remove definition.
20114         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20115         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20116         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20117         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20118         * lib/string.in.h (__attribute__): Remove definition.
20119         Reported by Paul Eggert.
20120
20121 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20122
20123         stdlib: don't get in the way of non-GCC __attribute__
20124         See thread starting at
20125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20126         Revert previous stdlib change, installing the following instead:
20127         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20128         to get in the way of a non-GCC compiler that supports __attribute__.
20129         (_GL_ATTRIBUTE_RETURN): New macro.
20130         (_Exit): Use it instead of __attribute__.
20131
20132 2011-02-12  Bruno Haible  <bruno@clisp.org>
20133
20134         quotearg test: Avoid test failure on mingw.
20135         * tests/test-quotearg.sh: Convert the locale identifier from native
20136         Windows syntax to Unix syntax.
20137
20138 2011-02-12  Bruno Haible  <bruno@clisp.org>
20139
20140         setlocale: Prefer gnulib's override over libintl's override.
20141         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20142         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
20143         GNULIB_defined_setlocale is set.
20144
20145 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20146
20147         stdlib: support non-GCC __attribute__
20148
20149         Fix a serious and tricky problem encountered when attempting to
20150         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
20151         5.5, but it crashed due to memory corruption on Solaris 10 with
20152         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
20153         bits that are otherwise zero.  This tagging is optional inside
20154         Emacs but is preferred and is used when __attribute__ ((__aligned
20155         (8))) works, as it does with both recent-enough GCC and with Sun C
20156         5.11.  However, Sun C 5.11 is not GCC and does not #define
20157         __GNUC__ and __GNUC_MINOR__.
20158
20159         When I added the getloadavg module to Emacs, it brought in
20160         stdlib.in.h, which contained this fragment:
20161
20162            #ifndef __attribute__
20163            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
20164            #  define __attribute__(Spec)   /* empty */
20165            # endif
20166            #endif
20167
20168         When files that include <stdlib.h> were compiled with Sun C 5.11,
20169         the above code disabled __attribute__ ((__aligned (8))), which
20170         caused variables to not be properly aligned, which eventually led
20171         to the pointer corruption mentioned above.  (This was a bit hard
20172         to diagnose, unfortunately.)
20173
20174         Several "#define __attribute__(X) /* empty */" code snippets need
20175         to be eradicated from Gnulib to work with non-GCC compilers that
20176         support __attribute__.  The Autoconf way to do this is to test for
20177         each kind of attribute that we want support for, and selectively
20178         enable that in source code.
20179
20180         Fix this problem just for stdlib.h, by adding a test for the
20181         __noreturn__ attribute, and change stdlib.in.h to use that test
20182         when needed.  This technique can be easily generalized to the
20183         other *.in.h files and attributes, and a similar technique can be
20184         used for *.h and *.c files.  This patch is enough to solve the
20185         problem for Emacs + getloadavg, and I thought I'd publish it for
20186         feedback before undertaking further, similar fixes in other
20187         modules.
20188
20189         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20190         because it's not needed for stdlib.h.  It merely substitutes the
20191         value directly into stdlib.h.  We may well need to #define it, or
20192         similar symbols, for other modules, but it's nice to also have an
20193         option to not #define it for applications like Emacs that do not
20194         need it.
20195
20196         * lib/stdlib.in.h (__attribute__): Do not #define.
20197         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20198         be defined only if the _Exit module is also used.
20199         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20201         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20202         platforms.
20203         * modules/_Exit (Files): Add m4/attribute.m4.
20204         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20205         * m4/attribute.m4: New file.
20206
20207 2011-02-12  Bruno Haible  <bruno@clisp.org>
20208
20209         wcsrtombs: Work around bug on native Windows.
20210         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20211         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20212         instead of len.
20213         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20214
20215 2011-02-12  Bruno Haible  <bruno@clisp.org>
20216
20217         mbsrtowcs: Work around bug on native Windows.
20218         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20219         against mingw bug.
20220         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20221
20222 2011-02-12  Bruno Haible  <bruno@clisp.org>
20223
20224         Avoid setlocale bugs in tests.
20225         * modules/btowc (Dependencies): Add setlocale.
20226         * modules/c-strcase (Dependencies): Likewise.
20227         * modules/mbmemcasecmp (Dependencies): Likewise.
20228         * modules/mbmemcasecoll (Dependencies): Likewise.
20229         * modules/mbrtowc (Dependencies): Likewise.
20230         * modules/mbscasecmp (Dependencies): Likewise.
20231         * modules/mbscasestr (Dependencies): Likewise.
20232         * modules/mbschr (Dependencies): Likewise.
20233         * modules/mbscspn (Dependencies): Likewise.
20234         * modules/mbsinit (Dependencies): Likewise.
20235         * modules/mbsncasecmp (Dependencies): Likewise.
20236         * modules/mbsnrtowcs (Dependencies): Likewise.
20237         * modules/mbspbrk (Dependencies): Likewise.
20238         * modules/mbspcasecmp (Dependencies): Likewise.
20239         * modules/mbsrchr (Dependencies): Likewise.
20240         * modules/mbsrtowcs (Dependencies): Likewise.
20241         * modules/mbsspn (Dependencies): Likewise.
20242         * modules/mbsstr (Dependencies): Likewise.
20243         * modules/nl_langinfo (Dependencies): Likewise.
20244         * modules/quotearg (Dependencies): Likewise.
20245         * modules/unicase/locale-language (Dependencies): Likewise.
20246         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
20247         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
20248         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
20249         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
20250         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
20251         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
20252         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
20253         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20254         * modules/vasnprintf-posix (Dependencies): Likewise.
20255         * modules/wcrtomb (Dependencies): Likewise.
20256         * modules/wcsnrtombs (Dependencies): Likewise.
20257         * modules/wcsrtombs (Dependencies): Likewise.
20258
20259 2011-02-12  Bruno Haible  <bruno@clisp.org>
20260
20261         setlocale: Workaround native Windows bug.
20262         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20263         succeeds but sets LC_CTYPE to "C", report a failure.
20264         * tests/test-setlocale2.sh: New file.
20265         * tests/test-setlocale2.c: New file.
20266         * modules/setlocale-tests (Files): Add the new files.
20267         (Makefile.am): Enable test-setlocale2.sh test.
20268         * doc/posix-functions/setlocale.texi: Mention workaround.
20269
20270 2011-02-11  Bruno Haible  <bruno@clisp.org>
20271
20272         Tests for module 'setlocale'.
20273         * modules/setlocale-tests: New file.
20274         * tests/test-setlocale1.sh: New file.
20275         * tests/test-setlocale1.c: New file.
20276
20277         New module 'setlocale'.
20278         * lib/locale.in.h (setlocale): New declaration.
20279         * lib/setlocale.c: New file, based on
20280         gettext/gettext-runtime/intl/setlocale.c.
20281         * m4/setlocale.m4: New file.
20282         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20283         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20284         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20285         REPLACE_SETLOCALE.
20286         * modules/setlocale: New file.
20287         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20288         * doc/posix-functions/setlocale.texi: Mention the new module.
20289
20290 2011-02-11  Bruno Haible  <bruno@clisp.org>
20291
20292         Prepare for locale dependent tests on mingw.
20293         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20294         because it has the wrong locale encoding.
20295         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20296         French_France.1252 instead of "fr".
20297         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20298         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20299         because it has the wrong locale encoding.
20300         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20301         native Windows, try Turkish_Turkey.65001.
20302         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20303         Chinese_China.54936.
20304
20305         Prepare for locale dependent tests on mingw.
20306         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20307         differently.
20308         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20309         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20310         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20311         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20312
20313 2011-02-11  Eric Blake  <eblake@redhat.com>
20314
20315         strptime: avoid compiler warnings
20316         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20317         compiler warnings about dead code.
20318         Reported by Daniel P. Berrange.
20319
20320 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20321
20322         doc: update users.txt
20323         * users.txt: Add rcs.
20324
20325 2011-02-10  John W. Eaton  <jwe@gnu.org>
20326
20327         doc: update users.txt
20328         * users.txt: Add octave.
20329
20330 2011-02-10  Jim Meyering  <meyering@redhat.com>
20331
20332         doc: update users.txt
20333         * users.txt: Add iwhd.
20334
20335 2011-02-09  Bruno Haible  <bruno@clisp.org>
20336
20337         gnulib-tool: Make copyright notice adjustment more robust.
20338         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20339         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20340         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20341         License".
20342         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20343
20344 2011-02-06  Bruno Haible  <bruno@clisp.org>
20345
20346         New module 'towctrans'.
20347         * modules/towctrans: New file.
20348         * lib/wctype.in.h (towctrans): New declaration.
20349         * lib/towctrans.c: New file.
20350         * lib/towctrans-impl.h: New file.
20351         * m4/towctrans.m4: New file.
20352         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20353         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20354         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20355         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20356         * doc/posix-functions/towctrans.texi: Mention the new module.
20357
20358 2011-02-06  Bruno Haible  <bruno@clisp.org>
20359
20360         New module 'wctrans'.
20361         * modules/wctrans: New file.
20362         * lib/wctype.in.h (wctrans): New declaration.
20363         * lib/wctrans.c: New file.
20364         * lib/wctrans-impl.h: New file.
20365         * m4/wctrans.m4: New file.
20366         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20367         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20368         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20369         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20370         * doc/posix-functions/wctrans.texi: Mention the new module.
20371
20372 2011-02-06  Bruno Haible  <bruno@clisp.org>
20373
20374         New module 'iswctype'.
20375         * modules/iswctype: New file.
20376         * lib/wctype.in.h (iswctype): New declaration.
20377         * lib/iswctype.c: New file.
20378         * lib/iswctype-impl.h: New file.
20379         * m4/iswctype.m4: New file.
20380         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20381         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20382         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20383         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20384         * doc/posix-functions/iswctype.texi: Mention the new module and the
20385         HP-UX 11.00 problem.
20386
20387 2011-02-06  Bruno Haible  <bruno@clisp.org>
20388
20389         New module 'wctype'.
20390         * modules/wctype: Change to represent the wctype() substitute.
20391         * lib/wctype.in.h (wctype): New declaration.
20392         * lib/wctype.c: New file.
20393         * lib/wctype-impl.h: New file.
20394         * m4/wctype.m4: New file.
20395         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20396         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20397         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20398         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20399         * doc/posix-functions/wctype.texi: Mention the new module and the
20400         HP-UX 11.00 problem.
20401
20402 2011-02-06  Bruno Haible  <bruno@clisp.org>
20403
20404         wctype-h: Ensure wctype_t and wctrans_t are defined.
20405         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20406         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20407         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20408         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20409         HAVE_WCTRANS_T.
20410         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20411
20412 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20413
20414         flock: fix license typo
20415
20416         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20417         omitted.
20418
20419 2011-02-08  Bruno Haible  <bruno@clisp.org>
20420
20421         Split large sed scripts, for HP-UX sed.
20422         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20423         to avoid HP-UX limit of 99 commands, in the near future.
20424         * modules/stdlib (Makefile.am): Likewise.
20425         * modules/unistd (Makefile.am): Likewise.
20426         * modules/wchar (Makefile.am): Likewise.
20427         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20428         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20429         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20430
20431 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20432             Bruno Haible  <bruno@clisp.org>
20433
20434         stdlib: improve random_r modularization
20435         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20436         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20437         you also need the random_r module to get this material right.
20438         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20439         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20440         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20441
20442 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20443
20444         stdlib: don't depend on stdint
20445         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20446         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20447         be independent of whether stdint.h is needed.
20448         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20449         here, instead of ...
20450         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20451         struct random_data should be using the random_r module, not just
20452         the stdlib module (which wouldn't make sense: what package needs
20453         just struct random_data without also needing random_r?).
20454         * modules/stdlib (Depends-on): Remove stdint.
20455
20456         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20457         See the thread rooted at
20458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20459         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20460         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20461         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20462         __VMS)); previously it was always included (via fcntl--.h).
20463         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20464         hand; this is good enough for load averages.  Also, do not use
20465         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20466         flags directly if available and don't bother otherwise.  (Packages
20467         that need the extra reliability should use the modules that define
20468         these flags on older platforms that lack them.)
20469         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20470         fcntl-safer.
20471
20472 2011-02-08  Jim Meyering  <meyering@redhat.com>
20473
20474         di-set.h, ino-map.h: add multiple-inclusion guard
20475         Technically, the guard is required only for ino-map.h, due to its
20476         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20477         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20478         * lib/ino-map.h: Likewise.
20479
20480 2011-02-06  Bruno Haible  <bruno@clisp.org>
20481
20482         iswblank: Ensure declaration on glibc systems.
20483         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20484         * modules/iswblank (Dependencies): Add 'extensions'.
20485         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20486
20487 2011-02-06  Bruno Haible  <bruno@clisp.org>
20488
20489         New module 'iswblank'.
20490         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20491         * modules/iswblank: New file.
20492         * modules/wctype-h (Files): Remove lib/iswblank.c.
20493         (Makefile.am): Substitute GNULIB_ISWBLANK.
20494         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20495         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20496         (gl_WCTYPE_H_DEFAULTS): New macro.
20497         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20498         * modules/iswblank-tests: New file.
20499         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20500         * tests/test-wctype-h.c (main): Remove iswblank tests.
20501         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20502         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20503         of 'wctype-h'.
20504         * NEWS: Mention the change.
20505         * modules/mbchar (Depends-on): Add iswblank.
20506
20507 2011-02-08  Bruno Haible  <bruno@clisp.org>
20508
20509         di-set tests: Refactor.
20510         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20511         unnecessary includes.
20512         (ASSERT): Remove macro.
20513         (main): Make C90 compliant by avoiding variable declaration after
20514         statement.
20515         * modules/di-set-tests (Files): Add tests/macros.h.
20516
20517 2011-02-08  Bruno Haible  <bruno@clisp.org>
20518
20519         ino-map tests: Refactor.
20520         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20521         unnecessary includes.
20522         (ASSERT): Remove macro.
20523         (main): Make C90 compliant by avoiding variable declaration after
20524         statement.
20525         * modules/ino-map-tests (Files): Add tests/macros.h.
20526
20527 2011-02-08  Jim Meyering  <meyering@redhat.com>
20528
20529         di-set: add "const" to a cast
20530         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20531         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20532
20533 2011-02-06  Bruno Haible  <bruno@clisp.org>
20534
20535         Rename module 'wctype' to 'wctype-h'.
20536         * modules/wctype-h: Renamed from modules/wctype.
20537         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20538         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20539         (Files, Depends-on, Makefile.am): Update.
20540         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20541         (Files, Makefile.am): Update.
20542         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20543         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20544         * doc/posix-headers/wctype.texi: Update.
20545         * doc/posix-functions/iswalnum.texi: Update.
20546         * doc/posix-functions/iswalpha.texi: Update.
20547         * doc/posix-functions/iswblank.texi: Update.
20548         * doc/posix-functions/iswcntrl.texi: Update.
20549         * doc/posix-functions/iswdigit.texi: Update.
20550         * doc/posix-functions/iswgraph.texi: Update.
20551         * doc/posix-functions/iswlower.texi: Update.
20552         * doc/posix-functions/iswprint.texi: Update.
20553         * doc/posix-functions/iswpunct.texi: Update.
20554         * doc/posix-functions/iswspace.texi: Update.
20555         * doc/posix-functions/iswupper.texi: Update.
20556         * doc/posix-functions/iswxdigit.texi: Update.
20557         * doc/posix-functions/towlower.texi: Update.
20558         * doc/posix-functions/towupper.texi: Update.
20559         * NEWS: Mention the change.
20560         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20561         * modules/mbchar (Dependencies): Likewise.
20562         * modules/mbswidth (Dependencies): Likewise.
20563         * modules/quotearg (Dependencies): Likewise.
20564         * modules/regex (Dependencies): Likewise.
20565         * modules/wcscasecmp (Dependencies): Likewise.
20566         * modules/wcsncasecmp (Dependencies): Likewise.
20567         * modules/wcwidth (Dependencies): Likewise.
20568
20569 2011-02-06  Bruno Haible  <bruno@clisp.org>
20570
20571         New module 'wcswidth'.
20572         * modules/wcswidth: New file.
20573         * lib/wchar.in.h (wcswidth): New declaration.
20574         * lib/wcswidth.c: New file.
20575         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20576         * m4/wcswidth.m4: New file.
20577         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20578         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20579         REPLACE_WCSWIDTH.
20580         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20581         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20582         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20583         * doc/posix-functions/wcswidth.texi: Mention the new module.
20584
20585 2011-02-06  Bruno Haible  <bruno@clisp.org>
20586
20587         New module 'wcstok'.
20588         * modules/wcstok: New file.
20589         * lib/wchar.in.h (wcstok): New declaration.
20590         * lib/wcstok.c: New file.
20591         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20592         * m4/wcstok.m4: New file.
20593         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20594         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20595         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20596         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20597         * doc/posix-functions/wcstok.texi: Mention the new module.
20598
20599 2011-02-06  Bruno Haible  <bruno@clisp.org>
20600
20601         New module 'wcsstr'.
20602         * modules/wcsstr: New file.
20603         * lib/wchar.in.h (wcsstr): New declaration.
20604         * lib/wcsstr.c: New file.
20605         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20606         * m4/wcsstr.m4: New file.
20607         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20608         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20609         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20610         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20611         * doc/posix-functions/wcsstr.texi: Mention the new module.
20612
20613 2011-02-06  Bruno Haible  <bruno@clisp.org>
20614
20615         New module 'wcspbrk'.
20616         * modules/wcspbrk: New file.
20617         * lib/wchar.in.h (wcspbrk): New declaration.
20618         * lib/wcspbrk.c: New file.
20619         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20620         * m4/wcspbrk.m4: New file.
20621         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20622         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20623         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20624         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20625         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20626
20627 2011-02-06  Bruno Haible  <bruno@clisp.org>
20628
20629         New module 'wcsspn'.
20630         * modules/wcsspn: New file.
20631         * lib/wchar.in.h (wcsspn): New declaration.
20632         * lib/wcsspn.c: New file.
20633         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20634         * m4/wcsspn.m4: New file.
20635         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20636         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20637         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20638         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20639         * doc/posix-functions/wcsspn.texi: Mention the new module.
20640
20641 2011-02-06  Bruno Haible  <bruno@clisp.org>
20642
20643         New module 'wcscspn'.
20644         * modules/wcscspn: New file.
20645         * lib/wchar.in.h (wcscspn): New declaration.
20646         * lib/wcscspn.c: New file.
20647         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20648         * m4/wcscspn.m4: New file.
20649         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20650         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20651         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20652         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20653         * doc/posix-functions/wcscspn.texi: Mention the new module.
20654
20655 2011-02-06  Bruno Haible  <bruno@clisp.org>
20656
20657         New module 'wcsrchr'.
20658         * modules/wcsrchr: New file.
20659         * lib/wchar.in.h (wcsrchr): New declaration.
20660         * lib/wcsrchr.c: New file.
20661         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20662         * m4/wcsrchr.m4: New file.
20663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20665         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20666         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20667         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20668
20669 2011-02-06  Bruno Haible  <bruno@clisp.org>
20670
20671         New module 'wcschr'.
20672         * modules/wcschr: New file.
20673         * lib/wchar.in.h (wcschr): New declaration.
20674         * lib/wcschr.c: New file.
20675         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20676         * m4/wcschr.m4: New file.
20677         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20678         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20679         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20680         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20681         * doc/posix-functions/wcschr.texi: Mention the new module.
20682
20683 2011-02-06  Bruno Haible  <bruno@clisp.org>
20684
20685         New module 'wcsdup'.
20686         * modules/wcsdup: New file.
20687         * lib/wchar.in.h (wcsdup): New declaration.
20688         * lib/wcsdup.c: New file.
20689         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20690         * m4/wcsdup.m4: New file.
20691         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20692         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20693         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20694         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20695         * doc/posix-functions/wcsdup.texi: Mention the new module.
20696
20697 2011-02-06  Bruno Haible  <bruno@clisp.org>
20698
20699         New module 'wcsxfrm'.
20700         * modules/wcsxfrm: New file.
20701         * lib/wchar.in.h (wcsxfrm): New declaration.
20702         * lib/wcsxfrm.c: New file.
20703         * lib/wcsxfrm-impl.h: New file.
20704         * m4/wcsxfrm.m4: New file.
20705         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20706         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20707         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20708         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20709         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20710
20711 2011-02-06  Bruno Haible  <bruno@clisp.org>
20712
20713         New module 'wcscoll'.
20714         * modules/wcscoll: New file.
20715         * lib/wchar.in.h (wcscoll): New declaration.
20716         * lib/wcscoll.c: New file.
20717         * lib/wcscoll-impl.h: New file.
20718         * m4/wcscoll.m4: New file.
20719         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20720         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20721         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20722         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20723         * doc/posix-functions/wcscoll.texi: Mention the new module.
20724
20725 2011-02-06  Bruno Haible  <bruno@clisp.org>
20726
20727         New module 'wcsncasecmp'.
20728         * modules/wcsncasecmp: New file.
20729         * lib/wchar.in.h (wcsncasecmp): New declaration.
20730         * lib/wcsncasecmp.c: New file.
20731         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20732         * m4/wcsncasecmp.m4: New file.
20733         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20734         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20735         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20736         HAVE_WCSNCASECMP.
20737         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20738         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20739
20740 2011-02-06  Bruno Haible  <bruno@clisp.org>
20741
20742         New module 'wcscasecmp'.
20743         * modules/wcscasecmp: New file.
20744         * lib/wchar.in.h (wcscasecmp): New declaration.
20745         * lib/wcscasecmp.c: New file.
20746         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20747         * m4/wcscasecmp.m4: New file.
20748         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20749         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20750         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20751         HAVE_WCSCASECMP.
20752         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20753         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20754
20755 2011-02-05  Bruno Haible  <bruno@clisp.org>
20756
20757         New module 'wcsncmp'.
20758         * modules/wcsncmp: New file.
20759         * lib/wchar.in.h (wcsncmp): New declaration.
20760         * lib/wcsncmp.c: New file.
20761         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20762         * m4/wcsncmp.m4: New file.
20763         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20764         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20765         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20766         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20767         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20768
20769 2011-02-05  Bruno Haible  <bruno@clisp.org>
20770
20771         New module 'wcscmp'.
20772         * modules/wcscmp: New file.
20773         * lib/wchar.in.h (wcscmp): New declaration.
20774         * lib/wcscmp.c: New file.
20775         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20776         * m4/wcscmp.m4: New file.
20777         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20778         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20779         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20780         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20781         * doc/posix-functions/wcscmp.texi: Mention the new module.
20782
20783 2011-02-05  Bruno Haible  <bruno@clisp.org>
20784
20785         New module 'wcsncat'.
20786         * modules/wcsncat: New file.
20787         * lib/wchar.in.h (wcsncat): New declaration.
20788         * lib/wcsncat.c: New file.
20789         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20790         * m4/wcsncat.m4: New file.
20791         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20792         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20793         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20794         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20795         * doc/posix-functions/wcsncat.texi: Mention the new module.
20796
20797 2011-02-05  Bruno Haible  <bruno@clisp.org>
20798
20799         New module 'wcscat'.
20800         * modules/wcscat: New file.
20801         * lib/wchar.in.h (wcscat): New declaration.
20802         * lib/wcscat.c: New file.
20803         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20804         * m4/wcscat.m4: New file.
20805         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20806         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20807         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20808         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20809         * doc/posix-functions/wcscat.texi: Mention the new module.
20810
20811 2011-02-05  Bruno Haible  <bruno@clisp.org>
20812
20813         New module 'wcpncpy'.
20814         * modules/wcpncpy: New file.
20815         * lib/wchar.in.h (wcpncpy): New declaration.
20816         * lib/wcpncpy.c: New file.
20817         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20818         * m4/wcpncpy.m4: New file.
20819         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20820         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20821         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20822         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20823         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20824
20825 2011-02-05  Bruno Haible  <bruno@clisp.org>
20826
20827         New module 'wcsncpy'.
20828         * modules/wcsncpy: New file.
20829         * lib/wchar.in.h (wcsncpy): New declaration.
20830         * lib/wcsncpy.c: New file.
20831         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20832         * m4/wcsncpy.m4: New file.
20833         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20834         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20835         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20836         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20837         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20838
20839 2011-02-05  Bruno Haible  <bruno@clisp.org>
20840
20841         New module 'wcpcpy'.
20842         * modules/wcpcpy: New file.
20843         * lib/wchar.in.h (wcpcpy): New declaration.
20844         * lib/wcpcpy.c: New file.
20845         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20846         * m4/wcpcpy.m4: New file.
20847         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20848         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20849         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20850         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20851         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20852
20853 2011-02-05  Bruno Haible  <bruno@clisp.org>
20854
20855         New module 'wcscpy'.
20856         * modules/wcscpy: New file.
20857         * lib/wchar.in.h (wcscpy): New declaration.
20858         * lib/wcscpy.c: New file.
20859         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20860         * m4/wcscpy.m4: New file.
20861         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20862         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20863         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20864         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20865         * doc/posix-functions/wcscpy.texi: Mention the new module.
20866
20867 2011-02-05  Bruno Haible  <bruno@clisp.org>
20868
20869         New module 'wcsnlen'.
20870         * modules/wcsnlen: New file.
20871         * lib/wchar.in.h (wcsnlen): New declaration.
20872         * lib/wcsnlen.c: New file.
20873         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20874         * m4/wcsnlen.m4: New file.
20875         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20876         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20877         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20878         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20879         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20880
20881 2011-02-05  Bruno Haible  <bruno@clisp.org>
20882
20883         New module 'wcslen'.
20884         * modules/wcslen: New file.
20885         * lib/wchar.in.h (wcslen): New declaration.
20886         * lib/wcslen.c: New file.
20887         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20888         * m4/wcslen.m4: New file.
20889         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20890         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20891         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20892         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20893         * doc/posix-functions/wcslen.texi: Mention the new module.
20894
20895 2011-02-05  Bruno Haible  <bruno@clisp.org>
20896
20897         New module 'wmemset'.
20898         * modules/wmemset: New file.
20899         * lib/wchar.in.h (wmemset): New declaration.
20900         * lib/wmemset.c: New file.
20901         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20902         * m4/wmemset.m4: New file.
20903         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20904         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20905         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20906         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20907         * doc/posix-functions/wmemset.texi: Mention the new module.
20908
20909 2011-02-05  Bruno Haible  <bruno@clisp.org>
20910
20911         New module 'wmemmove'.
20912         * modules/wmemmove: New file.
20913         * lib/wchar.in.h (wmemmove): New declaration.
20914         * lib/wmemmove.c: New file.
20915         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20916         * m4/wmemmove.m4: New file.
20917         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20918         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20919         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20920         HAVE_WMEMMOVE.
20921         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20922         * doc/posix-functions/wmemmove.texi: Mention the new module.
20923
20924 2011-02-05  Bruno Haible  <bruno@clisp.org>
20925
20926         New module 'wmemcpy'.
20927         * modules/wmemcpy: New file.
20928         * lib/wchar.in.h (wmemcpy): New declaration.
20929         * lib/wmemcpy.c: New file.
20930         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20931         * m4/wmemcpy.m4: New file.
20932         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20933         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20934         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20935         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20936         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20937
20938 2011-02-05  Bruno Haible  <bruno@clisp.org>
20939
20940         New module 'wmemcmp'.
20941         * modules/wmemcmp: New file.
20942         * lib/wchar.in.h (wmemcmp): New declaration.
20943         * lib/wmemcmp.c: New file.
20944         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20945         * m4/wmemcmp.m4: New file.
20946         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20947         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20948         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20949         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20950         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20951
20952 2011-02-07  Jim Meyering  <meyering@redhat.com>
20953
20954         di-set, ino-map: new modules, from coreutils
20955         * lib/di-set.c: New file.
20956         * lib/di-set.h: Likewise.
20957         * lib/ino-map.c: Likewise.
20958         * lib/ino-map.h: Likewise.
20959         * modules/di-set: Likewise.
20960         * modules/di-set-tests: Likewise.
20961         * modules/ino-map: Likewise.
20962         * modules/ino-map-tests: Likewise.
20963         * tests/test-di-set.c: Likewise.
20964         * tests/test-ino-map.c: Likewise.
20965
20966 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20967
20968         getloadavg: merge minor changes from Emacs
20969
20970         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20971         (getloadavg): Use memset, not bzero.
20972
20973         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20974         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20975         clash (bug#86).
20976
20977 2010-11-14  Bruno Haible  <bruno@clisp.org>
20978
20979         Allow multiple gnulib generated replacements to coexist.
20980         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20981         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20982         * lib/langinfo.in.h (nl_item): Likewise.
20983         * lib/math.in.h (_NaN, NAN): Likewise.
20984         * lib/netdb.in.h (struct addrinfo): Likewise.
20985         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20986         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20987         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20988         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20989         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20990         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20991         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20992         pthread_mutexattr_init, pthread_mutexattr_settype,
20993         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20994         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20995         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20996         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20997         * lib/sched.in.h (struct sched_param): Likewise.
20998         * lib/se-selinux.in.h (security_class_t, security_context_t,
20999         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
21000         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
21001         lsetfilecon, fsetfilecon, security_check_context,
21002         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
21003         Likewise.
21004         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
21005         Likewise.
21006         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21007         _gl_function_taking_int_returning_void_t, union sigval,
21008         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21009         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21010         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21011         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21012         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21013         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21014         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21015         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21016         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21017         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21018         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21019         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21020         socklen_t, rpl_fd_isset): Likewise.
21021         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21022         * lib/sys_time.in.h (struct timeval): Likewise.
21023         * lib/sys_times.in.h (struct tms): Likewise.
21024         * lib/sys_utsname.in.h (struct utsname):
21025         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21026         * lib/unistd.in.h (getpagesize): Likewise.
21027         * lib/wchar.in.h (mbstate_t): Likewise.
21028         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21029         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21030         towlower, towupper): Likewise.
21031         Reported by Sam Steingold <sds@gnu.org>.
21032
21033 2011-02-05  Eric Blake  <eblake@redhat.com>
21034
21035         unsetenv: work around Haiku issues
21036         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21037         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21038
21039 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21040
21041         libposix: avoid calling error() within libposix
21042         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21043         is defined.
21044
21045 2011-02-05  Eric Blake  <eblake@redhat.com>
21046
21047         strerror_r-posix: port to cygwin
21048         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21049         implementation.
21050         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21051         * tests/test-strerror_r.c (main): Fix test.
21052         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21053         issue.
21054
21055 2011-02-05  Bruno Haible  <bruno@clisp.org>
21056
21057         New module 'wmemchr'.
21058         * modules/wmemchr: New file.
21059         * lib/wchar.in.h (wmemchr): New declaration.
21060         * lib/wmemchr.c: New file.
21061         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21062         * m4/wmemchr.m4: New file.
21063         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21064         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21065         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21066         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21067         * doc/posix-functions/wmemchr.texi: Mention the new module.
21068
21069 2011-02-04  Eric Blake  <eblake@redhat.com>
21070
21071         fdopendir: detect FreeBSD bug
21072         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21073         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21074
21075 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21076
21077         stdbool: do not define HAVE_STDBOOL_H
21078         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21079         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21080         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21081         imported from the latest Autoconf git.  It was motivated by Emacs,
21082         which uses gnulib but does not need HAVE_STDBOOL_H.
21083
21084 2011-02-04  Bruno Haible  <bruno@clisp.org>
21085
21086         wcsnrtombs: Prepare for new module wwcsnrtombs.
21087         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21088         * lib/wcsnrtombs.c: Include it.
21089         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21090
21091         wcsrtombs: Prepare for new module wwcsrtombs.
21092         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21093         * lib/wcsrtombs.c: Include it.
21094         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21095
21096         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21097         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21098         * lib/mbsnrtowcs.c: Include it.
21099         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21100
21101         mbsrtowcs: Prepare for new module mbsrtowwcs.
21102         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21103         * lib/mbsrtowcs.c: Include it.
21104         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21105
21106 2011-02-04  Bruno Haible  <bruno@clisp.org>
21107
21108         vasnprintf: Reduce use of malloc for small format strings.
21109         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21110         (arguments): Add room for the first 7 arguments.
21111         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21112         (char_directives, u8_directives, u16_directives, u32_directives): Add
21113         room for the first 7 directives.
21114         * lib/printf-parse.c: Include <string.h>.
21115         (PRINTF_PARSE): Change memory handling code so that it uses the first
21116         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21117         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21118         Reported by Pádraig Brady <P@draigbrady.com>.
21119
21120 2011-01-31  Eric Blake  <eblake@redhat.com>
21121
21122         dup2: work around Haiku bug
21123         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21124         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21125         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21126         * tests/test-dup2.c (main): Enhance test.
21127
21128 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21129
21130         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21131         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21132         declared by eglibc 2.11.2.
21133         * lib/stdio.in.h: Likewise.
21134
21135 2011-01-31  Eric Blake  <eblake@redhat.com>
21136
21137         ignore-value: add missing test dependency
21138         * tests/test-ignore-value.c: Revert previous change; stdio.h
21139         provides off_t.
21140         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21141
21142 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21143
21144         mktime: clarify long_int width checking
21145         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
21146         the top level, to make it clearer that the assumption about
21147         long_int width is being checked.  See
21148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
21149
21150 2011-01-30  Simon Josefsson  <simon@josefsson.org>
21151
21152         ignore-value: Fix self-test.
21153         * tests/test-ignore-value.c: Include sys/types.h for off_t.
21154
21155 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21156
21157         TYPE_MAXIMUM: avoid theoretically undefined behavior
21158         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
21159         negative number, which the C Standard says has undefined behavior.
21160         In practice this is not a problem, but might as well do it by the book.
21161         Reported by Rich Felker and Eric Blake; see
21162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
21163         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
21164         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21165         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21166         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
21167         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21168         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
21169
21170         mktime: #undef mktime before #defining it
21171         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
21172
21173         mktime: systematically normalize tm_isdst comparisons
21174         * lib/mktime.c (isdst_differ): New function.
21175         (__mktime_internal): Use it systematically for all isdst comparisons.
21176         This completes the fix for libc BZ #6723, and removes the need for
21177         normalizing tm_isdst.  See
21178         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
21179         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21180
21181         mktime: fix some integer overflow issues and sidestep the rest
21182
21183         This was prompted by a bug report by Benjamin Lindner for MinGW
21184         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21185         His bug is due to signed integer overflow (0 - INT_MIN), and I
21186         I scanned through mktime.c looking for other integer overflow
21187         problems, fixing all the bugs I found.
21188
21189         Although the C Standard says the resulting code is still not safe
21190         in the presence of integer overflow, in practice it should be good
21191         enough for all real-world two's-complement implementations, except
21192         for debugging environments that deliberately trap on integer
21193         overflow (e.g., gcc -ftrapv).
21194
21195         * lib/mktime.c (WRAPV): New macro.
21196         (SHR): Also check that long_int and time_t shift right in the
21197         usual way, before using the fast-but-unportable method.
21198         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21199         used.  The code already assumed two's complement, so there's
21200         no need to test for alternatives.  All uses removed.
21201         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21202         the C standard.  Problem reported by Rich Felker in
21203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21204         (twos_complement_arithmetic): Also check long_int and time_t.
21205         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21206         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21207         (__mktime_internal): Avoid integer overflow with unary subtraction
21208         in two instances where -1 - X is an adequate replacement for -X,
21209         since the calculations are approximate.
21210
21211 2011-01-29  Eric Blake  <eblake@redhat.com>
21212
21213         mktime: avoid infinite loop
21214         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21215         type; behavior is still undefined but portable to all known targets.
21216         Reported by Rich Felker.
21217
21218 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21219
21220         rename, unlink, same-inode: Relicense.
21221         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21222         * modules/unlink (License): Likewise.
21223         * modules/same-inode (License): Likewise.
21224
21225 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21226
21227         mktime: avoid problems on NetBSD 5 / i386
21228         * lib/mktime.c (long_int): New type.  This works around a problem
21229         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21230         but time_t is 64 bits, and where I expect the existing code is
21231         wrong in some cases.
21232         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21233         (ydhms_diff): Bring back the compile-time check for wide-enough
21234         year and yday.
21235
21236         mktime: fix misspelling in comment
21237         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21238         This merges all recent glibc changes of importance.
21239
21240 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21241
21242         move-if-change: cope with concurrent mv of identical file.
21243         * build-aux/move-if-change (CMPPROG): Accept environment
21244         variable as an override for `cmp'.
21245         (usage): Document CMPPROG.
21246         Adjust comparison to drop stdout.  Cope with failure of mv if
21247         the target file exists and is identical to the source, for
21248         parallel builds.
21249         Report from H.J. Lu against binutils in PR binutils/12283.
21250
21251 2011-01-28  Bruce Korb  <bkorb@gnu.org>
21252
21253         * users.txt: Mention sharutils.
21254
21255 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21256
21257         * users.txt: Mention OATH Toolkit.
21258
21259 2011-01-27  Bruno Haible  <bruno@clisp.org>
21260
21261         Prepare for supporting FreeBSD 10.
21262         * build-aux/config.libpath: Remove handling of freebsd1*.
21263
21264 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21265
21266         Prepare for supporting FreeBSD 10.
21267         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21268         match FreeBSD 10.0.
21269
21270 2011-01-27  Bruno Haible  <bruno@clisp.org>
21271
21272         vma-iter, get-rusage-as: Add OpenBSD support.
21273         * modules/vma-iter (configure.ac): Test for mquery.
21274         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21275         * lib/vma-iter.c: Include <sys/mman.h>.
21276         (vma_iterate): Add an implementation based on mquery().
21277         * lib/resource-ext.h (get_rusage_as): Update comments.
21278         * lib/get-rusage-as.c: Likewise.
21279         * lib/get-rusage-data.c: Likewise.
21280
21281 2011-01-26  Karl Berry  <karl@gnu.org>
21282
21283         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21284         variables to make it easier to override the makeinfo program used.
21285
21286 2011-01-26  Eric Blake  <eblake@redhat.com>
21287
21288         fcntl: work around Haiku F_DUPFD bugs
21289         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21290         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21291         cloexec bit on duplication.
21292         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21293
21294 2011-01-26  Bruno Haible  <bruno@clisp.org>
21295
21296         Enable memory leak tests on AIX.
21297         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21298         * tests/test-fprintf-posix3.c (main): Likewise.
21299
21300 2011-01-26  Bruno Haible  <bruno@clisp.org>
21301
21302         Tests for module 'get-rusage-data'.
21303         * modules/get-rusage-data-tests: New file.
21304         * tests/test-get-rusage-data.c: New file.
21305
21306         New module 'get-rusage-data'.
21307         * lib/resource-ext.h (get_rusage_data): New declaration.
21308         * lib/get-rusage-data.c: New file.
21309         * modules/get-rusage-data: New file.
21310
21311 2011-01-25  Bruno Haible  <bruno@clisp.org>
21312
21313         get-rusage-as: Allow for easier testing.
21314         * lib/resource-ext.h (get_rusage_as): Add comment.
21315         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21316         (main): New function for interactive testing.
21317
21318 2011-01-25  Bruno Haible  <bruno@clisp.org>
21319
21320         vma-iter: Treat Haiku like BeOS.
21321         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21322         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21323
21324 2011-01-25  Eric Blake  <eblake@redhat.com>
21325
21326         c-stack: fix regression on cygwin when libsigsegv is present
21327         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21328
21329 2011-01-24  Bruno Haible  <bruno@clisp.org>
21330
21331         vma-iter: Avoid empty intervals.
21332         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21333         on an empty interval.
21334
21335 2011-01-24  Jim Meyering  <meyering@redhat.com>
21336
21337         u64: remove unnecessary #include
21338         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21339
21340 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21341
21342         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21343         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21344
21345 2011-01-23  Bruno Haible  <bruno@clisp.org>
21346
21347         New module 'vma-iter'.
21348         * lib/vma-iter.h: New file.
21349         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21350         * modules/vma-iter: New file.
21351         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21352         for get_rusage_as_via_iterator.
21353         (vma_iterate_callback): New function.
21354         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21355         * modules/get-rusage-as (Depends-on): Add vma-iter.
21356
21357 2011-01-23  Bruno Haible  <bruno@clisp.org>
21358
21359         uninorm: Tweak includes.
21360         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21361         Reported by Jim Meyering.
21362
21363 2011-01-23  Bruno Haible  <bruno@clisp.org>
21364
21365         get-rusage-as: Improve on NetBSD.
21366         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21367         /proc, like on FreeBSD.
21368
21369 2011-01-23  Jim Meyering  <meyering@redhat.com>
21370
21371         xreadlink.h: remove unnecessary #include
21372         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21373
21374         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21375         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21376
21377 2011-01-23  Bruno Haible  <bruno@clisp.org>
21378
21379         get-rusage-as: Fix bug.
21380         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21381         original limit when aborting the first loop.
21382
21383 2011-01-23  Bruno Haible  <bruno@clisp.org>
21384
21385         wctype: Ensure valid C syntax.
21386         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21387         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21388
21389 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21390
21391         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21392         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21393         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21394         as they are needed only for configure's test case.
21395         This removes two unnecessary symbols from config.h.
21396
21397         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21398         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21399         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21400         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21401         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21402         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21403         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21404         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21405         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21406         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21407         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21408         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21409         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21410         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21411         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21412         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21413         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21414         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21415
21416 2011-01-21  Eric Blake  <eblake@redhat.com>
21417
21418         maintainer-makefile: work with older git for submodule check
21419         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21420         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21421         Reported by Matthias Bolte.
21422
21423         bootstrap: minor portability fixes
21424         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21425         (usage): Omit leading capital and trailing . on help phrases, per
21426         GNU Coding Standards.
21427         (check_versions, top level): Prefix messages with script name.
21428
21429 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21430
21431         bootstrap: support --no-git option
21432         * build-aux/bootstrap: Add --no-git option, to be used when
21433         --gnulib-srcdir points to the exact desired checkout.
21434
21435 2011-01-21  Eric Blake  <eblake@redhat.com>
21436
21437         strerror_r-posix: work with glibc 2.13
21438         * lib/strerror_r.c (strerror_r): Fix return type.
21439
21440 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21441             Bruno Haible  <bruno@clisp.org>
21442
21443         uN_strstr: New unit tests.
21444         * modules/unistr/u8-strstr-tests: New file.
21445         * modules/unistr/u16-strstr-tests: New file.
21446         * modules/unistr/u32-strstr-tests: New file.
21447         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21448         * tests/unistr/test-u8-strstr.c: New file.
21449         * tests/unistr/test-u16-strstr.c: New file.
21450         * tests/unistr/test-u32-strstr.c: New file.
21451
21452 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21453             Bruno Haible  <bruno@clisp.org>
21454
21455         Make uN_strstr functions O(n) worst-case.
21456         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21457         16-bit and 32-bit unit cases, use the unibyte algorithm from
21458         lib/mbsstr.c.
21459         * lib/unistr/u8-strstr.c: Include <string.h>.
21460         (UNIT_IS_UINT8_T): New macro.
21461         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21462         (U_STRLEN, U_STRNLEN): New macros.
21463         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21464         (U_STRLEN, U_STRNLEN): New macros.
21465         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21466         (configure.ac): Update required libunistring version.
21467         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21468         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21469         malloca.
21470         (configure.ac): Update required libunistring version.
21471         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21472         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21473         malloca.
21474         (configure.ac): Update required libunistring version.
21475
21476 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21477             Bruno Haible  <bruno@clisp.org>
21478
21479         Prepare for faster uN_strstr functions.
21480         * lib/str-kmp.h: Support definable UNITs.
21481         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21482         needle_len argument.
21483         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21484         * lib/mbscasestr.c (mbscasestr): Likewise.
21485
21486 2011-01-21  Pádraig Brady <P@draigBrady.com>
21487
21488         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21489         * tests/test-malloca.c (main): Unset the environment variable
21490         to greatly speed up the test.
21491         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21492         * modules/malloca-tests: Depend on unsetenv.
21493
21494 2011-01-21  Pádraig Brady <P@draigBrady.com>
21495
21496         ignore-value: remove stdint dependency
21497         * lib/ignore-value.h: Remove <stdint.h>
21498         * modules/ignore-value: Remove stdint dependency.
21499
21500 2011-01-21  Jim Meyering  <meyering@redhat.com>
21501
21502         maint.mk: adjust variable name to be consistent with other gl_ vars
21503         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21504         to be lower case.
21505
21506 2011-01-20  Jim Meyering  <meyering@redhat.com>
21507
21508         maint.mk: make "check" depend on public-submodule-commit by default
21509         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21510
21511 2011-01-20  Bruno Haible  <bruno@clisp.org>
21512
21513         mbfile, mbiter: Complete change from 2008-12-21.
21514         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21515         * m4/mbiter.m4 (gl_MBITER): Likewise.
21516
21517 2011-01-20  Jim Meyering  <meyering@redhat.com>
21518
21519         init.sh: insert space between each function name and "()"
21520         * tests/init.sh: Make it a little easier to see that a function's
21521         name is "warn_", and not "warn" when looking at the first part of
21522         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21523
21524 2011-01-20  Jim Meyering  <meyering@redhat.com>
21525
21526         mountlist: clean up code formatting
21527         * lib/mountlist.c (read_file_system_list): Split a long line,
21528         correct bracing style, use NULL in place of "(struct statfs *)0",
21529         don't parenthesize return value, add spaces around "=" and after
21530         ";-in-for-stmt".
21531
21532 2011-01-14  Markus Duft <mduft@gentoo.org>
21533
21534         mountlist: add support for Interix
21535         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21536         Apply statvfs to all entries of /dev/fs.
21537         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21538         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21539
21540 2011-01-20  Jim Meyering  <meyering@redhat.com>
21541
21542         maint.mk: improve the public-submodule-commit rule
21543         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21544         to suppress printing of its commands... unless V=1.
21545         Add git submodule's --quiet option to suppress printing of e.g.,
21546         "Entering gnulib" output.
21547         "cd" into $(srcdir) before running git submodule.
21548
21549 2011-01-20  Bruno Haible  <bruno@clisp.org>
21550
21551         include_next: Fix bug introduced on 2011-01-18.
21552         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21553         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21554         ac_cv_header_... variable if the second argument is not 'check'.
21555         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21556         gl_NEXT_HEADERS_INTERNAL.
21557
21558 2011-01-20  Bruno Haible  <bruno@clisp.org>
21559
21560         Allow the user to avoid the GNULIB_TEST_* macros.
21561         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21562         Suggested by Paul Eggert.
21563
21564 2011-01-14  Jim Meyering  <meyering@redhat.com>
21565
21566         bootstrap: avoid failure when there is no .gitmodules file
21567         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21568         has been assigned to, even when its value is the empty string.
21569         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21570         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21571         Reported by John W. Eaton <jwe@gnu.org>.
21572
21573 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21574
21575         assume <ctype.h>, ..., <time.h> exist
21576         For years gnulib has been assuming the existence of the headers
21577         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21578         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21579         them, since they don't appear to be needed.
21580         * README (Portability guidelines): Document this.
21581         * lib/flock.c: Assume <fcntl.h> exists.
21582         * lib/regex_internal.h: Assume <locale.h> exists.
21583         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21584         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21585         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21586         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21587         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21588         * m4/regex.m4 (gl_REGEX): Likewise.
21589         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21590         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21591         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21592         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21593         * tests/test-argp.c: Likewise.
21594         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21595
21596         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21597         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21598         AA_APPLE_UNIVERSAL_BUILD.  See
21599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21600         * NEWS: Document this.
21601
21602 2011-01-19  Eric Blake  <eblake@redhat.com>
21603
21604         c-stack: assume stack overflow if SA_SIGINFO unsupported
21605         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21606         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21607         sigaction will work.
21608         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21609         behavior match Linux.
21610         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21611
21612         stdbool-tests: accommodate Haiku
21613         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21614
21615         binary-io: fix O_TEXT on Haiku
21616         * modules/binary-io (Depends-on): Add fcntl-h.
21617         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21618         than blindly undefining O_TEXT.
21619         Reported by Scott McCreary.
21620
21621 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21622
21623         include_next: do not check for standard headers like stddef.h
21624
21625         I found this problem when modifying Emacs to use gnulib.
21626         I noticed that it added HAVE_STDDEF_H to config.h, even though
21627         gnulib always assumes <stddef.h> exists as per README and this
21628         symbol is unnecessary.
21629         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21630         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21631         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21632         faster for headers like stddef.h that are known to exist.
21633         (gl_CHECK_NEXT_HEADERS): Use it.
21634         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21635         rather than gl_CHECK_NEXT_HEADERS.
21636         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21637         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21638
21639 2011-01-18  Eric Blake  <eblake@redhat.com>
21640
21641         ansi-c++-opt: skip C++ dependency style if C++ is unused
21642         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21643         tests when we know C++ compilation is not desired.
21644         Reported by Scott McCreary.
21645
21646 2011-01-18  Bruno Haible  <bruno@clisp.org>
21647
21648         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21649         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21650         (main): Perform test also when getrlimit and setrlimit don't exist or
21651         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21652         limiting the address space size using setrlimit, compare the address
21653         space size before and after the the test.
21654         * tests/test-dprintf-posix2.c: Likewise.
21655         * tests/test-fprintf-posix3.sh: Update skip messages.
21656         * tests/test-dprintf-posix2.sh: Likewise.
21657         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21658         * modules/dprintf-posix-tests (Depends-on): Likewise.
21659         Reported by Bruce Korb <bkorb@gnu.org> and
21660         Gary V. Vaughan <gary@gnu.org>.
21661
21662 2011-01-18  Bruno Haible  <bruno@clisp.org>
21663
21664         get-rusage-as: Improvement for Cygwin.
21665         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21666         areas that are merely reserved.
21667
21668 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21669
21670         strftime: remove dependencies on multibyte modules
21671
21672         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21673         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21674         only if __osf__ is defined, and I suspect OSF doesn't need these
21675         other modules.  If my guess is wrong, we'll need to come up with a
21676         variant of strftime that doesn't need the multibyte modules.
21677
21678         I discovered this problem when attempting modify Emacs to use the
21679         strftime module.  With the previous gnulib, this caused Emacs to
21680         need 31 new files, ranging from lib/config.charset to
21681         m4/wint_t.m4.  This was overkill and I expect would be offputting
21682         to the Emacs maintainers.  After this change, only 6 new files are
21683         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21684         stdbool.m4, and tm_gmtoff.m4.
21685
21686         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21687         Suggested by Bruno Haible in
21688         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21689         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21690         and do not check for wchar.h.
21691         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21692         (Depends-on): Remove mbrlen, mbsinit, wchar.
21693
21694 2011-01-18  Bruno Haible  <bruno@clisp.org>
21695
21696         Tests for module 'get-rusage-as'.
21697         * modules/get-rusage-as-tests: New file.
21698         * tests/test-get-rusage-as.c: New file.
21699
21700         New module 'get-rusage-as'.
21701         * modules/get-rusage-as: New file.
21702         * lib/resource-ext.h: New file.
21703         * lib/get-rusage-as.c: New file.
21704
21705 2011-01-17  Eric Blake  <eblake@redhat.com>
21706
21707         sigaction: relax license from LGPLv3+ to LGPLv2+
21708         * modules/sigaction (License): Relax to LGPLv2+.
21709
21710 2011-01-14  Bruno Haible  <bruno@clisp.org>
21711
21712         filemode: Make function declarations usable in C++ mode.
21713         * lib/filemode.h: Enclose function declarations in extern "C" block.
21714         Reported by John W. Eaton <jwe@gnu.org>.
21715
21716 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21717
21718         save-cwd: no longer include "xgetcwd.h"
21719         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21720         This avoids a compilation failure in projects that use save-cwd
21721         without also using the xgetcwd module.
21722
21723 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21724
21725         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21726         This is so that a program like Emacs, which needs only dtoastr,
21727         does not have to bother with distributing and compiling ftoastr
21728         and ldtoastr.
21729         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21730         * modules/dtoastr, modules/ldtoastr: New files.
21731         * modules/ftoastr: Now works just for 'float'.
21732         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21733         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21734         dtoastr.c, ldtoastr.c.
21735
21736 2011-01-11  Jim Meyering  <meyering@redhat.com>
21737
21738         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21739         There is no need to work around the lack of the fchdir function,
21740         since gnulib can now provide a replacement when required.
21741         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21742         * modules/save-cwd (Depends-on): Add fchdir.
21743
21744 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21745
21746         openat, save-cwd: avoid xmalloc
21747
21748         This removes a direct (but undocumented) dependency of openat on
21749         xalloc, along with an indirect dependency via save-cwd.  It also
21750         removes a dependency of save-cwd on xgetcwd, and thereby
21751         indirectly on xalloc.  This change causes the openat substitute
21752         to fall back on save_cwd when memory is tight, and for save_cwd to
21753         fail instead of dying when memory is tight, but that's good enough.
21754         Problem and initial idea for fix reported by Bastien Roucaries in
21755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21756
21757         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21758         xalloc.h (for xmalloc).
21759         (openat_proc_name): Use malloc, not xmalloc.
21760         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21761         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21762
21763         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21764         This avoids heap allocation for file names whose lengths are in
21765         the range 512..1023, with the upper bound increasing to at most
21766         4031 depending on the platform's PATH_MAX.  (We do not want
21767         pathmax.h here as it might supply a non-constant PATH_MAX.)
21768         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21769         Perhaps they should be moved to malloca.h?
21770         (OPENAT_BUFFER_SIZE): Use them.
21771
21772 2011-01-10  Bruno Haible  <bruno@clisp.org>
21773
21774         doc: Update users.txt.
21775         * users.txt: Add recutils.
21776
21777 2011-01-09  Karl Berry  <karl@gnu.org>
21778
21779         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21780
21781         * doc/configmake.texi: New file.
21782         * doc/gnulib.texi: Include it.
21783         * modules/configmake: Move documentation from here.
21784
21785 2011-01-09  Bruno Haible  <bruno@clisp.org>
21786
21787         Update to Unicode 6.0.0.
21788         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21789         (get_lbp): Update for Unicode 6.0.0.
21790         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21791         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21792         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21793         U+11001, U+11038..U+11046. Remove U+06DE.
21794         (uc_width): Fix bounds of planes.
21795         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21796         lib/uniwidth/width.c.
21797         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21798         trailing whitespace removed.
21799         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21800         without comments, but with the original copyright notice.
21801         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21802         * lib/unicase/ignorable.h: Likewise.
21803         * lib/unicase/tocasefold.h: Likewise.
21804         * lib/unicase/tolower.h: Likewise.
21805         * lib/unicase/totitle.h: Likewise.
21806         * lib/unicase/toupper.h: Likewise.
21807         * lib/unictype/bidi_of.h: Likewise.
21808         * lib/unictype/blocks.h: Likewise.
21809         * lib/unictype/categ_C.h: Likewise.
21810         * lib/unictype/categ_Cn.h: Likewise.
21811         * lib/unictype/categ_L.h: Likewise.
21812         * lib/unictype/categ_Ll.h: Likewise.
21813         * lib/unictype/categ_Lm.h: Likewise.
21814         * lib/unictype/categ_Lo.h: Likewise.
21815         * lib/unictype/categ_Lu.h: Likewise.
21816         * lib/unictype/categ_M.h: Likewise.
21817         * lib/unictype/categ_Mc.h: Likewise.
21818         * lib/unictype/categ_Me.h: Likewise.
21819         * lib/unictype/categ_Mn.h: Likewise.
21820         * lib/unictype/categ_N.h: Likewise.
21821         * lib/unictype/categ_Nd.h: Likewise.
21822         * lib/unictype/categ_No.h: Likewise.
21823         * lib/unictype/categ_P.h: Likewise.
21824         * lib/unictype/categ_Po.h: Likewise.
21825         * lib/unictype/categ_S.h: Likewise.
21826         * lib/unictype/categ_Sc.h: Likewise.
21827         * lib/unictype/categ_Sk.h: Likewise.
21828         * lib/unictype/categ_Sm.h: Likewise.
21829         * lib/unictype/categ_So.h: Likewise.
21830         * lib/unictype/categ_of.h: Likewise.
21831         * lib/unictype/combining.h: Likewise.
21832         * lib/unictype/ctype_alnum.h: Likewise.
21833         * lib/unictype/ctype_alpha.h: Likewise.
21834         * lib/unictype/ctype_graph.h: Likewise.
21835         * lib/unictype/ctype_lower.h: Likewise.
21836         * lib/unictype/ctype_print.h: Likewise.
21837         * lib/unictype/ctype_punct.h: Likewise.
21838         * lib/unictype/ctype_upper.h: Likewise.
21839         * lib/unictype/decdigit.h: Likewise.
21840         * lib/unictype/digit.h: Likewise.
21841         * lib/unictype/numeric.h: Likewise.
21842         * lib/unictype/pr_alphabetic.h: Likewise.
21843         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21844         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21845         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21846         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21847         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21848         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21849         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21850         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21851         * lib/unictype/pr_case_ignorable.h: Likewise.
21852         * lib/unictype/pr_cased.h: Likewise.
21853         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21854         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21855         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21856         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21857         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21858         * lib/unictype/pr_combining.h: Likewise.
21859         * lib/unictype/pr_composite.h: Likewise.
21860         * lib/unictype/pr_currency_symbol.h: Likewise.
21861         * lib/unictype/pr_decimal_digit.h: Likewise.
21862         * lib/unictype/pr_deprecated.h: Likewise.
21863         * lib/unictype/pr_format_control.h: Likewise.
21864         * lib/unictype/pr_grapheme_base.h: Likewise.
21865         * lib/unictype/pr_grapheme_extend.h: Likewise.
21866         * lib/unictype/pr_grapheme_link.h: Likewise.
21867         * lib/unictype/pr_id_continue.h: Likewise.
21868         * lib/unictype/pr_id_start.h: Likewise.
21869         * lib/unictype/pr_ideographic.h: Likewise.
21870         * lib/unictype/pr_lowercase.h: Likewise.
21871         * lib/unictype/pr_math.h: Likewise.
21872         * lib/unictype/pr_numeric.h: Likewise.
21873         * lib/unictype/pr_other_alphabetic.h: Likewise.
21874         * lib/unictype/pr_other_id_continue.h: Likewise.
21875         * lib/unictype/pr_other_math.h: Likewise.
21876         * lib/unictype/pr_punctuation.h: Likewise.
21877         * lib/unictype/pr_sentence_terminal.h: Likewise.
21878         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21879         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21880         * lib/unictype/pr_unified_ideograph.h: Likewise.
21881         * lib/unictype/pr_uppercase.h: Likewise.
21882         * lib/unictype/pr_xid_continue.h: Likewise.
21883         * lib/unictype/pr_xid_start.h: Likewise.
21884         * lib/unictype/scripts.h: Likewise.
21885         * lib/unictype/scripts_byname.gperf: Likewise.
21886         * lib/unictype/sy_java_ident.h: Likewise.
21887         * lib/unigbrk/gbrkprop.h: Likewise.
21888         * lib/unilbrk/lbrkprop1.h: Likewise.
21889         * lib/unilbrk/lbrkprop2.h: Likewise.
21890         * lib/uninorm/decomposition-table2.h: Likewise.
21891         * lib/uniwbrk/wbrkprop.h: Likewise.
21892         * tests/unicase/test-cased.c: Likewise.
21893         * tests/unicase/test-ignorable.c: Likewise.
21894         * tests/unicase/test-uc_tolower.c: Likewise.
21895         * tests/unicase/test-uc_totitle.c: Likewise.
21896         * tests/unicase/test-uc_toupper.c: Likewise.
21897         * tests/unictype/test-categ_C.c: Likewise.
21898         * tests/unictype/test-categ_Cn.c: Likewise.
21899         * tests/unictype/test-categ_L.c: Likewise.
21900         * tests/unictype/test-categ_Ll.c: Likewise.
21901         * tests/unictype/test-categ_Lm.c: Likewise.
21902         * tests/unictype/test-categ_Lo.c: Likewise.
21903         * tests/unictype/test-categ_Lu.c: Likewise.
21904         * tests/unictype/test-categ_M.c: Likewise.
21905         * tests/unictype/test-categ_Mc.c: Likewise.
21906         * tests/unictype/test-categ_Me.c: Likewise.
21907         * tests/unictype/test-categ_Mn.c: Likewise.
21908         * tests/unictype/test-categ_N.c: Likewise.
21909         * tests/unictype/test-categ_Nd.c: Likewise.
21910         * tests/unictype/test-categ_No.c: Likewise.
21911         * tests/unictype/test-categ_P.c: Likewise.
21912         * tests/unictype/test-categ_Po.c: Likewise.
21913         * tests/unictype/test-categ_S.c: Likewise.
21914         * tests/unictype/test-categ_Sc.c: Likewise.
21915         * tests/unictype/test-categ_Sk.c: Likewise.
21916         * tests/unictype/test-categ_Sm.c: Likewise.
21917         * tests/unictype/test-categ_So.c: Likewise.
21918         * tests/unictype/test-ctype_alnum.c: Likewise.
21919         * tests/unictype/test-ctype_alpha.c: Likewise.
21920         * tests/unictype/test-ctype_graph.c: Likewise.
21921         * tests/unictype/test-ctype_lower.c: Likewise.
21922         * tests/unictype/test-ctype_print.c: Likewise.
21923         * tests/unictype/test-ctype_punct.c: Likewise.
21924         * tests/unictype/test-ctype_upper.c: Likewise.
21925         * tests/unictype/test-decdigit.h: Likewise.
21926         * tests/unictype/test-digit.h: Likewise.
21927         * tests/unictype/test-numeric.h: Likewise.
21928         * tests/unictype/test-pr_alphabetic.c: Likewise.
21929         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21930         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21931         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21932         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21933         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21934         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21935         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21936         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21937         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21938         * tests/unictype/test-pr_cased.c: Likewise.
21939         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21940         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21941         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21942         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21943         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21944         * tests/unictype/test-pr_combining.c: Likewise.
21945         * tests/unictype/test-pr_composite.c: Likewise.
21946         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21947         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21948         * tests/unictype/test-pr_deprecated.c: Likewise.
21949         * tests/unictype/test-pr_format_control.c: Likewise.
21950         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21951         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21952         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21953         * tests/unictype/test-pr_id_continue.c: Likewise.
21954         * tests/unictype/test-pr_id_start.c: Likewise.
21955         * tests/unictype/test-pr_ideographic.c: Likewise.
21956         * tests/unictype/test-pr_lowercase.c: Likewise.
21957         * tests/unictype/test-pr_math.c: Likewise.
21958         * tests/unictype/test-pr_numeric.c: Likewise.
21959         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21960         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21961         * tests/unictype/test-pr_other_math.c: Likewise.
21962         * tests/unictype/test-pr_punctuation.c: Likewise.
21963         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21964         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21965         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21966         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21967         * tests/unictype/test-pr_uppercase.c: Likewise.
21968         * tests/unictype/test-pr_xid_continue.c: Likewise.
21969         * tests/unictype/test-pr_xid_start.c: Likewise.
21970         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21971         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21972         changes.
21973         * lib/unictype/categ_Cc.h: Likewise.
21974         * lib/unictype/categ_Cf.h: Likewise.
21975         * lib/unictype/categ_Co.h: Likewise.
21976         * lib/unictype/categ_Cs.h: Likewise.
21977         * lib/unictype/categ_Lt.h: Likewise.
21978         * lib/unictype/categ_Nl.h: Likewise.
21979         * lib/unictype/categ_Pc.h: Likewise.
21980         * lib/unictype/categ_Pd.h: Likewise.
21981         * lib/unictype/categ_Pe.h: Likewise.
21982         * lib/unictype/categ_Pf.h: Likewise.
21983         * lib/unictype/categ_Pi.h: Likewise.
21984         * lib/unictype/categ_Ps.h: Likewise.
21985         * lib/unictype/categ_Z.h: Likewise.
21986         * lib/unictype/categ_Zl.h: Likewise.
21987         * lib/unictype/categ_Zp.h: Likewise.
21988         * lib/unictype/categ_Zs.h: Likewise.
21989         * lib/unictype/ctype_blank.h: Likewise.
21990         * lib/unictype/ctype_cntrl.h: Likewise.
21991         * lib/unictype/ctype_digit.h: Likewise.
21992         * lib/unictype/ctype_space.h: Likewise.
21993         * lib/unictype/ctype_xdigit.h: Likewise.
21994         * lib/unictype/mirror.h: Likewise.
21995         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21996         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21997         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21998         * lib/unictype/pr_bidi_control.h: Likewise.
21999         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22000         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22001         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22002         * lib/unictype/pr_bidi_pdf.h: Likewise.
22003         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22004         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22005         * lib/unictype/pr_dash.h: Likewise.
22006         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22007         * lib/unictype/pr_diacritic.h: Likewise.
22008         * lib/unictype/pr_extender.h: Likewise.
22009         * lib/unictype/pr_hex_digit.h: Likewise.
22010         * lib/unictype/pr_hyphen.h: Likewise.
22011         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22012         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22013         * lib/unictype/pr_ignorable_control.h: Likewise.
22014         * lib/unictype/pr_iso_control.h: Likewise.
22015         * lib/unictype/pr_join_control.h: Likewise.
22016         * lib/unictype/pr_left_of_pair.h: Likewise.
22017         * lib/unictype/pr_line_separator.h: Likewise.
22018         * lib/unictype/pr_logical_order_exception.h: Likewise.
22019         * lib/unictype/pr_non_break.h: Likewise.
22020         * lib/unictype/pr_not_a_character.h: Likewise.
22021         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22022         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22023         * lib/unictype/pr_other_id_start.h: Likewise.
22024         * lib/unictype/pr_other_lowercase.h: Likewise.
22025         * lib/unictype/pr_other_uppercase.h: Likewise.
22026         * lib/unictype/pr_paired_punctuation.h: Likewise.
22027         * lib/unictype/pr_paragraph_separator.h: Likewise.
22028         * lib/unictype/pr_pattern_syntax.h: Likewise.
22029         * lib/unictype/pr_pattern_white_space.h: Likewise.
22030         * lib/unictype/pr_private_use.h: Likewise.
22031         * lib/unictype/pr_quotation_mark.h: Likewise.
22032         * lib/unictype/pr_radical.h: Likewise.
22033         * lib/unictype/pr_soft_dotted.h: Likewise.
22034         * lib/unictype/pr_space.h: Likewise.
22035         * lib/unictype/pr_titlecase.h: Likewise.
22036         * lib/unictype/pr_variation_selector.h: Likewise.
22037         * lib/unictype/pr_white_space.h: Likewise.
22038         * lib/unictype/pr_zero_width.h: Likewise.
22039         * lib/unictype/sy_c_ident.h: Likewise.
22040         * lib/unictype/sy_c_whitespace.h: Likewise.
22041         * lib/unictype/sy_java_whitespace.h: Likewise.
22042         * lib/uninorm/composition-table.gperf: Likewise.
22043         * lib/uninorm/decomposition-table1.h: Likewise.
22044         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22045         LB8.
22046         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22047         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22048         * modules/unictype/*: Bump version number of expected libunistring
22049         version.
22050
22051 2011-01-09  Bruno Haible  <bruno@clisp.org>
22052
22053         Update to Unicode 5.2.0.
22054         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22055         trailing whitespace removed.
22056
22057 2011-01-09  Bruno Haible  <bruno@clisp.org>
22058
22059         New Unicode character properties, from Unicode 5.2.0.
22060         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22061         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22062         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22063         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22064         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22065         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22066         uc_is_property_cased, uc_is_property_case_ignorable,
22067         uc_is_property_changes_when_lowercased,
22068         uc_is_property_changes_when_uppercased,
22069         uc_is_property_changes_when_titlecased,
22070         uc_is_property_changes_when_casefolded,
22071         uc_is_property_changes_when_casemapped): New declarations.
22072         * lib/unictype/pr_byname.gperf: Add the new properties.
22073         * modules/unictype/property-byname (Depends-on): Depend on the new
22074         properties modules.
22075         * modules/unictype/property-all (Depends-on): Likewise.
22076         * MODULES.html.sh (Unicode string functions): Add
22077         unictype/property-case-ignorable, unictype/property-cased,
22078         unictype/property-changes-when-casefolded,
22079         unictype/property-changes-when-casemapped,
22080         unictype/property-changes-when-lowercased,
22081         unictype/property-changes-when-titlecased,
22082         unictype/property-changes-when-uppercased.
22083
22084         New module 'unictype/property-changes-when-casemapped'.
22085         * modules/unictype/property-changes-when-casemapped: New file.
22086         * lib/unictype/pr_changes_when_casemapped.c: New file.
22087         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22088         generated by gen-uni-tables.
22089         * modules/unictype/property-changes-when-casemapped-tests: New file.
22090         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22091         automatically generated by gen-uni-tables.
22092
22093         New module 'unictype/property-changes-when-casefolded'.
22094         * modules/unictype/property-changes-when-casefolded: New file.
22095         * lib/unictype/pr_changes_when_casefolded.c: New file.
22096         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22097         generated by gen-uni-tables.
22098         * modules/unictype/property-changes-when-casefolded-tests: New file.
22099         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22100         automatically generated by gen-uni-tables.
22101
22102         New module 'unictype/property-changes-when-titlecased'.
22103         * modules/unictype/property-changes-when-titlecased: New file.
22104         * lib/unictype/pr_changes_when_titlecased.c: New file.
22105         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22106         generated by gen-uni-tables.
22107         * modules/unictype/property-changes-when-titlecased-tests: New file.
22108         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22109         automatically generated by gen-uni-tables.
22110
22111         New module 'unictype/property-changes-when-uppercased'.
22112         * modules/unictype/property-changes-when-uppercased: New file.
22113         * lib/unictype/pr_changes_when_uppercased.c: New file.
22114         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22115         generated by gen-uni-tables.
22116         * modules/unictype/property-changes-when-uppercased-tests: New file.
22117         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22118         automatically generated by gen-uni-tables.
22119
22120         New module 'unictype/property-changes-when-lowercased'.
22121         * modules/unictype/property-changes-when-lowercased: New file.
22122         * lib/unictype/pr_changes_when_lowercased.c: New file.
22123         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22124         generated by gen-uni-tables.
22125         * modules/unictype/property-changes-when-lowercased-tests: New file.
22126         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22127         automatically generated by gen-uni-tables.
22128
22129         New module 'unictype/property-case-ignorable'.
22130         * modules/unictype/property-case-ignorable: New file.
22131         * lib/unictype/pr_case_ignorable.c: New file.
22132         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22133         by gen-uni-tables.
22134         * modules/unictype/property-case-ignorable-tests: New file.
22135         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22136         generated by gen-uni-tables.
22137
22138         New module 'unictype/property-cased'.
22139         * modules/unictype/property-cased: New file.
22140         * lib/unictype/pr_cased.c: New file.
22141         * lib/unictype/pr_cased.h: New file, automatically generated by
22142         gen-uni-tables.
22143         * modules/unictype/property-cased-tests: New file.
22144         * tests/unictype/test-pr_cased.c: New file, automatically generated by
22145         gen-uni-tables.
22146
22147 2011-01-09  Bruno Haible  <bruno@clisp.org>
22148
22149         Update to Unicode 5.2.0.
22150         * lib/gen-uni-tables.c (output_predicate, output_category,
22151         output_combclass, output_bidi_category, output_decimal_digit_test,
22152         output_decimal_digit, output_digit_test, output_digit,
22153         output_numeric_test, output_numeric, output_mirror, output_scripts,
22154         output_scripts_byname, output_blocks, output_ident_category): Fix
22155         comment header.
22156         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
22157         get_wbp.
22158         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
22159         items.
22160         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
22161         Changes_When_Lowercased, Changes_When_Uppercased,
22162         Changes_When_Titlecased, Changes_When_Casefolded,
22163         Changes_When_Casemapped.
22164         (is_property_alphabetic, is_property_default_ignorable_code_point):
22165         Update for Unicode 5.2.0.
22166         (is_property_cased, is_property_case_ignorable,
22167         is_property_changes_when_lowercased,
22168         is_property_changes_when_uppercased,
22169         is_property_changes_when_titlecased,
22170         is_property_changes_when_casefolded,
22171         is_property_changes_when_casemapped): New functions.
22172         (output_properties): Output also the properties cased, case_ignorable,
22173         changes_when_lowercased, changes_when_uppercased,
22174         changes_when_titlecased, changes_when_casefolded,
22175         changes_when_casemapped.
22176         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
22177         Unicode TR#11 revision 17 -> 19.
22178         (LBP_CP): New enumeration value.
22179         (LBP_*): Adjust values accordingly.
22180         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22181         TR#14 revision 22 -> 24.
22182         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22183         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22184         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22185         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22186         is_WBP_MIDLETTER.
22187         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22188         the code1 and code2 of each composition rule.
22189         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22190         * lib/unicase/ignorable.h: Likewise.
22191         * lib/unicase/tocasefold.h: Likewise.
22192         * lib/unicase/tolower.h: Likewise.
22193         * lib/unicase/totitle.h: Likewise.
22194         * lib/unicase/toupper.h: Likewise.
22195         * lib/unictype/bidi_of.h: Likewise.
22196         * lib/unictype/blocks.h: Likewise.
22197         * lib/unictype/categ_C.h: Likewise.
22198         * lib/unictype/categ_Cf.h: Likewise.
22199         * lib/unictype/categ_Cn.h: Likewise.
22200         * lib/unictype/categ_L.h: Likewise.
22201         * lib/unictype/categ_Ll.h: Likewise.
22202         * lib/unictype/categ_Lm.h: Likewise.
22203         * lib/unictype/categ_Lo.h: Likewise.
22204         * lib/unictype/categ_Lu.h: Likewise.
22205         * lib/unictype/categ_M.h: Likewise.
22206         * lib/unictype/categ_Mc.h: Likewise.
22207         * lib/unictype/categ_Mn.h: Likewise.
22208         * lib/unictype/categ_N.h: Likewise.
22209         * lib/unictype/categ_Nd.h: Likewise.
22210         * lib/unictype/categ_Nl.h: Likewise.
22211         * lib/unictype/categ_No.h: Likewise.
22212         * lib/unictype/categ_P.h: Likewise.
22213         * lib/unictype/categ_Pd.h: Likewise.
22214         * lib/unictype/categ_Po.h: Likewise.
22215         * lib/unictype/categ_S.h: Likewise.
22216         * lib/unictype/categ_Sc.h: Likewise.
22217         * lib/unictype/categ_So.h: Likewise.
22218         * lib/unictype/categ_of.h: Likewise.
22219         * lib/unictype/combining.h: Likewise.
22220         * lib/unictype/ctype_alnum.h: Likewise.
22221         * lib/unictype/ctype_alpha.h: Likewise.
22222         * lib/unictype/ctype_graph.h: Likewise.
22223         * lib/unictype/ctype_lower.h: Likewise.
22224         * lib/unictype/ctype_print.h: Likewise.
22225         * lib/unictype/ctype_punct.h: Likewise.
22226         * lib/unictype/ctype_upper.h: Likewise.
22227         * lib/unictype/decdigit.h: Likewise.
22228         * lib/unictype/digit.h: Likewise.
22229         * lib/unictype/numeric.h: Likewise.
22230         * lib/unictype/pr_alphabetic.h: Likewise.
22231         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22232         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22233         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22234         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22235         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22236         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22237         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22238         * lib/unictype/pr_combining.h: Likewise.
22239         * lib/unictype/pr_composite.h: Likewise.
22240         * lib/unictype/pr_currency_symbol.h: Likewise.
22241         * lib/unictype/pr_dash.h: Likewise.
22242         * lib/unictype/pr_decimal_digit.h: Likewise.
22243         * lib/unictype/pr_deprecated.h: Likewise.
22244         * lib/unictype/pr_diacritic.h: Likewise.
22245         * lib/unictype/pr_extender.h: Likewise.
22246         * lib/unictype/pr_grapheme_base.h: Likewise.
22247         * lib/unictype/pr_grapheme_extend.h: Likewise.
22248         * lib/unictype/pr_grapheme_link.h: Likewise.
22249         * lib/unictype/pr_id_continue.h: Likewise.
22250         * lib/unictype/pr_id_start.h: Likewise.
22251         * lib/unictype/pr_ideographic.h: Likewise.
22252         * lib/unictype/pr_ignorable_control.h: Likewise.
22253         * lib/unictype/pr_logical_order_exception.h: Likewise.
22254         * lib/unictype/pr_lowercase.h: Likewise.
22255         * lib/unictype/pr_numeric.h: Likewise.
22256         * lib/unictype/pr_other_alphabetic.h: Likewise.
22257         * lib/unictype/pr_punctuation.h: Likewise.
22258         * lib/unictype/pr_sentence_terminal.h: Likewise.
22259         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22260         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22261         * lib/unictype/pr_unified_ideograph.h: Likewise.
22262         * lib/unictype/pr_uppercase.h: Likewise.
22263         * lib/unictype/pr_xid_continue.h: Likewise.
22264         * lib/unictype/pr_xid_start.h: Likewise.
22265         * lib/unictype/pr_zero_width.h: Likewise.
22266         * lib/unictype/scripts.h: Likewise.
22267         * lib/unictype/scripts_byname.gperf: Likewise.
22268         * lib/unictype/sy_java_ident.h: Likewise.
22269         * lib/unigbrk/gbrkprop.h: Likewise.
22270         * lib/unilbrk/lbrkprop1.h: Likewise.
22271         * lib/unilbrk/lbrkprop2.h: Likewise.
22272         * lib/unilbrk/lbrktables.h: Likewise.
22273         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22274         LBP_CP. Implement rule LB30.
22275         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22276         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22277         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22278         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22279         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22280         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22281         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22282         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22283         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22284         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22285         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22286         bits instead of 16 bits in the code1 and code2 of each composition
22287         rule.
22288         (uc_composition): Update for Unicode 5.2.0.
22289         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22290         * lib/uninorm/decomposition-table2.h: Likewise.
22291         * lib/uniwbrk/wbrkprop.h: Likewise.
22292         * tests/unicase/test-cased.c: Likewise.
22293         * tests/unicase/test-ignorable.c: Likewise.
22294         * tests/unicase/test-uc_tolower.c: Likewise.
22295         * tests/unicase/test-uc_totitle.c: Likewise.
22296         * tests/unicase/test-uc_toupper.c: Likewise.
22297         * tests/unictype/test-categ_C.c: Likewise.
22298         * tests/unictype/test-categ_Cf.c: Likewise.
22299         * tests/unictype/test-categ_Cn.c: Likewise.
22300         * tests/unictype/test-categ_L.c: Likewise.
22301         * tests/unictype/test-categ_Ll.c: Likewise.
22302         * tests/unictype/test-categ_Lm.c: Likewise.
22303         * tests/unictype/test-categ_Lo.c: Likewise.
22304         * tests/unictype/test-categ_Lu.c: Likewise.
22305         * tests/unictype/test-categ_M.c: Likewise.
22306         * tests/unictype/test-categ_Mc.c: Likewise.
22307         * tests/unictype/test-categ_Mn.c: Likewise.
22308         * tests/unictype/test-categ_N.c: Likewise.
22309         * tests/unictype/test-categ_Nd.c: Likewise.
22310         * tests/unictype/test-categ_Nl.c: Likewise.
22311         * tests/unictype/test-categ_No.c: Likewise.
22312         * tests/unictype/test-categ_P.c: Likewise.
22313         * tests/unictype/test-categ_Pd.c: Likewise.
22314         * tests/unictype/test-categ_Po.c: Likewise.
22315         * tests/unictype/test-categ_S.c: Likewise.
22316         * tests/unictype/test-categ_Sc.c: Likewise.
22317         * tests/unictype/test-categ_So.c: Likewise.
22318         * tests/unictype/test-ctype_alnum.c: Likewise.
22319         * tests/unictype/test-ctype_alpha.c: Likewise.
22320         * tests/unictype/test-ctype_graph.c: Likewise.
22321         * tests/unictype/test-ctype_lower.c: Likewise.
22322         * tests/unictype/test-ctype_print.c: Likewise.
22323         * tests/unictype/test-ctype_punct.c: Likewise.
22324         * tests/unictype/test-ctype_upper.c: Likewise.
22325         * tests/unictype/test-decdigit.h: Likewise.
22326         * tests/unictype/test-digit.h: Likewise.
22327         * tests/unictype/test-numeric.h: Likewise.
22328         * tests/unictype/test-pr_alphabetic.c: Likewise.
22329         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22330         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22331         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22332         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22333         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22334         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22335         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22336         * tests/unictype/test-pr_combining.c: Likewise.
22337         * tests/unictype/test-pr_composite.c: Likewise.
22338         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22339         * tests/unictype/test-pr_dash.c: Likewise.
22340         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22341         * tests/unictype/test-pr_deprecated.c: Likewise.
22342         * tests/unictype/test-pr_diacritic.c: Likewise.
22343         * tests/unictype/test-pr_extender.c: Likewise.
22344         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22345         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22346         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22347         * tests/unictype/test-pr_id_continue.c: Likewise.
22348         * tests/unictype/test-pr_id_start.c: Likewise.
22349         * tests/unictype/test-pr_ideographic.c: Likewise.
22350         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22351         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22352         * tests/unictype/test-pr_lowercase.c: Likewise.
22353         * tests/unictype/test-pr_numeric.c: Likewise.
22354         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22355         * tests/unictype/test-pr_punctuation.c: Likewise.
22356         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22357         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22358         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22359         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22360         * tests/unictype/test-pr_uppercase.c: Likewise.
22361         * tests/unictype/test-pr_xid_continue.c: Likewise.
22362         * tests/unictype/test-pr_xid_start.c: Likewise.
22363         * tests/unictype/test-pr_zero_width.c: Likewise.
22364         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22365         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22366         changed behaviour: line breaking is now disallowed between a letter
22367         or '=' and '('.
22368         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22369         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22370         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22371         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22372         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22373         lib/uniwidth/width.c.
22374         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22375         without comments, but with the original copyright notice.
22376         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22377         changes.
22378         * lib/unictype/categ_Cc.h: Likewise.
22379         * lib/unictype/categ_Co.h: Likewise.
22380         * lib/unictype/categ_Cs.h: Likewise.
22381         * lib/unictype/categ_Lt.h: Likewise.
22382         * lib/unictype/categ_Me.h: Likewise.
22383         * lib/unictype/categ_Pc.h: Likewise.
22384         * lib/unictype/categ_Pe.h: Likewise.
22385         * lib/unictype/categ_Pf.h: Likewise.
22386         * lib/unictype/categ_Pi.h: Likewise.
22387         * lib/unictype/categ_Ps.h: Likewise.
22388         * lib/unictype/categ_Sk.h: Likewise.
22389         * lib/unictype/categ_Sm.h: Likewise.
22390         * lib/unictype/categ_Z.h: Likewise.
22391         * lib/unictype/categ_Zl.h: Likewise.
22392         * lib/unictype/categ_Zp.h: Likewise.
22393         * lib/unictype/categ_Zs.h: Likewise.
22394         * lib/unictype/ctype_blank.h: Likewise.
22395         * lib/unictype/ctype_cntrl.h: Likewise.
22396         * lib/unictype/ctype_digit.h: Likewise.
22397         * lib/unictype/ctype_space.h: Likewise.
22398         * lib/unictype/ctype_xdigit.h: Likewise.
22399         * lib/unictype/mirror.h: Likewise.
22400         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22401         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22402         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22403         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22404         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22405         * lib/unictype/pr_bidi_control.h: Likewise.
22406         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22407         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22408         * lib/unictype/pr_bidi_pdf.h: Likewise.
22409         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22410         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22411         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22412         * lib/unictype/pr_format_control.h: Likewise.
22413         * lib/unictype/pr_hex_digit.h: Likewise.
22414         * lib/unictype/pr_hyphen.h: Likewise.
22415         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22416         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22417         * lib/unictype/pr_iso_control.h: Likewise.
22418         * lib/unictype/pr_join_control.h: Likewise.
22419         * lib/unictype/pr_left_of_pair.h: Likewise.
22420         * lib/unictype/pr_line_separator.h: Likewise.
22421         * lib/unictype/pr_math.h: Likewise.
22422         * lib/unictype/pr_non_break.h: Likewise.
22423         * lib/unictype/pr_not_a_character.h: Likewise.
22424         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22425         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22426         * lib/unictype/pr_other_id_continue.h: Likewise.
22427         * lib/unictype/pr_other_id_start.h: Likewise.
22428         * lib/unictype/pr_other_lowercase.h: Likewise.
22429         * lib/unictype/pr_other_math.h: Likewise.
22430         * lib/unictype/pr_other_uppercase.h: Likewise.
22431         * lib/unictype/pr_paired_punctuation.h: Likewise.
22432         * lib/unictype/pr_paragraph_separator.h: Likewise.
22433         * lib/unictype/pr_pattern_syntax.h: Likewise.
22434         * lib/unictype/pr_pattern_white_space.h: Likewise.
22435         * lib/unictype/pr_private_use.h: Likewise.
22436         * lib/unictype/pr_quotation_mark.h: Likewise.
22437         * lib/unictype/pr_radical.h: Likewise.
22438         * lib/unictype/pr_soft_dotted.h: Likewise.
22439         * lib/unictype/pr_space.h: Likewise.
22440         * lib/unictype/pr_titlecase.h: Likewise.
22441         * lib/unictype/pr_variation_selector.h: Likewise.
22442         * lib/unictype/pr_white_space.h: Likewise.
22443         * lib/unictype/sy_c_ident.h: Likewise.
22444         * lib/unictype/sy_c_whitespace.h: Likewise.
22445         * lib/unictype/sy_java_whitespace.h: Likewise.
22446         * modules/uni*/*: Bump version number of expected libunistring version.
22447         Reported by Simon Josefsson.
22448
22449 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22450
22451         useless-if-before-free: fix typo in --help and make the internal,
22452         automatic version date update process work once again.
22453         --help output contained a NUL character instead of the
22454         backslash-zero that was intended.  Also, the "must lie within
22455         the first 8 lines" line is on line 9, and hence not getting
22456         automatically updated.
22457         * build-aux/useless-if-before-free: Fix the former by adding a
22458         backslash, and the latter by condensing the three lines of what-it-does
22459         to a single line, leaving one line of slack for the future.
22460
22461 2011-01-09  Bruno Haible  <bruno@clisp.org>
22462
22463         uniwidth/width: Fix width of U+1D173..U+1D17A.
22464         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22465         symbolic_width, output_width_property_test): New functions.
22466         (main): Invoke output_nonspacing_property, output_width_property_test.
22467         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22468         U+1D173..U+1D17A.
22469         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22470         1.
22471         * modules/uniwidth/*: Bump version number of expected libunistring
22472         version.
22473         * modules/unilbrk/*: Likewise.
22474
22475 2011-01-08  Bruno Haible  <bruno@clisp.org>
22476
22477         uninorm tests: Preserve copyright of Unicode data file.
22478         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22479         Mention modifications.
22480
22481 2011-01-08  Bruno Haible  <bruno@clisp.org>
22482
22483         gen-uni-tables: Prepare for Unicode 5.2.0.
22484         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22485         (debug_output_lbp, output_lbp): Update.
22486
22487 2011-01-08  Bruno Haible  <bruno@clisp.org>
22488
22489         unilbrk: Clarify gen-uni-tables.c code.
22490         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22491         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22492         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22493
22494 2011-01-07  Bruno Haible  <bruno@clisp.org>
22495
22496         strtod: Restore errno when successfully parsing Infinity or NaN.
22497         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22498         restore the original errno.
22499
22500 2011-01-07  Bruno Haible  <bruno@clisp.org>
22501
22502         remove test: Avoid failure on HP-UX 11.
22503         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22504
22505 2011-01-07  Bruno Haible  <bruno@clisp.org>
22506
22507         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22508         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22509         error code.
22510
22511 2011-01-07  Pádraig Brady <P@draigBrady.com>
22512
22513         ignore-value: fixup comments, and add Eric Blake
22514         as an author since he rewrote the macros.
22515         * lib/ignore-value.h (ignore_value):  State that
22516         we now support aggregates.  Also specify exactly
22517         when the GCC warn_unused_result feature was added.
22518
22519 2011-01-06  Eric Blake  <eblake@redhat.com>
22520
22521         ignore-value: support aggregate types
22522         * lib/ignore-value.h (ignore_value): Provide separate gcc
22523         definition.
22524         * modules/ignore-value-tests: New test module.
22525         * tests/test-ignore-value.c: New test.
22526
22527         maint.mk: improve sc_prohibit_strcmp regex
22528         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22529         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22530         definition of STRNEQ.
22531
22532         signal: work around Haiku issue with SIGBUS
22533         * lib/siglist.h: Add comment.
22534         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22535         strsignal's favoring of SIGSEGV.
22536         * tests/test-signal.c (main): Avoid test failure.
22537         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22538         Reported by Scott McCreary.
22539
22540         maint.mk: add pre-release check to ensure submodule commits are public
22541         * top/maint.mk (public-submodule-commit): New rule.
22542         (submodule-checks): New variable.
22543         (alpha beta stable): Depend on the variable.
22544
22545 2011-01-05  Pádraig Brady <P@draigBrady.com>
22546         and Jim Meyering  <meyering@redhat.com>
22547
22548         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22549         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22550         (ATTRIBUTE_DEPRECATED): Define.
22551         (_ignore_case): New function.
22552         (ignore_value): New macro, to replace the old function.
22553         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22554         * modules/ignore-value (Depends-on): Add stdint.
22555
22556 2011-01-04  Eric Blake  <eblake@redhat.com>
22557
22558         doc: regenerate INSTALL
22559         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22560         @firstparagraphindent support, now that autoconf dropped it.
22561         (INSTALL_PRELUDE): Reinstate old macro.
22562         * doc/install.texi: Resync from autoconf.
22563         * doc/INSTALL: Reflect recent autoconf update.
22564         * doc/INSTALL.ISO: Likewise.
22565         * doc/INSTALL.UTF-8: Likewise.
22566         Reported by Karl Berry.
22567
22568 2011-01-04  Bruce Korb  <address@hidden>
22569
22570         git-version-gen: avoid a sub-shell
22571         * build-aux/git-version-gen: Redirect stderr in `...` via
22572         "exec 2>...", rather than via an added sub-shell.
22573
22574 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22575
22576         git-version-gen: use (...) rather than sh -c '...'
22577         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22578         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22579
22580 2011-01-03  Jim Meyering  <meyering@redhat.com>
22581
22582         git-version-gen: convert leading TABs to spaces
22583         * build-aux/git-version-gen: Expand leading TABs.
22584
22585         git-version-gen: handle failed "git rev-list"
22586         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22587         from git and proceeding as if it had succeeded but printed no SHA1
22588         checksums, suppress the diagnostic and handle the failure.
22589         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22590
22591         git-version-gen: include command name in one more diagnostic
22592         * build-aux/git-version-gen: When the required .tarball-version file
22593         was missing or unreadable, you might see the diagnostic from "cat",
22594         but no trace of the name of the invoking script.  Now, you still see
22595         the diagnostic from cat, but also get one from "git-version-gen: ".
22596         Inspired by a patch from Bruce Korb.
22597
22598         update-copyright: adjust test to match changed code
22599         * tests/test-update-copyright.sh: Change test's expected output
22600         to match new actual output.
22601
22602 2011-01-02  Bruno Haible  <bruno@clisp.org>
22603
22604         getlogin_r: Avoid test failure on HP-UX 11.
22605         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22606         ERANGE when the second argument is zero.
22607         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22608         portability problem.
22609
22610 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22611
22612         * build-aux/update-copyright: doc Simon's changes
22613
22614 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22615
22616         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22617         environment variable.
22618
22619 2011-01-02  Bruno Haible  <bruno@clisp.org>
22620
22621         unigbrk: Avoid gcc warnings.
22622         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22623         unused variable.
22624         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22625         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22626         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22627         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22628         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22629         Change type of first argument to 'const char *'.
22630         (main): Remove unused variable.
22631         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22632         type of first argument to 'const char *'.
22633         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22634         Likewise.
22635         (main): Change type of variable 's'.
22636         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22637         to 'int'.
22638
22639 2011-01-02  Bruno Haible  <bruno@clisp.org>
22640
22641         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22642         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22643         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22644         bug.
22645         * lib/pwrite.c: Undo 2010-12-31 patch.
22646         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22647
22648 2011-01-02  Bruno Haible  <bruno@clisp.org>
22649
22650         pread: Fix test whether it works.
22651         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22652
22653 2011-01-02  Bruno Haible  <bruno@clisp.org>
22654
22655         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22656         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22657         ends in "6". Don't require a specific month name. Try also the locale
22658         names found on HP-UX 11 and Solaris 7.
22659
22660 2011-01-02  Bruno Haible  <bruno@clisp.org>
22661
22662         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22663         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22664         C linkage.
22665         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22666
22667 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22668
22669         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22670         for consistency, since the "cluster" term is not used elsewhere.
22671         * lib/unigbrk.in.h: Update name.
22672         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22673         * lib/unigbrk/u16-grapheme-next.c: Update name.
22674         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22675         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22676         * lib/unigbrk/u32-grapheme-next.c: Update name.
22677         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22678         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22679         * lib/unigbrk/u8-grapheme-next.c: Update name.
22680         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22681         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22682         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22683         Suggested by Bruno Haible.
22684
22685 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22686
22687         Remove module 'u8-grapheme-len' as too redundant with
22688         'u8-grapheme-next'.
22689         * modules/unigbrk/u8-grapheme-len: Delete file.
22690         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22691         * lib/unigbrk.in.h: Remove prototype for deleted function.
22692         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22693         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22694
22695         Remove module 'u16-grapheme-len' as too redundant with
22696         'u16-grapheme-next'.
22697         * modules/unigbrk/u16-grapheme-len: Delete file.
22698         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22699         * lib/unigbrk.in.h: Remove prototype for deleted function.
22700         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22701         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22702
22703         Remove module 'u32-grapheme-len' as too redundant with
22704         'u32-grapheme-next'.
22705         * modules/unigbrk/u32-grapheme-len: Delete file.
22706         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22707         * lib/unigbrk.in.h: Remove prototype for deleted function.
22708         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22709         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22710
22711         Suggested by Bruno Haible.
22712
22713 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22714
22715         * unigbrk.in.h: Fix typo: "ben" => "been".
22716         Reported by Bruno Haible.
22717
22718 2011-01-01  Jim Meyering  <meyering@redhat.com>
22719
22720         maint: update almost all copyright ranges to include 2011
22721         Run the new "make update-copyright" rule.
22722
22723 2011-01-01  Jim Meyering  <meyering@redhat.com>
22724
22725         maint: update-copyright: exempt doc/INSTALL*
22726         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22727         since they are generated.  Suggested by Bruno Haible.
22728
22729 2011-01-01  Jim Meyering  <meyering@redhat.com>
22730
22731         maint: refine the update-copyright rule
22732         * Makefile (update-copyright): Also exclude any file that includes
22733         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22734         code that merely generates the comment.
22735
22736 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22737
22738         New module 'u8-grapheme-len'.
22739         * modules/unigbrk/u8-grapheme-len: New file.
22740         * modules/unigbrk/u8-grapheme-len-tests: New file.
22741         * lib/unigbrk.in.h: Add prototype for new function.
22742         * lib/unigbrk/u8-grapheme-len.c: New file.
22743         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22744
22745         New module 'u16-grapheme-len'.
22746         * modules/unigbrk/u16-grapheme-len: New file.
22747         * modules/unigbrk/u16-grapheme-len-tests: New file.
22748         * lib/unigbrk.in.h: Add prototype for new function.
22749         * lib/unigbrk/u16-grapheme-len.c: New file.
22750         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22751
22752         New module 'u32-grapheme-len'.
22753         * modules/unigbrk/u32-grapheme-len: New file.
22754         * modules/unigbrk/u32-grapheme-len-tests: New file.
22755         * lib/unigbrk.in.h: Add prototype for new function.
22756         * lib/unigbrk/u32-grapheme-len.c: New file.
22757         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22758
22759         New module 'u8-grapheme-next'.
22760         * modules/unigbrk/u8-grapheme-next: New file.
22761         * modules/unigbrk/u8-grapheme-next-tests: New file.
22762         * lib/unigbrk.in.h: Add prototype for new function.
22763         * lib/unigbrk/u8-grapheme-next.c: New file.
22764         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22765
22766         New module 'u16-grapheme-next'.
22767         * modules/unigbrk/u16-grapheme-next: New file.
22768         * modules/unigbrk/u16-grapheme-next-tests: New file.
22769         * lib/unigbrk.in.h: Add prototype for new function.
22770         * lib/unigbrk/u16-grapheme-next.c: New file.
22771         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22772
22773         New module 'u32-grapheme-next'.
22774         * modules/unigbrk/u32-grapheme-next: New file.
22775         * modules/unigbrk/u32-grapheme-next-tests: New file.
22776         * lib/unigbrk.in.h: Add prototype for new function.
22777         * lib/unigbrk/u32-grapheme-next.c: New file.
22778         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22779
22780         New module 'u8-grapheme-prev'.
22781         * modules/unigbrk/u8-grapheme-prev: New file.
22782         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22783         * lib/unigbrk.in.h: Add prototype for new function.
22784         * lib/unigbrk/u8-grapheme-prev.c: New file.
22785         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22786
22787         New module 'u16-grapheme-prev'.
22788         * modules/unigbrk/u16-grapheme-prev: New file.
22789         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22790         * lib/unigbrk.in.h: Add prototype for new function.
22791         * lib/unigbrk/u16-grapheme-prev.c: New file.
22792         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22793
22794         New module 'u32-grapheme-prev'.
22795         * modules/unigbrk/u32-grapheme-prev: New file.
22796         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22797         * lib/unigbrk.in.h: Add prototype for new function.
22798         * lib/unigbrk/u32-grapheme-prev.c: New file.
22799         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22800
22801         New module 'u8-grapheme-breaks'.
22802         * modules/unigbrk/u8-grapheme-breaks: New file.
22803         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22804         * lib/unigbrk.in.h: Add prototype for new function.
22805         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22806         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22807
22808         New module 'u16-grapheme-breaks'.
22809         * modules/unigbrk/u16-grapheme-breaks: New file.
22810         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22811         * lib/unigbrk.in.h: Add prototype for new function.
22812         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22813         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22814
22815         New module 'u32-grapheme-breaks'.
22816         * modules/unigbrk/u32-grapheme-breaks: New file.
22817         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22818         * lib/unigbrk.in.h: Add prototype for new function.
22819         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22820         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22821
22822         New module 'ulc-grapheme-breaks'.
22823         * modules/unigbrk/ulc-grapheme-breaks: New file.
22824         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22825         * m4/locale-ar.m4: New file.
22826         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22827         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22828         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22829
22830 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22831
22832         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22833         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22834         modified how this file was generated before I initially submitted
22835         the module, but failed to regenerate it.  This meant that several
22836         of the level2 entries were wrong.
22837         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22838         Remove the division-by-2 that is folded into the table now that
22839         gbrkprop.h has been regenerated properly.  Now -1 entries are
22840         handled correctly.
22841
22842         New module 'unigbrk/uc-gbrk-prop-tests'.
22843         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22844         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22845         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22846         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22847
22848 2011-01-01  Bruno Haible  <bruno@clisp.org>
22849
22850         Avoid use of hexadecimal escapes.
22851         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22852         instead of hexadecimal escapes.
22853
22854 2011-01-01  Jim Meyering  <meyering@redhat.com>
22855
22856         maint: new rule to update copyright year ranges
22857         * Makefile (update-copyright): New rule.
22858
22859         maint: indent with TABs in Makefile
22860         * Makefile: Expand leading sequences of spaces to TABs
22861
22862         version-etc: update the copyright year it reports
22863         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22864
22865 2010-12-31  Bruno Haible  <bruno@clisp.org>
22866
22867         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22868         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22869         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22870         zero.
22871
22872 2010-12-31  Bruno Haible  <bruno@clisp.org>
22873
22874         pwrite: Work around HP-UX 11.11 bug.
22875         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22876         works and set REPLACE_PWRITE if not.
22877         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22878         function.
22879         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22880
22881 2010-12-31  Bruno Haible  <bruno@clisp.org>
22882
22883         pread: Work around HP-UX 11 bugs.
22884         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22885         and set REPLACE_PREAD if not.
22886         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22887
22888 2010-12-31  Eric Blake  <eblake@redhat.com>
22889
22890         nl_langinfo: fix YESEXPR on Irix 6.5
22891         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22892         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22893         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22894         it.
22895
22896 2010-12-31  Bruno Haible  <bruno@clisp.org>
22897
22898         iconv: Document HP-UX 11 bug.
22899         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22900
22901 2010-12-31  Bruno Haible  <bruno@clisp.org>
22902
22903         ldexpl: Fix link error on HP-UX 11.
22904         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22905         LDEXPL_LIBM, using $ISNANL_LIBM.
22906
22907 2010-12-31  Eric Blake  <eblake@redhat.com>
22908
22909         ftello: avoid compilation failure with SunStudio c89
22910         * lib/ftello.c (ftello): Use lseek, not llseek.
22911
22912         tests: avoid failing coreutils tests on cygwin
22913         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22914         (create_exe_shims_): Return 0 when skipping.
22915
22916 2010-12-31  Bruno Haible  <bruno@clisp.org>
22917
22918         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22919         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22920
22921 2010-12-31  Bruno Haible  <bruno@clisp.org>
22922
22923         waitpid: Fix link error in C++ mode.
22924         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22925
22926 2010-12-31  Bruno Haible  <bruno@clisp.org>
22927
22928         isnan: Use GCC built-ins when possible.
22929         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22930         __builtin_isnan.
22931         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22932         (isnan): Define using GCC built-ins for GCC >= 4.0.
22933
22934 2010-12-31  Bruno Haible  <bruno@clisp.org>
22935
22936         isnand: Fix mistake.
22937         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22938         __builtin_isnand.
22939
22940 2010-12-31  Bruno Haible  <bruno@clisp.org>
22941
22942         open: Avoid C++ error on HP-UX 11.
22943         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22944
22945 2010-12-31  Bruno Haible  <bruno@clisp.org>
22946
22947         time_r: Add missing declarations on HP-UX 11.
22948         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22949         instead of HAVE_LOCALTIME_R.
22950         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22951         HAVE_LOCALTIME_R always.
22952         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22953         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22954         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22955         HAVE_LOCALTIME_R.
22956         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22957         * doc/posix-functions/localtime_r.texi: Likewise.
22958
22959 2010-12-29  Eric Blake  <eblake@redhat.com>
22960
22961         mountlist: tweak previous commit
22962         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22963         Reported by Paul Eggert.
22964
22965         mountlist: fix local drive detection on cygwin
22966         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22967         that works for cygwin.
22968
22969 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22970
22971         ftoastr, snprintf: ftoastr + snprintf module
22972         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22973         since the snprintf module now should be good enough here.
22974         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22975         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22976         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22977         GNULIB_SNPRINTF only for the test directory, and the latter
22978         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22979         seems to suffice by itself.
22980
22981 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22982
22983         alloca: one step towards thread-safety
22984         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22985         need for a static variable.  All callers changed.  This does not
22986         make the alloca replacement thread-safe, but it's one step.
22987
22988         tests: minor indenting change
22989         * tests/init.sh: Sync from coreutils housekeeping patch
22990         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22991         to keep lines within 80 columns.
22992
22993 2010-12-28  Jim Meyering  <meyering@redhat.com>
22994
22995         regex: don't infloop on persistent failing calloc
22996         * lib/regexec.c (build_trtable): Return failure indication upon
22997         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22998         In glibc, this was fixed for version 2.13:
22999         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
23000
23001 2010-12-28  Bruno Haible  <bruno@clisp.org>
23002             Paul Eggert <eggert@cs.ucla.edu>
23003
23004         linkat: Make implementation robust against system behaviour variations.
23005         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
23006         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23007         way, and to -2 if it needs a generic runtime test.
23008         * lib/linkat.c (solaris_optimized_link_immediate,
23009         solaris_optimized_link_follow): New functions.
23010         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23011         (check_same_link): Use it.
23012
23013 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23014
23015         New module 'unigbrk/base'.
23016         * modules/unigbrk/base: New file.
23017         * lib/unigbrk.in.h: New file.
23018
23019         New module 'unigbrk/uc-gbrk-prop'.
23020         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23021         * modules/unigbrk/uc-gbrk-prop: New file.
23022         * lib/unigbrk/gbrkprop.h: New file.
23023         * lib/unigbrk/uc-gbrk-prop.c: New file.
23024
23025         New module 'unigbrk/uc-is-grapheme-break'.
23026         * modules/unigbrk/uc-is-grapheme-break: New file.
23027         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23028         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23029         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23030         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23031         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23032
23033         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23034
23035 2010-12-27  Bruno Haible  <bruno@clisp.org>
23036
23037         linkat test: Avoid failure on Solaris 11 2010-11.
23038         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23039
23040 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23041
23042         utimens: work around glibc rounding bug on more platforms
23043         * lib/utimens.c (fdutimens): Work around rounding bug even if
23044         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23045         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23046
23047 2010-12-27  Bruno Haible  <bruno@clisp.org>
23048
23049         select tests: Improve comments.
23050         * tests/test-select.c (do_select): Add comments.
23051
23052 2010-12-27  Bruno Haible  <bruno@clisp.org>
23053
23054         select tests: Safer way of handling timeout.
23055         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23056         at every invocation.
23057
23058 2010-12-27  Bruno Haible  <bruno@clisp.org>
23059
23060         select tests: Use 'bool' where appropriate.
23061         * tests/test-select.c (connect_to_socket): Change argument type to
23062         'bool'.
23063
23064 2010-12-27  Bruno Haible  <bruno@clisp.org>
23065
23066         select tests: Use existing modules.
23067         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23068         (configure.ac): Don't test for unistd.h.
23069         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23070         declared in <unistd.h>.
23071
23072 2010-12-27  Bruno Haible  <bruno@clisp.org>
23073
23074         mbrtowc: Work around a Solaris 7 bug.
23075         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23076         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23077         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23078         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23079         MBRTOWC_NULL_ARG1_BUG.
23080         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23081         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23082         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23083         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23084
23085 2010-12-27  Jim Meyering  <meyering@redhat.com>
23086
23087         read-file.c: tweak syntax
23088         * lib/read-file.c (fread_file): Remove space after "*" in function
23089         definitions.
23090
23091 2010-12-27  Bruno Haible  <bruno@clisp.org>
23092
23093         times test: Avoid gcc warnings on OSF/1.
23094         * tests/test-times.c (main): Cast printf arguments from clock_t to
23095         'long int'.
23096
23097 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23098
23099         utimens: work around glibc rounding bug on older Linux kernels
23100         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23101         on Linux with a glibc whose utimes might not work, then work
23102         around a longstanding glibc bug involving rounding rather than
23103         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23104         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23105
23106 2010-12-26  Bruno Haible  <bruno@clisp.org>
23107
23108         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23109         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23110         _GL_CXXALIAS_SYS.
23111         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23112
23113 2010-12-26  Bruno Haible  <bruno@clisp.org>
23114
23115         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23116         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23117         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23118         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23119         looking for the declaration.
23120         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23121         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23122         problem.
23123         * doc/posix-functions/inet_pton.texi: Likewise.
23124
23125 2010-12-26  Bruno Haible  <bruno@clisp.org>
23126
23127         arpa_inet: Use the common idioms with C++ support.
23128         * lib/arpa_inet.in.h: Include c++defs.h.
23129         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23130         support.
23131         * modules/arpa_inet (Depends-on): Add c++defs.
23132         (Makefile.am): Substitute the contents of c++defs.h.
23133         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23134         * modules/arpa_inet-c++-tests: New file.
23135         * tests/test-arpa_inet-c++.cc: New file.
23136
23137 2010-12-25  Bruno Haible  <bruno@clisp.org>
23138
23139         Fix more C++ link errors on Solaris 8.
23140         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23141         $(LIB_EACCESS).
23142         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
23143         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
23144         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
23145         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
23146         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
23147
23148 2010-12-25  Bruno Haible  <bruno@clisp.org>
23149
23150         printf-posix: Fix link error when a non-GCC compiler is used.
23151         * lib/stdio.in.h (printf): When not using GCC, override printf
23152         correctly.
23153         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23154
23155 2010-12-25  Bruno Haible  <bruno@clisp.org>
23156
23157         strerror_r-posix: Update doc.
23158         * doc/posix-functions/strerror_r.texi: Update doc about the return
23159         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
23160
23161 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23162
23163         utimens: simplify the logic of the previous change
23164         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
23165         This should not affect whether the test succeeds or fails.
23166
23167         utimens: configure better on hosts with NFS clock skew
23168         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
23169         uses the clock of the local host.  It might use the clock of the
23170         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
23171         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23172
23173 2010-12-25  Bruno Haible  <bruno@clisp.org>
23174
23175         ptsname test: Avoid failure on Solaris.
23176         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
23177         open a pseudo-terminal; don't use BSD-style ptys.
23178         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
23179
23180 2010-12-25  Bruno Haible  <bruno@clisp.org>
23181
23182         ptsname: Avoid ERANGE failure on some systems.
23183         * lib/ptsname.c (buffer): Increase size.
23184
23185 2010-12-25  Bruno Haible  <bruno@clisp.org>
23186
23187         rename, renameat: Avoid test failures at NFS mounted locations.
23188         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23189         so that subsequent mkdir calls succeed.
23190
23191 2010-12-25  Bruno Haible  <bruno@clisp.org>
23192
23193         iswblank: Fix C++ link error on Solaris 8.
23194         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23195         _GL_FUNCDECL_SYS.
23196
23197 2010-12-25  Bruno Haible  <bruno@clisp.org>
23198
23199         unistd: Fix C++ link error on Solaris 8.
23200         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23201
23202 2010-12-25  Bruno Haible  <bruno@clisp.org>
23203
23204         readlink doc: Mention an old glibc bug.
23205         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23206
23207 2010-12-25  Bruno Haible  <bruno@clisp.org>
23208
23209         fcntl-h: Fix for use of C++ on glibc systems.
23210         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23211         also on glibc systems in C++ mode.
23212         Reported by Gary V. Vaughan <gary@gnu.org>.
23213
23214 2010-12-25  Bruno Haible  <bruno@clisp.org>
23215
23216         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23217         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23218
23219 2010-12-25  Bruno Haible  <bruno@clisp.org>
23220
23221         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23222         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23223         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23224         test whether truncl works according to ISO C 99 with IEC 60559.
23225         * m4/truncl-ieee.m4: New file.
23226         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23227         m4/signbit.m4.
23228         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23229
23230 2010-12-25  Bruno Haible  <bruno@clisp.org>
23231
23232         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23233         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23234         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23235         test whether ceill works according to ISO C 99 with IEC 60559.
23236         * m4/ceill-ieee.m4: New file.
23237         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23238         m4/signbit.m4.
23239         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
23240
23241 2010-12-25  Bruno Haible  <bruno@clisp.org>
23242
23243         Ensure all prerequisites of <wchar.h> are included.
23244         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
23245         before <wchar.h>.
23246         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23247         gl_MBRLEN_NUL_RETVAL): Likewise.
23248         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23249         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
23250         AC_FUNC_MBRTOWC): Likewise.
23251         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23252         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23253         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23254         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23255         Likewise.
23256         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23257         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23258         (gl_WCHAR_H): Improve comments.
23259         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23260
23261 2010-12-25  Bruno Haible  <bruno@clisp.org>
23262
23263         strtok_r: Fix C syntax error in autoconf macro.
23264         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23265         characters in test program.
23266
23267 2010-12-24  Bruno Haible  <bruno@clisp.org>
23268
23269         ceil, trunc, round: Fix gcc warnings.
23270         * lib/ceil.c (MIN): Undefine before redefining.
23271         * lib/trunc.c (MIN): Likewise.
23272         * lib/round.c (MIN): Likewise.
23273         Include <math.h> first.
23274
23275 2010-12-24  Bruno Haible  <bruno@clisp.org>
23276
23277         select tests: Avoid failures on OSF/1 5.1.
23278         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23279         failure of closing the last socket; it may fail with ECONNRESET.
23280
23281 2010-12-24  Eric Blake  <eblake@redhat.com>
23282
23283         stdint: avoid HP-UX 10.20 preprocessor bug
23284         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23285         than #if.
23286         * tests/test-floor2.c (main): Likewise.
23287         Reported by Peter O'Gorman.
23288
23289         pipe: make obsoletion transition easier
23290         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23291         * modules/pipe (Files): Include revived file.
23292         (Include): Drop reference, to mirror getdate's behavior.
23293
23294 2010-12-24  Bruno Haible  <bruno@clisp.org>
23295
23296         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23297         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23298         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23299         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23300
23301 2010-12-24  Bruno Haible  <bruno@clisp.org>
23302
23303         gethostname: Ensure declaration on NonStop Kernel.
23304         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23305         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23306
23307 2010-12-24  Bruno Haible  <bruno@clisp.org>
23308
23309         sys_select: Ensure all necessary types on NonStop Kernel.
23310         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23311         include <sys/time.h>.
23312         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23313         NonStop Kernel.
23314         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23315
23316 2010-12-24  Bruno Haible  <bruno@clisp.org>
23317
23318         sys_select: Remove unneeded include.
23319         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23320         have <sys/select.h>.
23321
23322 2010-12-24  Bruno Haible  <bruno@clisp.org>
23323
23324         gethostname: Provide a fallback for HOST_NAME_MAX.
23325         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23326         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23327         instead.
23328         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23329
23330 2010-12-24  Bruno Haible  <bruno@clisp.org>
23331
23332         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23333         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23334         (SA_RESTART): Likewise.
23335         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23336
23337 2010-12-24  Bruno Haible  <bruno@clisp.org>
23338
23339         signal: Define NSIG.
23340         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23341         * tests/test-signal.c (nsig): New variable.
23342         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23343
23344 2010-12-24  Bruno Haible  <bruno@clisp.org>
23345
23346         rename, renameat: Avoid test failures on OSF/1 5.1.
23347         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23348         alternative error codes.
23349         * tests/test-renameat.c (main): Likewise.
23350
23351 2010-12-24  Bruno Haible  <bruno@clisp.org>
23352
23353         *printf: Detect large precisions bug on Solaris 10/SPARC.
23354         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23355         by Paul Eggert.
23356         * tests/test-snprintf-posix.h (test_function): Add this test code here
23357         too.
23358         * tests/test-sprintf-posix.h (test_function): Likewise.
23359         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23360         * tests/test-vasprintf-posix.c (test_function): Likewise.
23361         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23362         around by gnulib.
23363         * doc/posix-functions/printf.texi: Likewise.
23364         * doc/posix-functions/snprintf.texi: Likewise.
23365         * doc/posix-functions/sprintf.texi: Likewise.
23366         * doc/posix-functions/vfprintf.texi: Likewise.
23367         * doc/posix-functions/vprintf.texi: Likewise.
23368         * doc/posix-functions/vsnprintf.texi: Likewise.
23369         * doc/posix-functions/vsprintf.texi: Likewise.
23370         * doc/posix-functions/dprintf.texi: Undo last commit.
23371         * doc/posix-functions/vdprintf.texi: Likewise.
23372
23373 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23374
23375         tests: port test-fdutimensat.c to Solaris 8
23376         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23377         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23378         On Solaris 8, it fails with errno == ENOSYS, because there is no
23379         futimens (so it can't use the fd), and there is no lutimens (so it
23380         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23381
23382         vsnprintf: make more consistent with snprintf; doc fixes
23383
23384         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23385         the byte count return problem was promoted from the snprintf-posix
23386         to the snprintf module.
23387         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23388         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23389         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23390         * tests/test-snprintf.c (main): Check the byte count returned.
23391         * tests/test-vsnprintf.c (main): Likewise.
23392
23393 2010-12-23  Eric Blake  <eblake@redhat.com>
23394
23395         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23396         * modules/sigpipe (License): Relax license.
23397
23398 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23399
23400         doc: document Solaris printf bug with large float precisions
23401         * doc/posix-functions/dprintf.texi (dprintf):
23402         * doc/posix-functions/fprintf.texi (fprintf):
23403         * doc/posix-functions/printf.texi (printf):
23404         * doc/posix-functions/snprintf.texi (snprintf):
23405         * doc/posix-functions/sprintf.texi (sprintf):
23406         * doc/posix-functions/vdprintf.texi (vdprintf):
23407         * doc/posix-functions/vfprintf.texi (vfprintf):
23408         * doc/posix-functions/vprintf.texi (vprintf):
23409         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23410         * doc/posix-functions/vsprintf.texi (vsprintf):
23411         Mention that these functions mishandle large floating point
23412         precisions on Solaris 10.  The same bug is also present in Solaris
23413         8, and I assume earlier.  This causes "cd gnulib-tests; make
23414         check" to fail on Solaris 8 (and I assume, later) when building
23415         the latest coreutils, in test-vasprintf-posix's call to
23416         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23417         the wide flavors (e.g., wprintf) so this patch just updates the
23418         documentation for the narrow ones.
23419
23420         test-posixtm.c: add two tests
23421         * tests/test-posixtm.c: Add two tests, to highlight the
23422         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23423         around this bug; this is merely to document it.
23424
23425 2010-12-22  Bruno Haible  <bruno@clisp.org>
23426
23427         getlogin_r: Work around portability problem on OSF/1.
23428         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23429         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23430         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23431         test for a truncated result.
23432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23433         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23434         * modules/getlogin_r (Depends-on): Add memchr.
23435         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23436
23437 2010-12-22  Bruno Haible  <bruno@clisp.org>
23438
23439         ptsname: Avoid test failure on OSF/1 5.1.
23440         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23441         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23442         (same_slave): New function.
23443         (main): Use it to compare ptsname's result with the expected file name.
23444
23445 2010-12-22  Bruno Haible  <bruno@clisp.org>
23446
23447         Port extended stdio modules to HP NonStop Kernel.
23448         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23449         macros.
23450         * lib/fbufmode.c: Update comments.
23451         * lib/fflush.c: Likewise.
23452         * lib/fpurge.c: Likewise.
23453         * lib/freadable.c: Likewise.
23454         * lib/freadahead.c: Likewise.
23455         * lib/freading.c: Likewise.
23456         * lib/freadptr.c: Likewise.
23457         * lib/freadseek.c: Likewise.
23458         * lib/fseeko.c: Likewise.
23459         * lib/fseterr.c: Likewise.
23460         * lib/fwritable.c: Likewise.
23461         * lib/fwriting.c: Likewise.
23462         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23463
23464 2010-12-22  Bruno Haible  <bruno@clisp.org>
23465
23466         ttyname_r: Work around bug on OSF/1 5.1.
23467         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23468         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23469         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23470         present.
23471         * lib/ttyname_r.c (ttyname_r): Update comments.
23472
23473 2010-12-22  Bruno Haible  <bruno@clisp.org>
23474
23475         round: Implement result sign according to IEEE 754.
23476         * lib/round.c (MIN, MINUS_ZERO): New macros.
23477         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23478         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23479         * tests/test-round-ieee.c (main): Likewise.
23480         * tests/test-roundl-ieee.c (main): Likewise.
23481
23482         trunc: Implement result sign according to IEEE 754.
23483         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23484         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23485         * tests/test-trunc2.c: Include minus-zero.h.
23486         (MINUS_ZERO): New macro.
23487         (trunc_reference): Keep in sync with lib/trunc.c.
23488         * tests/test-truncf2.c: Include minus-zero.h.
23489         (MINUS_ZERO): New macro.
23490         (truncf_reference): Keep in sync with lib/trunc.c.
23491         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23492         * tests/test-trunc-ieee.c (main): Likewise.
23493         * tests/test-truncl-ieee.c (main): Likewise.
23494
23495         ceil: Implement result sign according to IEEE 754.
23496         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23497         (FUNC): Return -0.0 for -1 < x < 0.
23498         * tests/test-ceil2.c: Include minus-zero.h.
23499         (MINUS_ZERO): New macro.
23500         (ceil_reference): Keep in sync with lib/ceil.c.
23501         * tests/test-ceilf2.c: Include minus-zero.h.
23502         (MINUS_ZERO): New macro.
23503         (ceilf_reference): Keep in sync with lib/ceil.c.
23504         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23505         * tests/test-ceil-ieee.c (main): Likewise.
23506         * tests/test-ceill-ieee.c (main): Likewise.
23507
23508         floor: Implement result sign according to IEEE 754.
23509         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23510         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23511         * tests/test-floorf2.c (floorf_reference): Likewise.
23512         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23513         * tests/test-floor-ieee.c (main): Likewise.
23514         * tests/test-floorl-ieee.c (main): Likewise.
23515
23516 2010-12-22  Bruno Haible  <bruno@clisp.org>
23517
23518         getaddrinfo: Update doc.
23519         * doc/posix-functions/gai_strerror.texi: Return type is also different
23520         on AIX and HP-UX.
23521
23522 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23523
23524         getaddrinfo, inet_ntop: Update doc for Solaris.
23525         * doc/posix-functions/gai_strerror.texi: Return type is also an
23526         issue on Solaris 9 and earlier.
23527         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23528         on Solaris 10 and earlier.
23529
23530 2010-12-21  Bruno Haible  <bruno@clisp.org>
23531
23532         New module 'roundl-ieee'.
23533         * modules/roundl-ieee: New file.
23534         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23535         test whether roundl works according to ISO C 99 with IEC 60559.
23536         * m4/roundl-ieee.m4: New file.
23537         * modules/roundl-ieee-tests: New file.
23538         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23539         * tests/test-roundl.c (main): Remove signbit tests.
23540         * modules/roundl-tests (Depends-on): Remove signbit.
23541         * doc/posix-functions/roundl.texi: Mention the new module.
23542
23543 2010-12-21  Bruno Haible  <bruno@clisp.org>
23544
23545         New module 'truncl-ieee'.
23546         * modules/truncl-ieee: New file.
23547         * modules/truncl-ieee-tests: New file.
23548         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23549         * tests/test-truncl.c (main): Remove signbit tests.
23550         * modules/truncl-tests (Depends-on): Remove signbit.
23551         * doc/posix-functions/truncl.texi: Mention the new module.
23552
23553 2010-12-21  Bruno Haible  <bruno@clisp.org>
23554
23555         New module 'ceill-ieee'.
23556         * modules/ceill-ieee: New file.
23557         * modules/ceill-ieee-tests: New file.
23558         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23559         * tests/test-ceill.c (main): Remove signbit tests.
23560         * modules/ceill-tests (Depends-on): Remove signbit.
23561         * doc/posix-functions/ceill.texi: Mention the new module.
23562
23563 2010-12-21  Bruno Haible  <bruno@clisp.org>
23564
23565         New module 'floorl-ieee'.
23566         * modules/floorl-ieee: New file.
23567         * modules/floorl-ieee-tests: New file.
23568         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23569         * tests/test-floorl.c (main): Remove signbit tests.
23570         * modules/floorl-tests (Depends-on): Remove signbit.
23571         * doc/posix-functions/floorl.texi: Mention the new module.
23572
23573 2010-12-21  Bruno Haible  <bruno@clisp.org>
23574
23575         New module 'round-ieee'.
23576         * modules/round-ieee: New file.
23577         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23578         whether round works according to ISO C 99 with IEC 60559.
23579         * m4/round-ieee.m4: New file.
23580         * modules/round-ieee-tests: New file.
23581         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23582         * tests/test-round1.c (main): Remove signbit tests.
23583         * modules/round-tests (Depends-on): Remove 'signbit'.
23584         * doc/posix-functions/round.texi: Mention the new module.
23585
23586 2010-12-21  Bruno Haible  <bruno@clisp.org>
23587
23588         New module 'trunc-ieee'.
23589         * modules/trunc-ieee: New file.
23590         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23591         whether trunc works according to ISO C 99 with IEC 60559.
23592         * m4/trunc-ieee.m4: New file.
23593         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23595         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23596         * modules/trunc-ieee-tests: New file.
23597         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23598         * tests/test-trunc1.c (main): Remove signbit tests.
23599         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23600         * doc/posix-functions/trunc.texi: Mention the new module.
23601
23602 2010-12-21  Bruno Haible  <bruno@clisp.org>
23603
23604         New module 'ceil-ieee'.
23605         * modules/ceil-ieee: New file.
23606         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23607         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23608         ISO C 99 with IEC 60559.
23609         * m4/ceil-ieee.m4: New file.
23610         * modules/ceil (Files): Add lib/ceil.c.
23611         (Depends-on): Add 'float'.
23612         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23613         * lib/math.in.h (ceil): New declaration.
23614         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23615         REPLACE_CEIL.
23616         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23617         * modules/ceil-ieee-tests: New file.
23618         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23619         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23620         * doc/posix-functions/ceil.texi: Mention the new module.
23621
23622 2010-12-21  Bruno Haible  <bruno@clisp.org>
23623
23624         New module 'floor-ieee'.
23625         * modules/floor-ieee: New file.
23626         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23627         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23628         ISO C 99 with IEC 60559.
23629         * m4/floor-ieee.m4: New file.
23630         * modules/floor (Files): Add lib/floor.c.
23631         (Depends-on): Add 'float'.
23632         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23633         * lib/math.in.h (floor): New declaration.
23634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23635         REPLACE_FLOOR.
23636         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23637         * modules/floor-ieee-tests: New file.
23638         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23639         * tests/test-math-c++.cc: Check the signature of 'floor'.
23640         * doc/posix-functions/floor.texi: Mention the new module.
23641
23642 2010-12-21  Bruno Haible  <bruno@clisp.org>
23643
23644         New module 'roundf-ieee'.
23645         * modules/roundf-ieee: New file.
23646         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23647         test whether roundf works according to ISO C 99 with IEC 60559.
23648         * m4/roundf-ieee.m4: New file.
23649         * modules/roundf-ieee-tests: New file.
23650         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23651         * tests/test-roundf1.c (main): Remove signbit tests.
23652         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23653         * doc/posix-functions/roundf.texi: Mention the new module.
23654
23655 2010-12-21  Bruno Haible  <bruno@clisp.org>
23656
23657         New module 'truncf-ieee'.
23658         * modules/truncf-ieee: New file.
23659         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23660         test whether truncf works according to ISO C 99 with IEC 60559.
23661         * m4/truncf-ieee.m4: New file.
23662         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23664         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23665         * modules/truncf-ieee-tests: New file.
23666         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23667         * tests/test-truncf1.c (main): Remove signbit tests.
23668         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23669         * doc/posix-functions/truncf.texi: Mention the new module.
23670
23671 2010-12-21  Bruno Haible  <bruno@clisp.org>
23672
23673         New module 'ceilf-ieee'.
23674         * modules/ceilf-ieee: New file.
23675         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23676         test whether ceilf works according to ISO C 99 with IEC 60559.
23677         * m4/ceilf-ieee.m4: New file.
23678         * modules/ceilf-ieee-tests: New file.
23679         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23680         * tests/test-ceilf1.c (main): Remove signbit tests.
23681         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23682         * doc/posix-functions/ceilf.texi: Mention the new module.
23683
23684 2010-12-21  Bruno Haible  <bruno@clisp.org>
23685
23686         New module 'floorf-ieee'.
23687         * modules/floorf-ieee: New file.
23688         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23689         test whether floorf works according to ISO C 99 with IEC 60559.
23690         * m4/floorf-ieee.m4: New file.
23691         * modules/floorf-ieee-tests: New file.
23692         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23693         * tests/test-floorf1.c (main): Remove signbit tests.
23694         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23695         * doc/posix-functions/floorf.texi: Mention the new module.
23696
23697 2010-12-21  Bruno Haible  <bruno@clisp.org>
23698
23699         Support for minus zero in autoconf macros.
23700         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23701         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23702         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23703         * tests/minus-zero.h: Update comments.
23704
23705 2010-12-21  Bruno Haible  <bruno@clisp.org>
23706
23707         Tests for module 'ceil'.
23708         * modules/ceil-tests: New file.
23709         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23710         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23711
23712 2010-12-21  Bruno Haible  <bruno@clisp.org>
23713
23714         Tests for module 'floor'.
23715         * modules/floor-tests: New file.
23716         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23717         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23718
23719 2010-12-21  Bruno Haible  <bruno@clisp.org>
23720
23721         math: Fix indentation.
23722         * lib/math.in.h (floorf): Fix indentation.
23723
23724 2010-12-21  Bruno Haible  <bruno@clisp.org>
23725
23726         Fix cross-compilation guesses on Solaris.
23727         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23728         not match "solaris2.10".
23729         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23730         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23731         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23732
23733 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23734
23735         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23736         This fixes a problem observed with the latest coreutils snapshot
23737         that caused a test to fail on Solaris 8.  src/csplit.c's call
23738         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23739         earlier, instead of returning the number of bytes that would have
23740         been generated; this causes csplit to incorrectly report memory
23741         exhaustion.
23742         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23743         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23744         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23745         comments to match.
23746         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23747         Fix typo in matching older versions of Solaris: "solaris2.10"
23748         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23749         only for guessing while cross-compiling.
23750         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23751
23752 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23753
23754         ftoastr: fix comment again
23755         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23756         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23757         Also, simplify example a bit by using flags = 0.
23758
23759 2010-12-20  Bruno Haible  <bruno@clisp.org>
23760
23761         round*, trunc*: Update documentation regarding glibc.
23762         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23763         * doc/posix-functions/round.texi: Likewise.
23764         * doc/posix-functions/roundl.texi: Likewise.
23765         * doc/posix-functions/truncf.texi: Likewise.
23766         * doc/posix-functions/trunc.texi: Likewise.
23767         * doc/posix-functions/truncl.texi: Likewise.
23768
23769 2010-12-20  Bruno Haible  <bruno@clisp.org>
23770
23771         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23772         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23773         * doc/posix-functions/round.texi: Likewise.
23774         * doc/posix-functions/roundl.texi: Likewise.
23775
23776 2010-12-20  Bruno Haible  <bruno@clisp.org>
23777
23778         ttyname_r: Add missing declaration on HP-UX 11.
23779         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23780         HAVE_TTYNAME_R.
23781         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23782         declared. Set HAVE_TTYNAME_R always.
23783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23784         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23785         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23786         HAVE_TTYNAME_R.
23787         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23788
23789 2010-12-20  Bruno Haible  <bruno@clisp.org>
23790
23791         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23792         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23793         * doc/posix-functions/getlogin_r.texi: Likewise.
23794         * tests/test-getlogin.c: Include <errno.h>.
23795         (main): Avoid test failure on HP-UX 11.11.
23796         * tests/test-getlogin_r.c (main): Likewise.
23797
23798 2010-12-20  Bruno Haible  <bruno@clisp.org>
23799
23800         getlogin_r: Add missing declaration on HP-UX 11.
23801         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23802         declared also when it exists as a function.
23803         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23804
23805 2010-12-20  Bruno Haible  <bruno@clisp.org>
23806
23807         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23808         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23809         through wcrtomb.
23810
23811 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23812
23813         ftoastr: fix comment
23814         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23815         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23816
23817 2010-12-19  Bruno Haible  <bruno@clisp.org>
23818
23819         isnan: Ensure it is a macro.
23820         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23821         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23822         Solaris.
23823
23824 2010-12-19  Bruno Haible  <bruno@clisp.org>
23825
23826         ldexpl test: Fix link error on OSF/1 5.1.
23827         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23828
23829 2010-12-19  Bruno Haible  <bruno@clisp.org>
23830
23831         wctype: Make it work in C++ mode on OSF/1 5.1.
23832         * lib/wctype.in.h (iswblank): Declare but not define here.
23833         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23834         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23835         * modules/wctype (Files): Add lib/iswblank.c.
23836
23837 2010-12-19  Bruno Haible  <bruno@clisp.org>
23838
23839         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23840         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23841         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23842
23843 2010-12-19  Bruno Haible  <bruno@clisp.org>
23844
23845         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23846         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23847         _POSIX_PII_SOCKET.
23848         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23849         * doc/posix-functions/recvfrom.texi: Likewise.
23850         * doc/posix-functions/send.texi: Likewise.
23851         * doc/posix-functions/sendto.texi: Likewise.
23852
23853 2010-12-19  Bruno Haible  <bruno@clisp.org>
23854
23855         tcgetsid: Add missing declaration on OSF/1 5.1.
23856         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23857         HAVE_TCGETSID.
23858         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23859         Don't set HAVE_TCGETSID.
23860         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23861         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23862         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23863         HAVE_TCGETSID.
23864         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23865
23866 2010-12-19  Bruno Haible  <bruno@clisp.org>
23867
23868         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23869         * lib/stdio.in.h: During the include_next statement, let recursive
23870         includes of this file include only the system header file.
23871
23872 2010-12-19  Bruno Haible  <bruno@clisp.org>
23873
23874         iconv_open: Fix regression from 2010-12-04.
23875         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23876         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23877
23878 2010-12-19  Bruno Haible  <bruno@clisp.org>
23879
23880         stdbool test: Avoid a gcc warning.
23881         * tests/test-stdbool.c (main): Fail if e1 is false.
23882         Reported by Jim Meyering.
23883
23884 2010-12-19  Jim Meyering  <meyering@redhat.com>
23885
23886         setenv: restore to working order
23887         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23888         mistakenly removed.
23889         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23890         HAVE_SETENV.
23891         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23892         HAVE_SETENV.
23893
23894 2010-12-19  Bruno Haible  <bruno@clisp.org>
23895
23896         Document some different function declarations on OSF/1 5.1.
23897         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23898         * doc/posix-functions/inet_ntop.texi: Likewise.
23899         * doc/posix-functions/gethostname.texi: Likewise.
23900         * lib/unistd.in.h (gethostname): Update comment.
23901
23902 2010-12-19  Bruno Haible  <bruno@clisp.org>
23903
23904         doc: Mention vasprintf-posix module.
23905         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23906         the 'vasprintf-posix' module.
23907         * doc/glibc-functions/vasprintf.texi: Likewise.
23908
23909 2010-12-19  Bruno Haible  <bruno@clisp.org>
23910
23911         unsetenv: Add missing declaration on OSF/1 5.1.
23912         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23913         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23914         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23915         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23916         not HAVE_UNSETENV.
23917         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23918         HAVE_UNSETENV.
23919         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23920
23921 2010-12-19  Bruno Haible  <bruno@clisp.org>
23922
23923         setenv: Add missing declaration on OSF/1 5.1.
23924         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23925         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23926         declared. Don't set HAVE_SETENV.
23927         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23928         not HAVE_SETENV.
23929         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23930         HAVE_SETENV.
23931         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23932
23933 2010-12-19  Bruno Haible  <bruno@clisp.org>
23934
23935         nl_langinfo tests: Avoid gcc warning.
23936         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23937
23938 2010-12-19  Bruno Haible  <bruno@clisp.org>
23939
23940         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23941         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23942         _GL_CXXALIAS_SYS.
23943
23944 2010-12-19  Bruno Haible  <bruno@clisp.org>
23945
23946         stdbool: Relax test.
23947         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23948         address to 'bool' work in static initializer, for compilers other than
23949         GCC.
23950
23951 2010-12-19  Bruno Haible  <bruno@clisp.org>
23952
23953         ftello: Add missing declaration on OSF/1 5.1.
23954         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23955         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23957         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23958         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23959
23960 2010-12-19  Bruno Haible  <bruno@clisp.org>
23961
23962         fseeko: Add missing declaration on OSF/1 5.1.
23963         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23964         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23966         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23967         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23968
23969 2010-12-19  Bruno Haible  <bruno@clisp.org>
23970
23971         fchdir: Add missing declaration on OSF/1 5.1.
23972         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23973         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23975         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23976         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23977
23978 2010-12-19  Bruno Haible  <bruno@clisp.org>
23979
23980         relocatable-prog-wrapper: Separate from relocatable-prog.
23981         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23982         uninstall-relocwrapper rule here.
23983         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23984         Reported by Ian Beckwith <ianb@erislabs.net>.
23985
23986 2010-12-19  Bruno Haible  <bruno@clisp.org>
23987
23988         unistr/u8-mbsnlen: Add missing dependency.
23989         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23990         Reported by Ian Beckwith <ianb@erislabs.net>.
23991
23992 2010-12-19  Bruno Haible  <bruno@clisp.org>
23993
23994         iconv: Make it possible again to use this module without 'iconv-h'.
23995         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23996         if it is not defined.
23997         Reported by Ian Beckwith <ianb@erislabs.net>.
23998
23999 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24000
24001         acl: port to Solaris 8 when copying from tmpfs to ufs
24002         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
24003         error number.  Problem observed on Solaris 8 with latest
24004         coreutils, with "mv A B", where A is on a tmpfs file system and B
24005         is on a ufs file system.  This caused coreutils' mv/part-symlink
24006         test to fail.
24007
24008         tests: set fail=0 at start
24009         * tests/init.sh (setup_): Move fail=0 initialization here ...
24010         (mktempd_): ... from here, so that tests can rely on fail being
24011         set to 0 initially.  This fixes a problem in coreutils; see:
24012         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24013
24014 2010-12-18  Bruno Haible  <bruno@clisp.org>
24015
24016         memmem-simple: Stylistic changes.
24017         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24018         Fix preprocessor directive indentation.
24019
24020 2010-12-15  Pádraig Brady <P@draigBrady.com>
24021
24022         memmem, memmem-simple: reorganize and expand empty needle check
24023         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24024         functional checks to memmem-simple so that one has a fully functional
24025         memmem by using just this module.
24026         Restrict the performance only check to the memmem module.
24027         Also expand the empty needle check to ensure the correct
24028         pointer is returned, not just a non NULL pointer.
24029         * doc/glibc-functions/memmem.texi: Rearrange the portability
24030         documentation to correlate with the rearranged checks.
24031         Clarify exactly how the memmem and memmem-simple modules
24032         relate to each other.
24033
24034 2010-12-15  Pádraig Brady <P@draigBrady.com>
24035             Bruno Haible  <bruno@clisp.org>
24036
24037         Improve cross-compilation guesses for uClibc.
24038         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24039         that uClibc does not have the glibc bug.
24040         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24041         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24042
24043 2010-12-14  Eric Blake  <eblake@redhat.com>
24044
24045         configmake: provide fallbacks for oldest supported autotools
24046         * m4/configmake.m4: New file.
24047         * modules/configmake (Files): Ship it.
24048         (configure.ac): Use it to guarantee fallbacks.
24049
24050 2010-12-13  Pádraig Brady <P@draigBrady.com>
24051
24052         read-file: Improve handling of large files
24053         * lib/read-file.c (fread_file): Minimize realloc()s
24054         for regular files, and better manage sizes around SIZE_MAX.
24055
24056 2010-12-13  Eric Blake  <eblake@redhat.com>
24057
24058         cloexec, fcntl: relax license
24059         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24060         consent from all contributors.
24061         * modules/fcntl (License): Likewise.
24062
24063 2010-12-10  Bruno Haible  <bruno@clisp.org>
24064
24065         Tests for module 'pipe-posix'.
24066         * modules/pipe-posix-tests: New file.
24067         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24068
24069 2010-12-10  Bruno Haible  <bruno@clisp.org>
24070
24071         pipe-posix: Make it work in C++ mode.
24072         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24073         (pipe): Use common idiom, not a macro definition.
24074         * lib/pipe.c: New file.
24075         * m4/pipe.m4: New file.
24076         * modules/pipe-posix (Description): Enhance.
24077         (Files): Add lib/pipe.c, m4/pipe.m4.
24078         (configure.ac): Invoke gl_FUNC_PIPE.
24079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24080         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24081         * tests/test-unistd-c++.cc: Check the signature of pipe.
24082
24083 2010-12-10  Bruno Haible  <bruno@clisp.org>
24084
24085         Rename module 'pipe' to 'spawn-pipe'.
24086         * modules/spawn-pipe: New file, renamed from modules/pipe.
24087         (Files, configure.ac, Makefile.am): Update.
24088         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24089         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24090         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24091         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24092         "spawn-pipe.h" instead of "pipe.h".
24093         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24094         to gl_SPAWN_PIPE.
24095         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24096         (Files, Makefile.am): Update.
24097         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24098         Update.
24099         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24100         Include "spawn-pipe.h" instead of "pipe.h".
24101         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24102         * lib/javacomp.c: Likewise.
24103         * lib/javaversion.c: Likewise.
24104         * lib/pipe-filter-gi.c: Likewise.
24105         * lib/pipe-filter-ii.c: Likewise.
24106         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24107         * modules/javacomp (Depends-on): Likewise.
24108         * modules/javaversion (Depends-on): Likewise.
24109         * modules/pipe-filter-gi (Depends-on): Likewise.
24110         * modules/pipe-filter-ii (Depends-on): Likewise.
24111         * MODULES.html.sh (Executing programs): Update.
24112         * NEWS: Mention the change.
24113
24114 2010-12-10  Eric Blake  <eblake@redhat.com>
24115
24116         pipe-posix: new module
24117         * modules/pipe-posix: New file.
24118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24119         (gl_UNISTD_H): Check for declaration.
24120         * modules/unistd (Makefile.am): Substitute it.
24121         * lib/unistd.in.h (pipe): Provide it for mingw.
24122         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24123         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24124
24125 2010-12-07  Bruno Haible  <bruno@clisp.org>
24126
24127         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24128         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24129         u8_strcmp_gnu.
24130         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24131
24132 2010-12-06  Bruno Haible  <bruno@clisp.org>
24133
24134         Update internal documentation.
24135         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24136
24137 2010-12-04  Bruno Haible  <bruno@clisp.org>
24138
24139         Put more information about failed tests into the test return codes.
24140         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24141         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24142         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24143         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24144         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
24145         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24146         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24147         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24148         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
24149         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24150         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
24151         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24152         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24153         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24154         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
24155         returns a bit mask.
24156         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
24157         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
24158         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
24159         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
24160         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24161         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24162         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24164         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24165         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24166         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24167         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24168         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24169         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24170         * m4/link.m4 (gl_FUNC_LINK): Likewise.
24171         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24172         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
24173         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
24174         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24175         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
24176         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24177         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24178         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
24179         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24180         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24181         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24182         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24183         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24184         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24185         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24186         gl_PRINTF_PRECISION): Likewise.
24187         * m4/regex.m4 (gl_REGEX): Likewise.
24188         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24189         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24190         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24191         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24192         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24193         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24194         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24195         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24196         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24197         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24198         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24199         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24200         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24201         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24202         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24203         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24204         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24205         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24206         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24207         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24208         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24209         enumerated value.
24210         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24211
24212 2010-12-04  Bruno Haible  <bruno@clisp.org>
24213
24214         Update for Solaris 11 2010-11.
24215         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24216         Express, released in November 2010.
24217
24218 2010-12-04  Bruno Haible  <bruno@clisp.org>
24219
24220         nproc: Relax license.
24221         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24222         and Paul Eggert.
24223         Requested by Ludovic Courtès <ludo@gnu.org>.
24224
24225 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24226
24227         utimecmp: fine-grained src to nearby coarse-grained dest
24228
24229         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24230         and the source is on a file system with higher-resolution time
24231         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24232         not work, and the time stamps are close together, the algorithm to
24233         determine the exact resolution from the read-back mtime was buggy:
24234         it had a "!=" where it should have had an "==".  This bug has been
24235         in the code ever since it was introduced to gnulib.
24236         Problem reported by Dan Jacobson in
24237         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24238
24239 2010-11-30  Bruno Haible  <bruno@clisp.org>
24240
24241         strerror_r-posix: Fix autoconf test.
24242         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
24243
24244 2010-11-28  Bruno Haible  <bruno@clisp.org>
24245             Paul Eggert  <eggert@cs.ucla.edu>
24246
24247         Tests for module 'getdomainname'.
24248         * modules/getdomainname-tests: New file.
24249         * tests/test-getdomainname.c: New file, based on
24250         tests/test-gethostname.c.
24251
24252 2010-11-28  Bruno Haible  <bruno@clisp.org>
24253             Paul Eggert  <eggert@cs.ucla.edu>
24254
24255         getdomainname: Use the system function when possible.
24256         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24257         (getdomainname): Replace if needed. Provide the declaration if it is
24258         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24259         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24260         (getdomainname): When the system has getdomainname, call the system
24261         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24262         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24263         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24264         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24265         the function if its second argument is of type 'int' or if it is found
24266         in libnsl.
24267         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24268         <sys/systeminfo.h> and sysinfo().
24269         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24271         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24272         HAVE_GETDOMAINNAME.
24273         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24274         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24275         * doc/glibc-functions/getdomainname.texi: Document the problems with
24276         the getdomainname declaration.
24277
24278 2010-11-28  Bruno Haible  <bruno@clisp.org>
24279
24280         sys_socket: Ensure ss_family field on AIX.
24281         * lib/sys_socket.in.h (ss_family): New macro definition.
24282         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24283         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24284         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24285         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24286         * modules/sys_socket (Makefile.am): Substitute
24287         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24288         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24289
24290 2010-11-27  Bruno Haible  <bruno@clisp.org>
24291
24292         readline: Improve configure output.
24293         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24294         "checking for readline..." result understandable.
24295
24296 2010-11-27  Bruno Haible  <bruno@clisp.org>
24297
24298         *printf-posix: Detect a bug on Solaris 10/x86.
24299         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24300         for floating-point output.
24301         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24302         directive.
24303         * tests/test-snprintf-posix.h (test_function): Likewise.
24304         * tests/test-sprintf-posix.h (test_function): Likewise.
24305         * tests/test-vasprintf-posix.c (test_function): Likewise.
24306         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24307         * doc/posix-functions/printf.texi: Likewise.
24308         * doc/posix-functions/snprintf.texi: Likewise.
24309         * doc/posix-functions/sprintf.texi: Likewise.
24310         * doc/posix-functions/vfprintf.texi: Likewise.
24311         * doc/posix-functions/vprintf.texi: Likewise.
24312         * doc/posix-functions/vsnprintf.texi: Likewise.
24313         * doc/posix-functions/vsprintf.texi: Likewise.
24314         * doc/glibc-functions/obstack_printf.texi: Likewise.
24315         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24316
24317 2010-11-27  Bruno Haible  <bruno@clisp.org>
24318
24319         Fix link error when module libunistring-optional is in use.
24320         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24321         * modules/striconveha-tests (Makefile.am): Likewise.
24322
24323 2010-11-27  Bruno Haible  <bruno@clisp.org>
24324
24325         regex: Mention link dependencies.
24326         * modules/regex (Link): New section.
24327         * modules/rpmatch (Link): Likewise.
24328         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24329
24330 2010-11-27  Bruno Haible  <bruno@clisp.org>
24331
24332         ftoastr: Fix compilation error on Solaris.
24333         * lib/ftoastr.c: Include <config.h>.
24334
24335 2010-11-27  Bruno Haible  <bruno@clisp.org>
24336
24337         getloadavg: Update documentation.
24338         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24339
24340 2010-11-27  Bruno Haible  <bruno@clisp.org>
24341
24342         sys_socket: Fix test whether the functions are declared.
24343         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24344         not <sys/select.h>.
24345
24346 2010-11-27  Bruno Haible  <bruno@clisp.org>
24347
24348         getpass: Make sure to get system declaration on some platforms.
24349         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24350         gl_USE_SYSTEM_EXTENSIONS.
24351         * modules/getpass (Depends-on): Add extensions.
24352
24353 2010-11-26  Bruno Haible  <bruno@clisp.org>
24354
24355         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24356         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24357         'iconv' module is present.
24358         (ICONV_CONST): New macro.
24359         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24360         ICONV_CONST.
24361         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24362         set ICONV_CONST.
24363         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24364         here.
24365         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24366         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24367         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24368         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24369         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24370         present.
24371
24372 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24373
24374         ftoastr: comment fix
24375         * lib/ftoastr.c: "little" -> "little or no" in comment
24376
24377 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24378
24379         stdint: port to GCC 4.3 + OSX + Octave
24380         On this platform, stdint.h is buggy and defines int64_t to long
24381         long int.  The replacement defined it to long int, causing
24382         problems with C++ style name mangling.  Instead, trust the system
24383         definition if INT64_MAX is defined, and likewise for the unsigned
24384         variant.   Problem reported by Jarno Rajahalme in
24385         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24386         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24387         and don't mess with int64_t and INT64_MAX in this case.
24388         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24389
24390 2010-11-24  Bruno Haible  <bruno@clisp.org>
24391
24392         doc: Corrections regarding MacOS X 10.4 and 10.5.
24393         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24394         MacOS X.
24395         Reported by Simon Josefsson.
24396
24397 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24398
24399         Uninstall ".bin" files installed by relocwrapper.
24400         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24401         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24402         unless it is already there.
24403
24404 2010-11-21  Bruno Haible  <bruno@clisp.org>
24405
24406         Update for NetBSD 5.0.
24407         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24408         NetBSD; the test fails on NetBSD 5.0.
24409         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24410         about NetBSD.
24411
24412 2010-11-21  Bruno Haible  <bruno@clisp.org>
24413
24414         Update for HP-UX 11.23 and HP-UX 11.31.
24415         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24416         HP-UX.
24417
24418 2010-11-21  Bruno Haible  <bruno@clisp.org>
24419
24420         Update for MacOS X 10.5.
24421         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24422         MacOS X; the test fails on MacOS X 10.5.8.
24423         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24424         about MacOS X.
24425
24426 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24427
24428         bootstrap: add bootstrap_sync option.
24429         See discussion at
24430         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24431         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24432         * build-aux/bootstrap: Accept --bootstrap-sync to update
24433         bootstrap if it is not identical to the local gnulib's
24434         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24435         enable this by default.  Accept --no-bootstrap-sync to disable
24436         it.
24437
24438 2010-11-20  Bruno Haible  <bruno@clisp.org>
24439
24440         Ensure that <features.h> is included before __GLIBC__ is tested.
24441         * lib/printf-parse.h: Include <features.h>.
24442         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24443         Reported by Mike Frysinger <vapier@gentoo.org>.
24444
24445         Ensure that <features.h> is included before __GLIBC__ is tested.
24446         * lib/wchar.in.h: Include <features.h>.
24447         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24448         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24449         Reported by Mike Frysinger <vapier@gentoo.org>.
24450
24451         Ensure that <features.h> is included before __GLIBC__ is tested.
24452         * lib/arpa_inet.in.h: Include <features.h>.
24453         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24454         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24455         Reported by Mike Frysinger <vapier@gentoo.org>.
24456
24457         Ensure that <features.h> is included before __GLIBC__ is tested.
24458         * build-aux/link-warning.h: Include <features.h>.
24459         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24460         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24461         Reported by Mike Frysinger <vapier@gentoo.org>.
24462
24463         Ensure that <features.h> is included before __GLIBC__ is tested.
24464         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24465         Reported by Mike Frysinger <vapier@gentoo.org>.
24466
24467 2010-11-20  Bruno Haible  <bruno@clisp.org>
24468
24469         memmem: Fix autoconf test.
24470         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24471
24472 2010-11-20  Bruno Haible  <bruno@clisp.org>
24473
24474         Port to uClibc.
24475         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24476         * lib/fcntl.in.h: Likewise.
24477         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24478         * lib/mbrtowc.c (mbrtowc): Likewise.
24479         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24480         * lib/strerror_r.c: Likewise.
24481         * lib/unistr/u8-strnlen.c: Likewise.
24482         * lib/vasnprintf.c (decimal_point_char): Likewise.
24483         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24484         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24485         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24486         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24487         * tests/test-sigaction.c (handler, main): Likewise.
24488         * lib/freading.h: Treat uClibc like a non-glibc platform.
24489         * lib/freading.c: Likewise.
24490         * lib/gettext.h: Likewise.
24491         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24492         Likewise.
24493         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24494         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24495         * lib/propername.c (proper_name_utf8): Likewise.
24496         * lib/spawn.in.h: Likewise.
24497         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24498         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24499         mem_cd_iconveh_internal): Likewise.
24500         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24501         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24502         strstr, strcasestr): Likewise.
24503         * lib/unicodeio.c (unicode_to_mb): Likewise.
24504         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24505         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24506         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24507         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24508         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24509         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24510         * lib/unistr/u8-stpncpy.c: Likewise.
24511         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24512         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24513         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24514         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24515         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24516         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24517         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24518         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24519         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24520         Likewise.
24521         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24522         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24523         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24524         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24525         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24526         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24527         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24528         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24529         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24530         * tests/test-striconveha.c (main): Likewise.
24531         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24532         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24533         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24534         * doc/posix-functions/getline.texi: Likewise.
24535         Reported by Mike Frysinger <vapier@gentoo.org>.
24536
24537 2010-11-20  Bruno Haible  <bruno@clisp.org>
24538
24539         nproc: Fix condition.
24540         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24541         HAVE_PTHREAD_AFFINITY_NP.
24542
24543 2010-11-20  Bruno Haible  <bruno@clisp.org>
24544
24545         Fix a comment.
24546         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24547
24548 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24549
24550         ftoastr: don't assume snprintf
24551         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24552         Implement a subset of snprintf here, by using sprintf safely.
24553         * modules/ftoastr (Depends-on): Remove snprintf.
24554
24555 2010-11-19  Jim Meyering  <meyering@redhat.com>
24556
24557         test-rename.h: fix compilation failure
24558         * tests/test-rename.h (test_rename): Add omitted "}".
24559
24560 2010-11-17  Jim Meyering  <meyering@redhat.com>
24561
24562         maint.mk: add a URL discussing the no-@acronym policy
24563         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24564
24565 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24566
24567         ftoastr: depend on snprintf, improve comments
24568         * lib/ftoastr.c: Also mention Loitsch's draft.
24569         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24570         needed in the current implementation, but it might simplify
24571         speeding up the code later.
24572         * modules/ftoastr: Depend on snprintf; this improves portability.
24573         Suggested by Bruno Haible in the same email.
24574
24575         ftoastr: port to hosts lacking strtof and strtold
24576         Problem reported by Bruno Haible in
24577         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24578         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24579         environment and strtold (and presumably strtof) are not available.
24580         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24581         (configure.ac): Require gl_C99_STRTOLD.
24582
24583 2010-11-18  Bruno Haible  <bruno@clisp.org>
24584
24585         c-strtold: Avoid link error on AIX 7.
24586         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24587         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24588         (gl_C_STRTOLD): Test whether strtold_l exists.
24589         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24590
24591 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24592
24593         intprops: new macro INT_BITS_STRLEN_BOUND
24594         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24595         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24596         not exposed.  Also, it uses a slightly tighter bound than before;
24597         though this makes no practical difference, we might as well be as
24598         tight as we easily can.
24599
24600         ftoastr: new module, for lossless conversion of floats to short strings
24601         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24602         * modules/ftoastr: New files.
24603
24604 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24605
24606         bootstrap: port to Solaris sed
24607         * build-aux/bootstrap (get_version): Port to Solaris sed.
24608         See Ralf Wildenhues's note in
24609         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24610
24611 2010-11-14  Jim Meyering  <meyering@redhat.com>
24612
24613         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24614         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24615         and move definition closer to sole use.
24616
24617 2010-11-13  Jim Meyering  <meyering@redhat.com>
24618
24619         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24620         Now we require at least autoconf-2.59, which means the work-around
24621         is no longer needed.
24622         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24623         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24624         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24625         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24626         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24627
24628 2010-11-13  Bruno Haible  <bruno@clisp.org>
24629
24630         rename, renameat: Avoid test failures at NFS mounted locations.
24631         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24632         functions.
24633         (test_rename): Use assert_nonexistent.
24634         * tests/test-rename.c: Include <dirent.h>.
24635         * tests/test-renameat.c: Likewise.
24636         Reported by Gary V. Vaughan <gary@gnu.org>.
24637
24638         rename, renameat: Document Linux bug with NFS
24639         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24640         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24641         * doc/posix-functions/renameat.texi: Likewise.
24642         Suggested by Eric Blake.
24643
24644 2010-11-13  Bruno Haible  <bruno@clisp.org>
24645
24646         rename test: Add comments.
24647         * tests/test-rename.h (test_rename): Add structure and comments.
24648
24649 2010-11-13  Eric Blake  <eblake@redhat.com>
24650
24651         maintainer-makefile: cover a few more files
24652         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24653         scripts generated within C files, for libvirt.
24654
24655 2010-11-13  Bruno Haible  <bruno@clisp.org>
24656
24657         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24658         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24659         character, return the number of bytes that belong together, not always
24660         1.
24661         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24662         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24663         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24664         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24665         number of bytes of an invalid character.
24666         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24667         (main): Invoke it.
24668         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24669         results.
24670         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24671         malformed byte sequences.
24672         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24673         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24674         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24675         Reported by Ben Pfaff and Paolo Bonzini.
24676
24677 2010-11-13  Bruno Haible  <bruno@clisp.org>
24678
24679         openat: Work around glibc bug with fchownat() and empty file names.
24680         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24681         (gl_FUNC_FCHOWNAT): Invoke it.
24682         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24683         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24684         Reported by Gary V. Vaughan <gary@gnu.org>.
24685
24686 2010-11-13  Bruno Haible  <bruno@clisp.org>
24687
24688         openat: Ensure autoconf macro ordering.
24689         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24690         gl_USE_SYSTEM_EXTENSIONS.
24691         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24692
24693 2010-11-13  Bruno Haible  <bruno@clisp.org>
24694
24695         Update comments.
24696         * lib/unistr/u8-check.c: Update file name in comments.
24697         * lib/unistr/u8-mblen.c: Likewise.
24698         * lib/unistr/u8-prev.c: Likewise.
24699         * lib/unistr/u8-strmblen.c: Likewise.
24700         * lib/unistr/u8-strmbtouc.c: Likewise.
24701
24702 2010-11-13  Jim Meyering  <meyering@redhat.com>
24703
24704         tests: avoid test failure on Solaris 10 due to lack of PATH export
24705         * tests/test-update-copyright.sh: Don't forget to export PATH.
24706
24707         init.sh: ensure that IFS is defined, just in case...
24708         * tests/init.sh (setup_): Ensure that IFS is defined,
24709         so that saving and restoring it works as expected.  This
24710         appears to be useful at least for an old version of dash
24711         from a long time ago (RH 6).  See here for details:
24712         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24713
24714         maint.mk: tighten "test a == b" check
24715         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24716         test to files that contain something like #!/bin/sh.
24717         Without this, coreutils would get two false positives in
24718         the comments of C source files.
24719
24720 2010-11-12  Eric Blake  <eblake@redhat.com>
24721
24722         bootstrap: fix typo in previous attempt
24723         * build-aux/bootstrap (buildreq): Correct the grouping.
24724         Reported by Paul Eggert.
24725
24726         maintainer-makefile: prohibit test x == x
24727         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24728         Based on a report by Matthias Bolte.
24729
24730         bootstrap: allow FreeBSD gzip
24731         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24732         which has no '.' and goes to stderr.
24733         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24734         Reported by Matthias Bolte.
24735
24736         maintainer-makefile: check for i18n setup
24737         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24738         will likely work.
24739
24740 2010-11-12  Bruno Haible  <bruno@clisp.org>
24741
24742         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24743         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24744         * lib/nanosleep.c (nanosleep): Likewise.
24745
24746 2010-11-11  Bruno Haible  <bruno@clisp.org>
24747
24748         fcntl-h: Fix for use of C++ on glibc systems.
24749         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24750         also on glibc systems in C++ mode.
24751         Reported by Gary V. Vaughan <gary@gnu.org>.
24752
24753 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24754
24755         mknod: avoid false failure with dash
24756         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24757
24758 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24759
24760         unlink: Fix "is it should" typo in diagnostic.
24761         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24762         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24763
24764 2010-11-11  Bruno Haible  <bruno@clisp.org>
24765
24766         Tests for module 'strerror_r-posix'.
24767         * modules/strerror_r-posix-tests: New file.
24768         * tests/test-strerror_r.c: New file.
24769         * tests/test-string-c++.cc: Check the signature of strerror_r.
24770
24771         New module 'strerror_r-posix'.
24772         * lib/string.in.h (strerror_r): New declaration.
24773         * lib/strerror_r.c: New file.
24774         * m4/strerror_r.m4: New file.
24775         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24776         of strerror_r.
24777         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24778         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24779         * modules/strerror_r-posix: New file.
24780         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24781         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24782         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24783         portability problems.
24784
24785 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24786
24787         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24788         line is also considered for output. Quoted function name in shell
24789         command, so temporary files for functions like MyClass::operator()
24790         are removed correctly without errors.
24791
24792 2010-11-09  Bruno Haible  <bruno@clisp.org>
24793
24794         * doc/posix-functions/strerror.texi: List more failing platforms.
24795
24796         * doc/posix-functions/strerror.texi: Add a comment.
24797
24798 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24799
24800         fdopendir: fix bug on MacOS X when low on file descriptors
24801
24802         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24803         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24804         All callers changed.
24805         (fdopendir): Invoke save_cwd at the top level, not after using
24806         multiple dup() calls to use up file descriptors.  Then retry
24807         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24808         less than the maximum number of open file descriptors, because
24809         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24810         on Mac OS X 10.6.4 for tar 1.24
24811         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24812         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24813         and for tar 1.25
24814         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24815
24816 2010-11-07  Bruno Haible  <bruno@clisp.org>
24817
24818         vasnprintf: Support I flag on glibc systems.
24819         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24820         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24821         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24822         snprintf function.
24823         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24824         glibc systems.
24825         * tests/test-vasnprintf-posix3.c: New file.
24826         * modules/vasnprintf-posix-tests (Files): Add it.
24827         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24828
24829 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24830
24831         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24832         * MODULES.html.sh: For compiler warnings, use name
24833         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24834
24835 2010-11-05  Eric Blake  <eblake@redhat.com>
24836
24837         ceil, floor: avoid spurious failure with icc
24838         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24839         [denormals-as-zero] when optimizing without -mieee-fp option.
24840         * tests/test-floorf2.c (floorf_reference): Likewise.
24841         * tests/test-ceilf1.c (dummy): New function.
24842         (main): Use it to outsmart icc's optimization.
24843         * tests/test-floorf1.c (dummy, main): Likewise.
24844
24845         tests: require working signbit
24846         * modules/ceilf-tests (Depends-on): Add signbit.
24847         * modules/ceill-tests (Depends-on): Likewise.
24848         * modules/floorf-tests (Depends-on): Likewise.
24849         * modules/floorl-tests (Depends-on): Likewise.
24850         * modules/round-tests (Depends-on): Likewise.
24851         * modules/roundf-tests (Depends-on): Likewise.
24852         * modules/roundl-tests (Depends-on): Likewise.
24853         * modules/trunc-tests (Depends-on): Likewise.
24854         * modules/truncf-tests (Depends-on): Likewise.
24855         * modules/truncl-tests (Depends-on): Likewise.
24856
24857         strtod: work around icc bug
24858         * lib/strtod.c (minus_zero): Define to working value.
24859         (strtod): Use it to avoid icc bug.
24860
24861         copysign: enhance tests
24862         * modules/copysign-tests (Files): Add minus-zero.h.
24863         * tests/test-copysign.c (main): Also test zeros.
24864
24865 2010-11-04  Eric Blake  <eblake@redhat.com>
24866
24867         ceil, floor, round, trunc: enhance tests of -0
24868         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24869         * tests/test-ceill.c (main): Likewise.
24870         * tests/test-floorf1.c (main): Likewise.
24871         * tests/test-floorl.c (main): Likewise.
24872         * tests/test-round1.c (main): Likewise.
24873         * tests/test-roundf1.c (main): Likewise.
24874         * tests/test-roundl.c (main): Likewise.
24875         * tests/test-trunc1.c (main): Likewise.
24876         * tests/test-truncf1.c (main): Likewise.
24877         * tests/test-truncl.c (main): Likewise.
24878
24879 2010-11-04  Eric Blake  <eblake@redhat.com>
24880
24881         frexp, tests: work around ICC bug with -zero
24882         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24883         works with more compilers.
24884         * tests/minus-zero.h: New file.
24885         * modules/ceilf-tests (Files): Include it.
24886         * modules/ceill-tests (Files): Likewise.
24887         * modules/floorf-tests (Files): Likewise.
24888         * modules/floorl-tests (Files): Likewise.
24889         * modules/frexp-nolibm-tests (Files): Likewise.
24890         * modules/frexp-tests (Files): Likewise.
24891         * modules/frexpl-nolibm-tests (Files): Likewise.
24892         * modules/frexpl-tests (Files): Likewise.
24893         * modules/isnan-tests (Files): Likewise.
24894         * modules/isnand-nolibm-tests (Files): Likewise.
24895         * modules/isnand-tests (Files): Likewise.
24896         * modules/isnanf-nolibm-tests (Files): Likewise.
24897         * modules/isnanf-tests (Files): Likewise.
24898         * modules/isnanl-nolibm-tests (Files): Likewise.
24899         * modules/isnanl-tests (Files): Likewise.
24900         * modules/round-tests (Files): Likewise.
24901         * modules/roundf-tests (Files): Likewise.
24902         * modules/roundl-tests (Files): Likewise.
24903         * modules/ldexpl-tests (Files): Likewise.
24904         * modules/signbit-tests (Files): Likewise.
24905         * modules/snprintf-posix-tests (Files): Likewise.
24906         * modules/sprintf-posix-tests (Files): Likewise.
24907         * modules/strtod-tests (Files): Likewise.
24908         * modules/trunc-tests (Files): Likewise.
24909         * modules/truncf-tests (Files): Likewise.
24910         * modules/truncl-tests (Files): Likewise.
24911         * modules/vsnprintf-posix-tests (Files): Likewise.
24912         * modules/vsprintf-posix-tests (Files): Likewise.
24913         * modules/vasnprintf-posix-tests (Files): Likewise.
24914         * modules/vasprintf-posix-tests (Files): Likewise.
24915         * tests/test-ceilf1.c (main): Use it.
24916         * tests/test-ceill.c (main): Likewise.
24917         * tests/test-floorf1.c (main): Likewise.
24918         * tests/test-floorl.c (main): Likewise.
24919         * tests/test-frexp.c (main): Likewise.
24920         * tests/test-frexpl.c (main): Likewise.
24921         * tests/test-isnan.c (main): Likewise.
24922         * tests/test-isnand.h (main): Likewise.
24923         * tests/test-isnanf.h (main): Likewise.
24924         * tests/test-isnanl.h (main): Likewise.
24925         * tests/test-ldexpl.c (main): Likewise.
24926         * tests/test-round.c (main): Likewise.
24927         * tests/test-roundf.c (main): Likewise.
24928         * tests/test-roundl.c (main): Likewise.
24929         * tests/test-signbit.c (test_signbitf, test_signbitd)
24930         (test_signbitl): Likewise.
24931         * tests/test-snprintf-posix.h (test_function): Likewise.
24932         * tests/test-sprintf-posix.h (test_function): Likewise.
24933         * tests/test-strtod.c (main): Likewise.
24934         * tests/test-trunc1.c (main): Likewise.
24935         * tests/test-truncf1.c (main): Likewise.
24936         * tests/test-truncl.c (main): Likewise.
24937
24938         isnanl: work around icc bug
24939         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24940
24941 2010-11-03  Eric Blake  <eblake@redhat.com>
24942
24943         tests: fix compiler warnings
24944         * tests/test-getopt.h (test_getopt): Fix condition.
24945         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24946         * tests/test-pipe2.c (main): Likewise.
24947         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24948
24949         utimens: fix broken m4 test
24950         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24951
24952 2010-10-28  Bruno Haible  <bruno@clisp.org>
24953
24954         posix_spawn*, getdtablesize: Relax license.
24955         * modules/posix_spawn (License): Change to LGPLv2+.
24956         * modules/posix_spawnp (License): Likewise.
24957         * modules/posix_spawn-internal (License): Likewise.
24958         * modules/posix_spawnattr_init (License): Likewise.
24959         * modules/posix_spawnattr_getflags (License): Likewise.
24960         * modules/posix_spawnattr_setflags (License): Likewise.
24961         * modules/posix_spawnattr_getpgroup (License): Likewise.
24962         * modules/posix_spawnattr_setpgroup (License): Likewise.
24963         * modules/posix_spawnattr_getschedparam (License): Likewise.
24964         * modules/posix_spawnattr_setschedparam (License): Likewise.
24965         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24966         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24967         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24968         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24969         * modules/posix_spawnattr_getsigmask (License): Likewise.
24970         * modules/posix_spawnattr_setsigmask (License): Likewise.
24971         * modules/posix_spawnattr_destroy (License): Likewise.
24972         * modules/posix_spawn_file_actions_init (License): Likewise.
24973         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24974         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24975         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24976         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24977         * modules/getdtablesize (License): Likewise.
24978         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24979
24980 2010-10-26  Bruno Haible  <bruno@clisp.org>
24981
24982         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24983         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24984         Cygwin and mingw.
24985         Suggested by Eric Blake.
24986
24987 2010-10-26  Bruno Haible  <bruno@clisp.org>
24988
24989         stdio: Work around compilation error due to renameat() on Solaris 10.
24990         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24991         * lib/renameat.c: Don't include <unistd.h> here.
24992         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24993         Reported by Paul Eggert and Eric Blake.
24994
24995 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24996
24997         renameat: port to Solaris 10, which declares renameat in unistd.h
24998
24999         * lib/renameat.c: Include unistd.h before stdio.h, because
25000         Solaris 10 declares renameat in unistd.h.  Problem encountered
25001         when building GNU tar 1.24 on Solaris 10.
25002
25003 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25004
25005         fdopendir: fix C89 compilation
25006         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25007         compilers.
25008
25009 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25010
25011         inttostr: simplify by removing unnecessary redundancy
25012         * lib/anytostr.c: Don't include verify.h.
25013         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25014         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25015         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25016         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25017         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25018         Likewise.
25019         * modules/inttostr (Depends-on): Remove 'verify'.
25020
25021 2010-10-23  Bruno Haible  <bruno@clisp.org>
25022
25023         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25024         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25025         Reported by Eric Blake.
25026
25027 2010-10-23  Bruno Haible  <bruno@clisp.org>
25028
25029         Tests: Fix LOCALE_JA on MirBSD 10.
25030         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25031         to an UTF-8 locale.
25032         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25033         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25034         Reported by Eric Blake.
25035
25036 2010-10-21  Bruno Haible  <bruno@clisp.org>
25037
25038         nl_langinfo test: Avoid test failure on NetBSD 5.
25039         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25040         Reported by Eric Blake.
25041
25042 2010-10-21  Eric Blake  <eblake@redhat.com>
25043
25044         c-stack: work around libsigsegv 2.8 bug
25045         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25046         overflow on at least PowerPC64.
25047
25048 2010-10-17  Bruno Haible  <bruno@clisp.org>
25049
25050         userspec: Drop redundant file.
25051         * modules/userspec (Files): Remove lib/inttostr.h.
25052
25053 2010-10-17  Bruno Haible  <bruno@clisp.org>
25054
25055         nl_langinfo tests: Silence some warnings.
25056         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25057         Reported by Jim Meyering.
25058
25059 2010-10-17  Bruno Haible  <bruno@clisp.org>
25060
25061         Make use of GCC's attribute __alloc_size__.
25062         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25063         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25064         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25065         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25066         __alloc_size__.
25067         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25068         Suggested by Jim Meyering.
25069
25070 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25071
25072         bootstrap: anchor .gitignore entries.
25073         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25074         with...
25075         (insert_vc_ignore): ... this new function, which prepends `/' to
25076         all .gitignore entries before passing them to
25077         insert_sorted_if_absent.
25078
25079 2010-10-16  Bruno Haible  <bruno@clisp.org>
25080
25081         nextafter: Fix configure check.
25082         * modules/nextafter (configure.ac): Correct expected prototype.
25083
25084 2010-10-16  Bruno Haible  <bruno@clisp.org>
25085
25086         termios: Update documentation.
25087         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25088
25089 2010-10-16  Bruno Haible  <bruno@clisp.org>
25090
25091         tests: Make them compile with TinyCC.
25092         * tests/test-strstr.c (main): Remove parentheses around array
25093         initializer.
25094
25095 2010-10-15  Eric Blake  <eblake@redhat.com>
25096
25097         ignore-value: make header idempotent
25098         * lib/ignore-value.h: Add double-inclusion guards.
25099         Reported by Stefan Berger.
25100
25101 2010-10-15  Jim Meyering  <meyering@redhat.com>
25102
25103         GNUmakefile: handle "stable" target, not "major"
25104         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25105         lists in maint.mk and announce-gen.  Without this, "make stable"
25106         would fail to ensure that $(VERSION) is up to date.
25107
25108 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25109
25110         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25111         & co.
25112
25113 2010-10-14  Bruno Haible  <bruno@clisp.org>
25114
25115         vasnprintf: Don't set errno to 0.
25116         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25117         block that sets it to 0.
25118         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25119
25120 2010-10-14  Bruno Haible  <bruno@clisp.org>
25121
25122         socketlib: Fix.
25123         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25124         gl_PREREQ_SYS_H_WINSOCK2.
25125         Reported by Ian Beckwith <ianb@erislabs.net>.
25126
25127 2010-10-13  Jim Meyering  <meyering@redhat.com>
25128
25129         test-select-stdin.c: avoid warn_unused_result warnings
25130         * tests/test-select-stdin.c: Include "macros.h".
25131         ASSERT that read and fflush succeed.
25132
25133 2010-10-13  Jim Meyering  <meyering@redhat.com>
25134
25135         git-version-gen: do require git-VC'd files in cwd
25136         * build-aux/git-version-gen: Reject a git version string
25137         if there are no commits associated with the current directory.
25138         This avoids an unlikely false-positive (unrelated dir whose parent
25139         repository also contains a tag matching v*), as pointed out
25140         by Giuseppe Scrivano in
25141         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25142
25143 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25144
25145         argv-iter: omit nonconforming declaration
25146         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
25147         enum arg_iter_err declaration, which doesn't conform to C99.
25148         Solaris 10 cc warns about this.
25149
25150 2010-10-13  Eric Blake  <eblake@redhat.com>
25151
25152         termios: fix compilation on mingw
25153         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
25154         (gl_TERMIOS_H): Adjust it on mingw.
25155         * modules/termios (Makefile.am): Substitute new key.
25156         * lib/termios.in.h (includes): Make include_next conditional.
25157         * doc/posix-headers/termios.texi (termios.h): Update
25158         documentation.
25159         Reported by Daniel P. Berrange.
25160
25161 2010-10-13  Jim Meyering  <meyering@redhat.com>
25162
25163         git-version-gen: don't require that .git/ be in the current dir
25164         * build-aux/git-version-gen: Adjust this script so that it works
25165         when run from any working directory beneath the top-level .git/-
25166         containing directory.  Inspired by a patch from Giuseppe Scrivano,
25167         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
25168
25169         test-select: avoid warn_unused_result warnings
25170         * tests/test-select.c: Include "macros.h".
25171         ASSERT that each call to read, write, and pipe succeeds.
25172         While not technically required, also check each "close".
25173         * modules/select-tests (Files): Add tests/macros.h.
25174
25175         test-symlinkat: remove declaration of unused local
25176         * tests/test-symlinkat.c (main): Remove unused local, "buf".
25177
25178         test-inttostr: avoid shadowing warnings
25179         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25180         and use malloc rather than the stack for the same reason as
25181         mentioned in the comment justifying the other allocation.
25182
25183 2010-10-11  Bruno Haible  <bruno@clisp.org>
25184
25185         stdlib: Allow multiple gnulib generated replacements to coexist.
25186         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25187         Reported by Sam Steingold <sds@gnu.org>.
25188
25189 2010-10-11  Jim Meyering  <meyering@redhat.com>
25190
25191         fix a documentation typo
25192         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25193
25194 2010-10-11  Eric Blake  <eblake@redhat.com>
25195
25196         futimens: work around Solaris 11 bug
25197         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25198         * tests/test-futimens.h (test_futimens): Enhance, rather than
25199         weaken test.
25200         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25201
25202 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25203
25204         Indentation.
25205         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25206         higher-level operators more to the left.
25207
25208 2010-10-11  Jim Meyering  <meyering@redhat.com>
25209
25210         test-futimens: avoid unwarranted test failure on Solaris 5.11
25211         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25212         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25213         because it tries to dereference the NULL name argument.
25214
25215 2010-10-11  Bruno Haible  <bruno@clisp.org>
25216
25217         Indentation.
25218         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25219         indentation.
25220
25221 2010-10-11  Jim Meyering  <meyering@redhat.com>
25222
25223         spawn.in.h: make indentation consistent with parentheses
25224         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25225         Make indentation consistent with parentheses.
25226
25227 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25228
25229         Fix mismatched parens in previous commit
25230         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25231         parens.
25232
25233 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25234
25235         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25236
25237         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25238         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25239         * lib/malloca.c: Include "verify.h".
25240         (verify1): Remove, replacing with a verify call.
25241         * lib/relocwrapper.c (verify1): Likewise.
25242         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
25243         Likewise.
25244         * modules/malloca (Depends-on): Add 'verify'.
25245         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
25246         * modules/vasnprintf (Depends-on): Add 'verify'.
25247         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25248         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25249         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25250         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25251         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25252         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25253         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25254
25255         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25256
25257         Formerly the style was sometimes 2*X - 1, because the C standard
25258         was wrongly thought to disallow ?: in integral constant expressions.
25259         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25260         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25261         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25262         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25263         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25264         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25265         verify that time_t cannot be floating.
25266
25267 2010-10-08  Eric Blake  <eblake@redhat.com>
25268
25269         time: enforce recent POSIX ruling that time_t is integral
25270         * lib/time.in.h (__time_t_must_be_integral): Detect any
25271         problematic systems, allowing the rest of gnulib to assume POSIX.
25272
25273 2010-10-08  Jim Meyering  <meyering@redhat.com>
25274
25275         fdopendir: fix a bug on systems lacking openat and /proc support
25276         OpenBSD 4.7 is one such system.  The most noticeable effect was
25277         failure of any application making nontrivial use of fts: rm, du,
25278         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25279           ./rm: traversal failed: `a': Bad file descriptor
25280         Debugging that, you see that even though FD 6 was closed just
25281         prior to the opendir call in fd_clone_opendir, its resulting
25282         dir->dd_fd was 8, rather than the expected value of 6:
25283
25284         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25285         93                close (fd);
25286         (gdb) n
25287         94                dir = fd_clone_opendir (dupfd);
25288         (gdb) n
25289         95                saved_errno = errno;
25290         (gdb) p dir->dd_fd
25291         $11 = 8
25292
25293         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25294         The problem is that on OpenBSD, fd_clone_opendir has to resort
25295         to using the old-style save/restore CWD mechanism, due to its
25296         lack of openat/proc support, and *that* would steal the FD (6)
25297         that opendir was supposed to use.
25298
25299         The fix is to squirrel away the desired FD so that save_cwd uses a
25300         different one, and then free the dest FD right before calling opendir.
25301         That guarantees opendir will use the required file descriptor.
25302
25303         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25304
25305 2010-10-08  Bruno Haible  <bruno@clisp.org>
25306
25307         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25308         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25309
25310 2010-10-08  Bruno Haible  <bruno@clisp.org>
25311
25312         nanosleep: Make replacement POSIX compliant.
25313         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25314         is out of range.
25315         Reported by Jim Meyering.
25316
25317 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25318
25319         bootstrap: add hook for altering gnulib.mk, for Bison
25320         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25321         the Bison bootstrapping process can rewrite file names and variables
25322         in this file before later parts of 'bootstrap' use the file.
25323         Bison wants to include lib/gnulib.mk from the top-level makefile,
25324         so it needs the file names in this file to be relative to the top
25325         level, not relative to lib; plus it needs variable names to be
25326         rewritten.
25327         (slurp): Use the new function.
25328
25329         bootstrap: reformat for readability
25330         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25331
25332 2010-10-08  Eric Blake  <eblake@redhat.com>
25333
25334         docs: update cygwin progress
25335         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25336         1.7.7.
25337         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25338         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25339         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25340         * doc/posix-functions/carg.texi (carg): Likewise.
25341         * doc/posix-functions/cargf.texi (cargf): Likewise.
25342         * doc/posix-functions/casin.texi (casin): Likewise.
25343         * doc/posix-functions/casinf.texi (casinf): Likewise.
25344         * doc/posix-functions/casinh.texi (casinh): Likewise.
25345         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25346         * doc/posix-functions/catan.texi (catan): Likewise.
25347         * doc/posix-functions/catanf.texi (catanf): Likewise.
25348         * doc/posix-functions/catanh.texi (catanh): Likewise.
25349         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25350         * doc/posix-functions/ccos.texi (ccos): Likewise.
25351         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25352         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25353         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25354         * doc/posix-functions/cexp.texi (cexp): Likewise.
25355         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25356         * doc/posix-functions/cimag.texi (cimag): Likewise.
25357         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25358         * doc/posix-functions/clog.texi (clog): Likewise.
25359         * doc/posix-functions/clogf.texi (clogf): Likewise.
25360         * doc/posix-functions/conj.texi (conj): Likewise.
25361         * doc/posix-functions/conjf.texi (conjf): Likewise.
25362         * doc/posix-functions/cpow.texi (cpow): Likewise.
25363         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25364         * doc/posix-functions/cproj.texi (cproj): Likewise.
25365         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25366         * doc/posix-functions/creal.texi (creal): Likewise.
25367         * doc/posix-functions/crealf.texi (crealf): Likewise.
25368         * doc/posix-functions/csin.texi (csin): Likewise.
25369         * doc/posix-functions/csinf.texi (csinf): Likewise.
25370         * doc/posix-functions/csinh.texi (csinh): Likewise.
25371         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25372         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25373         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25374         * doc/posix-functions/ctan.texi (ctan): Likewise.
25375         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25376         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25377         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25378         * doc/posix-headers/complex.texi (complex.h): Likewise.
25379
25380 2010-10-07  Jim Meyering  <meyering@redhat.com>
25381
25382         parse-datetime: avoid compilation failure on OpenBSD 4.7
25383         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25384         This works around a compilation failure on OpenBSD 4.7:
25385         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25386
25387 2010-10-07  Eric Blake  <eblake@redhat.com>
25388
25389         docs: update cygwin progress
25390         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25391         1.7.6.
25392         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25393         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25394         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25395         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25396         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25397         Likewise.
25398         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25399         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25400         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25401         Likewise.
25402         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25403         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25404         Likewise.
25405         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25406         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25407         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25408         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25409         Likewise.
25410         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25411         Likewise.
25412         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25413
25414         docs: update parse-datetime history
25415         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25416         documentation of this function's history and alternatives.
25417
25418         cygwin: use more robust version check
25419         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25420         exclude an eventual cygwin 1.9.1.
25421         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25422         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25423         (gl_FUNC_STRCASESTR): Likewise.
25424         Reported by Bruno Haible.
25425
25426 2010-10-06  Bruno Haible  <bruno@clisp.org>
25427
25428         string, sys_select: Avoid #including large headers unless necessary.
25429         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25430         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25431         OSF/1, BeOS, Haiku.
25432         Reported by Jim Meyering.
25433
25434 2010-10-05  Eric Blake  <eblake@redhat.com>
25435
25436         memmem, strstr, strcasestr: fix bug with long periodic needle
25437         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25438         periodic needle having false positive.
25439         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25440         and cygwin 1.7.7.
25441         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25442         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25443         (gl_FUNC_STRCASESTR): Likewise.
25444         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25445         * tests/test-memmem.c (main): Expose the bug.
25446         * tests/test-strcasestr.c (main): Likewise.
25447         * tests/test-strstr.c (main): Likewise.
25448         * tests/test-c-strcasestr.c (main): Likewise.
25449         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25450         * doc/posix-functions/strstr.texi (strstr): Likewise.
25451         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25452         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25453
25454 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25455
25456         parse-datetime: do some more renaming
25457         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25458         parse_datetime, not get_date.  Mention the renaming.
25459         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25460         in comments.
25461         * m4/bison.m4: Likewise.
25462
25463 2010-10-05  Eric Blake  <eblake@redhat.com>
25464
25465         parse-datetime: better name than get_date
25466         * NEWS: Reword the deprecation notice.
25467         * modules/get_date: Rename to modules/parse-datetime.
25468         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25469         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25470         * lib/get_date.y: Rename to lib/parse-datetime.y.
25471         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25472         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25473         * doc/getdate.texi: Provide fallback wrapper.
25474         * lib/getdate.h: Move guts, and wrap...
25475         * lib/parse-datetime.h: ...new file.
25476         * lib/parse-datetime.y (get_date): Rename...
25477         (parse_datetime): ...to this.
25478         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25479         (gl_PARSE_DATETIME): ...to this.
25480         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25481         documentation.
25482         * modules/getdate (Files): Provide fallback docs and header.
25483         (Notice, Depends-on): Update references.
25484         * tests/test-parse-datetime.c: Likewise.
25485         * DEPENDENCIES: Likewise.
25486         * MODULES.html.sh (Date and time <time.h>): Likewise.
25487         * doc/parse-datetime.texi (Date input formats)
25488         (Authors of parse_datetime): Likewise.
25489         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25490         (Include): Likewise.
25491         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25492         * gnulib-tool: Likewise.
25493         * m4/bison.m4 (gl_BISON): Likewise.
25494         Suggested by Bruno Haible.
25495
25496 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25497
25498         more ports to Solaris tr, which needs [] around ranges
25499         * gnulib-tool: Solaris tr needs [] around ranges.
25500         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25501         * tests/test-pipe-filter-gi1.c (main): Likewise.
25502         * tests/test-pipe-filter-ii1.c (main): Likewise.
25503
25504 2010-10-05  Eric Blake  <eblake@redhat.com>
25505
25506         bootstrap: fix Solaris regression
25507         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25508         around ranges.
25509         Reported by Pádraig Brady.
25510
25511         bootstrap: work with pkg-config
25512         * build-aux/bootstrap (check_versions): Also transliterate - in
25513         prerequisite name.
25514         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25515         prerequisites that were already found, to avoid confusion.
25516         Reported by Justin Clift.
25517
25518         faccessat: remove unused wrappers
25519         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25520         presence of these wrappers dragged in -lgen on Solaris.
25521         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25522
25523 2010-10-05  Jim Meyering  <meyering@redhat.com>
25524
25525         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25526         * Makefile (sc_pragma_columns): New syntax-check rule.
25527
25528 2010-10-04  Bruno Haible  <bruno@clisp.org>
25529
25530         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25531         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25532         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25533         Reported by Bruce Korb and Eric Blake.
25534
25535 2010-10-04  Bruno Haible  <bruno@clisp.org>
25536
25537         threadlib: Make option --with-libpth-prefix work.
25538         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25539         use $LIBPTH, not just -lpth.
25540
25541 2010-10-04  Bruno Haible  <bruno@clisp.org>
25542
25543         Avoid line length limitation from HP NonStop system header files.
25544         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25545         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25546         * lib/ctype.in.h: Likewise.
25547         * lib/dirent.in.h: Likewise.
25548         * lib/errno.in.h: Likewise.
25549         * lib/fcntl.in.h: Likewise.
25550         * lib/float.in.h: Likewise.
25551         * lib/getopt.in.h: Likewise.
25552         * lib/iconv.in.h: Likewise.
25553         * lib/inttypes.in.h: Likewise.
25554         * lib/langinfo.in.h: Likewise.
25555         * lib/locale.in.h: Likewise.
25556         * lib/math.in.h: Likewise.
25557         * lib/netdb.in.h: Likewise.
25558         * lib/netinet_in.in.h: Likewise.
25559         * lib/poll.in.h: Likewise.
25560         * lib/pthread.in.h: Likewise.
25561         * lib/pty.in.h: Likewise.
25562         * lib/sched.in.h: Likewise.
25563         * lib/se-selinux.in.h: Likewise.
25564         * lib/search.in.h: Likewise.
25565         * lib/signal.in.h: Likewise.
25566         * lib/spawn.in.h: Likewise.
25567         * lib/stdarg.in.h: Likewise.
25568         * lib/stddef.in.h: Likewise.
25569         * lib/stdint.in.h: Likewise.
25570         * lib/stdio.in.h: Likewise.
25571         * lib/stdlib.in.h: Likewise.
25572         * lib/string.in.h: Likewise.
25573         * lib/strings.in.h: Likewise.
25574         * lib/sys_file.in.h: Likewise.
25575         * lib/sys_ioctl.in.h: Likewise.
25576         * lib/sys_select.in.h: Likewise.
25577         * lib/sys_socket.in.h: Likewise.
25578         * lib/sys_stat.in.h: Likewise.
25579         * lib/sys_time.in.h: Likewise.
25580         * lib/sys_times.in.h: Likewise.
25581         * lib/sys_utsname.in.h: Likewise.
25582         * lib/sys_wait.in.h: Likewise.
25583         * lib/sysexits.in.h: Likewise.
25584         * lib/termios.in.h: Likewise.
25585         * lib/time.in.h: Likewise.
25586         * lib/unistd.in.h: Likewise.
25587         * lib/wchar.in.h: Likewise.
25588         * lib/wctype.in.h: Likewise.
25589         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25590         * modules/ctype (Makefile.am): Likewise.
25591         * modules/dirent (Makefile.am): Likewise.
25592         * modules/errno (Makefile.am): Likewise.
25593         * modules/fcntl-h (Makefile.am): Likewise.
25594         * modules/float (Makefile.am): Likewise.
25595         * modules/getopt-posix (Makefile.am): Likewise.
25596         * modules/iconv-h (Makefile.am): Likewise.
25597         * modules/inttypes (Makefile.am): Likewise.
25598         * modules/langinfo (Makefile.am): Likewise.
25599         * modules/locale (Makefile.am): Likewise.
25600         * modules/math (Makefile.am): Likewise.
25601         * modules/netdb (Makefile.am): Likewise.
25602         * modules/netinet_in (Makefile.am): Likewise.
25603         * modules/poll-h (Makefile.am): Likewise.
25604         * modules/pthread (Makefile.am): Likewise.
25605         * modules/pty (Makefile.am): Likewise.
25606         * modules/sched (Makefile.am): Likewise.
25607         * modules/search (Makefile.am): Likewise.
25608         * modules/selinux-h (Makefile.am): Likewise.
25609         * modules/signal (Makefile.am): Likewise.
25610         * modules/spawn (Makefile.am): Likewise.
25611         * modules/stdarg (Makefile.am): Likewise.
25612         * modules/stddef (Makefile.am): Likewise.
25613         * modules/stdint (Makefile.am): Likewise.
25614         * modules/stdio (Makefile.am): Likewise.
25615         * modules/stdlib (Makefile.am): Likewise.
25616         * modules/string (Makefile.am): Likewise.
25617         * modules/strings (Makefile.am): Likewise.
25618         * modules/sys_file (Makefile.am): Likewise.
25619         * modules/sys_ioctl (Makefile.am): Likewise.
25620         * modules/sys_select (Makefile.am): Likewise.
25621         * modules/sys_socket (Makefile.am): Likewise.
25622         * modules/sys_stat (Makefile.am): Likewise.
25623         * modules/sys_time (Makefile.am): Likewise.
25624         * modules/sys_times (Makefile.am): Likewise.
25625         * modules/sys_utsname (Makefile.am): Likewise.
25626         * modules/sys_wait (Makefile.am): Likewise.
25627         * modules/sysexits (Makefile.am): Likewise.
25628         * modules/termios (Makefile.am): Likewise.
25629         * modules/time (Makefile.am): Likewise.
25630         * modules/unistd (Makefile.am): Likewise.
25631         * modules/wchar (Makefile.am): Likewise.
25632         * modules/wctype (Makefile.am): Likewise.
25633
25634 2010-10-04  Bruno Haible  <bruno@clisp.org>
25635
25636         read-file tests: Avoid a test failure on NonStop Kernel.
25637         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25638         a regular file.
25639         Reported by Joachim Schmitz <schmitz@hp.com>.
25640
25641 2010-10-03  Bruno Haible  <bruno@clisp.org>
25642
25643         gnulib-tool: Fixes for --create-testdir with --libtool.
25644         * gnulib-tool (func_get_automake_snippet): Don't augment
25645         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25646         an executable.
25647         (func_create_testdir): Handle module 'alloca' like func_import.
25648         Reported by Bruce Korb <bruce.korb@gmail.com>.
25649
25650 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25651
25652         Avoid some lines longer than 80 characters.
25653         * lib/stdint.in.h: Break long comment lines.
25654         * lib/math.in.h: Likewise.
25655         (_GL_NUM_UINT_WORDS): New macro, for readability.
25656         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25657         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25658         * lib/stdlib.in.h: Likewise.
25659         * lib/spawn.in.h: Likewise.
25660         * lib/sys_socket.in.h: Update an URL.
25661         * lib/sys_stat.in.h: Break long line.
25662
25663 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25664
25665         Improve pmccabe2html.
25666         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25667         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25668         when the sources change. Remove the line in the HTML about "Used
25669         ranges" (which implied that there might be other unused ranges),
25670         rename "Resume" to "Summary" (easier to understand for more users).
25671         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25672         styles, and some unnecessary blank lines.
25673
25674 2010-10-03  Bruno Haible  <bruno@clisp.org>
25675             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25676
25677         acl: Add support for ACLs on NonStop Kernel.
25678         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25679         Check whether the function aclsort() exists.
25680         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25681         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25682         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25683         (acl_nontrivial [HAVE_ACLSORT]: New function.
25684         (file_has_acl): Implement for NonStop Kernel.
25685         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25686         (qset_acl): Implement for NonStop Kernel.
25687         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25688         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25689         (main): Implement for NonStop Kernel.
25690         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25691         Kernel. Handle this flavor.
25692         * tests/test-set-mode-acl.sh: Likewise.
25693         * tests/test-copy-acl.sh: Likewise.
25694         * tests/test-copy-file.sh: Likewise.
25695
25696 2010-10-03  Bruno Haible  <bruno@clisp.org>
25697
25698         Info about ACLs on NonStop Kernel.
25699         * doc/acl-resources.txt: Add info about NonStop Kernel.
25700         References by Joachim Schmitz <schmitz@hp.com>.
25701
25702 2010-10-02  Bruno Haible  <bruno@clisp.org>
25703
25704         Define missing EDQUOT on NonStop Kernel.
25705         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25706         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25707         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25708         missing.
25709         * doc/posix-headers/errno.texi: Mention the NSK bug.
25710         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25711         Reported by Joachim Schmitz <schmitz@hp.com>.
25712
25713 2010-10-02  Bruno Haible  <bruno@clisp.org>
25714
25715         Update doc for POSIX:2008.
25716         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25717         Update URL of POSIX specification.
25718
25719 2010-10-02  Bruno Haible  <bruno@clisp.org>
25720
25721         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25722         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25723         from gnulib, not from Automake.
25724
25725 2010-10-02  Bruno Haible  <bruno@clisp.org>
25726
25727         New module 'system-posix'.
25728         * modules/system-posix: New file.
25729         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25730         module is present.
25731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25732         GNULIB_SYSTEM_POSIX.
25733         * modules/stdlib (Depends-on): Remove sys_wait.
25734         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25735         * doc/posix-functions/system.texi: Mention the new module.
25736         * doc/posix-headers/stdlib.texi: Likewise.
25737         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25738         define test_sys_wait_macros to a no-op.
25739         Reported by Sam Steingold <sds@gnu.org>.
25740
25741 2010-09-30  Bruno Haible  <bruno@clisp.org>
25742
25743         More renaming from 'getdate' to 'get_date'.
25744         * doc/get_date.texi: Renamed from doc/getdate.texi.
25745         * modules/get_date (Files): Update.
25746         * MODULES.html.sh (Date and time <time.h>): Update.
25747         * DEPENDENCIES: Update.
25748         * gnulib-tool: Update comment.
25749         * m4/bison.m4 (gl_BISON): Likewise.
25750         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25751
25752 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25753
25754         bootstrap: support ACLOCAL_FLAGS during aclocal
25755         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25756         can add additional -I dir for third-party .m4 files.
25757
25758 2010-09-30  Eric Blake  <eblake@redhat.com>
25759
25760         bootstrap: use glibtoolize on MacOS
25761         * build-aux/bootstrap (check_versions): Convert libtool into
25762         libtoolize.
25763         (tool search): Move libtool check earlier, and look for
25764         glibtoolize for MacOS.
25765         (gnulib_tool_options): Auto-add --libtool when appropriate.
25766         Reported by Justin Clift.
25767
25768         poll: fix typo that broke test on MacOS
25769         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25770         Reported by Justin Clift.
25771
25772         getdate: rename to get_date
25773         Note: getdate.h is not renamed, to minimize client impact.
25774         * modules/getdate: Mark obsolete.  Move old contents...
25775         * modules/get_date: ...to new module name.
25776         * modules/getdate-tests: Move...
25777         * modules/get_date-tests: ...here.
25778         * m4/getdate.m4: Move...
25779         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25780         * lib/getdate.y: Move...
25781         * lib/get_date.y: ...here.
25782         * tests/test-getdate.c: Move...
25783         * tests/test-get_date.c: ...here.
25784         * doc/posix-functions/getdate.texi (getdate): Update name.
25785         * NEWS: Mention the change.
25786
25787 2010-09-29  Bruno Haible  <bruno@clisp.org>
25788
25789         Separate the module 'waitpid' from the module 'sys_wait'.
25790         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25791         present.
25792         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25793         gl_MODULE_INDICATOR_FOR_TESTS.
25794         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25795         * modules/sys_wait (Depends-on): Remove waitpid.
25796         (Makefile.am): Substitute GNULIB_WAITPID.
25797         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25798         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25799         signature only if the 'waitpid' module is present.
25800         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25801         * NEWS: Mention the change.
25802         * modules/grantpt (Depends-on): Add waitpid.
25803         * modules/wait-process (Depends-on): Likewise.
25804
25805 2010-09-29  Bruno Haible  <bruno@clisp.org>
25806
25807         More tests for module 'sys_wait'.
25808         * modules/sys_wait-c++-tests: New file.
25809         * tests/test-sys_wait-c++.cc: New file.
25810         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25811         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25812
25813 2010-09-29  Bruno Haible  <bruno@clisp.org>
25814
25815         New module 'waitpid'.
25816         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25817         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25818         Don't include <process.h>.
25819         (waitpid): Declare only, using modern idiom.
25820         * m4/waitpid.m4: New file.
25821         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25822         * modules/waitpid: New file.
25823         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25824         (Makefile.am): Update.
25825         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25826
25827 2010-09-28  Bruno Haible  <bruno@clisp.org>
25828
25829         poll: Assume ANSI C.
25830         * lib/poll.c (poll): Use an ANSI C declaration.
25831
25832 2010-09-28  Bruno Haible  <bruno@clisp.org>
25833
25834         poll-h: Create poll.h on all platforms.
25835         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25836         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25837         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25838         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25839         (gl_REPLACE_POLL_H): Don't set POLL_H.
25840         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25841         * modules/poll-h (Depends-on): Add include_next.
25842         (Makefile.am): Create poll.h unconditionally. Substitute also
25843         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25844
25845 2010-09-28  Bruno Haible  <bruno@clisp.org>
25846
25847         Tests for module 'poll-h'.
25848         * modules/poll-h-c++-tests: New file.
25849         * tests/test-poll-h-c++.cc: New file.
25850
25851         Tests for module 'poll-h'.
25852         * modules/poll-h-tests: New file.
25853         * tests/test-poll-h.c: New file.
25854
25855 2010-09-28  Bruno Haible  <bruno@clisp.org>
25856
25857         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25858         * modules/poll-h (Depends-on): Add 'extensions'.
25859
25860 2010-09-28  Bruno Haible  <bruno@clisp.org>
25861
25862         New module 'poll-h'.
25863         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25864         (poll): Use modern idiom.
25865         * modules/poll-h: New file.
25866         * modules/poll (Files): Remove lib/poll.in.h.
25867         (Depends-on): Add poll-h.
25868         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25869         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25870         * m4/poll_h.m4: New file.
25871         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25872         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25873         and invoke gl_REPLACE_POLL_H.
25874         * lib/poll.c: Use common idiom.
25875         * tests/test-poll.c: Likewise.
25876         * doc/posix-headers/poll.texi: Mention the poll-h module.
25877         Suggested by Eric Blake.
25878
25879 2010-09-26  Bruno Haible  <bruno@clisp.org>
25880
25881         sys_wait: Implement WSTOPSIG.
25882         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25883         Reported by Simon Josefsson.
25884
25885 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25886
25887         stdlib, sys_wait: Avoid compilation error on mingw.
25888         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25889
25890 2010-09-26  Bruno Haible  <bruno@clisp.org>
25891
25892         stdlib tests: Avoid code duplication.
25893         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25894         * modules/sys_wait-tests (Files): Likewise.
25895         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25896         * tests/test-stdlib.c: Include test-sys_wait.h.
25897         (main): Invoke test_sys_wait_macros.
25898         * tests/test-sys_wait.c: Include test-sys_wait.h.
25899         (main): Invoke test_sys_wait_macros.
25900
25901 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25902
25903         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25904         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25905         sure Windows sockets are working before calling getaddrinfo.
25906         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25907         * doc/gnulib.texi (Windows sockets): Fix typo.
25908
25909 2010-09-25  Bruno Haible  <bruno@clisp.org>
25910
25911         Tests for module 'regex-quote'.
25912         * modules/regex-quote-tests: New file.
25913         * tests/test-regex-quote.c: New file.
25914
25915         New module 'regex-quote'.
25916         * lib/regex-quote.h: New file.
25917         * lib/regex-quote.c: New file.
25918         * modules/regex-quote: New file.
25919         Suggested by Reuben Thomas <rrt@sc3d.org>.
25920
25921 2010-09-24  Bruno Haible  <bruno@clisp.org>
25922
25923         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25924         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25925
25926 2010-09-23  Bruno Haible  <bruno@clisp.org>
25927
25928         setenv: Relax license.
25929         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25930         Blake.
25931         Requested by Eric Blake.
25932
25933 2010-09-22  Bruno Haible  <bruno@clisp.org>
25934
25935         termios: Relax license.
25936         * modules/termios (License): Change to LGPLv2+.
25937         Requested by Eric Blake.
25938
25939 2010-09-22  Bruno Haible  <bruno@clisp.org>
25940
25941         threadlib: Allow the package to change the default to 'no'.
25942         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25943         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25944         Reported by Paul Eggert.
25945
25946 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25947             Bruno Haible  <bruno@clisp.org>
25948
25949         Fix endless loop in mbmemcasecoll.
25950         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25951         byte.
25952         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25953
25954 2010-09-22  Bruno Haible  <bruno@clisp.org>
25955
25956         Tests for module 'memcoll'.
25957         * modules/memcoll-tests: New file.
25958         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25959
25960         memcoll, xmemcoll: Clarify size vs. length.
25961         * modules/memcoll.c (memcoll0): Clarify specification.
25962         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25963         passed to collate_error.
25964
25965 2010-09-22  Bruno Haible  <bruno@clisp.org>
25966
25967         Tests for module 'memcasecmp'.
25968         * modules/memcasecmp-tests: New file.
25969         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25970
25971 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25972
25973         * lib/pthread.in.h: Add split double-inclusion guard, and include
25974         system <pthread.h> if there is one.  Use @@-style as in other
25975         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25976         pthread.h doesn't.
25977         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25978         (pthread_mutexattr_settype, pthread_mutex_trylock):
25979         New static inline functions, if there's no system <pthread.h>.
25980         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25981         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25982         Approximate with mutexes if the system lacks spinlocks, as in
25983         MacOS.
25984         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25985         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25986         @@-style.  Check for spinlocks separately.
25987         (gl_PTHREAD_DEFAULTS): New macro.
25988         * modules/pthread: Redo to use a more typical style for in.h files.
25989
25990 2010-09-21  Eric Blake  <eblake@redhat.com>
25991
25992         net_if: enhance tests
25993         * tests/test-net_if.c (main): Move signature checks earlier.
25994         Print failures to stderr.
25995         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25996         Document the bug that we do not yet fix.
25997
25998 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25999
26000         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
26001         about gnulib, not GSS.
26002
26003 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26004
26005         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
26006         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26007         for Emacs.
26008         * build-aux/pmccabe2html: Make Makefile.am example code more
26009         cut-and-paste friendly.
26010
26011 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26012
26013         * tests/test-net_if.c: New file.
26014         * modules/net_if-tests: New file.
26015
26016 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26017
26018         pthread: add pthread_spin_destroy
26019         * lib/pthread.in.h (pthread_spin_destroy): New function.
26020
26021 2010-09-19  Bruno Haible  <bruno@clisp.org>
26022
26023         gnulib-tool: Fix --help output.
26024         * gnulib-tool (func_usage): Fix help message.
26025         Reported by Reuben Thomas <rrt@sc3d.org>.
26026
26027 2010-09-18  Jim Meyering  <meyering@redhat.com>
26028
26029         maint.mk: avoid unexpanded \n in two diagnostics
26030         * top/maint.mk (sc_prohibit_always_true_header_tests):
26031         Don't use a literal \n in a halt=... assignment.  It would not be
26032         expanded, and the two \n bytes would appear in the diagnostic output
26033         rather than the desired newline.  Use halt=$$(printf ... instead.
26034         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26035
26036 2010-09-18  Bruno Haible  <bruno@clisp.org>
26037
26038         netinet_in: Doc tweak.
26039         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26040         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26041
26042 2010-09-18  Jim Meyering  <meyering@redhat.com>
26043
26044         init.sh: correct an outdated comment
26045         * tests/init.sh (create_exe_shims_):  s/function/alias/
26046
26047         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26048         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26049         a file named "*.exe" is removed between the glob expansion and the
26050         processing of that oddly named file.
26051
26052 2010-09-17  Eric Blake  <eblake@redhat.com>
26053
26054         mirbsd: add some more support
26055         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26056         in BSD family.
26057         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26058         devices as OpenBSD.
26059         * m4/host-os.m4 (mirbsd): Add MirBSD.
26060
26061         tests: fix unportable assumption on sys/wait.h
26062         * tests/test-sys_wait.c (main): Relax test.
26063         * tests/test-stdlib.c (main): Likewise.
26064
26065         init.sh: accommodate directory with no .exes
26066         * tests/init.sh: Accomodate directory containing only scripts.
26067
26068         tests: avoid compiler warning
26069         * tests/test-stdlib.c (main): Use the variable.
26070
26071         fdutimens, fdutimensat: update signature, again
26072         * lib/utimens.h (gl_futimens): Delete, and move signature...
26073         (fdutimens): ...here.
26074         (fdutimensat): Rearrange signature.
26075         (lutimensat): Rename variable for clarity.
26076         * lib/fdutimensat.c (fdutimensat): Update signature.
26077         * lib/utimens.c (fdutimens): Likewise.
26078         (gl_futimens): Delete.
26079         (utimens, lutimens): Update callers.
26080         * lib/futimens.c (futimens): Likewise.
26081         * tests/test-fdutimensat.c: Likewise.
26082         * tests/test-utimens.c: Likewise.
26083         * tests/test-futimens.h: Update comment.
26084         * NEWS: Mention this.
26085         Suggested by Paul Eggert.
26086
26087 2010-09-17  Bruno Haible  <bruno@clisp.org>
26088
26089         Take over the maintenance of some older macros from Autoconf.
26090         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26091         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26092         GNU Autoconf.
26093         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26094         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26095
26096 2010-09-17  Eric Blake  <eblake@redhat.com>
26097
26098         fdutimensat: drop atflag validation
26099         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26100         with valid fd, to close a race scenario where futimens is
26101         unsupported and FILE was replaced by a symlink.
26102         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26103         accordingly.
26104         Suggested by Paul Eggert.
26105
26106 2010-09-16  Bruno Haible  <bruno@clisp.org>
26107
26108         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26109         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26110
26111 2010-09-16  Bruno Haible  <bruno@clisp.org>
26112
26113         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26114         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26115         login_tty exists.
26116         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26117
26118 2010-09-16  Bruno Haible  <bruno@clisp.org>
26119
26120         login_tty: Make the replacement code work on BSD systems.
26121         * lib/login_tty.c: Include <sys/ioctl.h>.
26122         (login_tty): Use ioctl TIOCSCTTY when available.
26123         * modules/login_tty (Depends-on): Add sys_ioctl.
26124         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26125
26126 2010-09-16  Bruno Haible  <bruno@clisp.org>
26127
26128         login_tty: Stricter unit test.
26129         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26130         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26131         and tcgetsid() after login_tty.
26132         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26133
26134 2010-09-16  Bruno Haible  <bruno@clisp.org>
26135
26136         New module 'tcgetsid'.
26137         * lib/tcgetsid.c: New file.
26138         * m4/tcgetsid.m4: New file.
26139         * modules/tcgetsid: New file.
26140         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26141         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26142         GNULIB_TCGETSID, HAVE_TCGETSID.
26143         * lib/termios.in.h: Include <sys/types.h>.
26144         (tcgetsid): New declaration.
26145         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
26146         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
26147         * doc/posix-functions/tcgetsid.texi: Mention the new module.
26148         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
26149
26150 2010-09-16  Bruno Haible  <bruno@clisp.org>
26151
26152         Tests for module 'termios'.
26153         * modules/termios-c++-tests: New file.
26154         * modules/termios-tests: New file.
26155         * tests/test-termios-c++.cc: New file.
26156         * tests/test-termios.c: New file.
26157
26158         New module 'termios'.
26159         * modules/termios: New file.
26160         * lib/termios.in.h: New file.
26161         * m4/termios_h.m4: New file.
26162         * doc/posix-headers/termios.texi: Mention the new module.
26163
26164 2010-09-16  Eric Blake  <eblake@redhat.com>
26165
26166         fdutimensat: add an atflag parameter
26167         * lib/fdutimensat.c (fdutimensat): Add new parameter.
26168         * lib/utimens.h (fdutimensat): Update prototype.
26169         * tests/test-fdutimensat.c: Adjust test to match.
26170         * NEWS: Document the change.
26171         Suggested by Paul Eggert.
26172
26173 2010-09-16  Bruno Haible  <bruno@clisp.org>
26174
26175         Fix typos in comments.
26176         * lib/striconveh.h: Fix typo in comment.
26177         * lib/login_tty.c (login_tty): Likewise.
26178
26179 2010-09-15  Bruno Haible  <bruno@clisp.org>
26180
26181         stdlib: clarify MirBSD WEXITSTATUS bug
26182         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26183         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26184
26185 2010-09-15  Eric Blake  <eblake@redhat.com>
26186
26187         stdlib: work around MirBSD WEXITSTATUS bug
26188         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26189         * modules/stdlib (Depends-on): Add sys_wait.
26190         * tests/test-sys_wait.c (main): Enhance test.
26191         * tests/test-stdlib.c (main): Likewise.
26192         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26193
26194         docs: mention MacOS issue with WEXITSTATUS(constant)
26195         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26196         issue.
26197         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26198
26199         strnlen: add tests
26200         * modules/strnlen-tests: New file.
26201         * tests/test-strnlen.c: Likewise.
26202
26203 2010-09-14  Bruno Haible  <bruno@clisp.org>
26204
26205         unistr/base: Avoid link errors when module 'libunistring' is also used.
26206         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26207         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26208         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26209         Declare also when HAVE_LIBUNISTRING is set.
26210         Reported by Pádraig Brady <P@draigbrady.com>.
26211
26212 2010-09-14  Eric Blake  <eblake@redhat.com>
26213
26214         test-rawmemchr: make more robust
26215         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26216         (Depends-on, configure.ac): Add needed prerequisites to use it.
26217         * modules/memchr-tests (Files, Depends-on, configure.ac):
26218         Likewise, to avoid implicit reliance on memchr module prereqs.
26219         * tests/test-memchr.c (main): Ensure proper masking.
26220         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26221         reads.
26222
26223         memchr: detect glibc Alpha bug
26224         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26225         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26226         Alpha.
26227         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26228         * tests/test-memchr.c (main): Enhance test.
26229         Reported by Nelson H. F. Beebe.
26230
26231 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26232
26233         fts, getcwd, glob: audit for dirfd returning -1
26234         * lib/fts.c (opendir): Remove #define; no longer used.
26235         (opendirat): New arg PDIR_FD.  All callers changed.
26236         (fts_build, _opendir2): Use new opendirat to avoid the need for
26237         dirfd, or for checking whether dirfd returns a negative value.
26238         Don't use opendir; always use openat followed by fdopendir.
26239         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
26240         it.
26241         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
26242         returns -1 here.
26243         * modules/fts (Depends-on): Remove dirfd.
26244         * modules/getcwd (Depends-on): Likewise.
26245
26246 2010-09-13  Eric Blake  <eblake@redhat.com>
26247
26248         float: fix broken MirBSD header
26249         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
26250         * doc/posix-headers/float.texi (float.h): Document it.
26251
26252 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26253
26254         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26255         * lib/fts.c (opendirat): New arg extra_flags.
26256         (__opendir2): Use it to avoid following symlinks when opening
26257         a directory, if symlinks are not supposed to be followed.  See
26258         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26259
26260         fdopendir: preserve argument fd before returning
26261         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26262         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26263         (fdopendir): Use them, arranging for FD to be open to the same
26264         directory that it was when it started.  (It might be temporarily
26265         closed while fdopendir is running, so this not thread- or
26266         signal-safe.)  Be careful to do the right thing even when file
26267         descriptors are scarce and dup fails with errno == EMFILE.  See
26268         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26269
26270 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26271
26272         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26273         * NEWS: Document change.
26274         * m4/regex.m4: Disable test for regoff_t size.
26275
26276 2010-09-13  Jim Meyering  <meyering@redhat.com>
26277
26278         fts: don't operate on an invalid file descriptor after failed dup
26279         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26280         negative file descriptor.
26281
26282 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26283
26284         savedir: add streamsavedir, deprecate fdsavedir
26285         * NEWS: Mention deprecation of fdsavedir.
26286         * lib/savedir.c (streamsavedir): New extern function, whose name
26287         ends in "savedir" to be consistent with the others.  This differs
26288         from savedirstream in that it doesn't close its argument.  The
26289         next version of GNU tar will use this instead of fdsavedir, to
26290         avoid some race conditions and conserve file descriptors.
26291         (savedirstream): Reimplement as a wrapper around streamsavedir.
26292         (fdsavedir): Add a comment deprecating this function.  As far as
26293         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26294         * lib/savedir.h (streamsavedir): New decl.
26295         (fdsavedir): Add a comment deprecating this.
26296
26297 2010-09-10  Bruno Haible  <bruno@clisp.org>
26298
26299         langinfo: Fix last commit.
26300         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26301         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26302         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26303
26304 2010-09-10  Bruno Haible  <bruno@clisp.org>
26305
26306         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26307         * lib/progreloc.c (O_EXEC): Define fallback.
26308
26309 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26310
26311         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26312         * NEWS: Document recent changes to fcntl-h.
26313         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26314         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26315         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26316         Similarly for O_SEARCH; this last was already true, but not documented.
26317         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26318         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26319         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26320         Likewise.
26321         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26322         is zero, not whether it is defined.
26323         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26324         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26325         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26326
26327 2010-09-10  Bruno Haible  <bruno@clisp.org>
26328
26329         langinfo, nl_langinfo: Fix for IRIX 5.3.
26330         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26331         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26332         HAVE_LANGINFO_YESEXPR.
26333         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26334         HAVE_LANGINFO_YESEXPR.
26335         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26336         HAVE_LANGINFO_T_FMT_AMPM is 0.
26337         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26338         HAVE_LANGINFO_YESEXPR is 0.
26339         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26340         NOEXPR.
26341         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26342         * doc/posix-functions/nl_langinfo.texi: Likewise.
26343         Reported by Eric Blake.
26344
26345 2010-09-10  Bruno Haible  <bruno@clisp.org>
26346
26347         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26348         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26349         on FreeBSD 8.0 and OpenBSD 4.6.
26350         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26351         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26352         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26353         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26354         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26355         ac_includes_default.
26356         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26357
26358 2010-09-09  Eric Blake  <eblake@redhat.com>
26359
26360         strsignal: work around NetBSD bug
26361         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26362         * lib/string.in.h (includes): Likewise.
26363         * doc/posix-functions/strsignal.texi (strsignal): Document the
26364         bug.
26365         Reported by Nelson H. F. Beebe.
26366
26367         gnulib-tool: work with NetBSD /bin/sh
26368         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26369         (func_get_description, func_get_comment, func_get_status)
26370         (func_get_notice, func_get_applicability, func_get_filelist)
26371         (func_get_dependencies, func_get_autoconf_early_snippet)
26372         (func_get_autoconf_snippet, func_get_automake_snippet)
26373         (func_get_include_directive, func_get_link_directive)
26374         (func_get_license, func_get_maintainer, func_import): Avoid
26375         shell syntax errors from parsing syntax extensions.
26376
26377 2010-09-09  Bruno Haible  <bruno@clisp.org>
26378
26379         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26380         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26381         a reliable way to determine whether the 'alias' command works.
26382
26383 2010-09-08  Jim Meyering  <meyering@redhat.com>
26384
26385         init.sh: penalize a set-x-impaired shell; don't disqualify it
26386         * tests/init.sh: Too many shells corrupt application stderr when
26387         you set -x, so we can't afford to disqualify them, since at least
26388         on Irix-6.5, that would disqualify all bourne shells.
26389         Instead, use a two-pass approach.
26390         On the first pass, try to find a shell that meets the stricter
26391         condition that set -x does not corrupt stderr.
26392         If no shell meets the stricter condition, retest each candidate
26393         shell, but without that extra condition.  Finally, when
26394         VERBOSE=yes is requested and set -x might cause trouble, simply
26395         issue a warning and refrain from enabling debug output.
26396
26397 2010-09-08  Eric Blake  <eblake@redhat.com>
26398
26399         unsetenv: fix OpenBSD bug
26400         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26401         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26402         documentation.
26403         Reported by Jim Meyering.
26404
26405         strtod: work around IRIX 6.5 bug
26406         * lib/strtod.c (strtod): Reparse number on shorter string if
26407         exponent parse was invalid.
26408         * tests/test-strtod.c (main): Add check for "0x1p 2".
26409         Reported by Tom G. Christensen.
26410
26411         getopt: optimize previous patch
26412         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26413         empty variable.  Speed up awk script.
26414         Reported by Paolo Bonzini.
26415
26416 2010-09-08  Jim Meyering  <meyering@redhat.com>
26417
26418         test.sh: disqualify shells for which set -x corrupts stderr
26419         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26420         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26421         appear in stderr output.  For example, this command:
26422             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26423         prints "P=1" on those two systems:
26424
26425 2010-09-08  Bruno Haible  <bruno@clisp.org>
26426
26427         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26428         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26429         commands, because some shells ignore redirections when there is an
26430         error in the command lookup.
26431         Reported by Eric Blake.
26432
26433 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26434
26435         * lib/regex.h: Fix a mention of `regex_compile' (should be
26436         `re_compile_pattern').
26437         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26438         (re_set_registers): Correct name of parameter in comment.
26439
26440         * doc/regex.texi: Add documentation for missing syntax flags.
26441         Remove commented-out documentation of defunct syntax option
26442         RE_NO_EMPTY_ALTS.
26443         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26444         Add documentation of re_set_registers.
26445         Document trick to re-use a pattern buffer by setting fastmap manually.
26446         Update documentation of struct re_pattern_buffer per public members.
26447         Uncomment documentation of equivalence class operators and
26448         collating symbol operators, since they are now implemented,
26449         Explain leftmost-longest matching in relation to alternatives.
26450         Tidy documentation of substring matching.
26451         Remove POSIX documentation, which is done better in
26452         glibc, and refer the reader there. Keep BSD API documentation, as
26453         that is not readily available elsewhere.
26454
26455 2010-09-07  Eric Blake  <eblake@redhat.com>
26456
26457         getopt: handle POSIXLY_CORRECT set but not exported
26458         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26459         export state of POSIXLY_CORRECT, due to bash set -o posix.
26460         Reported by Dustin J. Mitchell.
26461
26462 2010-09-05  Bruno Haible  <bruno@clisp.org>
26463
26464         gnulib-tool: Highlight the changed options.
26465         * gnulib-tool (func_usage): Display the --import, --add-import,
26466         --remove-import explanations in bold font.
26467
26468 2010-09-06  Karl Berry  <karl@gnu.org>
26469
26470         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26471
26472 2010-09-05  Bruno Haible  <bruno@clisp.org>
26473
26474         uniwidth/width: Update comment.
26475         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26476         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26477
26478 2010-09-05  Bruno Haible  <bruno@clisp.org>
26479
26480         isinf, isnan: Relax license.
26481         * modules/isinf (License): Change from GPL to LGPL, with consent from
26482         Ben Pfaff.
26483         * modules/isnan (License): Likewise.
26484         Requested by Ludovic Courtès.
26485
26486 2010-09-04  Bruno Haible  <bruno@clisp.org>
26487
26488         gnulib-tool: Help migration from --import to --add-import or --update.
26489         * gnulib-tool: Emit a verbose error message when --import is used
26490         without any module name.
26491
26492 2010-09-04  Bruno Haible  <bruno@clisp.org>
26493
26494         Update doc about gnulib-tool.
26495         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26496         'gnulib-tool --update' in more detail.
26497         Reported by Eric Blake.
26498
26499 2010-09-04  Bruno Haible  <bruno@clisp.org>
26500
26501         gnulib-tool: Change --import. New options --add/remove-import.
26502         * gnulib-tool: New options --add-import, --remove-import.
26503         (func_usage): Document them.
26504         (have_associative): Define always.
26505         (func_import): In import mode, don't merge the specified settings with
26506         the cached settings. Implement remove-import mode.
26507         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26508         Explain when to use them versus --import.
26509         (Simple update): Use --add-import instead of --import.
26510         * NEWS: Mention the change.
26511
26512 2010-09-04  Bruno Haible  <bruno@clisp.org>
26513
26514         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26515         separate gnulib.mk.
26516
26517 2010-09-04  Bruno Haible  <bruno@clisp.org>
26518
26519         gnulib-tool: Don't talk about CVS any more.
26520         * gnulib-tool (func_usage, func_import): Write "version control"
26521         instead of CVS.
26522
26523 2010-09-04  Jim Meyering  <meyering@redhat.com>
26524
26525         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26526         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26527         false positives (whose names may be ill-chosen) when searching
26528         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26529         would cause a false-positive.
26530
26531         avoid coreutils "make distcheck" failure
26532         Coreutils tests with an absolute build directory name that contains
26533         a space.  Not quoting this directory name caused a failure.
26534         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26535         * tests/test-vc-list-files-cvs.sh: Likewise.
26536
26537 2010-09-04  Bruno Haible  <bruno@clisp.org>
26538
26539         gnulib-tool: Avoid error when run in a package without Makefile.am.
26540         * gnulib-tool: When collecting the m4dirs in a package that does not
26541         have a Makefile.am, eliminate those directories that contain no
26542         gnulib-cache.m4. Fix expression that counts these directories.
26543
26544 2010-09-04  Bruno Haible  <bruno@clisp.org>
26545
26546         update-copyright test: Improve output when perl is missing or too old.
26547         * tests/test-update-copyright.sh: Move test of Perl version down after
26548         the test whether Perl exists. Provide an explanation relating Perl's
26549         error message to Automake's SKIP: message.
26550
26551 2010-09-04  Bruno Haible  <bruno@clisp.org>
26552
26553         Don't augment PATH in TESTS_ENVIRONMENT.
26554         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26555         set abs_aux_dir instead of augmenting PATH.
26556         * modules/vc-list-files-tests (Makefile.am): Likewise.
26557         * tests/test-update-copyright.sh: Augment PATH here.
26558         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26559         path_prepend_.
26560         * tests/test-vc-list-files-git.sh: Likewise.
26561
26562 2010-09-04  Jim Meyering  <meyering@redhat.com>
26563
26564         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26565         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26566
26567 2010-09-04  Bruno Haible  <bruno@clisp.org>
26568
26569         strdup: Fix compilation error in C++ mode.
26570         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26571         the macro.
26572
26573 2010-09-04  Bruno Haible  <bruno@clisp.org>
26574
26575         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26576         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26577         macro into a function.
26578         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26579
26580 2010-09-04  Bruno Haible  <bruno@clisp.org>
26581
26582         Set PATH_SEPARATOR the same way autoconf does.
26583         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26584         the value of PATH_SEPARATOR the same way autoconf-generated configure
26585         scripts do.
26586         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26587         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26588
26589 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26590
26591         Set PATH_SEPARATOR the same way autoconf does.
26592         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26593         the same way autoconf-generated configure scripts do.
26594         * posix-modules: Likewise.
26595
26596 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26597
26598         hash: fix safe_hasher const typo
26599         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26600         const; otherwise, there is a type error later.
26601
26602 2010-09-02  Jim Meyering  <meyering@redhat.com>
26603
26604         test-update-copyright.sh: require perl 5.8.0
26605         * tests/test-update-copyright.sh: Require 5.8.0,
26606         which Tom G. Christensen has confirmed is adequate,
26607         while 5.6.1 is not.
26608
26609 2010-09-02  Eric Blake  <eblake@redhat.com>
26610
26611         tests: init.sh improvements for re-exec'ing with zsh
26612         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26613         -vx through shell re-exec.
26614         Reported by Tom G. Christensen.
26615
26616         wctype: fix typo in previous commit
26617         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26618         Reported by Ludovic Courtès.
26619
26620 2010-09-02  Jim Meyering  <meyering@redhat.com>
26621
26622         test-update-copyright.sh: skip test if Perl is too old
26623         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26624         Reported by Tom G. Christensen.
26625
26626 2010-09-02  Bruno Haible  <bruno@clisp.org>
26627
26628         wctype: Avoid compilation error on IRIX 6.5.30.
26629         * lib/wctype.in.h (iswblank): Declare with a replacement if
26630         REPLACE_ISWBLANK is set.
26631         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26632         declared. Set REPLACE_ISWBLANK.
26633         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26634         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26635         * doc/posix-headers/wctype.texi: Likewise.
26636         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26637
26638 2010-09-01  Bruno Haible  <bruno@clisp.org>
26639
26640         New module 'socketlib'.
26641         * modules/socketlib: New file.
26642         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26643         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26644         * modules/sockets (Depends-on): Add socketlib.
26645         Suggested by Sam Steingold <sds@gnu.org>.
26646
26647 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26648
26649         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26650
26651         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26652         when one needs search access to a directory but not read access.
26653         On systems where it is available, it works in some cases where
26654         O_RDONLY does not, namely on directories that are searchable but
26655         not readable, and which need only to be searchable.  If O_SEARCH
26656         is not available, fall back to the traditional method of using
26657         O_RDONLY.
26658
26659         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26660         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26661         when opening a directory that needs only to be searchable.
26662         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26663         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26664         * lib/openat-proc.c (openat_proc_name): Likewise.
26665         * lib/openat.c (openat_needs_fchdir): Likewise.
26666         * lib/save-cwd.c (save_cwd): Likewise.
26667         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26668
26669 2010-08-28  Bruno Haible  <bruno@clisp.org>
26670
26671         New module 'host-cpu-c-abi'.
26672         * modules/host-cpu-c-abi: New file.
26673         * m4/host-cpu-c-abi.m4: New file, based on part of
26674         clisp/src/m4/general.m4.
26675         Requested by Sam Steingold <sds@gnu.org>.
26676
26677 2010-08-31  Eric Blake  <eblake@redhat.com>
26678         and Jim Meyering  <meyering@redhat.com>
26679
26680         hash: factor, and guard against misbehaving hasher function
26681         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26682         of table->hasher's return value.  Also protect against a hash value
26683         so large that adding it to table->bucket results in a NULL pointer.
26684         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26685         Use it in place of open-coded check-and-abort.
26686
26687 2010-08-30  Bruno Haible  <bruno@clisp.org>
26688
26689         hash: silence spurious clang warning
26690         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26691         Reported by Eric Blake.
26692
26693 2010-08-30  Eric Blake  <eblake@redhat.com>
26694
26695         strstr, memmem, strcasestr: avoid leaked shell message
26696         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26697         FreeBSD.
26698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26699         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26700
26701         tests: silence clang warning
26702         * tests/test-malloca.c (do_allocation): Avoid dead store.
26703
26704 2010-08-29  Bruno Haible  <bruno@clisp.org>
26705
26706         gettext: Fix recent mistake.
26707         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26708
26709 2010-08-29  Bruno Haible  <bruno@clisp.org>
26710
26711         selinux-h: Offer a --without-selinux option.
26712         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26713         --without-selinux was specified, skip all tests and define
26714         HAVE_SELINUX_SELINUX_H to 0.
26715         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26716         set LIB_SELINUX to empty.
26717         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26718         gl_LIBSELINUX. If --without-selinux was specified, replace
26719         selinux/context.h.
26720         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26721
26722 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26723             Bruno Haible  <bruno@clisp.org>
26724
26725         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26726         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26727         of HAVE_REALLOC.
26728         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26729         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26730         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26731         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26732
26733 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26734             Bruno Haible  <bruno@clisp.org>
26735
26736         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26737         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26738         HAVE_CALLOC.
26739         * lib/xmalloc.c: Update accordingly.
26740         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26741         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26742         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26743
26744 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26745             Bruno Haible  <bruno@clisp.org>
26746
26747         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26748         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26749         HAVE_MALLOC.
26750         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26751         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26752         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26753
26754 2010-08-29  Bruno Haible  <bruno@clisp.org>
26755
26756         Update modules list.
26757         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26758         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26759         (String handling <string.h>): Add astrxfrm.
26760         (File system functions): Add readlinkat.
26761
26762 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26763
26764         Tests for module 'realloc-gnu'.
26765         * modules/realloc-gnu-tests: New file.
26766         * tests/test-realloc-gnu.c: New file.
26767
26768         Tests for module 'calloc-gnu'.
26769         * modules/calloc-gnu-tests: New file.
26770         * tests/test-calloc-gnu.c: New file.
26771
26772         Tests for module 'malloc-gnu'.
26773         * modules/malloc-gnu-tests: New file.
26774         * tests/test-malloc-gnu.c: New file.
26775
26776 2010-08-28  Bruno Haible  <bruno@clisp.org>
26777
26778         Rename module 'realloc' -> 'realloc-gnu'.
26779         * modules/realloc-gnu: New file, copied from modules/realloc.
26780         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26781         obsolete.
26782         * modules/mgetgroups (Depends-on): Update.
26783         * doc/posix-functions/realloc.texi: Update.
26784         * NEWS: Mention the change.
26785
26786         Rename module 'calloc' -> 'calloc-gnu'.
26787         * modules/calloc-gnu: New file, copied from modules/calloc.
26788         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26789         obsolete.
26790         * doc/posix-functions/calloc.texi: Update.
26791         * NEWS: Mention the change.
26792
26793         Rename module 'malloc' -> 'malloc-gnu'.
26794         * modules/malloc-gnu: New file, copied from modules/malloc.
26795         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26796         obsolete.
26797         * modules/argp (Depends-on): Update.
26798         * modules/regex (Depends-on): Update.
26799         * doc/posix-functions/malloc.texi: Update.
26800         * NEWS: Mention the change.
26801
26802 2010-08-28  Eric Blake  <eblake@redhat.com>
26803
26804         pread, pwrite: add missing dependency
26805         * modules/pread (Depends-on): Add extensions.
26806         * modules/pwrite (Depends-on): Likewise.
26807
26808 2010-08-28  Bruno Haible  <bruno@clisp.org>
26809
26810         unistr/u*-strchr: Fix tests dependencies.
26811         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26812         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26813         Reported by Ian Beckwith <ianb@erislabs.net>.
26814
26815 2010-08-28  Bruno Haible  <bruno@clisp.org>
26816
26817         read-file: Don't occupy too much unused memory.
26818         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26819
26820 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26821             Eric Blake  <eblake@redhat.com>
26822             Bruno Haible  <bruno@clisp.org>
26823
26824         read-file: Avoid memory reallocations with regular files.
26825         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26826         (fread_file): With regular files, use the remaining length as the
26827         initial buffer size.  Check against overflow.
26828         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26829         sys_stat.
26830
26831 2010-08-28  Bruno Haible  <bruno@clisp.org>
26832
26833         ftello: Relax license.
26834         * modules/ftello (License): Relax to LGPLv2+.
26835         Reported by Eric Blake.
26836
26837 2010-08-28  Bruno Haible  <bruno@clisp.org>
26838
26839         Avoid relocwrapper link errors due to gnulib replacement functions.
26840         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26841         function.
26842         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26843
26844 2010-08-28  Bruno Haible  <bruno@clisp.org>
26845
26846         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26847         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26848         defined.
26849         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26850         Suggested by Eric Blake.
26851
26852 2010-08-28  Bruno Haible  <bruno@clisp.org>
26853
26854         sys_socket, netdb: Ensure socklen_t gets defined.
26855         * modules/sys_socket (Depends-on): Add socklen.
26856         * modules/netdb (Depends-on): Likewise.
26857         * modules/getaddrinfo (Depends-on): Remove socklen.
26858         * modules/getsockopt (Depends-on): Likewise.
26859         * modules/setsockopt (Depends-on): Likewise.
26860         * tests/test-sys_socket.c: Check that socklen_t is defined.
26861         * tests/test-netdb.c: Likewise.
26862         * m4/socklen.m4: Update comments.
26863         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26864
26865 2010-08-27  Eric Blake  <eblake@redhat.com>
26866
26867         login_tty: add missing dependency
26868         * modules/login_tty (Depends-on): Add pty.
26869
26870 2010-08-26  Eric Blake  <eblake@redhat.com>
26871
26872         lib-symbol-versions: fix m4 quoting
26873         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26874         format for AC_LINK_IFELSE.
26875
26876         glob: fix compile test
26877         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26878
26879         btowc: fix missing file
26880         * modules/btowc (Files): Also ship locale-fr.m4.
26881
26882         lseek: fix link test
26883         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26884         AC_LINK_IFELSE.
26885
26886         include_next: silence autoconf 2.68 warning
26887         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26888         AC_COMPILE_IFELSE as special.
26889         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26890         autoconf < 2.68.
26891
26892         acl: fix compilation test
26893         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26894         AC_COMPILE_IFELSE.
26895
26896 2010-08-26  Bruno Haible  <bruno@clisp.org>
26897
26898         Modernize AC_TRY_RUN invocations.
26899         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26900         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26901         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26902         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26903         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26904         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26905         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26906         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26907         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26908         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26909         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26910         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26911         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26912         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26913         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26914         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26915         gl_MBRLEN_NUL_RETVAL): Likewise.
26916         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26917         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26918         Likewise.
26919         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26920         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26921         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26922         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26923         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26924         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26925         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26926         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26927         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26928         Likewise.
26929         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26930         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26931         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26932         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26933         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26934         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26935         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26936         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26937         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26938         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26939
26940 2010-08-26  Bruno Haible  <bruno@clisp.org>
26941
26942         Modernize AC_TRY_LINK invocations.
26943         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26944         AC_TRY_LINK.
26945         * m4/argp.m4 (gl_ARGP): Likewise.
26946         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26947         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26948         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26949         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26950         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26951         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26952         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26953         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26954         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26955         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26956         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26957         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26958         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26959         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26960         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26961         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26962         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26963         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26964         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26965         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26966         Likewise.
26967         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26968         Likewise.
26969         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26970         Likewise.
26971         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26972         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26973         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26974         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26975         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26976         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26977         * m4/servent.m4 (gl_SERVENT): Likewise.
26978         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26979         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26980         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26981         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26982         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26983         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26984         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26985         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26986         * modules/tsearch-tests (configure.ac): Likewise.
26987
26988 2010-08-26  Bruno Haible  <bruno@clisp.org>
26989
26990         Modernize AC_TRY_COMPILE invocations.
26991         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26992         AC_TRY_COMPILE.
26993         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26994         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26995         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26996         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26997         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26998         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26999         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27000         * m4/lock.m4 (gl_LOCK): Likewise.
27001         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
27002         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27003         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
27004         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27005         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27006         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27007         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27008         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27009         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27010         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27011         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27012         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27013         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27014         extraneous semicolon.
27015
27016 2010-08-26  Jim Meyering  <meyering@redhat.com>
27017
27018         stat-time: relax license LGPL
27019         * modules/stat-time (License): Change from GPL to LGPL,
27020         with consent from all contributors, for use in libguile.
27021         Requested by Ludovic Courtès.
27022
27023 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27024
27025         poll: return immediately on POLLHUP.
27026         * lib/poll.c (poll): Always set timeout before wait_timeout is
27027         computed.
27028
27029 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27030
27031         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27032         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27033         rmdir ("dir/.//"), unlinkat.
27034
27035 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27036
27037         stdbool: avoid spurious failure with modern xlc
27038         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27039
27040 2010-08-24  Bruno Haible  <bruno@clisp.org>
27041
27042         getloadavg: simplify code
27043         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27044         gl_have_func. Update comments.
27045
27046 2010-08-24  Eric Blake  <eblake@redhat.com>
27047
27048         getloadavg: don't define SVR4 on cygwin
27049         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27050         only define SVR4 when -lkvm is required.
27051         Reported by Yaakov Selkowitz.
27052
27053 2010-08-24  Bruno Haible  <bruno@clisp.org>
27054
27055         priv-set: fix comment
27056         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27057
27058 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27059
27060         priv-set: fix comments
27061         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27062         to match code, as suggested by David Bartley in:
27063         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27064
27065 2010-08-23  Eric Blake  <eblake@redhat.com>
27066
27067         stdbool: avoid rejecting clang
27068         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27069         * tests/test-stdbool.c: Enable more tests if using the system
27070         <stdbool.h> instead of the gnulib replacement.
27071         (main): Move xlc bug test to a runtime test for all compilers.
27072         Reported by Anders Kaseorg.
27073
27074         argz: fix shell quoting issue
27075         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27076         Reported by Charles Wilson.
27077
27078 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27079             Erik Faye-Lund <kusmabite@gmail.com>
27080
27081         poll, select: handle ERROR_BROKEN_PIPE.
27082         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27083         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27084         * lib/select.c (win32_compute_revents): Do not mark a pipe
27085         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27086
27087 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27088
27089         fts: allow compilation with C++
27090         * lib/fts_.h: Specify extern "C" linkage with C++.
27091
27092 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27093
27094         Fix gnulib-tool sed script de-commentation for AIX sed.
27095         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27096         sed.
27097
27098 2010-08-17  Eric Blake  <eblake@redhat.com>
27099
27100         test-stddef: test for (some) offsetof bugs
27101         * tests/test-stddef.c: Enhance test to ensure correct type of
27102         offsetof.
27103         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27104         that we are not fixing at this time.
27105
27106 2010-08-15  Bruno Haible  <bruno@clisp.org>
27107
27108         stpncpy: Allow stpncpy to be defined as a macro.
27109         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27110         if it's already correctly declared.
27111         * lib/string.in.h (stpncpy): Undefine before redefining.
27112         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27113
27114 2010-08-14  Bruno Haible  <bruno@clisp.org>
27115
27116         Rename module 'memxfrm' to 'amemxfrm'.
27117         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27118         (amemxfrm): Renamed from memxfrm.
27119         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27120         (amemxfrm): Renamed from memxfrm.
27121         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27122         * NEWS: Mention the change.
27123         * MODULES.html.sh (String handling <string.h>): Update.
27124         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27125         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27126         * lib/unicase/u16-casexfrm.c: Likewise.
27127         * lib/unicase/u32-casexfrm.c: Likewise.
27128         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27129         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27130         * lib/uninorm/u16-normxfrm.c: Likewise.
27131         * lib/uninorm/u32-normxfrm.c: Likewise.
27132         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27133         memxfrm.
27134         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27135         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27136         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27137         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27138         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27139         Suggested by Paul Eggert.
27140
27141 2010-08-14  Bruno Haible  <bruno@clisp.org>
27142
27143         Tests for module 'astrxfrm'.
27144         * modules/astrxfrm-tests: New file.
27145         * tests/test-astrxfrm.c: New file.
27146
27147         New module 'astrxfrm'.
27148         * lib/astrxfrm.h: New file.
27149         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
27150         * modules/astrxfrm: New file.
27151
27152 2010-08-14  Reuben Thomas <rrt@sc3d.org>
27153
27154         regex: Tweak doc.
27155         * doc/regex.texi (Overview): Don't mention regex.c.
27156         (GNU Regular Expression Compiling): Likewise.
27157         (Match-end-of-line Operator): Mention 'not_eol'.
27158
27159 2010-08-14  Brian Gough  <bjg@gnu.org>
27160             Bruno Haible  <bruno@clisp.org>
27161
27162         git-merge-changelog: add doc relating to use with bzr and hg.
27163         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
27164
27165 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
27166
27167         pthread: fix pthread.h creation for srcdir != builddir
27168         * modules/pthread (Makefile.am): Fix the rule to work also in a
27169         non-srcdir build.
27170
27171 2010-08-13  Karl Berry  <karl@gnu.org>
27172
27173         * doc/regex.texi (Predefined Syntaxes): @smallexample.
27174         * doc/posix-*/*: force line break before @url of POSIX
27175         specifications.
27176         Suggested by Werner Lemberg.
27177
27178 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27179
27180         strtod: fix const diagnostic
27181         * lib/strtod.c (strtod): Don't assign const char * to char *,
27182         as this elicits a warning from GCC when warnings are enabled.
27183
27184 2010-08-10  Pádraig Brady <P@draigbrady.com>
27185         and Eric Blake  <eblake@redhat.com>
27186
27187         copy-acl: ignore ENOTSUP on HP-UX
27188         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27189         so that it is available for HP-UX.
27190         * lib/copy-acl.c (qcopy_acl): Use it.
27191         Reported by Patrick M. Callahan.
27192
27193 2010-08-10  Eric Blake  <eblake@redhat.com>
27194
27195         open, chown: relax license
27196         * modules/open (License): Change to LGPLv2+, with consent by all
27197         authors, for use in augeas.
27198         * modules/chown (License): Likewise.
27199         * modules/lchown (Likewise): Likewise.
27200         Requested by Adam Stokes.
27201
27202 2010-08-09  Karl Berry  <karl@gnu.org>
27203
27204         * build-aux/ar-lib: new file, import from Automake.
27205         * config/srclist.txt: autocheck for updates.
27206
27207 2010-08-09  Eric Blake  <eblake@redhat.com>
27208
27209         readlinkat: adjust client modules
27210         * modules/areadlinkat (Depends-on): Use readlinkat, not
27211         symlinkat.
27212         * modules/areadlinkat-with-size (Depends-on): Likewise.
27213
27214         mknod: be more vocal about danger of running tests as root
27215         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27216         root, since that is just asking for problems.
27217         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27218
27219         readlinkat: split into its own module
27220         * modules/symlinkat: Split readlinkat...
27221         * modules/readlinkat: ...into separate module.
27222         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27223         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27224         * lib/symlinkat.c (readlinkat): Move...
27225         * lib/readlinkat.c: ...into new file.
27226         * modules/symlinkat-tests: Split readlinkat test...
27227         * modules/readlinkat-tests: ...into separate module.
27228         * tests/test-symlinkat.c: Split...
27229         * tests/test-readlinkat.c: ...into new file.
27230         * NEWS: Document the split.
27231         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27232         * lib/unistd.in.h (readlinkat): Likewise.
27233         Suggested by Bruno Haible.
27234
27235 2010-08-08  Bruno Haible  <bruno@clisp.org>
27236
27237         memxfrm: Speed up.
27238         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27239         that usually only one call to strxfrm is necessary for each string
27240         part.
27241         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27242
27243 2010-08-07  Karl Berry  <karl@gnu.org>
27244
27245         * doc/posix-headers/limits.texi,
27246         * doc/posix-functions/malloc.texi,
27247         * doc/posix-functions/strsignal.texi: missing @item.
27248         * doc/ld-version-script.texi: spurious leading i.
27249         * doc/regex.texi (Interval Operators): no commas inside @var.
27250
27251 2010-08-01  Bruno Haible  <bruno@clisp.org>
27252
27253         Integrate the regex documentation.
27254         * doc/gnulib.texi: Define 'cn' index.
27255         (Regular expressions): New a chapter that includes regex.texi and
27256         regexprops-generic.texi.
27257         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27258         syntax.
27259
27260         Whitespace cleanup.
27261         * doc/regex.texi: Remove trailing spaces.
27262
27263         Add regex documentation.
27264         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27265         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27266         Written by Kathy A. Hargreaves and Karl Berry.
27267
27268 2010-08-01  Bruno Haible  <bruno@clisp.org>
27269
27270         link: Update documentation.
27271         * doc/posix-functions/link.texi: Update regarding Solaris.
27272
27273 2010-07-31  Bruno Haible  <bruno@clisp.org>
27274
27275         Update modules list.
27276         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27277         (String handling <string.h>): Add memcmp2, memxfrm.
27278         (Container data structures): Add xlist, xsublist, xoset.
27279         (Core language properties): Add alignof, unused-parameter.
27280         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27281         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27282         (Unibyte characters <ctype.h>): New section.
27283         (String handling <string.h>): New section.
27284         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27285         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27286         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27287         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27288         tan, tanh, tanl, y0, y1, yn.
27289         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27290         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27291         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27292         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27293         unlockpt, vdprintf, vdprintf-posix.
27294         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27295         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27296         xconcat-filename.
27297         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27298         getdtablesize, pipe2, pipe2-safer.
27299         (Security): New section.
27300         (Networking functions): Add accept4.
27301         (Signal handling): Add sigpipe.
27302         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27303         mbmemcasecoll.
27304         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27305         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27306         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27307         pipe-filter-ii.
27308         (Misc): Add argp-version-etc, login_tty, parse-duration.
27309
27310 2010-07-31  Bruno Haible  <bruno@clisp.org>
27311
27312         Improve doc in MODULES.html.
27313         * modules/linkat (Description): Add the word "function".
27314         * modules/mkfifo (Description): Likewise.
27315         * modules/mknod (Description): Likewise.
27316         * modules/remove (Description): Likewise.
27317         * modules/renameat (Description): Likewise.
27318         * modules/stat (Description): Likewise.
27319         * modules/symlink (Description): Likewise.
27320         * modules/unlink (Description): Likewise.
27321
27322 2010-07-31  Bruno Haible  <bruno@clisp.org>
27323
27324         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27325         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27326         option --enable/disable-c++ instead of --enable/disable-cxx.
27327         * NEWS: Mention the change.
27328
27329 2010-07-31  Bruno Haible  <bruno@clisp.org>
27330
27331         readlink, areadlink: Relax test a bit.
27332         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27333         alternative to ENOTDIR.
27334         * tests/test-areadlink.h (test_areadlink): Likewise.
27335         Reported by Rainer Tammer.
27336
27337 2010-07-31  Bruno Haible  <bruno@clisp.org>
27338
27339         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27340         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27341         character, perform the search using U_STRCHR.
27342         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27343         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27344         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27345         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27346         Suggested by Paolo Bonzini.
27347
27348 2010-07-31  Bruno Haible  <bruno@clisp.org>
27349
27350         unistr/u*-strstr: Fix dependencies.
27351         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27352         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27353         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27354
27355 2010-07-31  Bruno Haible  <bruno@clisp.org>
27356
27357         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27358         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27359         the beginning of the loop.
27360         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27361         cases in 'switch' statement.
27362
27363         unistr/u8-strchr: Fix several bugs.
27364         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27365         the string. When not found, return NULL, not a pointer near the end.
27366
27367         More tests for unistr/u8-strchr.
27368         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27369         that the function does not read past the first occurrence of the byte
27370         being searched.
27371         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27372         * tests/unistr/test-u16-strchr.c (main): New function.
27373         * tests/unistr/test-u32-strchr.c (main): New function.
27374
27375 2010-07-31  Bruno Haible  <bruno@clisp.org>
27376
27377         posix-modules: Ignore backup files of documentation files.
27378         * posix-modules: grep only through files named *.texi.
27379
27380 2010-07-31  Bruno Haible  <bruno@clisp.org>
27381
27382         symlinkat: Fix documentation.
27383         * doc/posix-functions/readlinkat.texi: Fix module name.
27384
27385 2010-07-31  Bruno Haible  <bruno@clisp.org>
27386
27387         fchownat: Replace also when chown has the trailing slash bug.
27388         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27389         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27390         introduced on 2010-04-10.
27391         Reported by Rainer Tammer.
27392
27393 2010-07-31  Bruno Haible  <bruno@clisp.org>
27394
27395         linkat: Work around AIX 7.1 bug.
27396         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27397         whether linkat handles trailing slash correctly. If not, replace linkat
27398         and define LINKAT_TRAILING_SLASH_BUG.
27399         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27400         check whether (fd1,file1) points to a directory if file1 or file2 ends
27401         in a slash. Code taken from lib/link.c.
27402         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27403         Reported by Rainer Tammer.
27404
27405 2010-07-31  Bruno Haible  <bruno@clisp.org>
27406
27407         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27408         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27409         This disables an xlc optimization that was causing wrong test results.
27410         Reported by Rainer Tammer.
27411
27412 2010-07-31  Bruno Haible  <bruno@clisp.org>
27413
27414         iconv: Work around AIX 6.1..7.1 bug.
27415         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27416         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27417         cross-compiling, guess no on all versions of AIX.
27418         Reported by Rainer Tammer.
27419
27420 2010-07-31  Bruno Haible  <bruno@clisp.org>
27421
27422         readlink: Relax test a bit.
27423         * tests/test-readlink.h (test_readlink): Allow different errno value
27424         when readlink is called with a file name that ends in / and refers to
27425         a file.
27426         Suggested by Eric Blake.
27427         Reported by Rainer Tammer.
27428
27429 2010-07-31  Bruno Haible  <bruno@clisp.org>
27430
27431         copysign: Does not require -lm on glibc systems.
27432         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27433         gl_COMMON_DOUBLE_MATHFUNC.
27434         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27435
27436 2010-07-31  Bruno Haible  <bruno@clisp.org>
27437
27438         duplocale: Work around AIX 7.1 bug.
27439         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27440         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27441         * lib/duplocale.c (rpl_duplocale): Update comment.
27442         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27443         Reported by Rainer Tammer.
27444
27445 2010-07-30  Bruno Haible  <bruno@clisp.org>
27446
27447         dirfd: Avoid link error on AIX 7.1.
27448         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27449         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27450         exist, set REPLACE_DIRFD.
27451         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27452         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27453         * doc/posix-functions/dirfd.texi: Update.
27454         Reported by Rainer Tammer.
27455
27456 2010-07-30  Eric Blake  <eblake@redhat.com>
27457
27458         strtod: next round of AIX fixes
27459         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27460         exponent.
27461         * tests/test-strtod.c (main): Enhance tests.
27462         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27463         Reported by Rainer Tammer.
27464
27465         futimens: fix configure check
27466         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27467         Reported by Bruno Haible.
27468
27469 2010-07-30  Bruno Haible  <bruno@clisp.org>
27470
27471         getline: Update regarding AIX.
27472         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27473         Reported by Rainer Tammer.
27474
27475 2010-07-30  Bruno Haible  <bruno@clisp.org>
27476
27477         wcwidth: Drop replacement on AIX 7.
27478         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27479         AIX 7.
27480         Reported by Rainer Tammer.
27481
27482 2010-07-30  Bruno Haible  <bruno@clisp.org>
27483
27484         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27485         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27486         a 'char *'.
27487         Reported by Rainer Tammer.
27488
27489 2010-07-30  Bruno Haible  <bruno@clisp.org>
27490
27491         unlink: Update regarding AIX.
27492         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27493         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27494         Reported by Rainer Tammer.
27495
27496 2010-07-30  Bruno Haible  <bruno@clisp.org>
27497
27498         symlink: Update regarding AIX.
27499         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27500         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27501         Reported by Rainer Tammer.
27502
27503 2010-07-30  Bruno Haible  <bruno@clisp.org>
27504
27505         strndup: Update regarding AIX.
27506         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27507         AIX 7.
27508         Reported by Rainer Tammer.
27509
27510 2010-07-30  Bruno Haible  <bruno@clisp.org>
27511
27512         stat: Update regarding AIX.
27513         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27514         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27515         Reported by Rainer Tammer.
27516
27517 2010-07-30  Bruno Haible  <bruno@clisp.org>
27518
27519         truncl: Fix autoconf test.
27520         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27521         whether truncl works.
27522         Reported by Rainer Tammer.
27523
27524 2010-07-30  Bruno Haible  <bruno@clisp.org>
27525
27526         round: Update regarding AIX.
27527         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27528         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27529         Reported by Rainer Tammer.
27530
27531 2010-07-30  Bruno Haible  <bruno@clisp.org>
27532
27533         rename: Update regarding AIX.
27534         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27535         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27536         Reported by Rainer Tammer.
27537
27538 2010-07-30  Bruno Haible  <bruno@clisp.org>
27539
27540         printf.m4: Update regarding AIX.
27541         * m4/printf.m4: Update comments regarding AIX.
27542         Reported by Rainer Tammer.
27543
27544 2010-07-30  Bruno Haible  <bruno@clisp.org>
27545
27546         iconv: Update regarding AIX.
27547         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27548         AIX 7.
27549         Reported by Rainer Tammer.
27550
27551 2010-07-30  Bruno Haible  <bruno@clisp.org>
27552
27553         getopt: Update regarding AIX.
27554         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27555         no on AIX.
27556         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27557         Reported by Rainer Tammer.
27558
27559 2010-07-30  Bruno Haible  <bruno@clisp.org>
27560
27561         ldexpl; Update regarding AIX.
27562         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27563         on AIX 7.
27564         Reported by Rainer Tammer.
27565
27566 2010-07-30  Bruno Haible  <bruno@clisp.org>
27567
27568         frexpl: Update regarding AIX.
27569         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27570         on AIX 7.
27571         Reported by Rainer Tammer.
27572
27573 2010-07-30  Bruno Haible  <bruno@clisp.org>
27574
27575         open, fopen: Update regarding AIX.
27576         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27577         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27578         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27579         * doc/posix-functions/fopen.texi: Likewise.
27580         Reported by Rainer Tammer.
27581
27582 2010-07-30  Bruno Haible  <bruno@clisp.org>
27583
27584         chown: Update doc regarding AIX.
27585         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27586         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27587         Reported by Rainer Tammer.
27588
27589 2010-07-30  Eric Blake  <eblake@redhat.com>
27590
27591         strtod: fix bug in replacement function on AIX
27592         * lib/strtod.c (strtod): Special case broken "0x" parse in
27593         underlying strtod.
27594         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27595         * doc/posix-functions/strtod.texi (strtod): Likewise.
27596         Reported by Rainer Tammer.
27597
27598 2010-07-30  Bruno Haible  <bruno@clisp.org>
27599
27600         mbrlen: Fix cross-compilation guess for AIX.
27601         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27602         guess. Leftover from 2008-12-22.
27603
27604 2010-07-30  Bruno Haible  <bruno@clisp.org>
27605
27606         mbrtowc: Fix cross-compilation guess for AIX.
27607         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27608         guess. Leftover from 2008-12-21.
27609
27610 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27611
27612         init.sh: work around trap limitation of some shells
27613         * tests/init.sh (setup_): Move exit trap outside of shell function.
27614
27615 2010-07-29  Eric Blake  <eblake@redhat.com>
27616
27617         strtod: aid debugging
27618         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27619         understanding why strtod is rejected.
27620
27621 2010-07-28  Bruno Haible  <bruno@clisp.org>
27622
27623         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27624         * lib/unistr/u8-chr.c: Include <string.h>.
27625         * tests/unistr/test-u8-chr.c: Likewise.
27626         * tests/unistr/test-u16-chr.c: Likewise.
27627         * tests/unistr/test-u32-chr.c: Likewise.
27628         * tests/unistr/test-u8-strchr.c: Likewise.
27629         * tests/unistr/test-u16-strchr.c: Likewise.
27630         * tests/unistr/test-u32-strchr.c: Likewise.
27631         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27632         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27633         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27634         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27635
27636 2010-07-28  Bruno Haible  <bruno@clisp.org>
27637
27638         Use spaces for indentation, not tabs.
27639         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27640
27641 2010-07-27  Bruno Haible  <bruno@clisp.org>
27642
27643         mbspcasecmp: Fix function specification.
27644         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27645         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27646         Reported by Eric Blake <eblake@redhat.com>.
27647
27648 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27649
27650         timespec: use cast and not conditional, as truncation isn't possible
27651         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27652         instead of a conditional.  Comment about the situation in more detail.
27653         This undoes most of the 2009-10-29 patch.
27654
27655 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27656
27657         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27658         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27659         * lib/unistr/u8-strchr.c: Likewise.
27660         * modules/unistr/u8-chr: Depend on memchr.
27661
27662         unistr/u*-strchr: add tests
27663         * modules/unistr/u8-strchr-tests: New file.
27664         * modules/unistr/u16-strchr-tests: New file.
27665         * modules/unistr/u32-strchr-tests: New file.
27666         * tests/unistr/test-strchr.h: New file.
27667         * tests/unistr/test-u8-strchr.c: New file.
27668         * tests/unistr/test-u16-strchr.c: New file.
27669         * tests/unistr/test-u32-strchr.c: New file.
27670
27671         unistr/u*-chr: test multibyte sequences more
27672         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27673         test vector.
27674         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27675         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27676         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27677
27678         unistr/u*-chr: test multibyte sequences
27679         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27680
27681         unistr/u*-chr: prepare for multibyte tests
27682         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27683         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27684         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27685         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27686         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27687         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27688
27689 2010-07-18  Bruno Haible  <bruno@clisp.org>
27690
27691         unistr/u8-strchr: Optimize non-ASCII argument case.
27692         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27693         because the first byte often matches anyway.
27694         Reported by Pádraig Brady <P@draigbrady.com>.
27695
27696 2010-07-15  Karl Berry  <karl@gnu.org>
27697
27698         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27699
27700 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27701
27702         getcwd: on Solaris, work better if ancestors are inaccessible
27703         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27704         buffer and size, try again with a large buffer.  This works better
27705         on Solaris, since its getcwd succeeds even if the path to the root
27706         is inaccessible, and this is helpful in common cases such as .zfs
27707         hidden directories.  Problem reported by J Chapman Flack in
27708         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27709         Use system getcwd if it's declared, not merely if it's partly
27710         working; use the partly-working test only to avoid needless effort
27711         if the system getcwd fails.
27712         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27713         comment that was already obsolete and is now even more obsolete.
27714         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27715         now might call strdup.
27716
27717 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27718
27719         pthread: Add enough so that coreutils/src/sort.c compiles.
27720         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27721         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27722         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27723         Include <sys/types.h>, in case it defines pthread_t.
27724         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27725         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27726         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27727         (pthread_rwlockattr_t, pthread_spinlock_t):
27728         New typedefs, if HAVE_PTHREAD_T is not defined.
27729         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27730         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27731         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27732         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27733         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27734         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27735         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27736         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27737         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27738         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27739         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27740         New macros.
27741         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27742         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27743         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27744         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27745         (pthread_spin_unlock): New dummy functions.
27746         (pthread_create): Return EAGAIN; don't set errno.
27747         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27748         require AC_C_INLINE.
27749         * modules/pthread (Depends-on): Add sched, time.
27750         (pthread.h): Use AM_V_GEN.
27751
27752 2010-07-13  Bruno Haible  <bruno@clisp.org>
27753
27754         striconveh: Don't malloc memory if the result buffer is sufficient.
27755         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27756         buffer if its size is sufficient.
27757         Reported by Ludovic Courtès <ludo@gnu.org>.
27758
27759 2010-07-13  Bruno Haible  <bruno@clisp.org>
27760
27761         strtod: Add safety check.
27762         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27763
27764 2010-07-12  Bruno Haible  <bruno@clisp.org>
27765
27766         Unify tests that set gl_cv_func_ldexpl_no_libm.
27767         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27768         gl_FUNC_LDEXPL.
27769         (gl_FUNC_LDEXPL): Invoke it.
27770         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27771
27772 2010-07-12  Bruno Haible  <bruno@clisp.org>
27773
27774         Unify tests that set gl_cv_func_ldexp_no_libm.
27775         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27776         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27777         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27778         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27779         * modules/strtod (Files): Add m4/ldexp.m4.
27780
27781 2010-07-12  Bruno Haible  <bruno@clisp.org>
27782
27783         Unify tests that set gl_cv_func_frexpl_no_libm.
27784         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27785         gl_FUNC_FREXPL_NO_LIBM.
27786         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27787         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27788
27789 2010-07-12  Bruno Haible  <bruno@clisp.org>
27790
27791         Unify tests that set gl_cv_func_frexp_no_libm.
27792         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27793         gl_FUNC_FREXP_NO_LIBM.
27794         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27795         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27796
27797 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27798
27799         memcoll: clarify sizes versus lengths, document better, and tweak perf
27800         * lib/memcoll.c (strcoll_loop, memcoll0):
27801         Improve quality of descriptive comments.  Name variables
27802         consistently as to whether they are lengths (which do not include
27803         terminating null) versus sizes (which do).
27804         * lib/xmemcoll.c (xmemcoll0): Likewise.
27805         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27806         returned when s1size == 0; this is easier to compile and saves
27807         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27808
27809 2010-07-12  Bruno Haible  <bruno@clisp.org>
27810
27811         Tests for module '_Exit'.
27812         * modules/_Exit-tests: New file.
27813         * tests/test-_Exit.sh: New file.
27814         * tests/test-_Exit.c: New file.
27815
27816         New module '_Exit'.
27817         * lib/stdlib.in.h (__attribute__): New macro.
27818         (_Exit): New declaration.
27819         * lib/_Exit.c: New file.
27820         * m4/_Exit.m4: New file.
27821         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27822         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27823         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27824         * modules/_Exit: New file.
27825         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27826         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27827
27828 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27829
27830         strtod: make it more-accurate typically, and don't require libm
27831         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27832         Include limits.h.  Don't include string.h.
27833         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27834         (locale_isspace): New function, so that no casts are needed to
27835         check whether *s is a space.
27836         (ldexp): Provide an unused dummy if not available.
27837         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27838         (strtod): Use them.  This implementation prefers to use the
27839         underlying strtod if available, falling back on our own code
27840         only to fix known bugs.  This is more likely to produce an
27841         accurate result.  Also, it avoids the use of libm functions.
27842         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27843         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27844         was absent, but it caused a test failure with coreutils.
27845         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27846         with libm.
27847         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27848         * modules/strtod-tests (Makefile.am): Likewise.
27849
27850 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27851             Bruno Haible  <bruno@clisp.org>
27852
27853         unistr/u8-strchr: Optimize ASCII argument case.
27854         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27855
27856 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27857
27858         (x)memcoll: minor tweaks
27859         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27860         is after the type that it qualifies.
27861         (memcoll0): Likewise.
27862         * lib/memcoll.h (memcoll0): Likewise.
27863         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27864         * lib/xmemcoll.h (xmemcoll0): Likewise.
27865         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27866         differs from memcoll in that the NUL byte is part of the argument.
27867         Omit the abort-checks, as performance is a real issue here.  Plus,
27868         the checks were wrong anyway (an off-by-one error).  Omit local
27869         variable 'diff', as it's a bit clearer that way.
27870         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27871         no longer needed.
27872
27873 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27874
27875         (x)memcoll: speedup when input is known to be NUL delimited
27876         * lib/memcoll.c: Include stdlib.
27877         (memcoll0): New function.
27878         (strcoll_loop): New function, refactored for use in both memcoll
27879         and memcoll0.
27880         * lib/memcoll.h (memcoll0): Add prototype.
27881         * lib/xmemcoll.c (xmemcoll0): New function.
27882         (collate_error): New function, refactored for use in both xmemcoll
27883         and xmemcoll0.
27884         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27885         * m4/memcoll.m4: add inline invocation.
27886
27887 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27888
27889         * build-aux/bootstrap: Remove any local translations
27890         from the translation project synchronization directory,
27891         so that local only translations are not distributed.
27892
27893 2010-07-04  Bruno Haible  <bruno@clisp.org>
27894
27895         fsusage: Clarify which code applies to which platforms.
27896         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27897         platform.
27898         * lib/fsusage.c (get_fs_usage): Likewise.
27899
27900 2010-07-04  Bruno Haible  <bruno@clisp.org>
27901
27902         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27903         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27904         Reported by Martin Lambers <marlam@marlam.de>.
27905
27906 2010-07-04  Jim Meyering  <meyering@redhat.com>
27907
27908         hash: once again explicitly disallow insertion of NULL
27909         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27910         inserting a NULL pointer cannot work with these functions.
27911         Add a comment with details.
27912         This reverts part of the 2010-07-01 commit, 5bef1a35
27913         "hash: extend module to deal with non-pointer keys".
27914
27915 2010-07-01  Bruno Haible  <bruno@clisp.org>
27916
27917         stdbool: Update doc.
27918         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27919         Info from Christian Weisgerber <naddy@mips.inka.de>.
27920
27921 2010-07-01  Jim Meyering  <meyering@redhat.com>
27922
27923         hash: extend module to deal with non-pointer keys
27924         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27925         but that allows insertion of non-pointer entries.
27926         Do not disallow an ENTRY value of NULL.
27927         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27928         * lib/hash.h (hash_insert0): Declare.
27929
27930 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27931
27932         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27933         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27934         not present (i.e. with autoconf 2.59 and when using gettextize, not
27935         gnulib), require AC_GNU_SOURCE instead.
27936
27937 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27938
27939         idpriv-drop: Fix tests.
27940         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27941         not to the test-idpriv-droptemp program.
27942
27943 2010-06-29  Bruno Haible  <bruno@clisp.org>
27944
27945         string: Fix syntax error with g++ 2.96.
27946         * lib/string.in.h (__pure__): Remove definition.
27947         (_GL_ATTRIBUTE_PURE): New macro.
27948         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27949         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27950         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27951
27952 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27953
27954         unitypes: Fix bug introduced on 2010-05-18.
27955         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27956
27957 2010-06-22  Eric Blake  <eblake@redhat.com>
27958
27959         memmem: slight optimization
27960         * lib/str-two-way.h (critical_factorization): Update comments.
27961         Reduce work during factorization phase.
27962         Reported by Carlos Bueno <carlos@bueno.org>.
27963
27964 2010-06-21  Bruno Haible  <bruno@clisp.org>
27965
27966         Fix HAVE_CALLOC_POSIX misnomer.
27967         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27968         !HAVE_CALLOC_POSIX.
27969         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27970         HAVE_CALLOC_POSIX.
27971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27972         instead of HAVE_CALLOC_POSIX.
27973         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27974         HAVE_CALLOC_POSIX.
27975
27976         Use modern idiom for calloc() replacement.
27977         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27978         AC_FUNC_CALLOC.
27979         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27980         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27981         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27982         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27983         (gl_REPLACE_CALLOC): New macro.
27984
27985 2010-06-21  Bruno Haible  <bruno@clisp.org>
27986
27987         Fix HAVE_REALLOC_POSIX misnomer.
27988         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27989         !HAVE_REALLOC_POSIX.
27990         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27991         HAVE_REALLOC_POSIX.
27992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27993         instead of HAVE_REALLOC_POSIX.
27994         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27995         HAVE_REALLOC_POSIX.
27996
27997         Use modern idiom for realloc() replacement.
27998         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27999         AC_FUNC_REALLOC.
28000         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
28001         Autoconf's AC_FUNC_REALLOC.
28002         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28003         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
28004         (gl_REPLACE_REALLOC): New macro.
28005         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28006
28007 2010-06-21  Bruno Haible  <bruno@clisp.org>
28008
28009         Fix HAVE_MALLOC_POSIX misnomer.
28010         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28011         !HAVE_MALLOC_POSIX.
28012         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28013         HAVE_MALLOC_POSIX.
28014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28015         instead of HAVE_MALLOC_POSIX.
28016         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28017         HAVE_MALLOC_POSIX.
28018
28019         Use modern idiom for malloc() replacement.
28020         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28021         AC_FUNC_MALLOC.
28022         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28023         Autoconf's AC_FUNC_MALLOC.
28024         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28025         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28026         (gl_REPLACE_MALLOC): New macro.
28027         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28028
28029 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28030
28031         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28032         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28033         This macro takes 3 arguments, not 4.
28034
28035 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28036
28037         ipv6: fix detection under mingw
28038         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28039         in6_addr.
28040
28041 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28042
28043         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28044         that strtod() works when cross-compiling to a glibc version known
28045         to work.
28046
28047 2010-06-15  Bruno Haible  <bruno@clisp.org>
28048
28049         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28050
28051 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28052
28053         select: Correct timeout.
28054         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28055
28056 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28057
28058         git-version-gen: init shell var to avoid env var influence
28059         * build-aux/git-version-gen (v): Init shell var to empty.
28060
28061 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28062
28063         priv-set: Don't assume that priv.h exists merely because getppriv does.
28064         See Jan Andersen's bug report about AIX 5L in
28065         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28066         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28067         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28068         * lib/priv-set.h: Likewise.
28069         * tests/test-priv-set.c: Likewise.
28070
28071 2010-06-13  Bruno Haible  <bruno@clisp.org>
28072
28073         relocatable: Make it easier to test whether to install wrappers.
28074         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28075         RELOCATABLE_VIA_WRAPPER.
28076
28077 2010-06-13  Bruno Haible  <bruno@clisp.org>
28078
28079         gnulib-tool: Display specified modules and dependencies differently.
28080         * gnulib-tool (func_show_module_list): New function.
28081         (func_import, func_create_testdir): Invoke it.
28082         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28083
28084 2010-06-13  Bruno Haible  <bruno@clisp.org>
28085
28086         gnulib-tool: Align code of func_import and func_create_testdir.
28087         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28088         specified_modules.
28089
28090 2010-06-12  Jim Meyering  <meyering@redhat.com>
28091
28092         test-inttostr: avoid spurious failure on Solaris 9
28093         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28094         to accept "%ju".  Reported by Bruno Haible.
28095
28096 2010-06-11  Jim Meyering  <meyering@redhat.com>
28097
28098         test-sys_socket: mark variables as used more readably
28099         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28100         as "used" explicitly via (void) statement casts.  This is more
28101         readable than using them in an artificial return expression.
28102         Suggestion from Bruno Haible.
28103
28104 2010-06-11  Bruno Haible  <bruno@clisp.org>
28105
28106         Avoid some more warnings from "gcc -Wwrite-strings".
28107         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28108         to 'const char *'.
28109         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28110         * tests/test-c-strcasestr.c (main): Likewise.
28111         * tests/test-mbscasestr1.c (main): Likewise.
28112         * tests/test-mbscasestr2.c (main): Likewise.
28113         * tests/test-memmem.c (main): Likewise.
28114         * tests/test-strstr.c (main): Likewise.
28115         * tests/test-strcasestr.c (main): Likewise.
28116
28117 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28118
28119         init.sh: change framework_failure_ to fail with status 99, not 1
28120         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28121         automake's parallel-tests rule that this is an unexpected failure,
28122         even if the test is listed in XFAIL_TESTS.
28123
28124 2010-06-11  Jim Meyering  <meyering@redhat.com>
28125
28126         test-inttostr: avoid warnings about 4-6KB literal strings
28127         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28128         Include "macros.h", for its definition of ASSERT.
28129         (CK): s/assert/ASSERT/
28130         * modules/inttostr-tests (Files): Add macros.h.
28131
28132         init.sh: don't use $ME_ or skip_ before they are defined
28133         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28134         their first uses.  Also hoist their companions: warn_, fail_,
28135         framework_failure_, $stderr_fileno.  Prompted by a patch from
28136         Stefano Lattarini.
28137
28138         test-sys_socket: avoid set-but-not-used warnings from gcc
28139         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28140         avoid warning about set-but-not-used variables.
28141
28142         test-xvasprintf: avoid 'const' discard warnings
28143         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
28144         "const" when assigning from literal strings.
28145         (test_xasprintf): Add "void" in function argument list to placate
28146         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
28147
28148         tests: avoid compilation warnings in argmatch and exclude tests...
28149         in packages that define ARGMATCH_DIE_DECL, like coreutils.
28150         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
28151         Since it always exits, declare with the "noreturn" attribute.
28152         * tests/test-argmatch.c: Likewise.
28153
28154         tests: avoid 'const' discard warnings in mbsstr tests
28155         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
28156         * tests/test-mbsstr2.c (main): Likewise.
28157
28158         test-verify: avoid warning from gcc's -Wmissing-declarations
28159         * tests/test-verify.c (function): Declare to be static.
28160
28161         test-inttostr.c: include <string.h> for use of strcmp
28162         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
28163
28164         test-linkat: avoid failed assertion on "other" architectures
28165         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
28166         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
28167         sparc: https://bugs.launchpad.net/bugs/591968
28168
28169 2010-06-11  Jim Meyering  <meyering@redhat.com>
28170
28171         printf.m4: avoid autoconf's "Expanded Before Required" warning
28172         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
28173         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
28174         autoconf warning.
28175
28176 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
28177
28178         Replacement header templates are now named with ".in", not "_".
28179         * doc/gnulib-intro.texi: Correct.
28180
28181 2010-06-10  Jim Meyering  <meyering@redhat.com>
28182
28183         inttostr-tests: depend on snprintf, not snprintf-posix
28184         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28185         snprintf-posix, to avoid this aclocal failure:
28186           missing file gnulib-tests/vasnprintf.c
28187           configure.ac:45: error: expected source file, required through \
28188           AC_LIBSOURCES, not found
28189
28190 2010-06-10  Jim Meyering  <meyering@redhat.com>
28191
28192         inttostr: add a new function, inttostr, and tests
28193         The namesake function was not available.  The existence of the
28194         template file, inttostr.c makes its addition nontrivial.
28195         * lib/anytostr.c: Rename from inttostr.c.
28196         (anytostr): Rename from inttostr.
28197         * lib/inttostr.c: New file.
28198         * modules/inttostr (Files): Add anytostr.c.
28199         (Makefile.am): Set lib_SOURCES instead of ...
28200         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28201         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28202         * lib/offtostr.c: Likewise.
28203         * lib/uinttostr.c: Likewise.
28204         * lib/umaxtostr.c: Likewise.
28205         * modules/inttostr-tests: New file.
28206         * tests/test-inttostr.c: New file.  Test these functions.
28207
28208 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28209             Bruno Haible  <bruno@clisp.org>
28210
28211         Add "Extending Gnulib" chapter to manual.
28212         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28213         chapter.
28214         (Extending Gnulib): New chapter.
28215         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28216         chapter.
28217
28218 2010-06-09  Bruno Haible  <bruno@clisp.org>
28219
28220         Avoid relocwrapper link errors due to gnulib replacement functions.
28221         * lib/areadlink.c: Use the system's malloc, realloc functions.
28222         (areadlink): Set errno to ENOMEM explicitly.
28223         * modules/areadlink (Depends-on): Remove malloc-posix.
28224         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28225
28226 2010-06-09  Bruno Haible  <bruno@clisp.org>
28227
28228         Avoid relocwrapper link errors due to gnulib replacement functions.
28229         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28230         * lib/malloca.c: Likewise.
28231         * lib/relocatable.c: Likewise.
28232         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28233         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28234         * lib/setenv.c: Use the system's malloc, realloc functions.
28235         * lib/strerror.c: Use the system's sprintf function.
28236         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28237
28238 2010-06-04  Bruno Haible  <bruno@clisp.org>
28239
28240         Prefer documented low-level autoconf macro names.
28241         * m4/lib-link.m4: Use m4_translit instead of translit.
28242         * m4/environ.m4: Likewise.
28243         * m4/mathfunc.m4: Likewise.
28244         * m4/onceonly.m4: Likewise.
28245         * m4/stdint.m4: Likewise.
28246         Suggested by Eric Blake.
28247
28248 2010-06-04  Martin Lambers  <marlam@marlam.de>
28249             Bruno Haible  <bruno@clisp.org>
28250
28251         havelib: Allow library names with '+' characters.
28252         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28253         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28254
28255 2010-06-09  Bruno Haible  <bruno@clisp.org>
28256
28257         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28258         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28259         realloc failed.
28260
28261 2010-06-08  Peter Simons  <simons@cryp.to>
28262
28263         maint.mk: make the news-check rule more configurable
28264         * top/maint.mk (news-check-lines-spec): New variable.
28265         (news-check): Use "sed -n 1,10p" in place of "head".
28266
28267 2010-06-07  Jim Meyering  <meyering@redhat.com>
28268
28269         do-release-commit-and-tag: fix typo in --help
28270         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28271
28272         regex: avoid new dead-code warning with gcc-4.6.0
28273         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28274         if-block containing a while-loop.  It's been unused for at least
28275         5 years.
28276
28277 2010-06-05  Bruno Haible  <bruno@clisp.org>
28278
28279         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28280         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28281
28282 2010-06-04  Bruno Haible  <bruno@clisp.org>
28283
28284         Update to GNU gettext 0.18.1.
28285         * modules/gettext (configure.ac): Require gettext infrastructure from
28286         version 0.18.1.
28287
28288 2010-06-03  Bruno Haible  <bruno@clisp.org>
28289
28290         Don't use AC_LIBOBJ with file names in subdirectories.
28291         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28292         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28293         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28294         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28295         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28296         gl_LIBUNISTRING_LIBSOURCE.
28297         (Makefile.am): Augment lib_SOURCES here, conditionally.
28298         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28299
28300 2010-06-03  Bruno Haible  <bruno@clisp.org>
28301
28302         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28303         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28304         expansion does not end with a newline.
28305         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28306         unnecessary newline.
28307
28308 2010-06-03  Bruno Haible  <bruno@clisp.org>
28309
28310         Reduce dependencies.
28311         * tests/test-quotearg.h: New file, extracted from
28312         tests/test-quotearg.c.
28313         * tests/test-quotearg-simple.c: New file, extracted from
28314         tests/test-quotearg.c.
28315         * tests/test-quotearg.c: Don't include <ctype.h>.
28316         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28317         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28318         use_quote_double_quotes, use_quotearg_colon): Moved to
28319         tests/test-quotearg.h.
28320         (results_g, flag_results, custom_quotes, custom_results): Moved
28321         to tests/test-quotearg-simple.c.
28322         (main): Moved the part that does not depend on gettext to
28323         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28324         performed.
28325         * modules/quotearg-simple: New file.
28326         * modules/quotearg-simple-tests: New file.
28327         * modules/quotearg (Depends-on): Add quotearg-simple.
28328         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28329         (Files): Add tests/test-quotearg.h.
28330         Reported by Paolo Bonzini.
28331
28332 2010-06-03  Bruno Haible  <bruno@clisp.org>
28333
28334         Reduce dependencies.
28335         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28336
28337 2010-06-03  Bruno Haible  <bruno@clisp.org>
28338
28339         time: Undefine more broken macros.
28340         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28341         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28342         Reported by Eric Blake.
28343
28344 2010-06-03  Bruno Haible  <bruno@clisp.org>
28345
28346         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28347         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28348         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28349         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28350         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28351         Reported by Ludovic Courtès <ludo@gnu.org>.
28352
28353 2010-06-02  Eric Blake  <eblake@redhat.com>
28354
28355         time: work with mingw + pthreads-win32 library
28356         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28357         if timespec is defined only in pthread.h.
28358         * modules/time (Makefile.am): Substitute it.
28359         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28360         <pthread.h>, when needed.
28361         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28362         from the library.
28363
28364 2010-05-31  Bruno Haible  <bruno@clisp.org>
28365
28366         Avoid expanding two macros in the wrong order.
28367         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28368         gl_LIBUNISTRING if it is defined.
28369         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28370         autoconf >= 2.64.
28371         Reported by Ludovic Courtès <ludo@gnu.org>.
28372
28373 2010-05-27  Jim Meyering  <meyering@redhat.com>
28374
28375         maint.mk: also prohibit "#undef" of always-defined symbols
28376         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28377         Allow more than one space before the symbol name.
28378         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28379         the regexp uses alternation.
28380
28381 2010-05-26  Eric Blake  <eblake@redhat.com>
28382
28383         maint.mk: avoid echo -e
28384         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28385         Convert all uses of echo -* to printf.
28386         Reported by Matthias Bolte.
28387
28388 2010-05-25  Bruno Haible  <bruno@clisp.org>
28389
28390         Update to GNU gettext 0.18, part 2.
28391         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28392         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28393
28394 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28395
28396         Add missing include in test-pwrite.c.
28397         * tests/test-pwrite.c: Include string.h, for strcmp.
28398
28399 2010-05-24  Bruno Haible  <bruno@clisp.org>
28400
28401         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28402
28403 2010-05-24  Bruno Haible  <bruno@clisp.org>
28404
28405         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28406         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28407         iconveh_error argument.
28408         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28409         U_STRCONV_TO_LOCALE.
28410         * lib/unistr/u16-strcoll.c: Likewise.
28411         * lib/unistr/u32-strcoll.c: Likewise.
28412         * modules/unistr/u8-strcoll (Depends-on): Add
28413         uniconv/u8-strconv-to-enc, localcharset. Remove
28414         uniconv/u8-strconv-to-locale.
28415         (configure.ac): Bump version number.
28416         * modules/unistr/u16-strcoll (Depends-on): Add
28417         uniconv/u16-strconv-to-enc, localcharset. Remove
28418         uniconv/u16-strconv-to-locale.
28419         (configure.ac): Bump version number.
28420         * modules/unistr/u32-strcoll (Depends-on): Add
28421         uniconv/u32-strconv-to-enc, localcharset. Remove
28422         uniconv/u32-strconv-to-locale.
28423         (configure.ac): Bump version number.
28424
28425 2010-05-24  Bruno Haible  <bruno@clisp.org>
28426
28427         Avoid a test failure on NetBSD 5.0.
28428         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28429         an iconv() bug.
28430
28431 2010-05-24  Bruno Haible  <bruno@clisp.org>
28432
28433         Adjust #include directive style.
28434         * modules/regex (Includes): Recommend to write <regex.h>.
28435
28436 2010-05-24  Bruno Haible  <bruno@clisp.org>
28437
28438         regex: Don't require alloca.
28439         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28440         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28441         only inside if (0).
28442
28443 2010-05-23  Jim Meyering  <meyering@redhat.com>
28444
28445         test-renameat.c: include <sys/stat.h>
28446         * tests/test-renameat.c: Include <sys/stat.h>; required for
28447         definition of S_IS* macros.
28448
28449 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28450
28451         Update maintainer documentation for 'relocatable-prog' module.
28452         * doc/relocatable-maint.texi: Update.
28453         Comments by Bruno Haible.
28454
28455 2010-05-23  Bruno Haible  <bruno@clisp.org>
28456
28457         git-merge-changelog: Enable --split-merged-entry by default.
28458         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28459         (usage): Don't mention this option any more.
28460         Reported by Ralf Wildenhues.
28461
28462 2010-05-23  Jim Meyering  <meyering@redhat.com>
28463
28464         test-pwrite: do not leave behind a test file named "out"
28465         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28466         The trivial-looking use of init.sh is really necessary.
28467         It ensures that the temporary file, "out", is created in
28468         a temporary directory, and removed upon termination.
28469         * tests/test-pwrite.sh: Re-add file.
28470         * modules/pwrite-tests: Reference it.
28471
28472 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28473
28474         Fix output redirection buglet in init.sh.
28475         * tests/init.sh: Fix redirection of stderr.
28476
28477 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28478
28479         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28480
28481 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28482
28483         * modules/valgrind-tests: New file.
28484         * m4/valgrind-tests.m4: New file.
28485         * doc/valgrind-tests.texi: New file.
28486         * doc/gnulib.texi (Running self-tests under valgrind): New
28487         section.
28488
28489 2010-05-19  Bruno Haible  <bruno@clisp.org>
28490
28491         Clean up dead code in recent commit.
28492         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28493         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28494         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28495         Suggested by Paolo Bonzini.
28496
28497 2010-05-19  Bruno Haible  <bruno@clisp.org>
28498
28499         Avoid valgrind error reports from libunistring.
28500         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28501         * modules/libunistring (Files): Add it.
28502         * modules/libunistring-optional (Files): Likewise.
28503
28504 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28505             Bruno Haible  <bruno@clisp.org>
28506
28507         New module 'libunistring-optional'.
28508         * modules/libunistring-optional: New file.
28509         * m4/libunistring-base.m4: New file.
28510         * m4/libunistring-optional.m4: New file.
28511         * lib/unicase.in.h: Renamed from lib/unicase.h.
28512         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28513         * lib/unictype.in.h: Renamed from lib/unictype.h.
28514         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28515         * lib/uniname.in.h: Renamed from lib/uniname.h.
28516         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28517         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28518         * lib/unistr.in.h: Renamed from lib/unistr.h.
28519         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28520         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28521         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28522         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28523         gl_LIBUNISTRING. If the library was found, determine the installed
28524         version and set LIBUNISTRING_VERSION.
28525         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28526         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28527         handle a configuration option --with-included-libunistring.
28528         * modules/libunistring (Files): Add m4/absolute-header.m4.
28529         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28530         Add m4/libunistring-base.m4.
28531         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28532         (Makefile.am): Build unicase.h from unicase.in.h.
28533         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28534         Add m4/libunistring-base.m4.
28535         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28536         (Makefile.am): Build uniconv.h from uniconv.in.h.
28537         * modules/unictype/base (Files): Use unictype.in.h instead of
28538         unictype.h. Add m4/libunistring-base.m4.
28539         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28540         (Makefile.am): Build unictype.h from unictype.in.h.
28541         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28542         Add m4/libunistring-base.m4.
28543         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28544         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28545         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28546         Add m4/libunistring-base.m4.
28547         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28548         (Makefile.am): Build uniname.h from uniname.in.h.
28549         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28550         Add m4/libunistring-base.m4.
28551         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28552         (Makefile.am): Build uninorm.h from uninorm.in.h.
28553         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28554         unistdio.h. Add m4/libunistring-base.m4.
28555         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28556         (Makefile.am): Build unistdio.h from unistdio.in.h.
28557         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28558         Add m4/libunistring-base.m4.
28559         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28560         (Makefile.am): Build unistr.h from unistr.in.h.
28561         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28562         Add m4/libunistring-base.m4.
28563         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28564         (Makefile.am): Build unitypes.h from unitypes.in.h.
28565         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28566         Add m4/libunistring-base.m4.
28567         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28568         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28569         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28570         uniwidth.h. Add m4/libunistring-base.m4.
28571         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28572         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28573         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28574         instead of augmenting lib_SOURCES.
28575         * modules/unicase/empty-suffix-context: Likewise.
28576         * modules/unicase/locale-language: Likewise.
28577         * modules/unicase/tolower: Likewise.
28578         * modules/unicase/totitle: Likewise.
28579         * modules/unicase/toupper: Likewise.
28580         * modules/unicase/u8-casecmp: Likewise.
28581         * modules/unicase/u8-casecoll: Likewise.
28582         * modules/unicase/u8-casefold: Likewise.
28583         * modules/unicase/u8-casexfrm: Likewise.
28584         * modules/unicase/u8-ct-casefold: Likewise.
28585         * modules/unicase/u8-ct-tolower: Likewise.
28586         * modules/unicase/u8-ct-totitle: Likewise.
28587         * modules/unicase/u8-ct-toupper: Likewise.
28588         * modules/unicase/u8-is-cased: Likewise.
28589         * modules/unicase/u8-is-casefolded: Likewise.
28590         * modules/unicase/u8-is-lowercase: Likewise.
28591         * modules/unicase/u8-is-titlecase: Likewise.
28592         * modules/unicase/u8-is-uppercase: Likewise.
28593         * modules/unicase/u8-prefix-context: Likewise.
28594         * modules/unicase/u8-suffix-context: Likewise.
28595         * modules/unicase/u8-tolower: Likewise.
28596         * modules/unicase/u8-totitle: Likewise.
28597         * modules/unicase/u8-toupper: Likewise.
28598         * modules/unicase/u16-casecmp: Likewise.
28599         * modules/unicase/u16-casecoll: Likewise.
28600         * modules/unicase/u16-casefold: Likewise.
28601         * modules/unicase/u16-casexfrm: Likewise.
28602         * modules/unicase/u16-ct-casefold: Likewise.
28603         * modules/unicase/u16-ct-tolower: Likewise.
28604         * modules/unicase/u16-ct-totitle: Likewise.
28605         * modules/unicase/u16-ct-toupper: Likewise.
28606         * modules/unicase/u16-is-cased: Likewise.
28607         * modules/unicase/u16-is-casefolded: Likewise.
28608         * modules/unicase/u16-is-lowercase: Likewise.
28609         * modules/unicase/u16-is-titlecase: Likewise.
28610         * modules/unicase/u16-is-uppercase: Likewise.
28611         * modules/unicase/u16-prefix-context: Likewise.
28612         * modules/unicase/u16-suffix-context: Likewise.
28613         * modules/unicase/u16-tolower: Likewise.
28614         * modules/unicase/u16-totitle: Likewise.
28615         * modules/unicase/u16-toupper: Likewise.
28616         * modules/unicase/u32-casecmp: Likewise.
28617         * modules/unicase/u32-casecoll: Likewise.
28618         * modules/unicase/u32-casefold: Likewise.
28619         * modules/unicase/u32-casexfrm: Likewise.
28620         * modules/unicase/u32-ct-casefold: Likewise.
28621         * modules/unicase/u32-ct-tolower: Likewise.
28622         * modules/unicase/u32-ct-totitle: Likewise.
28623         * modules/unicase/u32-ct-toupper: Likewise.
28624         * modules/unicase/u32-is-cased: Likewise.
28625         * modules/unicase/u32-is-casefolded: Likewise.
28626         * modules/unicase/u32-is-lowercase: Likewise.
28627         * modules/unicase/u32-is-titlecase: Likewise.
28628         * modules/unicase/u32-is-uppercase: Likewise.
28629         * modules/unicase/u32-prefix-context: Likewise.
28630         * modules/unicase/u32-suffix-context: Likewise.
28631         * modules/unicase/u32-tolower: Likewise.
28632         * modules/unicase/u32-totitle: Likewise.
28633         * modules/unicase/u32-toupper: Likewise.
28634         * modules/unicase/ulc-casecmp: Likewise.
28635         * modules/unicase/ulc-casecoll: Likewise.
28636         * modules/unicase/ulc-casexfrm: Likewise.
28637         * modules/uniconv/u8-conv-from-enc: Likewise.
28638         * modules/uniconv/u8-conv-to-enc: Likewise.
28639         * modules/uniconv/u8-strconv-from-enc: Likewise.
28640         * modules/uniconv/u8-strconv-from-locale: Likewise.
28641         * modules/uniconv/u8-strconv-to-enc: Likewise.
28642         * modules/uniconv/u8-strconv-to-locale: Likewise.
28643         * modules/uniconv/u16-conv-from-enc: Likewise.
28644         * modules/uniconv/u16-conv-to-enc: Likewise.
28645         * modules/uniconv/u16-strconv-from-enc: Likewise.
28646         * modules/uniconv/u16-strconv-from-locale: Likewise.
28647         * modules/uniconv/u16-strconv-to-enc: Likewise.
28648         * modules/uniconv/u16-strconv-to-locale: Likewise.
28649         * modules/uniconv/u32-conv-from-enc: Likewise.
28650         * modules/uniconv/u32-conv-to-enc: Likewise.
28651         * modules/uniconv/u32-strconv-from-enc: Likewise.
28652         * modules/uniconv/u32-strconv-from-locale: Likewise.
28653         * modules/uniconv/u32-strconv-to-enc: Likewise.
28654         * modules/uniconv/u32-strconv-to-locale: Likewise.
28655         * modules/unictype/bidicategory-byname: Likewise.
28656         * modules/unictype/bidicategory-name: Likewise.
28657         * modules/unictype/bidicategory-of: Likewise.
28658         * modules/unictype/bidicategory-test: Likewise.
28659         * modules/unictype/block-list: Likewise.
28660         * modules/unictype/block-test: Likewise.
28661         * modules/unictype/category-C: Likewise.
28662         * modules/unictype/category-Cc: Likewise.
28663         * modules/unictype/category-Cf: Likewise.
28664         * modules/unictype/category-Cn: Likewise.
28665         * modules/unictype/category-Co: Likewise.
28666         * modules/unictype/category-Cs: Likewise.
28667         * modules/unictype/category-L: Likewise.
28668         * modules/unictype/category-Ll: Likewise.
28669         * modules/unictype/category-Lm: Likewise.
28670         * modules/unictype/category-Lo: Likewise.
28671         * modules/unictype/category-Lt: Likewise.
28672         * modules/unictype/category-Lu: Likewise.
28673         * modules/unictype/category-M: Likewise.
28674         * modules/unictype/category-Mc: Likewise.
28675         * modules/unictype/category-Me: Likewise.
28676         * modules/unictype/category-Mn: Likewise.
28677         * modules/unictype/category-N: Likewise.
28678         * modules/unictype/category-Nd: Likewise.
28679         * modules/unictype/category-Nl: Likewise.
28680         * modules/unictype/category-No: Likewise.
28681         * modules/unictype/category-P: Likewise.
28682         * modules/unictype/category-Pc: Likewise.
28683         * modules/unictype/category-Pd: Likewise.
28684         * modules/unictype/category-Pe: Likewise.
28685         * modules/unictype/category-Pf: Likewise.
28686         * modules/unictype/category-Pi: Likewise.
28687         * modules/unictype/category-Po: Likewise.
28688         * modules/unictype/category-Ps: Likewise.
28689         * modules/unictype/category-S: Likewise.
28690         * modules/unictype/category-Sc: Likewise.
28691         * modules/unictype/category-Sk: Likewise.
28692         * modules/unictype/category-Sm: Likewise.
28693         * modules/unictype/category-So: Likewise.
28694         * modules/unictype/category-Z: Likewise.
28695         * modules/unictype/category-Zl: Likewise.
28696         * modules/unictype/category-Zp: Likewise.
28697         * modules/unictype/category-Zs: Likewise.
28698         * modules/unictype/category-and: Likewise.
28699         * modules/unictype/category-and-not: Likewise.
28700         * modules/unictype/category-byname: Likewise.
28701         * modules/unictype/category-name: Likewise.
28702         * modules/unictype/category-none: Likewise.
28703         * modules/unictype/category-of: Likewise.
28704         * modules/unictype/category-or: Likewise.
28705         * modules/unictype/category-test: Likewise.
28706         * modules/unictype/combining-class: Likewise.
28707         * modules/unictype/ctype-alnum: Likewise.
28708         * modules/unictype/ctype-alpha: Likewise.
28709         * modules/unictype/ctype-blank: Likewise.
28710         * modules/unictype/ctype-cntrl: Likewise.
28711         * modules/unictype/ctype-digit: Likewise.
28712         * modules/unictype/ctype-graph: Likewise.
28713         * modules/unictype/ctype-lower: Likewise.
28714         * modules/unictype/ctype-print: Likewise.
28715         * modules/unictype/ctype-punct: Likewise.
28716         * modules/unictype/ctype-space: Likewise.
28717         * modules/unictype/ctype-upper: Likewise.
28718         * modules/unictype/ctype-xdigit: Likewise.
28719         * modules/unictype/decimal-digit: Likewise.
28720         * modules/unictype/digit: Likewise.
28721         * modules/unictype/mirror: Likewise.
28722         * modules/unictype/numeric: Likewise.
28723         * modules/unictype/property-alphabetic: Likewise.
28724         * modules/unictype/property-ascii-hex-digit: Likewise.
28725         * modules/unictype/property-bidi-arabic-digit: Likewise.
28726         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28727         * modules/unictype/property-bidi-block-separator: Likewise.
28728         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28729         * modules/unictype/property-bidi-common-separator: Likewise.
28730         * modules/unictype/property-bidi-control: Likewise.
28731         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28732         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28733         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28734         * modules/unictype/property-bidi-european-digit: Likewise.
28735         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28736         * modules/unictype/property-bidi-left-to-right: Likewise.
28737         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28738         * modules/unictype/property-bidi-other-neutral: Likewise.
28739         * modules/unictype/property-bidi-pdf: Likewise.
28740         * modules/unictype/property-bidi-segment-separator: Likewise.
28741         * modules/unictype/property-bidi-whitespace: Likewise.
28742         * modules/unictype/property-byname: Likewise.
28743         * modules/unictype/property-combining: Likewise.
28744         * modules/unictype/property-composite: Likewise.
28745         * modules/unictype/property-currency-symbol: Likewise.
28746         * modules/unictype/property-dash: Likewise.
28747         * modules/unictype/property-decimal-digit: Likewise.
28748         * modules/unictype/property-default-ignorable-code-point: Likewise.
28749         * modules/unictype/property-deprecated: Likewise.
28750         * modules/unictype/property-diacritic: Likewise.
28751         * modules/unictype/property-extender: Likewise.
28752         * modules/unictype/property-format-control: Likewise.
28753         * modules/unictype/property-grapheme-base: Likewise.
28754         * modules/unictype/property-grapheme-extend: Likewise.
28755         * modules/unictype/property-grapheme-link: Likewise.
28756         * modules/unictype/property-hex-digit: Likewise.
28757         * modules/unictype/property-hyphen: Likewise.
28758         * modules/unictype/property-id-continue: Likewise.
28759         * modules/unictype/property-id-start: Likewise.
28760         * modules/unictype/property-ideographic: Likewise.
28761         * modules/unictype/property-ids-binary-operator: Likewise.
28762         * modules/unictype/property-ids-trinary-operator: Likewise.
28763         * modules/unictype/property-ignorable-control: Likewise.
28764         * modules/unictype/property-iso-control: Likewise.
28765         * modules/unictype/property-join-control: Likewise.
28766         * modules/unictype/property-left-of-pair: Likewise.
28767         * modules/unictype/property-line-separator: Likewise.
28768         * modules/unictype/property-logical-order-exception: Likewise.
28769         * modules/unictype/property-lowercase: Likewise.
28770         * modules/unictype/property-math: Likewise.
28771         * modules/unictype/property-non-break: Likewise.
28772         * modules/unictype/property-not-a-character: Likewise.
28773         * modules/unictype/property-numeric: Likewise.
28774         * modules/unictype/property-other-alphabetic: Likewise.
28775         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28776         * modules/unictype/property-other-grapheme-extend: Likewise.
28777         * modules/unictype/property-other-id-continue: Likewise.
28778         * modules/unictype/property-other-id-start: Likewise.
28779         * modules/unictype/property-other-lowercase: Likewise.
28780         * modules/unictype/property-other-math: Likewise.
28781         * modules/unictype/property-other-uppercase: Likewise.
28782         * modules/unictype/property-paired-punctuation: Likewise.
28783         * modules/unictype/property-paragraph-separator: Likewise.
28784         * modules/unictype/property-pattern-syntax: Likewise.
28785         * modules/unictype/property-pattern-white-space: Likewise.
28786         * modules/unictype/property-private-use: Likewise.
28787         * modules/unictype/property-punctuation: Likewise.
28788         * modules/unictype/property-quotation-mark: Likewise.
28789         * modules/unictype/property-radical: Likewise.
28790         * modules/unictype/property-sentence-terminal: Likewise.
28791         * modules/unictype/property-soft-dotted: Likewise.
28792         * modules/unictype/property-space: Likewise.
28793         * modules/unictype/property-terminal-punctuation: Likewise.
28794         * modules/unictype/property-test: Likewise.
28795         * modules/unictype/property-titlecase: Likewise.
28796         * modules/unictype/property-unassigned-code-value: Likewise.
28797         * modules/unictype/property-unified-ideograph: Likewise.
28798         * modules/unictype/property-uppercase: Likewise.
28799         * modules/unictype/property-variation-selector: Likewise.
28800         * modules/unictype/property-white-space: Likewise.
28801         * modules/unictype/property-xid-continue: Likewise.
28802         * modules/unictype/property-xid-start: Likewise.
28803         * modules/unictype/property-zero-width: Likewise.
28804         * modules/unictype/scripts: Likewise.
28805         * modules/unictype/syntax-c-ident: Likewise.
28806         * modules/unictype/syntax-c-whitespace: Likewise.
28807         * modules/unictype/syntax-java-ident: Likewise.
28808         * modules/unictype/syntax-java-whitespace: Likewise.
28809         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28810         * modules/unilbrk/u8-width-linebreaks: Likewise.
28811         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28812         * modules/unilbrk/u16-width-linebreaks: Likewise.
28813         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28814         * modules/unilbrk/u32-width-linebreaks: Likewise.
28815         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28816         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28817         * modules/uniname/uniname: Likewise.
28818         * modules/uninorm/canonical-decomposition: Likewise.
28819         * modules/uninorm/composition: Likewise.
28820         * modules/uninorm/decomposing-form: Likewise.
28821         * modules/uninorm/decomposition: Likewise.
28822         * modules/uninorm/filter: Likewise.
28823         * modules/uninorm/nfc: Likewise.
28824         * modules/uninorm/nfd: Likewise.
28825         * modules/uninorm/nfkc: Likewise.
28826         * modules/uninorm/nfkd: Likewise.
28827         * modules/uninorm/u8-normalize: Likewise.
28828         * modules/uninorm/u8-normcmp: Likewise.
28829         * modules/uninorm/u8-normcoll: Likewise.
28830         * modules/uninorm/u8-normxfrm: Likewise.
28831         * modules/uninorm/u16-normalize: Likewise.
28832         * modules/uninorm/u16-normcmp: Likewise.
28833         * modules/uninorm/u16-normcoll: Likewise.
28834         * modules/uninorm/u16-normxfrm: Likewise.
28835         * modules/uninorm/u32-normalize: Likewise.
28836         * modules/uninorm/u32-normcmp: Likewise.
28837         * modules/uninorm/u32-normcoll: Likewise.
28838         * modules/uninorm/u32-normxfrm: Likewise.
28839         * modules/unistdio/u8-asnprintf: Likewise.
28840         * modules/unistdio/u8-asprintf: Likewise.
28841         * modules/unistdio/u8-snprintf: Likewise.
28842         * modules/unistdio/u8-sprintf: Likewise.
28843         * modules/unistdio/u8-u8-asnprintf: Likewise.
28844         * modules/unistdio/u8-u8-asprintf: Likewise.
28845         * modules/unistdio/u8-u8-snprintf: Likewise.
28846         * modules/unistdio/u8-u8-sprintf: Likewise.
28847         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28848         * modules/unistdio/u8-u8-vasprintf: Likewise.
28849         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28850         * modules/unistdio/u8-u8-vsprintf: Likewise.
28851         * modules/unistdio/u8-vasnprintf: Likewise.
28852         * modules/unistdio/u8-vasprintf: Likewise.
28853         * modules/unistdio/u8-vsnprintf: Likewise.
28854         * modules/unistdio/u8-vsprintf: Likewise.
28855         * modules/unistdio/u16-asnprintf: Likewise.
28856         * modules/unistdio/u16-asprintf: Likewise.
28857         * modules/unistdio/u16-snprintf: Likewise.
28858         * modules/unistdio/u16-sprintf: Likewise.
28859         * modules/unistdio/u16-u16-asnprintf: Likewise.
28860         * modules/unistdio/u16-u16-asprintf: Likewise.
28861         * modules/unistdio/u16-u16-snprintf: Likewise.
28862         * modules/unistdio/u16-u16-sprintf: Likewise.
28863         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28864         * modules/unistdio/u16-u16-vasprintf: Likewise.
28865         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28866         * modules/unistdio/u16-u16-vsprintf: Likewise.
28867         * modules/unistdio/u16-vasnprintf: Likewise.
28868         * modules/unistdio/u16-vasprintf: Likewise.
28869         * modules/unistdio/u16-vsnprintf: Likewise.
28870         * modules/unistdio/u16-vsprintf: Likewise.
28871         * modules/unistdio/u32-asnprintf: Likewise.
28872         * modules/unistdio/u32-asprintf: Likewise.
28873         * modules/unistdio/u32-snprintf: Likewise.
28874         * modules/unistdio/u32-sprintf: Likewise.
28875         * modules/unistdio/u32-u32-asnprintf: Likewise.
28876         * modules/unistdio/u32-u32-asprintf: Likewise.
28877         * modules/unistdio/u32-u32-snprintf: Likewise.
28878         * modules/unistdio/u32-u32-sprintf: Likewise.
28879         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28880         * modules/unistdio/u32-u32-vasprintf: Likewise.
28881         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28882         * modules/unistdio/u32-u32-vsprintf: Likewise.
28883         * modules/unistdio/u32-vasnprintf: Likewise.
28884         * modules/unistdio/u32-vasprintf: Likewise.
28885         * modules/unistdio/u32-vsnprintf: Likewise.
28886         * modules/unistdio/u32-vsprintf: Likewise.
28887         * modules/unistdio/ulc-asnprintf: Likewise.
28888         * modules/unistdio/ulc-asprintf: Likewise.
28889         * modules/unistdio/ulc-fprintf: Likewise.
28890         * modules/unistdio/ulc-snprintf: Likewise.
28891         * modules/unistdio/ulc-sprintf: Likewise.
28892         * modules/unistdio/ulc-vasnprintf: Likewise.
28893         * modules/unistdio/ulc-vasprintf: Likewise.
28894         * modules/unistdio/ulc-vfprintf: Likewise.
28895         * modules/unistdio/ulc-vsnprintf: Likewise.
28896         * modules/unistdio/ulc-vsprintf: Likewise.
28897         * modules/unistr/u8-check: Likewise.
28898         * modules/unistr/u8-chr: Likewise.
28899         * modules/unistr/u8-cmp: Likewise.
28900         * modules/unistr/u8-cmp2: Likewise.
28901         * modules/unistr/u8-cpy: Likewise.
28902         * modules/unistr/u8-cpy-alloc: Likewise.
28903         * modules/unistr/u8-endswith: Likewise.
28904         * modules/unistr/u8-mblen: Likewise.
28905         * modules/unistr/u8-mbsnlen: Likewise.
28906         * modules/unistr/u8-mbtouc: Likewise.
28907         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28908         * modules/unistr/u8-mbtoucr: Likewise.
28909         * modules/unistr/u8-move: Likewise.
28910         * modules/unistr/u8-next: Likewise.
28911         * modules/unistr/u8-prev: Likewise.
28912         * modules/unistr/u8-set: Likewise.
28913         * modules/unistr/u8-startswith: Likewise.
28914         * modules/unistr/u8-stpcpy: Likewise.
28915         * modules/unistr/u8-stpncpy: Likewise.
28916         * modules/unistr/u8-strcat: Likewise.
28917         * modules/unistr/u8-strchr: Likewise.
28918         * modules/unistr/u8-strcmp: Likewise.
28919         * modules/unistr/u8-strcoll: Likewise.
28920         * modules/unistr/u8-strcpy: Likewise.
28921         * modules/unistr/u8-strcspn: Likewise.
28922         * modules/unistr/u8-strdup: Likewise.
28923         * modules/unistr/u8-strlen: Likewise.
28924         * modules/unistr/u8-strmblen: Likewise.
28925         * modules/unistr/u8-strmbtouc: Likewise.
28926         * modules/unistr/u8-strncat: Likewise.
28927         * modules/unistr/u8-strncmp: Likewise.
28928         * modules/unistr/u8-strncpy: Likewise.
28929         * modules/unistr/u8-strnlen: Likewise.
28930         * modules/unistr/u8-strpbrk: Likewise.
28931         * modules/unistr/u8-strrchr: Likewise.
28932         * modules/unistr/u8-strspn: Likewise.
28933         * modules/unistr/u8-strstr: Likewise.
28934         * modules/unistr/u8-strtok: Likewise.
28935         * modules/unistr/u8-to-u16: Likewise.
28936         * modules/unistr/u8-to-u32: Likewise.
28937         * modules/unistr/u8-uctomb: Likewise.
28938         * modules/unistr/u16-check: Likewise.
28939         * modules/unistr/u16-chr: Likewise.
28940         * modules/unistr/u16-cmp: Likewise.
28941         * modules/unistr/u16-cmp2: Likewise.
28942         * modules/unistr/u16-cpy: Likewise.
28943         * modules/unistr/u16-cpy-alloc: Likewise.
28944         * modules/unistr/u16-endswith: Likewise.
28945         * modules/unistr/u16-mblen: Likewise.
28946         * modules/unistr/u16-mbsnlen: Likewise.
28947         * modules/unistr/u16-mbtouc: Likewise.
28948         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28949         * modules/unistr/u16-mbtoucr: Likewise.
28950         * modules/unistr/u16-move: Likewise.
28951         * modules/unistr/u16-next: Likewise.
28952         * modules/unistr/u16-prev: Likewise.
28953         * modules/unistr/u16-set: Likewise.
28954         * modules/unistr/u16-startswith: Likewise.
28955         * modules/unistr/u16-stpcpy: Likewise.
28956         * modules/unistr/u16-stpncpy: Likewise.
28957         * modules/unistr/u16-strcat: Likewise.
28958         * modules/unistr/u16-strchr: Likewise.
28959         * modules/unistr/u16-strcmp: Likewise.
28960         * modules/unistr/u16-strcoll: Likewise.
28961         * modules/unistr/u16-strcpy: Likewise.
28962         * modules/unistr/u16-strcspn: Likewise.
28963         * modules/unistr/u16-strdup: Likewise.
28964         * modules/unistr/u16-strlen: Likewise.
28965         * modules/unistr/u16-strmblen: Likewise.
28966         * modules/unistr/u16-strmbtouc: Likewise.
28967         * modules/unistr/u16-strncat: Likewise.
28968         * modules/unistr/u16-strncmp: Likewise.
28969         * modules/unistr/u16-strncpy: Likewise.
28970         * modules/unistr/u16-strnlen: Likewise.
28971         * modules/unistr/u16-strpbrk: Likewise.
28972         * modules/unistr/u16-strrchr: Likewise.
28973         * modules/unistr/u16-strspn: Likewise.
28974         * modules/unistr/u16-strstr: Likewise.
28975         * modules/unistr/u16-strtok: Likewise.
28976         * modules/unistr/u16-to-u32: Likewise.
28977         * modules/unistr/u16-to-u8: Likewise.
28978         * modules/unistr/u16-uctomb: Likewise.
28979         * modules/unistr/u32-check: Likewise.
28980         * modules/unistr/u32-chr: Likewise.
28981         * modules/unistr/u32-cmp: Likewise.
28982         * modules/unistr/u32-cmp2: Likewise.
28983         * modules/unistr/u32-cpy: Likewise.
28984         * modules/unistr/u32-cpy-alloc: Likewise.
28985         * modules/unistr/u32-endswith: Likewise.
28986         * modules/unistr/u32-mblen: Likewise.
28987         * modules/unistr/u32-mbsnlen: Likewise.
28988         * modules/unistr/u32-mbtouc: Likewise.
28989         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28990         * modules/unistr/u32-mbtoucr: Likewise.
28991         * modules/unistr/u32-move: Likewise.
28992         * modules/unistr/u32-next: Likewise.
28993         * modules/unistr/u32-prev: Likewise.
28994         * modules/unistr/u32-set: Likewise.
28995         * modules/unistr/u32-startswith: Likewise.
28996         * modules/unistr/u32-stpcpy: Likewise.
28997         * modules/unistr/u32-stpncpy: Likewise.
28998         * modules/unistr/u32-strcat: Likewise.
28999         * modules/unistr/u32-strchr: Likewise.
29000         * modules/unistr/u32-strcmp: Likewise.
29001         * modules/unistr/u32-strcoll: Likewise.
29002         * modules/unistr/u32-strcpy: Likewise.
29003         * modules/unistr/u32-strcspn: Likewise.
29004         * modules/unistr/u32-strdup: Likewise.
29005         * modules/unistr/u32-strlen: Likewise.
29006         * modules/unistr/u32-strmblen: Likewise.
29007         * modules/unistr/u32-strmbtouc: Likewise.
29008         * modules/unistr/u32-strncat: Likewise.
29009         * modules/unistr/u32-strncmp: Likewise.
29010         * modules/unistr/u32-strncpy: Likewise.
29011         * modules/unistr/u32-strnlen: Likewise.
29012         * modules/unistr/u32-strpbrk: Likewise.
29013         * modules/unistr/u32-strrchr: Likewise.
29014         * modules/unistr/u32-strspn: Likewise.
29015         * modules/unistr/u32-strstr: Likewise.
29016         * modules/unistr/u32-strtok: Likewise.
29017         * modules/unistr/u32-to-u16: Likewise.
29018         * modules/unistr/u32-to-u8: Likewise.
29019         * modules/unistr/u32-uctomb: Likewise.
29020         * modules/uniwbrk/u8-wordbreaks: Likewise.
29021         * modules/uniwbrk/u16-wordbreaks: Likewise.
29022         * modules/uniwbrk/u32-wordbreaks: Likewise.
29023         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29024         * modules/uniwbrk/wordbreak-property: Likewise.
29025         * modules/uniwidth/u8-strwidth: Likewise.
29026         * modules/uniwidth/u8-width: Likewise.
29027         * modules/uniwidth/u16-strwidth: Likewise.
29028         * modules/uniwidth/u16-width: Likewise.
29029         * modules/uniwidth/u32-strwidth: Likewise.
29030         * modules/uniwidth/u32-width: Likewise.
29031         * modules/uniwidth/width: Likewise.
29032         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29033         with $(LIBUNISTRING).
29034         * modules/unicase/ignorable-tests: Likewise.
29035         * modules/unicase/locale-language-tests: Likewise.
29036         * modules/unicase/tolower-tests: Likewise.
29037         * modules/unicase/totitle-tests: Likewise.
29038         * modules/unicase/toupper-tests: Likewise.
29039         * modules/unicase/u8-casecmp-tests: Likewise.
29040         * modules/unicase/u8-casecoll-tests: Likewise.
29041         * modules/unicase/u8-casefold-tests: Likewise.
29042         * modules/unicase/u8-is-cased-tests: Likewise.
29043         * modules/unicase/u8-is-casefolded-tests: Likewise.
29044         * modules/unicase/u8-is-lowercase-tests: Likewise.
29045         * modules/unicase/u8-is-titlecase-tests: Likewise.
29046         * modules/unicase/u8-is-uppercase-tests: Likewise.
29047         * modules/unicase/u8-tolower-tests: Likewise.
29048         * modules/unicase/u8-totitle-tests: Likewise.
29049         * modules/unicase/u8-toupper-tests: Likewise.
29050         * modules/unicase/u16-casecmp-tests: Likewise.
29051         * modules/unicase/u16-casecoll-tests: Likewise.
29052         * modules/unicase/u16-casefold-tests: Likewise.
29053         * modules/unicase/u16-is-cased-tests: Likewise.
29054         * modules/unicase/u16-is-casefolded-tests: Likewise.
29055         * modules/unicase/u16-is-lowercase-tests: Likewise.
29056         * modules/unicase/u16-is-titlecase-tests: Likewise.
29057         * modules/unicase/u16-is-uppercase-tests: Likewise.
29058         * modules/unicase/u16-tolower-tests: Likewise.
29059         * modules/unicase/u16-totitle-tests: Likewise.
29060         * modules/unicase/u16-toupper-tests: Likewise.
29061         * modules/unicase/u32-casecmp-tests: Likewise.
29062         * modules/unicase/u32-casecoll-tests: Likewise.
29063         * modules/unicase/u32-casefold-tests: Likewise.
29064         * modules/unicase/u32-is-cased-tests: Likewise.
29065         * modules/unicase/u32-is-casefolded-tests: Likewise.
29066         * modules/unicase/u32-is-lowercase-tests: Likewise.
29067         * modules/unicase/u32-is-titlecase-tests: Likewise.
29068         * modules/unicase/u32-is-uppercase-tests: Likewise.
29069         * modules/unicase/u32-tolower-tests: Likewise.
29070         * modules/unicase/u32-totitle-tests: Likewise.
29071         * modules/unicase/u32-toupper-tests: Likewise.
29072         * modules/unicase/ulc-casecmp-tests: Likewise.
29073         * modules/unicase/ulc-casecoll-tests: Likewise.
29074         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29075         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29076         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29077         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29078         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29079         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29080         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29081         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29082         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29083         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29084         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29085         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29086         * modules/unictype/bidicategory-byname-tests: Likewise.
29087         * modules/unictype/bidicategory-name-tests: Likewise.
29088         * modules/unictype/bidicategory-of-tests: Likewise.
29089         * modules/unictype/bidicategory-test-tests: Likewise.
29090         * modules/unictype/block-list-tests: Likewise.
29091         * modules/unictype/block-of-tests: Likewise.
29092         * modules/unictype/block-test-tests: Likewise.
29093         * modules/unictype/category-C-tests: Likewise.
29094         * modules/unictype/category-Cc-tests: Likewise.
29095         * modules/unictype/category-Cf-tests: Likewise.
29096         * modules/unictype/category-Cn-tests: Likewise.
29097         * modules/unictype/category-Co-tests: Likewise.
29098         * modules/unictype/category-Cs-tests: Likewise.
29099         * modules/unictype/category-L-tests: Likewise.
29100         * modules/unictype/category-Ll-tests: Likewise.
29101         * modules/unictype/category-Lm-tests: Likewise.
29102         * modules/unictype/category-Lo-tests: Likewise.
29103         * modules/unictype/category-Lt-tests: Likewise.
29104         * modules/unictype/category-Lu-tests: Likewise.
29105         * modules/unictype/category-M-tests: Likewise.
29106         * modules/unictype/category-Mc-tests: Likewise.
29107         * modules/unictype/category-Me-tests: Likewise.
29108         * modules/unictype/category-Mn-tests: Likewise.
29109         * modules/unictype/category-N-tests: Likewise.
29110         * modules/unictype/category-Nd-tests: Likewise.
29111         * modules/unictype/category-Nl-tests: Likewise.
29112         * modules/unictype/category-No-tests: Likewise.
29113         * modules/unictype/category-P-tests: Likewise.
29114         * modules/unictype/category-Pc-tests: Likewise.
29115         * modules/unictype/category-Pd-tests: Likewise.
29116         * modules/unictype/category-Pe-tests: Likewise.
29117         * modules/unictype/category-Pf-tests: Likewise.
29118         * modules/unictype/category-Pi-tests: Likewise.
29119         * modules/unictype/category-Po-tests: Likewise.
29120         * modules/unictype/category-Ps-tests: Likewise.
29121         * modules/unictype/category-S-tests: Likewise.
29122         * modules/unictype/category-Sc-tests: Likewise.
29123         * modules/unictype/category-Sk-tests: Likewise.
29124         * modules/unictype/category-Sm-tests: Likewise.
29125         * modules/unictype/category-So-tests: Likewise.
29126         * modules/unictype/category-Z-tests: Likewise.
29127         * modules/unictype/category-Zl-tests: Likewise.
29128         * modules/unictype/category-Zp-tests: Likewise.
29129         * modules/unictype/category-Zs-tests: Likewise.
29130         * modules/unictype/category-and-not-tests: Likewise.
29131         * modules/unictype/category-and-tests: Likewise.
29132         * modules/unictype/category-byname-tests: Likewise.
29133         * modules/unictype/category-name-tests: Likewise.
29134         * modules/unictype/category-none-tests: Likewise.
29135         * modules/unictype/category-of-tests: Likewise.
29136         * modules/unictype/category-or-tests: Likewise.
29137         * modules/unictype/category-test-withtable-tests: Likewise.
29138         * modules/unictype/combining-class-tests: Likewise.
29139         * modules/unictype/ctype-alnum-tests: Likewise.
29140         * modules/unictype/ctype-alpha-tests: Likewise.
29141         * modules/unictype/ctype-blank-tests: Likewise.
29142         * modules/unictype/ctype-cntrl-tests: Likewise.
29143         * modules/unictype/ctype-digit-tests: Likewise.
29144         * modules/unictype/ctype-graph-tests: Likewise.
29145         * modules/unictype/ctype-lower-tests: Likewise.
29146         * modules/unictype/ctype-print-tests: Likewise.
29147         * modules/unictype/ctype-punct-tests: Likewise.
29148         * modules/unictype/ctype-space-tests: Likewise.
29149         * modules/unictype/ctype-upper-tests: Likewise.
29150         * modules/unictype/ctype-xdigit-tests: Likewise.
29151         * modules/unictype/decimal-digit-tests: Likewise.
29152         * modules/unictype/digit-tests: Likewise.
29153         * modules/unictype/mirror-tests: Likewise.
29154         * modules/unictype/numeric-tests: Likewise.
29155         * modules/unictype/property-alphabetic-tests: Likewise.
29156         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
29157         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
29158         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
29159         * modules/unictype/property-bidi-block-separator-tests: Likewise.
29160         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
29161         * modules/unictype/property-bidi-common-separator-tests: Likewise.
29162         * modules/unictype/property-bidi-control-tests: Likewise.
29163         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
29164         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
29165         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
29166         * modules/unictype/property-bidi-european-digit-tests: Likewise.
29167         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
29168         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
29169         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
29170         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
29171         * modules/unictype/property-bidi-pdf-tests: Likewise.
29172         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
29173         * modules/unictype/property-bidi-whitespace-tests: Likewise.
29174         * modules/unictype/property-byname-tests: Likewise.
29175         * modules/unictype/property-combining-tests: Likewise.
29176         * modules/unictype/property-composite-tests: Likewise.
29177         * modules/unictype/property-currency-symbol-tests: Likewise.
29178         * modules/unictype/property-dash-tests: Likewise.
29179         * modules/unictype/property-decimal-digit-tests: Likewise.
29180         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29181         * modules/unictype/property-deprecated-tests: Likewise.
29182         * modules/unictype/property-diacritic-tests: Likewise.
29183         * modules/unictype/property-extender-tests: Likewise.
29184         * modules/unictype/property-format-control-tests: Likewise.
29185         * modules/unictype/property-grapheme-base-tests: Likewise.
29186         * modules/unictype/property-grapheme-extend-tests: Likewise.
29187         * modules/unictype/property-grapheme-link-tests: Likewise.
29188         * modules/unictype/property-hex-digit-tests: Likewise.
29189         * modules/unictype/property-hyphen-tests: Likewise.
29190         * modules/unictype/property-id-continue-tests: Likewise.
29191         * modules/unictype/property-id-start-tests: Likewise.
29192         * modules/unictype/property-ideographic-tests: Likewise.
29193         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29194         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29195         * modules/unictype/property-ignorable-control-tests: Likewise.
29196         * modules/unictype/property-iso-control-tests: Likewise.
29197         * modules/unictype/property-join-control-tests: Likewise.
29198         * modules/unictype/property-left-of-pair-tests: Likewise.
29199         * modules/unictype/property-line-separator-tests: Likewise.
29200         * modules/unictype/property-logical-order-exception-tests: Likewise.
29201         * modules/unictype/property-lowercase-tests: Likewise.
29202         * modules/unictype/property-math-tests: Likewise.
29203         * modules/unictype/property-non-break-tests: Likewise.
29204         * modules/unictype/property-not-a-character-tests: Likewise.
29205         * modules/unictype/property-numeric-tests: Likewise.
29206         * modules/unictype/property-other-alphabetic-tests: Likewise.
29207         * modules/unictype/property-other-default-ignorable-code-point-tests:
29208         Likewise.
29209         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29210         * modules/unictype/property-other-id-continue-tests: Likewise.
29211         * modules/unictype/property-other-id-start-tests: Likewise.
29212         * modules/unictype/property-other-lowercase-tests: Likewise.
29213         * modules/unictype/property-other-math-tests: Likewise.
29214         * modules/unictype/property-other-uppercase-tests: Likewise.
29215         * modules/unictype/property-paired-punctuation-tests: Likewise.
29216         * modules/unictype/property-paragraph-separator-tests: Likewise.
29217         * modules/unictype/property-pattern-syntax-tests: Likewise.
29218         * modules/unictype/property-pattern-white-space-tests: Likewise.
29219         * modules/unictype/property-private-use-tests: Likewise.
29220         * modules/unictype/property-punctuation-tests: Likewise.
29221         * modules/unictype/property-quotation-mark-tests: Likewise.
29222         * modules/unictype/property-radical-tests: Likewise.
29223         * modules/unictype/property-sentence-terminal-tests: Likewise.
29224         * modules/unictype/property-soft-dotted-tests: Likewise.
29225         * modules/unictype/property-space-tests: Likewise.
29226         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29227         * modules/unictype/property-test-tests: Likewise.
29228         * modules/unictype/property-titlecase-tests: Likewise.
29229         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29230         * modules/unictype/property-unified-ideograph-tests: Likewise.
29231         * modules/unictype/property-uppercase-tests: Likewise.
29232         * modules/unictype/property-variation-selector-tests: Likewise.
29233         * modules/unictype/property-white-space-tests: Likewise.
29234         * modules/unictype/property-xid-continue-tests: Likewise.
29235         * modules/unictype/property-xid-start-tests: Likewise.
29236         * modules/unictype/property-zero-width-tests: Likewise.
29237         * modules/unictype/scripts-tests: Likewise.
29238         * modules/unictype/syntax-c-ident-tests: Likewise.
29239         * modules/unictype/syntax-c-whitespace-tests: Likewise.
29240         * modules/unictype/syntax-java-ident-tests: Likewise.
29241         * modules/unictype/syntax-java-whitespace-tests: Likewise.
29242         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
29243         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
29244         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
29245         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
29246         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
29247         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
29248         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
29249         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
29250         * modules/uniname/uniname-tests: Likewise.
29251         * modules/uninorm/canonical-decomposition-tests: Likewise.
29252         * modules/uninorm/compat-decomposition-tests: Likewise.
29253         * modules/uninorm/composition-tests: Likewise.
29254         * modules/uninorm/decomposing-form-tests: Likewise.
29255         * modules/uninorm/decomposition-tests: Likewise.
29256         * modules/uninorm/filter-tests: Likewise.
29257         * modules/uninorm/nfc-tests: Likewise.
29258         * modules/uninorm/nfd-tests: Likewise.
29259         * modules/uninorm/nfkc-tests: Likewise.
29260         * modules/uninorm/nfkd-tests: Likewise.
29261         * modules/uninorm/u8-normcmp-tests: Likewise.
29262         * modules/uninorm/u8-normcoll-tests: Likewise.
29263         * modules/uninorm/u16-normcmp-tests: Likewise.
29264         * modules/uninorm/u16-normcoll-tests: Likewise.
29265         * modules/uninorm/u32-normcmp-tests: Likewise.
29266         * modules/uninorm/u32-normcoll-tests: Likewise.
29267         * modules/unistdio/u8-asnprintf-tests: Likewise.
29268         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29269         * modules/unistdio/u8-vasprintf-tests: Likewise.
29270         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29271         * modules/unistdio/u8-vsprintf-tests: Likewise.
29272         * modules/unistdio/u16-asnprintf-tests: Likewise.
29273         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29274         * modules/unistdio/u16-vasprintf-tests: Likewise.
29275         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29276         * modules/unistdio/u16-vsprintf-tests: Likewise.
29277         * modules/unistdio/u32-asnprintf-tests: Likewise.
29278         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29279         * modules/unistdio/u32-vasprintf-tests: Likewise.
29280         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29281         * modules/unistdio/u32-vsprintf-tests: Likewise.
29282         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29283         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29284         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29285         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29286         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29287         * modules/unistr/u8-check-tests: Likewise.
29288         * modules/unistr/u8-chr-tests: Likewise.
29289         * modules/unistr/u8-cmp-tests: Likewise.
29290         * modules/unistr/u8-cmp2-tests: Likewise.
29291         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29292         * modules/unistr/u8-cpy-tests: Likewise.
29293         * modules/unistr/u8-mblen-tests: Likewise.
29294         * modules/unistr/u8-mbsnlen-tests: Likewise.
29295         * modules/unistr/u8-mbtouc-tests: Likewise.
29296         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29297         * modules/unistr/u8-mbtoucr-tests: Likewise.
29298         * modules/unistr/u8-move-tests: Likewise.
29299         * modules/unistr/u8-next-tests: Likewise.
29300         * modules/unistr/u8-prev-tests: Likewise.
29301         * modules/unistr/u8-set-tests: Likewise.
29302         * modules/unistr/u8-stpcpy-tests: Likewise.
29303         * modules/unistr/u8-stpncpy-tests: Likewise.
29304         * modules/unistr/u8-strcat-tests: Likewise.
29305         * modules/unistr/u8-strcmp-tests: Likewise.
29306         * modules/unistr/u8-strcoll-tests: Likewise.
29307         * modules/unistr/u8-strcpy-tests: Likewise.
29308         * modules/unistr/u8-strdup-tests: Likewise.
29309         * modules/unistr/u8-strlen-tests: Likewise.
29310         * modules/unistr/u8-strmblen-tests: Likewise.
29311         * modules/unistr/u8-strmbtouc-tests: Likewise.
29312         * modules/unistr/u8-strncat-tests: Likewise.
29313         * modules/unistr/u8-strncmp-tests: Likewise.
29314         * modules/unistr/u8-strncpy-tests: Likewise.
29315         * modules/unistr/u8-strnlen-tests: Likewise.
29316         * modules/unistr/u8-to-u16-tests: Likewise.
29317         * modules/unistr/u8-to-u32-tests: Likewise.
29318         * modules/unistr/u8-uctomb-tests: Likewise.
29319         * modules/unistr/u16-check-tests: Likewise.
29320         * modules/unistr/u16-chr-tests: Likewise.
29321         * modules/unistr/u16-cmp-tests: Likewise.
29322         * modules/unistr/u16-cmp2-tests: Likewise.
29323         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29324         * modules/unistr/u16-cpy-tests: Likewise.
29325         * modules/unistr/u16-mblen-tests: Likewise.
29326         * modules/unistr/u16-mbsnlen-tests: Likewise.
29327         * modules/unistr/u16-mbtouc-tests: Likewise.
29328         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29329         * modules/unistr/u16-mbtoucr-tests: Likewise.
29330         * modules/unistr/u16-move-tests: Likewise.
29331         * modules/unistr/u16-next-tests: Likewise.
29332         * modules/unistr/u16-prev-tests: Likewise.
29333         * modules/unistr/u16-set-tests: Likewise.
29334         * modules/unistr/u16-stpcpy-tests: Likewise.
29335         * modules/unistr/u16-stpncpy-tests: Likewise.
29336         * modules/unistr/u16-strcat-tests: Likewise.
29337         * modules/unistr/u16-strcmp-tests: Likewise.
29338         * modules/unistr/u16-strcoll-tests: Likewise.
29339         * modules/unistr/u16-strcpy-tests: Likewise.
29340         * modules/unistr/u16-strdup-tests: Likewise.
29341         * modules/unistr/u16-strlen-tests: Likewise.
29342         * modules/unistr/u16-strmblen-tests: Likewise.
29343         * modules/unistr/u16-strmbtouc-tests: Likewise.
29344         * modules/unistr/u16-strncat-tests: Likewise.
29345         * modules/unistr/u16-strncmp-tests: Likewise.
29346         * modules/unistr/u16-strncpy-tests: Likewise.
29347         * modules/unistr/u16-strnlen-tests: Likewise.
29348         * modules/unistr/u16-to-u32-tests: Likewise.
29349         * modules/unistr/u16-to-u8-tests: Likewise.
29350         * modules/unistr/u16-uctomb-tests: Likewise.
29351         * modules/unistr/u32-check-tests: Likewise.
29352         * modules/unistr/u32-chr-tests: Likewise.
29353         * modules/unistr/u32-cmp-tests: Likewise.
29354         * modules/unistr/u32-cmp2-tests: Likewise.
29355         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29356         * modules/unistr/u32-cpy-tests: Likewise.
29357         * modules/unistr/u32-mblen-tests: Likewise.
29358         * modules/unistr/u32-mbsnlen-tests: Likewise.
29359         * modules/unistr/u32-mbtouc-tests: Likewise.
29360         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29361         * modules/unistr/u32-mbtoucr-tests: Likewise.
29362         * modules/unistr/u32-move-tests: Likewise.
29363         * modules/unistr/u32-next-tests: Likewise.
29364         * modules/unistr/u32-prev-tests: Likewise.
29365         * modules/unistr/u32-set-tests: Likewise.
29366         * modules/unistr/u32-stpcpy-tests: Likewise.
29367         * modules/unistr/u32-stpncpy-tests: Likewise.
29368         * modules/unistr/u32-strcat-tests: Likewise.
29369         * modules/unistr/u32-strcmp-tests: Likewise.
29370         * modules/unistr/u32-strcoll-tests: Likewise.
29371         * modules/unistr/u32-strcpy-tests: Likewise.
29372         * modules/unistr/u32-strdup-tests: Likewise.
29373         * modules/unistr/u32-strlen-tests: Likewise.
29374         * modules/unistr/u32-strmblen-tests: Likewise.
29375         * modules/unistr/u32-strmbtouc-tests: Likewise.
29376         * modules/unistr/u32-strncat-tests: Likewise.
29377         * modules/unistr/u32-strncmp-tests: Likewise.
29378         * modules/unistr/u32-strncpy-tests: Likewise.
29379         * modules/unistr/u32-strnlen-tests: Likewise.
29380         * modules/unistr/u32-to-u16-tests: Likewise.
29381         * modules/unistr/u32-to-u8-tests: Likewise.
29382         * modules/unistr/u32-uctomb-tests: Likewise.
29383         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29384         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29385         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29386         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29387         * modules/uniwidth/u8-strwidth-tests: Likewise.
29388         * modules/uniwidth/u8-width-tests: Likewise.
29389         * modules/uniwidth/u16-strwidth-tests: Likewise.
29390         * modules/uniwidth/u16-width-tests: Likewise.
29391         * modules/uniwidth/u32-strwidth-tests: Likewise.
29392         * modules/uniwidth/u32-width-tests: Likewise.
29393         * modules/uniwidth/width-tests: Likewise.
29394
29395 2010-05-18  Richard Jones  <rjones@redhat.com>
29396
29397         doc: users.txt: list hivex
29398         * users.txt: Add hivex.
29399
29400 2010-05-18  Richard Jones  <rjones@redhat.com>
29401
29402         doc: users.txt: list febootstrap
29403         * users.txt: Add febootstrap.
29404
29405 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29406
29407         bootstrap: fix an error when gnulib is not used as a git submodule
29408         * build-aux/bootstrap (gnulib_path): If its length is zero then
29409         assign "gnulib" to it.
29410         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29411
29412 2010-05-16  Bruno Haible  <bruno@clisp.org>
29413
29414         Avoid autoconf warnings about AM_ICONV.
29415         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29416         2.64.
29417
29418 2010-05-16  Bruno Haible  <bruno@clisp.org>
29419
29420         absolute-header: Make the macro usable in more situations.
29421         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29422         from gl_ABSOLUTE_HEADER.
29423         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29424
29425 2010-05-16  James Youngman  <jay@gnu.org>
29426
29427         doc: update users.txt
29428         * users.txt: Add CSSC.
29429
29430 2010-05-16  Jim Meyering  <meyering@redhat.com>
29431
29432         init.sh: fix an error in the previous change; add more comments
29433         * tests/init.sh: Compare exit code in loop against 9, not 2.
29434         Patch by Bruno Haible.
29435         Make the two tests more similar by adding an empty "then" clause.
29436         Add comments.
29437
29438         init.sh: avoid unnecessary shell re-exec
29439         * tests/init.sh: Improve the re-exec-required check to first test the
29440         current shell.  If it passes the test, do not search for a shell that
29441         does pass, and do not re-exec.  This test is particularly contorted to
29442         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29443         of $(...) evokes a syntax error and causes immediate shell exit with
29444         status 2.  Bruno Haible reported that the re-exec made it impossible
29445         to single-step through any init.sh-using script.
29446
29447 2010-05-16  Bruno Haible  <bruno@clisp.org>
29448
29449         Fix collision between gnulib's and libintl's printf replacements.
29450         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29451         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29452         (printf): When using GNU C, map the __printf__ function to rpl_printf
29453         via __asm__. When not using GNU C, define rpl_printf instead of
29454         __printf__.
29455         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29456         commit.
29457         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29458         commit.
29459         * m4/asm-underscore.m4: New file.
29460         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29461         * modules/stdio (Files): Add m4/asm-underscore.m4.
29462         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29463         Reported by Ben Pfaff.
29464
29465 2010-05-16  Bruno Haible  <bruno@clisp.org>
29466
29467         verify: Avoid skipping the test on openSUSE 11.0.
29468         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29469
29470 2010-05-13  Bruno Haible  <bruno@clisp.org>
29471
29472         Avoid useless warnings from G++.
29473         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29474         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29475         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29476
29477 2010-05-11  Jim Meyering  <meyering@redhat.com>
29478
29479         maint.mk: tweak preceding change
29480         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29481         regexps tighter by anchoring at EOL, and make the new group "shy"
29482         for slightly decreased overhead.
29483
29484 2010-05-11  Eric Blake  <eblake@redhat.com>
29485
29486         maint.mk: gnulib doesn't guarantee NSIG
29487         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29488
29489 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29490
29491         test-pwrite.c: Remove unused variable declaration.
29492         * tests/test-pwrite.c (main): Remove read_buf declaration.
29493
29494         Remove useless test-pwrite.sh file.
29495         * tests/test-pwrite.sh: Delete file.
29496         * modules/pwrite-tests: Remove references.
29497         Reported by Bruno Haible.
29498
29499 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29500
29501         init.sh: fix a typo
29502         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29503
29504 2010-05-10  Jim Meyering  <meyering@redhat.com>
29505
29506         maint.mk: avoid using a temporary file in the always-defined-macros check
29507         * top/maint.mk (.re-defmac): Remove rule.
29508         (gl_trap_): Remove definition.
29509         (sc_prohibit_always-defined_macros): Rewrite not to create and
29510         depend on a temporary file.  Instead, depend on GNU grep's ability
29511         to read a list of regular expressions from stdin when given "-f -".
29512
29513 2010-05-09  Bruno Haible  <bruno@clisp.org>
29514
29515         Update to GNU gettext 0.18, part 1.
29516         * m4/gettext.m4: Update to GNU gettext 0.18.
29517         * m4/intl.m4: Likewise.
29518         * m4/po.m4: Likewise.
29519         * modules/gettext (Files): Add m4/fcntl-o.m4.
29520         (configure.ac): Require gettext infrastructure from version 0.18.
29521
29522 2010-05-09  Jim Meyering  <meyering@redhat.com>
29523
29524         init.sh: enable MALLOC_PERTURB_
29525         * tests/init.sh: Enable glibc's malloc-perturbing option.
29526
29527         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29528         With my recent change in init.sh from the two-line form:
29529             -#   : ${srcdir=.}
29530             -#   . "$srcdir/init.sh"; path_prepend_ .
29531             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29532         I noticed that using the one-line form would cause this test
29533         to fail with a false-positive, or to stop working altogether,
29534         depending on whether help-version changed or all the tests did.
29535         * top/maint.mk (_hv_regex): Remove this definition.
29536         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29537         (_hv_regex_strong): Use a stronger regex to check for conformance.
29538         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29539         Give a separate diagnostic for lack of conforming use.
29540
29541         maint.mk: prohibit definition of symbols defined by gnulib
29542         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29543         definition of symbols defined by gnulib.
29544
29545 2010-05-09  Bruno Haible  <bruno@clisp.org>
29546
29547         acl: Avoid test failure on Cygwin-hosted mingw.
29548         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29549
29550 2010-05-09  Bruno Haible  <bruno@clisp.org>
29551
29552         error: Use system's fcntl function.
29553         * lib/error.c (fcntl): Undefine.
29554
29555 2010-05-09  Jim Meyering  <meyering@redhat.com>
29556
29557         verify: adjust formatting to be more consistent
29558         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29559         argument-list '('s, and after one comma.
29560
29561 2010-05-09  Bruno Haible  <bruno@clisp.org>
29562
29563         error: More reliable output on mingw.
29564         * lib/error.c: Include <windows.h>.
29565         (is_open): New function.
29566         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29567         defined.
29568
29569 2010-05-09  Bruno Haible  <bruno@clisp.org>
29570
29571         vasnprintf: Fix syntax errors in libintl build on mingw.
29572         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29573         pad_ourselves and prec_ourselves after use.
29574
29575 2010-05-08  Bruno Haible  <bruno@clisp.org>
29576
29577         * lib/config.charset: Update comments for Cygwin 1.7.
29578         * lib/localcharset.c: Likewise.
29579
29580 2010-05-07  Jim Meyering  <meyering@redhat.com>
29581
29582         init.sh: improve comments
29583         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29584         . "${srcdir=.}/init.sh"; path_prepend_ .
29585         Add a note about path_prepend_ and the alternative of using
29586         TESTS_ENVIRONMENT.
29587
29588 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29589
29590         exclude: Unescape hashed patterns in wildcard mode.
29591         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29592         to the hash list.
29593         * tests/test-exclude8.sh: New test case.
29594         * modules/exclude-tests: Add new test.
29595
29596 2010-05-05  Eric Blake  <eblake@redhat.com>
29597
29598         verify: automate tests
29599         * modules/verify-tests: New module.
29600         * tests/test-verify.sh: New file.
29601         * tests/test-verify.c: Guard each negative test with a unique id.
29602         Also avoid warning about unused left hand of comma expressions.
29603
29604 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29605
29606         Further improvements to verify.h, suggested by Eric Blake.
29607         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29608         the GL_* versions, to avoid collision with OpenGL.
29609         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29610         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29611         than testing merely whether it's defined.
29612
29613         Modify verify.h to pacify gcc -Wredundant_decls.
29614         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29615         These use the prefix "GL_" since they're likely to be useful elsewhere.
29616         We may need to break them out into a different .h file.
29617         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29618         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29619         of verify_function__.
29620
29621 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29622
29623         Tests for module pwrite.
29624         * modules/pwrite-tests: New file.
29625         * tests/test-pwrite.sh: New file.
29626         * tests/test-pwrite.c: New file.
29627
29628         New module pwrite.
29629         * lib/unistd.in.h (pwrite): New declaration.
29630         * lib/pwrite.c: New file, from glibc with modifications.
29631         * m4/pwrite.m4: New file.
29632         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29633         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29634         REPLACE_PWRITE.
29635         * modules/pwrite: New file.
29636         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29637         REPLACE_PWRITE.
29638         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29639         * doc/posix-functions/pwrite.texi: Mention the new module.
29640
29641 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29642
29643         pread: Update documentation.
29644         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29645
29646 2010-05-04  Eric Blake  <eblake@redhat.com>
29647
29648         docs: update cygwin progress
29649         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29650         this bug.
29651         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29652         Added in cygwin 1.7.2.
29653         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29654         Likewise.
29655         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29656         Likewise.
29657         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29658         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29659         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29660         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29661         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29662         Mention nproc module.
29663         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29664         bug in cygwin 1.7.5 addition.
29665         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29666         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29667         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29668         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29669         1.7.5.
29670         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29671         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29672         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29673         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29674         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29675         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29676         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29677         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29678         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29679         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29680         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29681         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29682         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29683         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29684         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29685         Likewise.
29686         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29687         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29688         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29689         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29690         Likewise.
29691         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29692         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29693         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29694         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29695         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29696         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29697         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29698         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29699         Likewise.
29700         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29701         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29702         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29703         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29704         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29705         Likewise.
29706         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29707         Likewise.
29708         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29709         Likewise.
29710         * doc/glibc-functions/xdrrec_endofrecord.texi
29711         (xdrrec_endofrecord): Likewise.
29712         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29713         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29714         Likewise.
29715         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29716         Likewise.
29717
29718 2010-05-04  Jim Meyering  <meyering@redhat.com>
29719
29720         gendocs.sh: make its "-s FILE" option more useful
29721         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29722         $PACKAGE to reflect the probably-different basename of "FILE".
29723
29724 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29725
29726         bootstrap: don't ignore download_po_files failure
29727         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29728         failure.
29729
29730 2010-05-03  Jim Meyering  <meyering@redhat.com>
29731
29732         maint.mk: allow to pass options to gendocs.sh
29733         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29734         (gendocs_options_): New overridable variable.
29735
29736         gnu-web-doc-update: don't ignore configure or build failure
29737         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29738
29739         announce-gen: backslash-escape '@'s in --help output
29740         * build-aux/announce-gen: Fix syntax errors.
29741
29742         maint.mk, announce-gen: allow project-specific announcement mail headers
29743         * top/maint.mk (translation_project_): Define default.
29744         (announcement_Cc_, announcement_mail_headers_): Likewise.
29745         (announcement): Invoke announce-gen with new --mail-headers option.
29746         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29747
29748         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29749         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29750         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29751         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29752         line in the "err2" output file when running "make check" in verbose
29753         mode (i.e., with set -x enabled).
29754
29755 2010-05-03  Bruno Haible  <bruno@clisp.org>
29756
29757         wctob: Fix for weird platforms.
29758         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29759         argument value.
29760
29761 2010-05-03  Jim Meyering  <meyering@redhat.com>
29762
29763         maint.mk: prohibit unwarranted use of <strings.h>
29764         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29765         strings.h in a file that does not also use strcasecmp, strncasecmp,
29766         ffs or ffsll.
29767
29768         maint.mk: remove obsolete comments
29769         * top/maint.mk: Remove stale, commented-out rules.
29770
29771 2010-05-02  Bruno Haible  <bruno@clisp.org>
29772
29773         wcwidth: Declare also when it's aliased.
29774         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29775         macro.
29776
29777 2010-05-02  Bruno Haible  <bruno@clisp.org>
29778
29779         Fix regression from 2010-04-25.
29780         * gnulib-tool (func_modules_transitive_closure): Check the status of
29781         all modules, not only of the tests that are of the form foo-tests where
29782         foo is a module.
29783
29784 2010-05-02  Bruno Haible  <bruno@clisp.org>
29785
29786         wctob: Work around nasty Cygwin 1.7.2 bug.
29787         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29788         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29789
29790 2010-05-01  Bruno Haible  <bruno@clisp.org>
29791
29792         fpurge: Sharper test.
29793         * tests/test-fpurge.c (main): Add one more ftell check.
29794         * modules/fpurge-tests (Depends-on): Add ftell.
29795         Suggested by Eric Blake.
29796
29797 2010-05-01  Bruno Haible  <bruno@clisp.org>
29798
29799         ftello: Another test.
29800         * tests/test-ftello3.c: New file.
29801         * modules/ftello-tests (Files): Add it.
29802         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29803         MOSTLYCLEANFILES.
29804
29805         ftell: Another test.
29806         * tests/test-ftell3.c: New file.
29807         * modules/ftell-tests (Files): Add it.
29808         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29809         MOSTLYCLEANFILES.
29810
29811 2010-05-01  Bruno Haible  <bruno@clisp.org>
29812
29813         ftell, ftello: Work around Solaris bug.
29814         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29815         * lib/ftello.c: Include stdio-impl.h.
29816         (ftello): On Solaris, when _IOWRT is set, compute the result without
29817         looking at _IOREAD.
29818         * modules/ftello (Files): Add lib/stdio-impl.h.
29819         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29820         * doc/posix-functions/ftello.texi: Likewise.
29821         Reported by Eric Blake.
29822
29823 2010-05-01  Bruno Haible  <bruno@clisp.org>
29824
29825         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29826         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29827         the _IOWRT flag is also set.
29828
29829 2010-05-01  Bruno Haible  <bruno@clisp.org>
29830
29831         Fix doc about a HP-UX stdio bug.
29832         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29833         * doc/posix-functions/ftello.texi: Likewise.
29834
29835 2010-05-01  Bruno Haible  <bruno@clisp.org>
29836
29837         lseek test: Fix failure on Solaris.
29838         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29839         output.
29840
29841 2010-04-30  Jim Meyering  <meyering@redhat.com>
29842
29843         bootstrap: don't ignore failure to generate po*/Makevars
29844         * build-aux/bootstrap (with_gettext): Don't ignore failure
29845         to create po/Makevars or runtime-po/Makevars.
29846
29847 2010-04-29  Eric Blake  <eblake@redhat.com>
29848
29849         headers: relax license to LGPLv2+
29850         * modules/fcntl-h (License): Relax license.
29851         * modules/getopt-posix (License): Likewise.
29852         * modules/locale (License): Likewise.
29853         * modules/math (License): Likewise.
29854         * modules/pty (License): Likewise.
29855         * modules/sched (License): Likewise.
29856         * modules/search (License): Likewise.
29857         * modules/spawn (License): Likewise.
29858         * modules/stdarg (License): Likewise.
29859         * modules/sysexits (License): Likewise.
29860
29861 2010-04-29  Jim Meyering  <meyering@redhat.com>
29862
29863         inttypes: relax license to LGPLv2+
29864         * modules/inttypes (License): Relax license.
29865
29866 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29867
29868         * top/maint.mk (indent): Run twice to produce idempotent results.
29869
29870 2010-04-28  Bruno Haible  <bruno@clisp.org>
29871
29872         getdate: Generate getdate.c in the source directory.
29873         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29874         MOSTLYCLEANFILES.
29875         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29876
29877 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29878
29879         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29880         is not declared as a const *; avoid warnings in that case.
29881
29882 2010-04-28  Eric Blake  <eblake@redhat.com>
29883
29884         canonicalize-lgpl: avoid compiler warning
29885         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29886         declaration' / 'extraneous semicolon' warning with some compilers.
29887         Reported by Andreas Gruenbacher.
29888
29889 2010-04-28  Jim Meyering  <meyering@redhat.com>
29890
29891         init.sh: ensure a more reliable exit status when exiting via trap
29892         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29893         Inspired by patches from Dmitry V. Levin.
29894         Also trap on signal 3 (SIGQUIT).
29895
29896 2010-04-27  Bruno Haible  <bruno@clisp.org>
29897
29898         Update doc about utimes().
29899         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29900         'utimens' module.
29901         Reported by Andreas Gruenbacher <agruen@suse.de>.
29902
29903 2010-04-27  Eric Blake  <eblake@redhat.com>
29904
29905         full-read, full-write: relax license
29906         * modules/full-read (License): Drop to LGPLv2+.
29907         * modules/full-write (License): Likewise.
29908         * modules/safe-read (License): Likewise.
29909         * modules/safe-write (License): Likewise.
29910
29911         pthread: mention library for linking
29912         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29913
29914 2010-04-27  Jim Meyering  <meyering@redhat.com>
29915
29916         maint.mk: fix a bug introduced in last change
29917         * top/maint.mk (gl_assured_headers_): Now that all names are on
29918         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29919         is not anchored to end of word, it should be adequate.
29920
29921         maint.mk: avoid side-effect in latest syntax-check
29922         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29923         to run commands via $(shell...), and hence to incur cost only when
29924         the new rule is actually run.
29925
29926         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29927         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29928         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29929         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29930         (gl_assured_headers_, az_, AZ_): Define.
29931         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29932
29933 2010-04-26  Jim Meyering  <jim@meyering.net>
29934             Bruno Haible  <bruno@clisp.org>
29935
29936         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29937         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29938         Prompted by an exchange with Gilles Espinasse.
29939
29940 2010-04-26  Jim Meyering  <meyering@redhat.com>
29941
29942         git-version-gen: aesthetic tweak
29943         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29944         so that the command remains on a single line.
29945
29946 2010-04-26  Eric Blake  <eblake@redhat.com>
29947
29948         git-version-gen: allow use on EBCDIC hosts
29949         * build-aux/git-version-gen (dirty): Use literal rather than tying
29950         ourselves to ascii.
29951         Reported by Steve Goetze.
29952
29953 2010-04-25  Bruno Haible  <bruno@clisp.org>
29954
29955         netdb: Add support for GNULIB_POSIXCHECK.
29956         * lib/netdb.in.h: Include warn-on-use.h.
29957         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29958         functions are used when GNULIB_POSIXCHECK is defined and the
29959         getaddrinfo module is not in use.
29960         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29961         freeaddrinfo, gai_strerror, getnameinfo are declared.
29962         * modules/netdb (Depends-on): Add warn-on-use.
29963         (Makefile.am): Include warn-on-use.h in netdb.h.
29964
29965 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29966
29967         build: avoid "make check" failure without .git/ directory
29968         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29969         there is no .git/ directory.
29970
29971 2010-04-25  Bruno Haible  <bruno@clisp.org>
29972
29973         ptsname: Fix misuse of ttyname_r.
29974         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29975         of errno.
29976
29977 2010-04-25  Bruno Haible  <bruno@clisp.org>
29978
29979         ttyname_r: Make it work on Solaris 10.
29980         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29981         if the system function has the POSIX declaration. Test whether the
29982         function fails if the buffer is less than 128 bytes large.
29983         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29984         system's ttyname_r function. Provide a reasonably large buffer.
29985         * modules/ttyname_r (Depends-on): Add extensions.
29986         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29987
29988 2010-04-25  Bruno Haible  <bruno@clisp.org>
29989
29990         Use the 'extensions' module for some more functions on Solaris.
29991         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29992         module.
29993         * doc/posix-functions/ctime_r.texi: Likewise.
29994         * doc/posix-functions/getgrgid_r.texi: Likewise.
29995         * doc/posix-functions/getgrnam_r.texi: Likewise.
29996         * doc/posix-functions/getpwnam_r.texi: Likewise.
29997         * doc/posix-functions/getpwuid_r.texi: Likewise.
29998         * doc/posix-functions/readdir_r.texi: Likewise.
29999         * doc/posix-functions/sigwait.texi: Likewise.
30000         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
30001         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
30002
30003 2010-04-25  Bruno Haible  <bruno@clisp.org>
30004
30005         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
30006         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30007         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30008         * lib/ttyname_r.c: Include <limits.h>.
30009         (ttyname_r): Define using the system's ttyname_r function, if it exists
30010         and not on Solaris.
30011         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30012         set.
30013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30014         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30015         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30016         Reported by Simon Josefsson.
30017
30018 2010-04-25  Bruno Haible  <bruno@clisp.org>
30019
30020         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30021         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30022         * doc/posix-functions/ctime_r.texi: Likewise.
30023         * doc/posix-functions/getgrgid_r.texi: Likewise.
30024         * doc/posix-functions/getgrnam_r.texi: Likewise.
30025         * doc/posix-functions/getlogin_r.texi: Likewise.
30026         * doc/posix-functions/getpwnam_r.texi: Likewise.
30027         * doc/posix-functions/getpwuid_r.texi: Likewise.
30028         * doc/posix-functions/readdir_r.texi: Likewise.
30029         * doc/posix-functions/sigwait.texi: Likewise.
30030         * doc/posix-functions/ttyname_r.texi: Likewise.
30031         Reported by Simon Josefsson.
30032
30033 2010-04-25  Bruno Haible  <bruno@clisp.org>
30034
30035         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30036         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30037         also to --create-testdir.
30038         (func_acceptable): Don't consider the status of *-tests modules here.
30039         (func_modules_transitive_closure): Consider it here, before including a
30040         test module.
30041         (func_import, func_create_testdir): Set inc_all_direct_tests,
30042         inc_all_indirect_tests.
30043         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30044         --create-testdir and --create-megatestdir.
30045
30046 2010-04-25  Bruno Haible  <bruno@clisp.org>
30047
30048         gnulib-tool: Add --without-*-tests options.
30049         * gnulib-tool (func_usage): Document the --without-*-tests options.
30050         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30051         excl_unportable_tests): New variables.
30052         Fail if they are specified with --import or --update.
30053         (func_acceptable): Respect the excl_*_tests variables.
30054         (func_import): Set the excl_*_tests variables to empty.
30055
30056 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30057             Bruno Haible  <bruno@clisp.org>
30058
30059         Work around a MacOS X 10.4 bug with openpty.
30060         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30061         * tests/test-openpty.c (main): Close the master side explicitly.
30062
30063 2010-04-25  Bruno Haible  <bruno@clisp.org>
30064
30065         strnlen: Fix a C++ test error on MacOS X and Solaris.
30066         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30067         the function is not declared.
30068         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30069         Simon Josefsson.
30070
30071 2010-04-24  Bruno Haible  <bruno@clisp.org>
30072
30073         Avoid a gcc warning.
30074         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30075         of correct type for %08lx directive.
30076         Reported by Eric Blake.
30077
30078 2010-04-24  Bruno Haible  <bruno@clisp.org>
30079
30080         vasnprintf: Correct errno value in case of out-of-memory.
30081         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30082         or sprintf. Use the errno value from SNPRINTF or sprintf.
30083         Reported by Ian Beckwith <ianb@erislabs.net>.
30084
30085 2010-04-24  Bruno Haible  <bruno@clisp.org>
30086
30087         ansi-c++-opt: Find correct compiler when cross-compiling.
30088         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30089         AC_CHECK_PROGS.
30090         Reported by Simon Josefsson.
30091
30092 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30093
30094         vc-list-files: Add support for subversion
30095         * build-aux/vc-list-files: Use "svn list" to generate the list of
30096         files controlled by subversion.
30097
30098 2010-04-23  Jim Meyering  <meyering@redhat.com>
30099
30100         vc-list-files tests: convert to use init.sh
30101         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30102         path_prepend_.
30103         Use Exit, not exit.
30104         Use skip_ rather than open coding it.
30105         Remove trap set-up and compare definitions.
30106         * tests/test-vc-list-files-git.sh: Likewise.
30107         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30108
30109 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30110
30111         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30112         backup files.
30113
30114 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30115
30116         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30117
30118 2010-04-20  Eric Blake  <eblake@redhat.com>
30119
30120         tests: be robust to ignored SIGPIPE
30121         * tests/test-select-in.sh: Consume all output.
30122         * tests/test-lseek.sh: Check correct exit status, while avoiding
30123         EPIPE.
30124
30125 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30126             Bruno Haible  <bruno@clisp.org>
30127
30128         visibility: Don't use -fvisibility if it leads to a warning.
30129         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30130         yes, don't pretend that visibility works if it leads to a warning.
30131         Reported by Mike Gran <spk121@yahoo.com>.
30132
30133 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30134
30135         * build-aux/bootstrap: Use "git -h" for testing for supported options
30136         instead of "git --help".  The short-form option only shows a summary,
30137         and doesn't layout the full man page.  Grep for the full option name
30138         in the summary, too.
30139
30140 2010-04-19  Bruno Haible  <bruno@clisp.org>
30141
30142         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
30143         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
30144         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
30145         mention of RELOCATABLE_STRIP.
30146         Reported by Sylvain Beucler <beuc@beuc.net>.
30147
30148 2010-04-19  Bruno Haible  <bruno@clisp.org>
30149
30150         * lib/diffseq.h: Fix typo in comment.
30151         Reported by Eric Blake.
30152
30153 2010-04-19  Bruno Haible  <bruno@clisp.org>
30154
30155         ioctl: Move autoconf macro to a .m4 file.
30156         * m4/ioctl.m4: New file, extracted from modules/ioctl.
30157         * modules/ioctl (Files): Add it.
30158         (configure.ac): Simply invoke gl_FUNC_IOCTL.
30159         Reported by Ian Beckwith <ianb@erislabs.net>.
30160
30161 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
30162             Bruno Haible  <bruno@clisp.org>
30163
30164         diffseq: Accommodate use-case with abstract arrays.
30165         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
30166         is not defined.
30167         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
30168         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
30169
30170 2010-04-18  Bruno Haible  <bruno@clisp.org>
30171
30172         * doc/posix-headers/stdbool.texi: More precise wording.
30173
30174 2010-04-17  Jim Meyering  <meyering@redhat.com>
30175
30176         maint.mk: use gnu-style indentation in an embedded perl script
30177         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
30178         Rename variable: s/two/last_two_bytes/
30179
30180 2010-04-16  Eric Blake  <eblake@redhat.com>
30181
30182         test-stdbool: skip test that fails with Solaris CC
30183         * tests/test-stdbool.c (f): Skip test that causes compilation
30184         error under buggy C++ compiler.
30185         * lib/stdbool.in.h: Document the limitation.
30186         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30187
30188         setenv: allow compilation with C++
30189         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30190         register keyword.
30191
30192         stdint: allow test to pass with C++
30193         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30194
30195         getopt: allow compilation with C++
30196         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30197         struct.
30198         * lib/getopt.c (_getopt_internal_r): Use correct type.
30199         Reported by Dagobert Michelson, via Joel E. Denny.
30200
30201 2010-04-16  Bruno Haible  <bruno@clisp.org>
30202
30203         Override netdb.h always.
30204         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30205         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30206         Reported by Ludovic Courtès <ludo@gnu.org>.
30207
30208 2010-04-15  Bruno Haible  <bruno@clisp.org>
30209
30210         openpty: Fix mistake from 2010-03-21.
30211         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30212         Reported by Simon Josefsson.
30213
30214 2010-04-15  Eric Blake  <eblake@redhat.com>
30215
30216         test-forkpty: fix expected signature
30217         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30218         Reported by Simon Josefsson.
30219
30220 2010-04-15  Jim Meyering  <meyering@redhat.com>
30221
30222         maint.mk: texinfo_suffix_re_: correct the default regexp
30223         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30224
30225         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30226         make it configurable via texinfo_suffix_re_.
30227
30228 2010-04-14  Eric Blake  <eblake@redhat.com>
30229
30230         strtok_r: relax license to LGPLv2+
30231         * modules/strtok_r (License): Relax license.
30232         Reported by Matthias Bolte.
30233
30234 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30235
30236         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30237         version 1.4.4 by default instead of requiring the libgcrypt
30238         version used during build.  This makes it possible to use the
30239         application with older but still binary compatible libgcrypt
30240         versions.
30241
30242 2010-04-13  Eric Blake  <eblake@redhat.com>
30243
30244         getopt-gnu: match recent glibc fixes and posix ruling
30245         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
30246         '+' handling, when requesting extensions.
30247         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
30248         'W;' handling.
30249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
30250         * doc/posix-functions/getopt.texi (getopt): Document this.
30251         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30252         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30253         Likewise.
30254
30255         getopt: merge bug fixes from glibc
30256         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30257         diagnostics.  Honor '+:' correctly.  Reject ';'.
30258
30259         getopt-posix: detect MacOS bug
30260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30261         optind when missing a required argument.
30262         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30263         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30264         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30265         Likewise.
30266
30267         getopt-posix: avoid spurious failure on Solaris
30268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30269         an indicator that setting optind=1 is sufficient for reset.
30270
30271         getopt-posix: avoid spurious failure on FreeBSD
30272         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30273         in POSIX mode, since the m4 test uses it.
30274
30275         gnulib-tool: silence warning on BSD sh
30276         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30277
30278 2010-04-13  Jim Meyering  <meyering@redhat.com>
30279
30280         doc: users.txt: GNU patch now uses gnulib
30281         * users.txt: Add patch.
30282
30283 2010-04-12  Jim Meyering  <meyering@redhat.com>
30284
30285         maint.mk: generate more concise timing data for syntax-check rules
30286         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30287         " done" from each line that reports a syntax-check test duration.
30288
30289 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30290
30291         git-version-gen: use "git update-index..." rather than "git status"
30292         * build-aux/git-version-gen: Use git update-index --refresh, not
30293         "git status".  With some versions of git, "git status" would fail
30294         to update the index and result in an unwarranted "-dirty" suffix.
30295
30296 2010-04-11  Jim Meyering  <meyering@redhat.com>
30297
30298         openat: correct formatting (no semantic change)
30299         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30300         Suggested by Bruno Haible.
30301
30302 2010-04-11  Bruno Haible  <bruno@clisp.org>
30303
30304         Stricter declaration checking in testdirs.
30305         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30306         If for_tests is true, augment AM_CPPFLAGS to define
30307         GNULIB_STRICT_CHECKING.
30308         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30309         GNULIB_STRICT_CHECKING is defined, verify that the function is
30310         declared.
30311
30312 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30313             Bruno Haible  <bruno@clisp.org>
30314
30315         libunistring: Improve configure output.
30316         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30317         Don't say "consider installing GNU libunistring" when checking again
30318         with libiconv.
30319
30320 2010-04-11  Bruno Haible  <bruno@clisp.org>
30321
30322         libunistring: Correct value of $LTLIBUNISTRING.
30323         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30324         correct the value of $LTLIBUNISTRING.
30325
30326 2010-04-11  Bruno Haible  <bruno@clisp.org>
30327
30328         havelib: Add static libraries to LIBS in the right order.
30329         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30330         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30331
30332 2010-04-11  Bruno Haible  <bruno@clisp.org>
30333
30334         libunistring: Detect libunistring also when it depends on libiconv.
30335         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30336         the second AC_LIB_HAVE_LINKFLAGS invocation.
30337
30338 2010-04-11  James Youngman  <jay@gnu.org>
30339
30340         close-stream: declare local scalars to be "const"
30341         * lib/close-stream.c (close_stream): Make boolean variables const
30342         to document the fact that we set but do not change them.
30343
30344 2010-04-11  Bruno Haible  <bruno@clisp.org>
30345
30346         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30347
30348 2010-04-11  Jim Meyering  <meyering@redhat.com>
30349
30350         maint.mk: don't include dist-check.mk
30351         * top/maint.mk: Remove bogus include directive.
30352
30353         maint.mk: improve empty-line-at-EOF check
30354         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30355         solution, rather than tail+Perl-based one.  The latter would read
30356         a few kilobytes from the end of each file, and did not handle empty
30357         files properly.
30358
30359         maint.mk: print the elapsed time for each syntax-check rule
30360         * top/maint.mk (sc_m_rules_): Save start time in a file.
30361         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30362         (local-check): Interpose the .z rules
30363
30364 2010-04-11  Jim Meyering  <meyering@redhat.com>
30365
30366         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30367         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30368         empty file with one that ends in an empty line.
30369
30370 2010-04-10  Bruno Haible  <bruno@clisp.org>
30371
30372         mkdir: Make it work on mingw64.
30373         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30374         * lib/mkdir.c: Update comment.
30375         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
30376
30377 2010-04-10  Bruno Haible  <bruno@clisp.org>
30378
30379         Don't override improved macro from newer autoconf.
30380         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30381         autoconf >= 2.62.
30382         Reported by Joel E. Denny <jdenny@clemson.edu>.
30383
30384 2010-04-10  Jim Meyering  <meyering@redhat.com>
30385
30386         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30387         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30388
30389         maint.mk: correct a diagnostic
30390         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30391         in diagnostic; now use $prohibit.
30392
30393 2010-04-10  Bruno Haible  <address@hidden>
30394
30395         fchownat: Fix a C++ test error on Solaris 8.
30396         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30397         the function does not exist.
30398
30399 2010-04-10  Bruno Haible  <bruno@clisp.org>
30400
30401         vasnprintf: Add more tests.
30402         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30403         (test_function): Test converting an invalid wide string.
30404
30405         vasnprintf: Correct handling of unconvertible wide string arguments.
30406         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30407         VASNPRINTF.
30408         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30409         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30410         smaller than the expected maximum need for the directive. Set errno to
30411         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30412         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30413         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30414         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30415         * modules/vasnprintf (Files): Add m4/printf.m4.
30416         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30417
30418 2010-04-10  Bruno Haible  <bruno@clisp.org>
30419
30420         vasnprintf: Fix crash in %ls directive.
30421         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30422         string is passed as argument to %ls, with no precision and no width.
30423         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30424
30425 2010-04-10  Bruno Haible  <bruno@clisp.org>
30426
30427         vasnprintf: Fix multiple test failures on mingw.
30428         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30429         _snprintf, or snwprintf, not _snwprintf.
30430
30431 2010-04-10  Bruno Haible  <bruno@clisp.org>
30432
30433         write: Fix a C++ test error on mingw.
30434         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30435
30436 2010-04-10  Bruno Haible  <bruno@clisp.org>
30437
30438         vasnprintf test: Reduce code duplication.
30439         * tests/test-vasnprintf.c (test_function): New function, extracted from
30440         test_vasnprintf.
30441         (test_vasnprintf, test_asnprintf): Invoke it.
30442
30443 2010-04-10  Bruno Haible  <bruno@clisp.org>
30444
30445         strnlen: Fix warning in C++ mode on MacOS X.
30446         * lib/string.in.h (strnlen): Use the modern idiom.
30447         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30448         defining strnlen as a macro already in <config.h>.
30449         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30450         REPLACE_STRNLEN.
30451         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30452         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30453
30454 2010-04-08  James Youngman  <jay@gnu.org>
30455
30456         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30457         the example.
30458
30459 2010-04-09  Jim Meyering  <meyering@redhat.com>
30460
30461         maint.mk: print better diagnostic when there is no $(_hv_file)
30462         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30463         announce that when $(_hv_file) (aka help-version) does not exist.
30464
30465         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30466         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30467         not try to interpret its random input bytes.  Jarno Rajahalme reported
30468         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30469         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30470         (mktempd_): Likewise, just in case.
30471
30472         ftruncate: add two years to projected module removal date: 2012
30473         * m4/ftruncate.m4: Adjust comments.
30474
30475         ftruncate: mark module as obsolete; even MinGW provides it, now
30476         * modules/ftruncate (Status): Obsolete.
30477         (Notice): Say that.
30478         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30479         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30480
30481 2010-04-08  Bruno Haible  <bruno@clisp.org>
30482
30483         Fix side effects from tests-related modules.
30484         * modules/dprintf-posix (Comment): New section.
30485         * modules/fprintf-posix (Comment): Likewise.
30486         * modules/obstack-printf-posix (Comment): Likewise.
30487         * modules/printf-posix (Comment): Likewise.
30488         * modules/snprintf-posix (Comment): Likewise.
30489         * modules/sprintf-posix (Comment): Likewise.
30490         * modules/vasnprintf-posix (Comment): Likewise.
30491         * modules/vasprintf-posix (Comment): Likewise.
30492         * modules/vdprintf-posix (Comment): Likewise.
30493         * modules/vfprintf-posix (Comment): Likewise.
30494         * modules/vprintf-posix (Comment): Likewise.
30495         * modules/vsnprintf-posix (Comment): Likewise.
30496         * modules/vsprintf-posix (Comment): Likewise.
30497         * modules/xprintf-posix (Comment): Likewise.
30498         * modules/xvasprintf-posix (Comment): Likewise.
30499         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30500         * modules/floorf-tests (Depends-on): Likewise.
30501         * modules/round-tests (Depends-on): Likewise.
30502         * modules/roundf-tests (Depends-on): Likewise.
30503         * modules/trunc-tests (Depends-on): Likewise.
30504         * modules/truncf-tests (Depends-on): Likewise.
30505         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30506         'fprintf-posix' module is not present.
30507         * tests/test-floorf2.c (check): Likewise.
30508         * tests/test-trunc2.c (check): Likewise.
30509         * tests/test-truncf2.c (check): Likewise.
30510         * tests/test-round2.c (equal): Likewise.
30511         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30512
30513 2010-04-07  Karl Berry  <karl@gnu.org>
30514
30515         * config/srclist.txt,
30516         * config/srclistvars.sh,
30517         * config/srclist-update: doc fixes.
30518
30519 2010-04-07  Jim Meyering  <meyering@redhat.com>
30520
30521         maint.mk: add a PATH crosschecking syntax-check rule
30522         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30523         Useful if you use a test like the one in help-version (coreutils,
30524         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30525         printed by prog --version.
30526
30527 2010-04-06  Bruno Haible  <bruno@clisp.org>
30528
30529         Fix link error on mingw.
30530         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30531         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30532
30533 2010-04-06  Bruno Haible  <bruno@clisp.org>
30534
30535         Assume rmdir exists.
30536         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30537
30538 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30539
30540         doc: update users.txt
30541         * users.txt: Add gcal.
30542
30543 2010-04-06  Jim Meyering  <meyering@redhat.com>
30544
30545         init.sh: simply unset TMPDIR rather than risking env -i
30546         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30547         although it probably works fine on all Unix-based systems, some
30548         systems (Cygwin?) cannot tolerate a totally cleared environment.
30549         Suggestion from Eric Blake.
30550
30551 2010-04-06  Jim Meyering  <meyering@redhat.com>
30552
30553         init.sh: portability fix: use env's POSIX-specified -i option not -u
30554         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30555         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30556
30557 2010-04-05  Bruno Haible  <bruno@clisp.org>
30558
30559         btowc: Work around Cygwin 1.7.2 bug.
30560         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30561         does not map NUL to 0.
30562         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30563
30564 2010-04-05  Bruno Haible  <bruno@clisp.org>
30565
30566         Make the multithread modules work on Cygwin 1.7.2.
30567         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30568         imported symbols can be declared weak, so that it returns "no" on
30569         Cygwin 1.7.2.
30570
30571 2010-04-05  Bruno Haible  <bruno@clisp.org>
30572
30573         Use the module 'strncat'.
30574         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30575
30576         Tests for module 'strncat'.
30577         * modules/strncat-tests: New file.
30578         * tests/test-strncat.c: New file.
30579
30580         New module 'strncat'.
30581         * lib/string.in.h (strncat): New declaration.
30582         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30583         * m4/strncat.m4: New file, based on m4/memchr.m4.
30584         * modules/strncat: New file.
30585         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30586         is declared.
30587         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30588         REPLACE_STRNCAT.
30589         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30590         REPLACE_STRNCAT.
30591         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30592         module.
30593         * tests/test-string-c++.cc: Check signature of strncat.
30594
30595 2010-04-05  Jim Meyering  <meyering@redhat.com>
30596
30597         xstrtoumax-tests: convert to use init.sh
30598         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30599         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30600         Use Exit, not exit.
30601         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30602
30603         xstrtoimax-tests: convert to use init.sh
30604         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30605         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30606         Use Exit, not exit.
30607         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30608
30609 2010-04-05  Bruno Haible  <bruno@clisp.org>
30610
30611         sys_socket: Avoid #define replacements in C++ mode.
30612         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30613         warning to the function if possible, rather than #defining the symbol
30614         to a dysfunctional alias.
30615
30616 2010-04-05  Bruno Haible  <bruno@clisp.org>
30617
30618         fseeko: Fix C++ test error on mingw.
30619         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30620         gl_FUNC_FSEEKO.
30621         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30622         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30623         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30624         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30625
30626 2010-04-05  Bruno Haible  <bruno@clisp.org>
30627
30628         duplocale: Improve test output.
30629         * tests/test-duplocale.c (main): Print reason for skipped test.
30630
30631 2010-04-05  Bruno Haible  <bruno@clisp.org>
30632
30633         Assume rmdir exists.
30634         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30635         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30636
30637 2010-04-05  Bruno Haible  <bruno@clisp.org>
30638
30639         Fix link error on Solaris 8 with cc.
30640         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30641
30642 2010-04-05  Bruno Haible  <bruno@clisp.org>
30643
30644         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30645         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30646
30647 2010-04-05  Bruno Haible  <bruno@clisp.org>
30648
30649         vasprintf: Update documentation.
30650         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30651
30652 2010-04-05  Bruno Haible  <bruno@clisp.org>
30653
30654         ptsname: Improve test.
30655         * tests/test-ptsname.c (main): Also try the various master names of BSD
30656         systems.
30657
30658 2010-04-05  Bruno Haible  <bruno@clisp.org>
30659
30660         memchr: Avoid a possible C++ test error.
30661         * lib/string.in.h (memchr): Provide declaration if function is missing.
30662         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30663         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30665         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30666
30667 2010-04-05  Bruno Haible  <bruno@clisp.org>
30668
30669         strtok_r: Improve idiom.
30670         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30671         AC_LIBOBJ is used.
30672
30673 2010-04-05  Bruno Haible  <bruno@clisp.org>
30674
30675         strdup: Improve idiom.
30676         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30677         AC_LIBOBJ is used.
30678         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30679         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30680         when AC_LIBOBJ is used.
30681
30682 2010-04-05  Bruno Haible  <bruno@clisp.org>
30683
30684         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30685         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30686         don't set REPLACE_MBSINIT to 1.
30687         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30688         don't set REPLACE_MBRTOWC to 1.
30689         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30690         exist, don't set REPLACE_MBSRTOWCS to 1.
30691         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30692         exist, don't set REPLACE_MBSNRTOWCS to 1.
30693         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30694         don't set REPLACE_WCRTOMB to 1.
30695         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30696         exist, don't set REPLACE_WCSRTOMBS to 1.
30697         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30698         exist, don't set REPLACE_WCSNRTOMBS to 1.
30699
30700 2010-04-05  Bruno Haible  <bruno@clisp.org>
30701
30702         ldexpl: Improve idiom.
30703         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30704         make sure to set HAVE_DECL_LDEXPL to 0.
30705
30706 2010-04-05  Jim Meyering  <meyering@redhat.com>
30707
30708         xstrtol-tests: convert to use init.sh
30709         * modules/xstrtol-tests (Files): Add tests/init.sh.
30710         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30711         Use Exit, not exit.
30712         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30713
30714         atexit-tests: convert to use init.sh
30715         * modules/atexit-tests (Files): Add tests/init.sh.
30716         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30717         Use Exit, not exit.
30718         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30719
30720         init.sh: fix typo
30721         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30722
30723         init.sh: make it easier for a test script to write to the tty, ...
30724         when using automake's parallel-tests mode.
30725         * tests/init.sh (stderr_fileno_): Define overridable variable.
30726         (warn_): New function, to use it.
30727         (fail_, skip_, framework_failure_): Use warn_.
30728
30729 2010-04-04  Bruno Haible  <bruno@clisp.org>
30730
30731         btowc: Avoid warning.
30732         * lib/btowc.c: Include <stdlib.h>.
30733         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30734
30735 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30736             Bruno Haible  <bruno@clisp.org>
30737
30738         wchar: Port to NetBSD 1.5.
30739         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30740         * lib/wctype.in.h (WEOF): Likewise.
30741
30742 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30743             Bruno Haible  <bruno@clisp.org>
30744
30745         Port extended stdio to NetBSD 1.5.
30746         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30747         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30748         older.
30749
30750 2010-04-04  Bruno Haible  <bruno@clisp.org>
30751
30752         string: Remove unused substitution.
30753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30754         HAVE_DECL_STRERROR.
30755         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30756
30757 2010-04-04  Bruno Haible  <bruno@clisp.org>
30758
30759         strtod: Avoid a possible C++ test error.
30760         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30761         set REPLACE_STRTOD.
30762
30763 2010-04-04  Bruno Haible  <bruno@clisp.org>
30764
30765         strerror: Update documentation.
30766         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30767
30768 2010-04-04  Bruno Haible  <bruno@clisp.org>
30769
30770         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30771         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30772         _GL_CXXALIAS_SYS_CAST.
30773
30774 2010-04-04  Bruno Haible  <bruno@clisp.org>
30775
30776         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30777         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30778         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30779         REPLACE_FREXPL to 1.
30780         * doc/posix-functions/frexpl.texi: Update documentation.
30781
30782 2010-04-04  Bruno Haible  <bruno@clisp.org>
30783
30784         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30785         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30786
30787 2010-04-04  Bruno Haible  <bruno@clisp.org>
30788
30789         Implement nanosleep for native Windows.
30790         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30791
30792 2010-04-04  Bruno Haible  <bruno@clisp.org>
30793
30794         math: Fix some C++ test errors on Solaris 8.
30795         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30796
30797 2010-04-04  Bruno Haible  <bruno@clisp.org>
30798
30799         math: Fix some C++ test errors on Cygwin.
30800         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30801         truncl): Provide declaration if the system does not have it.
30802         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30803         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30804         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30805         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30806         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30807         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30808         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30809         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30810         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30811         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30812         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30813         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30814         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30815         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30816         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30817         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30819         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30820         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30821         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30822         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30823         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30824
30825 2010-04-04  Bruno Haible  <bruno@clisp.org>
30826
30827         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30828         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30829         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30830         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30831         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30832         * m4/isinf.m4 (gl_ISINF): Likewise.
30833         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30834
30835 2010-04-04  Bruno Haible  <bruno@clisp.org>
30836
30837         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30838         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30839
30840 2010-04-04  Bruno Haible  <bruno@clisp.org>
30841
30842         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30843         * modules/tmpfile (configure.ac): Update.
30844
30845         tmpfile: Fix C++ test error on mingw.
30846         * lib/stdio.in.h (tmpfile): New declaration.
30847         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30848         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30849         * modules/tmpfile (Depends-on): Add stdio.
30850         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30851         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30852         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30853         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30854         REPLACE_TMPFILE.
30855         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30856
30857 2010-04-04  Bruno Haible  <bruno@clisp.org>
30858
30859         ioctl: Fix C++ test error on mingw.
30860         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30861         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30862         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30863
30864 2010-04-03  Bruno Haible  <bruno@clisp.org>
30865
30866         wcwidth: Fix C++ test error on mingw.
30867         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30868         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30869         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30870
30871 2010-04-03  Bruno Haible  <bruno@clisp.org>
30872
30873         nanosleep: Fix C++ test error on mingw.
30874         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30875         * lib/time.in.h (nanosleep): Use modern idiom.
30876         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30877         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30878         REPLACE_NANOSLEEP to 1.
30879         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30880         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30881
30882 2010-04-03  Bruno Haible  <bruno@clisp.org>
30883
30884         strptime: Fix C++ test error on mingw.
30885         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30886         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30887         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30888         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30889         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30890         not REPLACE_STRPTIME.
30891         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30892         REPLACE_STRPTIME.
30893
30894 2010-04-03  Bruno Haible  <bruno@clisp.org>
30895
30896         timegm: Fix C++ test error on mingw.
30897         * lib/time.in.h (timegm): Use modern idiom.
30898         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30899         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30900         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30901         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30902
30903 2010-04-03  Bruno Haible  <bruno@clisp.org>
30904
30905         timegm: Assume declaration if function exists.
30906         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30907         if it exists. Don't clobber ac_cv_func_timegm.
30908
30909 2010-04-03  Bruno Haible  <bruno@clisp.org>
30910
30911         time_r: Fix C++ test error on mingw.
30912         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30913         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30914         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30915         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30916         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30917
30918 2010-04-03  Bruno Haible  <bruno@clisp.org>
30919
30920         time_r: Minor updates.
30921         * modules/time_r (Description): Mention the provided functions.
30922         * lib/time_r.c: Don't include <string.h>.
30923         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30924         * doc/posix-functions/localtime_r.texi: Likewise.
30925
30926 2010-04-03  Bruno Haible  <bruno@clisp.org>
30927
30928         time: Fix regression introduced on 2010-03-08.
30929         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30930         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30931
30932 2010-04-03  Jim Meyering  <meyering@redhat.com>
30933
30934         maint.mk: don't silently disable project-specific syntax-check rules
30935         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30936         that they need to convert their project-specific syntax-check rules
30937         to use the new _sc_search_regexp.
30938
30939 2010-04-03  Bruno Haible  <bruno@clisp.org>
30940
30941         fchdir: Fix regression introduced on 2010-03-08.
30942         * lib/unistd.in.h (fchdir): Fix declaration.
30943         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30945         REPLACE_FCHDIR.
30946         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30947         REPLACE_FCHDIR.
30948
30949 2010-04-03  Bruno Haible  <bruno@clisp.org>
30950
30951         getpagesize: Fix C++ test error on mingw.
30952         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30953         system does not declare the function.
30954         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30955         declared.
30956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30957         HAVE_DECL_GETPAGESIZE.
30958         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30959
30960 2010-04-03  Bruno Haible  <bruno@clisp.org>
30961
30962         stdio: Make C++ tests work on mingw.
30963         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30964         does not declare the function.
30965
30966 2010-04-03  Bruno Haible  <bruno@clisp.org>
30967
30968         ftello: Fix C++ test error on mingw.
30969         * lib/stdio.in.h (ftello): Use modern idiom.
30970         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30971         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30972         is missing and that it needs to be replaced.
30973         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30975         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30976
30977 2010-04-03  Bruno Haible  <bruno@clisp.org>
30978
30979         fseeko: Fix C++ test error on mingw.
30980         * lib/stdio.in.h (fseeko): Use modern idiom.
30981         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30982         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30983         is missing and that it needs to be replaced.
30984         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30986         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30987
30988 2010-04-03  Bruno Haible  <bruno@clisp.org>
30989
30990         mkstemp: Fix C++ test error on mingw.
30991         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30992         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30993         function is missing and that it needs to be replaced.
30994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30995         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30996
30997 2010-04-03  Bruno Haible  <bruno@clisp.org>
30998
30999         stpncpy: Fix C++ test error on mingw.
31000         * lib/string.in.h (stpncpy): Use modern idiom.
31001         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
31002         function is missing and that it needs to be replaced.
31003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31004         REPLACE_STPNCPY.
31005         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
31006
31007 2010-04-03  Bruno Haible  <bruno@clisp.org>
31008
31009         sys_stat: Fix C++ test error on mingw.
31010         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31011         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31012
31013 2010-04-03  Bruno Haible  <bruno@clisp.org>
31014
31015         pty: Update doc.
31016         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31017
31018 2010-04-03  Bruno Haible  <bruno@clisp.org>
31019
31020         unistd: Fix C++ test error on mingw.
31021         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31022
31023 2010-04-03  Bruno Haible  <bruno@clisp.org>
31024
31025         Update doc regarding mingw.
31026         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31027         * doc/glibc-functions/login_tty.texi: Likewise.
31028         * doc/glibc-functions/forkpty.texi: Likewise.
31029
31030 2010-04-03  Bruno Haible  <bruno@clisp.org>
31031
31032         stdlib: Avoid compilation failure of c-strtold on mingw.
31033         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31034
31035 2010-04-03  Bruno Haible  <bruno@clisp.org>
31036
31037         locale: Make C++ tests work on Cygwin and mingw.
31038         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31039         cannot provide the function.
31040         Reported by Simon Josefsson.
31041
31042 2010-04-03  Bruno Haible  <bruno@clisp.org>
31043
31044         localename: Port to MacOS X 10.6.
31045         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31046         memory layout of the locales in MacOS X 10.6 as well.
31047         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31048
31049 2010-04-02  Bruno Haible  <bruno@clisp.org>
31050
31051         gnulib-tool: Ensure that long-running tests are executed last.
31052         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31053         running tests after the one for the other tests.
31054
31055 2010-04-02  Bruno Haible  <bruno@clisp.org>
31056
31057         gnulib-tool: Ensure the tests in the main directory are executed first.
31058         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31059         start with the current directory.
31060
31061 2010-04-02  Bruno Haible  <bruno@clisp.org>
31062
31063         Tests for module 'havelib', moved here from GNU gettext.
31064         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31065         modifications.
31066         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31067         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31068         with modifications.
31069         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31070         modifications.
31071         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31072         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31073         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31074         with modifications.
31075         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31076         with modifications.
31077         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31078         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31079         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31080         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31081         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31082         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31083         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31084         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31085         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31086         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31087         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31088         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31089         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31090         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31091         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31092         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31093         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31094         with modifications.
31095         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31096         with modifications.
31097         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31098         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31099         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31100         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31101         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31102         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31103         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31104         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31105         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31106         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31107         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31108         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31109         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31110         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31111         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31112         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31113         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31114         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31115         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31116         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31117         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31118         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31119         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31120         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31121         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31122         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31123         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31124         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31125         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31126         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31127         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31128         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31129         * tests/havelib/rpathx/rpathx.c: New file, from
31130         gettext/autoconf-lib-link.
31131         * tests/havelib/rpathx/Makefile.am: New file, from
31132         gettext/autoconf-lib-link.
31133         * tests/havelib/rpathx/configure.ac: New file, from
31134         gettext/autoconf-lib-link with modifications.
31135         * tests/havelib/rpathy/rpathy.c: New file, from
31136         gettext/autoconf-lib-link.
31137         * tests/havelib/rpathy/Makefile.am: New file, from
31138         gettext/autoconf-lib-link.
31139         * tests/havelib/rpathy/configure.ac: New file, from
31140         gettext/autoconf-lib-link with modifications.
31141         * tests/havelib/rpathz/rpathz.c: New file, from
31142         gettext/autoconf-lib-link.
31143         * tests/havelib/rpathz/Makefile.am: New file, from
31144         gettext/autoconf-lib-link.
31145         * tests/havelib/rpathz/configure.ac: New file, from
31146         gettext/autoconf-lib-link with modifications.
31147         * tests/havelib/rpathlx/usex.c: New file, from
31148         gettext/autoconf-lib-link.
31149         * tests/havelib/rpathlx/Makefile.am: New file, from
31150         gettext/autoconf-lib-link.
31151         * tests/havelib/rpathlx/configure.ac: New file, from
31152         gettext/autoconf-lib-link with modifications.
31153         * tests/havelib/rpathly/usey.c: New file, from
31154         gettext/autoconf-lib-link.
31155         * tests/havelib/rpathly/Makefile.am: New file, from
31156         gettext/autoconf-lib-link.
31157         * tests/havelib/rpathly/configure.ac: New file, from
31158         gettext/autoconf-lib-link with modifications.
31159         * tests/havelib/rpathlz/usez.c: New file, from
31160         gettext/autoconf-lib-link.
31161         * tests/havelib/rpathlz/Makefile.am: New file, from
31162         gettext/autoconf-lib-link.
31163         * tests/havelib/rpathlz/configure.ac: New file, from
31164         gettext/autoconf-lib-link with modifications.
31165         * tests/havelib/rpathlyx/usey.c: New file, from
31166         gettext/autoconf-lib-link.
31167         * tests/havelib/rpathlyx/Makefile.am: New file, from
31168         gettext/autoconf-lib-link.
31169         * tests/havelib/rpathlyx/configure.ac: New file, from
31170         gettext/autoconf-lib-link with modifications.
31171         * tests/havelib/rpathlzyx/usez.c: New file, from
31172         gettext/autoconf-lib-link.
31173         * tests/havelib/rpathlzyx/Makefile.am: New file, from
31174         gettext/autoconf-lib-link.
31175         * tests/havelib/rpathlzyx/configure.ac: New file, from
31176         gettext/autoconf-lib-link with modifications.
31177         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
31178         with modifications.
31179
31180 2010-04-02  Bruno Haible  <bruno@clisp.org>
31181
31182         gnulib-tool: Create distributed built sources also for the tests.
31183         * gnulib-tool (func_create_testdir): Also generate distributed built
31184         sources in the tests directory.
31185
31186 2010-04-02  Bruno Haible  <bruno@clisp.org>
31187
31188         gnulib-tool: Obey user's environment variables.
31189         * gnulib-tool (func_create_testdir): When creating built sources,
31190         respect the environment variables for autoconf, automake, etc. given by
31191         the user.
31192
31193 2010-04-02  Bruno Haible  <bruno@clisp.org>
31194
31195         gnulib-tool: Provide the value of --m4-base to modules.
31196         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31197         of gl_m4_base.
31198
31199 2010-04-02  Eric Blake  <eblake@redhat.com>
31200
31201         maint.mk: fix some fallout
31202         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31203         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31204
31205 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31206
31207         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31208         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31209         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31210         (sc_cast_of_x_alloc_return_value): Likewise.
31211         (sc_cast_of_alloca_return_value): Likewise.
31212         (sc_space_tab): Likewise.
31213         (sc_prohibit_atoi_atof): Likewise.
31214         (sc_prohibit_magic_number_exit): Likewise.
31215         (sc_error_exit_success): Likewise.
31216         (sc_file_system): Likewise.
31217         (sc_prohibit_have_config_h): Likewise.
31218         (sc_require_config_h): Likewise.
31219         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31220         (sc_obsolete_symbols): Likewise.
31221         (sc_changelog): Likewise.
31222         (sc_program_name): Likewise.
31223         (sc_the_the): Likewise.
31224         (sc_trailing_blank): Likewise.
31225         (sc_two_space_separator_in_usage): Likewise.
31226         (sc_useless_cpp_parens): Likewise.
31227         (sc_GPL_version): Likewise.
31228         (sc_GFDL_version): Likewise.
31229         (sc_texinfo_acronym): Likewise.
31230         (sc_prohibit_cvs_keyword): Likewise.
31231         (sc_prohibit_stat_st_blocks): Likewise.
31232         (sc_prohibit_S_IS_definition): Likewise.
31233         (sc_redundant_const): Likewise.
31234         (sc_makefile_TAB_only_indentation): Likewise.
31235         (sc_m4_quote_check): Likewise.
31236         (sc_makefile_path_separator_check): Likewise.
31237         (sc_copyright_check): Likewise.
31238         (sc_Wundef_boolean): Likewise.
31239         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31240
31241         maint.mk: match 0 or more whitespace-before-function-call '('
31242         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
31243         that have zero or two-and-more spaces between the function name
31244         and the open parenthesis.
31245         (sc_error_message_warn_fatal): Likewise.
31246         (sc_error_message_uppercase): Likewise.
31247         (sc_error_message_period): Likewise.
31248
31249 2010-03-31  Eric Blake  <eblake@redhat.com>
31250
31251         maint.mk: check for [ as well as test
31252         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
31253         Based on a libvirt report by Matthias Bolte.
31254
31255         gnumakefile: don't squelch _version output
31256         * top/GNUmakefile (_version): Create one-shot dependency rather
31257         than using $(shell) when version must be regenerated.
31258         (_autoreconf): Run verbosely, by default.
31259
31260         sys_time: avoid compiler warnings
31261         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31262         unconditional, fixing regression from 2010-03-29.
31263         Reported by Simon Josefsson.
31264
31265 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31266
31267         maint.mk: s/_header_without_use/_sc_header_without_use/
31268         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31269         (sc_prohibit_assert_without_use): Use the new name.
31270         (sc_prohibit_close_stream_without_use): Likewise.
31271         (sc_prohibit_getopt_without_use): Likewise.
31272         (sc_prohibit_quotearg_without_use): Likewise.
31273         (sc_prohibit_quote_without_use): Likewise.
31274         (sc_prohibit_long_options_without_use): Likewise.
31275         (sc_prohibit_inttostr_without_use): Likewise.
31276         (sc_prohibit_ignore_value_without_use): Likewise.
31277         (sc_prohibit_error_without_use): Likewise.
31278         (sc_prohibit_xalloc_without_use): Likewise.
31279         (sc_prohibit_hash_without_use): Likewise.
31280         (sc_prohibit_hash_pjw_without_use): Likewise.
31281         (sc_prohibit_safe_read_without_use): Likewise.
31282         (sc_prohibit_argmatch_without_use): Likewise.
31283         (sc_prohibit_canonicalize_without_use): Likewise.
31284         (sc_prohibit_root_dev_ino_without_use): Likewise.
31285         (sc_prohibit_openat_without_use): Likewise.
31286         (sc_prohibit_c_ctype_without_use): Likewise.
31287         (sc_prohibit_signal_without_use): Likewise.
31288         (sc_prohibit_intprops_without_use): Likewise.
31289
31290 2010-03-30  Eric Blake  <eblake@redhat.com>
31291
31292         maint: improve module indicators
31293         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31294         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31295         columns, and avoid extra macro expansion.
31296
31297         fdopendir: work around FreeBSD bug
31298         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31299         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31300         * modules/dirent (Makefile.am): Substitute it.
31301         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31302         declaration.
31303         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31304         fix.
31305         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31306
31307 2010-03-29  Bruno Haible  <bruno@clisp.org>
31308
31309         Emit #pragma system_header after the inclusion guard, not before.
31310         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31311         guard that spans the entire file, not before. This enables an
31312         optimization in GCC's preprocessor.
31313         * lib/ctype.in.h: Likewise.
31314         * lib/dirent.in.h: Likewise.
31315         * lib/errno.in.h: Likewise.
31316         * lib/float.in.h: Likewise.
31317         * lib/getopt.in.h: Likewise.
31318         * lib/iconv.in.h: Likewise.
31319         * lib/langinfo.in.h: Likewise.
31320         * lib/locale.in.h: Likewise.
31321         * lib/math.in.h: Likewise.
31322         * lib/netdb.in.h: Likewise.
31323         * lib/netinet_in.in.h: Likewise.
31324         * lib/pty.in.h: Likewise.
31325         * lib/sched.in.h: Likewise.
31326         * lib/se-selinux.in.h: Likewise.
31327         * lib/search.in.h: Likewise.
31328         * lib/spawn.in.h: Likewise.
31329         * lib/stdarg.in.h: Likewise.
31330         * lib/stdint.in.h: Likewise.
31331         * lib/string.in.h: Likewise.
31332         * lib/strings.in.h: Likewise.
31333         * lib/sys_file.in.h: Likewise.
31334         * lib/sys_ioctl.in.h: Likewise.
31335         * lib/sys_time.in.h: Likewise.
31336         * lib/sys_times.in.h: Likewise.
31337         * lib/sys_utsname.in.h: Likewise.
31338         * lib/sys_wait.in.h: Likewise.
31339         * lib/sysexits.in.h: Likewise.
31340         * lib/wctype.in.h: Likewise.
31341
31342 2010-03-28  James Youngman  <jay@gnu.org>
31343
31344         save-cwd: don't leak a file descriptor when the caller execs.
31345         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31346         saved file descriptor.
31347         * modules/save-cwd (Depends-on): Depend on cloexec.
31348
31349 2010-03-29  Bruno Haible  <bruno@clisp.org>
31350
31351         Remove vestiges of fts-lgpl module.
31352         * lib/fts_.h: Assume GNULIB_FTS is 1.
31353         * lib/fts.c: Likewise.
31354         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31355
31356 2010-03-28  Bruno Haible  <bruno@clisp.org>
31357
31358         Fix definition of tests witness macro.
31359         * gnulib-tool (func_import): Fix definition of witness macro.
31360
31361 2010-03-28  Bruno Haible  <bruno@clisp.org>
31362
31363         Fix ioctl's protoype on glibc systems.
31364         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31365         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31366         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31367         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31368         signature. If not, arrange to replace the ioctl function.
31369         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31370         REPLACE_IOCTL.
31371         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31372         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31373         Reported by Ludovic Courtès <ludo@gnu.org>.
31374
31375 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31376
31377         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31378         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31379         made it so grep -r --include=GLOB* ... did not work.
31380
31381 2010-03-26  Jim Meyering  <meyering@redhat.com>
31382             Eric Blake  <eblake@redhat.com>
31383
31384         maint.mk: prohibit use of test's -o and -a operators
31385         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31386
31387 2010-03-28  Bruno Haible  <bruno@clisp.org>
31388
31389         Remove unused GNULIB_XYZ macro definitions.
31390         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31391         invocation.
31392
31393 2010-03-28  Bruno Haible  <bruno@clisp.org>
31394
31395         Mark privileged tests modules.
31396         * modules/idpriv-drop-tests (Status): New section.
31397         * modules/idpriv-droptemp-tests (Status): New section.
31398
31399 2010-03-28  Bruno Haible  <bruno@clisp.org>
31400
31401         Split C++ tests into separate tests modules.
31402         * modules/dirent-c++-tests: New file, extracted from
31403         modules/dirent-tests.
31404         * modules/dirent-tests: Depend on it.
31405         * modules/fcntl-h-c++-tests: New file, extracted from
31406         modules/fcntl-h-tests.
31407         * modules/fcntl-h-tests: Depend on it.
31408         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31409         * modules/glob-tests: Depend on it.
31410         * modules/iconv-h-c++-tests: New file, extracted from
31411         modules/iconv-h-tests.
31412         * modules/iconv-h-tests: Depend on it.
31413         * modules/langinfo-c++-tests: New file, extracted from
31414         modules/langinfo-tests.
31415         * modules/langinfo-tests: Depend on it.
31416         * modules/locale-c++-tests: New file, extracted from
31417         modules/locale-tests.
31418         * modules/locale-tests: Depend on it.
31419         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31420         * modules/math-tests: Depend on it.
31421         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31422         * modules/pty-tests: Depend on it.
31423         * modules/search-c++-tests: New file, extracted from
31424         modules/search-tests.
31425         * modules/search-tests: Depend on it.
31426         * modules/signal-c++-tests: New file, extracted from
31427         modules/signal-tests.
31428         * modules/signal-tests: Depend on it.
31429         * modules/spawn-c++-tests: New file, extracted from
31430         modules/spawn-tests.
31431         * modules/spawn-tests: Depend on it.
31432         * modules/stdio-c++-tests: New file, extracted from
31433         modules/stdio-tests.
31434         * modules/stdio-tests: Depend on it.
31435         * modules/stdlib-c++-tests: New file, extracted from
31436         modules/stdlib-tests.
31437         * modules/stdlib-tests: Depend on it.
31438         * modules/string-c++-tests: New file, extracted from
31439         modules/string-tests.
31440         * modules/string-tests: Depend on it.
31441         * modules/sys_ioctl-c++-tests: New file, extracted from
31442         modules/sys_ioctl-tests.
31443         * modules/sys_ioctl-tests: Depend on it.
31444         * modules/sys_select-c++-tests: New file, extracted from
31445         modules/sys_select-tests.
31446         * modules/sys_select-tests: Depend on it.
31447         * modules/sys_socket-c++-tests: New file, extracted from
31448         modules/sys_socket-tests.
31449         * modules/sys_socket-tests: Depend on it.
31450         * modules/sys_stat-c++-tests: New file, extracted from
31451         modules/sys_stat-tests.
31452         * modules/sys_stat-tests: Depend on it.
31453         * modules/sys_time-c++-tests: New file, extracted from
31454         modules/sys_time-tests.
31455         * modules/sys_time-tests: Depend on it.
31456         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31457         * modules/time-tests: Depend on it.
31458         * modules/unistd-c++-tests: New file, extracted from
31459         modules/unistd-tests.
31460         * modules/unistd-tests: Depend on it.
31461         * modules/wchar-c++-tests: New file, extracted from
31462         modules/wchar-tests.
31463         * modules/wchar-tests: Depend on it.
31464         * modules/wctype-c++-tests: New file, extracted from
31465         modules/wctype-tests.
31466         * modules/wctype-tests: Depend on it.
31467         Reported by Simon Josefsson.
31468
31469 2010-03-28  Bruno Haible  <bruno@clisp.org>
31470
31471         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31472         * gnulib-tool (func_exists_module): New function, extracted from
31473         func_verify_module.
31474         (func_verify_module): Use it.
31475         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31476         'foo' only if 'foo' exists.
31477         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31478         module.
31479
31480 2010-03-28  Bruno Haible  <bruno@clisp.org>
31481
31482         gnulib-tool: Add support for special categories of tests.
31483         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31484         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31485         (func_usage): Document them.
31486         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31487         inc_unportable_tests, inc_all_tests): New variables.
31488         (func_acceptable): Consider these variables.
31489         (func_modules_transitive_closure): Make it work when the 'Status' field
31490         consists of multiple words.
31491         (func_import): Store and restore the values of inc_cxx_tests,
31492         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31493         inc_all_tests in gnulib-comp.m4.
31494         (func_create_testdir): Set inc_all_tests to true.
31495         * doc/gnulib.texi (Extra tests modules): New section.
31496         Suggested by Jim Meyering.
31497
31498 2010-03-28  Bruno Haible  <bruno@clisp.org>
31499
31500         ansi-c++-opt: Allow turning off the C++ build by default.
31501         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31502         gl_CXX_CHOICE_DEFAULT_NO is defined.
31503         Requested by Eric Blake.
31504
31505 2010-03-28  Bruno Haible  <bruno@clisp.org>
31506
31507         unistd: Avoid #define replacements in C++ mode.
31508         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31509         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31510         setsockopt, shutdown, select): In C++, attach a warning to the function
31511         if possible, rather than #defining the symbol to a dysfunctional alias.
31512         Reported by John W. Eaton <jwe@gnu.org>.
31513
31514 2010-03-28  Bruno Haible  <bruno@clisp.org>
31515
31516         Fix link errors on mingw.
31517         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31518         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31519         $(LIBSOCKET).
31520         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31521         $(LIBSOCKET).
31522
31523 2010-03-28  Bruno Haible  <bruno@clisp.org>
31524             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31525
31526         lib-ignore: Determine different options for different compilers.
31527         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31528         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31529         Add comments.
31530         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31531         * NEWS: Mention the change.
31532
31533 2010-03-27  Bruno Haible  <bruno@clisp.org>
31534
31535         Remove unused GNULIB_XYZ macro definitions.
31536         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31537         * modules/fseek (configure.ac): Likewise.
31538         * modules/ioctl (configure.ac): Likewise.
31539         * modules/open (configure.ac): Likewise.
31540         * modules/stdlib-safer (configure.ac): Likewise.
31541
31542 2010-03-27  Bruno Haible  <bruno@clisp.org>
31543
31544         Add a remark about certain modules.
31545         * modules/malloc (Comment): New section.
31546         * modules/realloc (Comment): Likewise.
31547         * modules/sigpipe (Comment): Likewise.
31548
31549 2010-03-27  Bruno Haible  <bruno@clisp.org>
31550
31551         Resolve conflict between the two kinds of module indicators.
31552         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31553         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31554         * modules/canonicalize (configure.ac): Invoke
31555         gl_MODULE_INDICATOR_FOR_TESTS.
31556         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31557         GNULIB_XYZ.
31558         * tests/test-dirent-c++.cc: Likewise.
31559         * tests/test-dirent-safer.c: Likewise.
31560         * tests/test-dup2.c: Likewise.
31561         * tests/test-fchdir.c: Likewise.
31562         * tests/test-fcntl-h-c++.cc: Likewise.
31563         * tests/test-getopt.c: Likewise.
31564         * tests/test-getopt.h: Likewise.
31565         * tests/test-langinfo-c++.cc: Likewise.
31566         * tests/test-locale-c++.cc: Likewise.
31567         * tests/test-math-c++.cc: Likewise.
31568         * tests/test-pty-c++.cc: Likewise.
31569         * tests/test-search-c++.cc: Likewise.
31570         * tests/test-signal-c++.cc: Likewise.
31571         * tests/test-spawn-c++.cc: Likewise.
31572         * tests/test-stdio-c++.cc: Likewise.
31573         * tests/test-stdlib-c++.cc: Likewise.
31574         * tests/test-string-c++.cc: Likewise.
31575         * tests/test-sys_ioctl-c++.cc: Likewise.
31576         * tests/test-sys_select-c++.cc: Likewise.
31577         * tests/test-sys_socket-c++.cc: Likewise.
31578         * tests/test-sys_stat-c++.cc: Likewise.
31579         * tests/test-sys_time-c++.cc: Likewise.
31580         * tests/test-time-c++.cc: Likewise.
31581         * tests/test-unistd-c++.cc: Likewise.
31582         * tests/test-wchar-c++.cc: Likewise.
31583         * tests/uninorm/test-u8-nfc.c: Likewise.
31584         * tests/uninorm/test-u8-nfd.c: Likewise.
31585         * tests/uninorm/test-u8-nfkc.c: Likewise.
31586         * tests/uninorm/test-u8-nfkd.c: Likewise.
31587         * tests/uninorm/test-u16-nfc.c: Likewise.
31588         * tests/uninorm/test-u16-nfd.c: Likewise.
31589         * tests/uninorm/test-u16-nfkc.c: Likewise.
31590         * tests/uninorm/test-u16-nfkd.c: Likewise.
31591         * tests/uninorm/test-u32-nfc.c: Likewise.
31592         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31593         * tests/uninorm/test-u32-nfd.c: Likewise.
31594         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31595         * tests/uninorm/test-u32-nfkc.c: Likewise.
31596         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31597         * tests/uninorm/test-u32-nfkd.c: Likewise.
31598         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31599         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31600
31601 2010-03-27  Bruno Haible  <bruno@clisp.org>
31602
31603         Distinguish two kinds of module indicators.
31604         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31605         gl_MODULE_INDICATOR.
31606         (gl_MODULE_INDICATOR): New macro.
31607         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31608         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31609         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31610         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31611         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31612         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31613         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31614         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31615         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31616         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31617         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31618         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31619         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31620         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31621         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31622         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31623         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31624         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31625         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31626         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31627         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31628         * modules/cloexec (configure.ac): Likewise.
31629         * modules/getopt-gnu (configure.ac): Likewise.
31630         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31631         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31632         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31633         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31634
31635 2010-03-27  Bruno Haible  <bruno@clisp.org>
31636
31637         New module description field 'Comment'.
31638         * gnulib-tool: New option --extract-comment.
31639         (func_usage): Document it.
31640         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31641         (func_get_comment): New function.
31642         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31643
31644 2010-03-27  Bruno Haible  <bruno@clisp.org>
31645
31646         Addendum to 2010-02-07 commit.
31647         * gnulib-tool (func_usage): Document --extract-applicability option.
31648
31649 2010-03-27  Bruno Haible  <bruno@clisp.org>
31650
31651         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31652         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31653         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31654         rather than link errors.
31655
31656 2010-03-27  Bruno Haible  <bruno@clisp.org>
31657
31658         Avoid side effects from tests-related modules on the compilation of lib.
31659         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31660         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31661         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31662         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31663         macro.
31664         (func_import): Define a witness macro. Assign it a value that depends
31665         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31666         tests-related modules.
31667         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31668         Reported by Jim Meyering.
31669
31670 2010-03-27  Bruno Haible  <bruno@clisp.org>
31671
31672         Factorize common .m4 code.
31673         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31674         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31675         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31676         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31677         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31678         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31679         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31680         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31681         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31682         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31683         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31684         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31685         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31686         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31687         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31688         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31689         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31690         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31691         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31692         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31693         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31694         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31695         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31696         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31697         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31698         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31699         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31700         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31701         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31702         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31703         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31704         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31705
31706 2010-03-27  Bruno Haible  <bruno@clisp.org>
31707
31708         Fix a compilation error on Cygwin with g++ >= 4.3.
31709         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31710         if it is undefined or if we alias it to chmod.
31711         (lstat): Don't warn about the use of this function if it is undefined
31712         or if we alias it to stat.
31713         Reported by Simon Josefsson.
31714
31715 2010-03-27  Bruno Haible  <bruno@clisp.org>
31716
31717         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31718         * modules/getlogin (configure.ac): Update.
31719
31720         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31721         * modules/getlogin_r (configure.ac): Update.
31722
31723         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31724         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31725         * modules/inet_ntop (configure.ac): Update.
31726
31727         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31728         * modules/inet_pton (configure.ac): Update.
31729
31730         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31731         * modules/mbslen (configure.ac): Update.
31732
31733         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31734         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31735         * modules/forkpty (configure.ac): Update.
31736         * modules/openpty (configure.ac): Update.
31737
31738 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31739
31740         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31741         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31742
31743 2010-03-25  Eric Blake  <eblake@redhat.com>
31744
31745         maint: use pragma consistently across replacement headers
31746         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31747         * lib/dirent.in.h (system_header): Likewise.
31748         * lib/errno.in.h (system_header): Likewise.
31749         * lib/float.in.h (system_header): Likewise.
31750         * lib/getopt.in.h (system_header): Likewise.
31751         * lib/iconv.in.h (system_header): Likewise.
31752         * lib/inttypes.in.h (system_header): Likewise.
31753         * lib/langinfo.in.h (system_header): Likewise.
31754         * lib/locale.in.h (system_header): Likewise.
31755         * lib/math.in.h (system_header): Likewise.
31756         * lib/netdb.in.h (system_header): Likewise.
31757         * lib/netinet_in.in.h (system_header): Likewise.
31758         * lib/pty.in.h (system_header): Likewise.
31759         * lib/sched.in.h (system_header): Likewise.
31760         * lib/se-selinux.in.h (system_header): Likewise.
31761         * lib/search.in.h (system_header): Likewise.
31762         * lib/spawn.in.h (system_header): Likewise.
31763         * lib/stdarg.in.h (system_header): Likewise.
31764         * lib/stdint.in.h (system_header): Likewise.
31765         * lib/string.in.h (system_header): Likewise.
31766         * lib/strings.in.h (system_header): Likewise.
31767         * lib/sys_file.in.h (system_header): Likewise.
31768         * lib/sys_ioctl.in.h (system_header): Likewise.
31769         * lib/sys_socket.in.h (system_header): Likewise.
31770         * lib/sys_times.in.h (system_header): Likewise.
31771         * lib/sys_utsname.in.h (system_header): Likewise.
31772         * lib/sys_wait.in.h (system_header): Likewise.
31773         * lib/sysexits.in.h (system_header): Likewise.
31774         * lib/unistd.in.h (system_header): Likewise.
31775         * lib/wctype.in.h (system_header): Likewise.
31776
31777         arpa/inet: fix mingw compilation warning
31778         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31779         Reported by Matthew Bolte.
31780
31781 2010-03-25  Bruno Haible  <bruno@clisp.org>
31782
31783         Avoid collision between gnulib wrapper and libintl wrapper.
31784         * lib/printf.c (printf): Don't define if a printf wrapper is already
31785         defined in intl/printf.c.
31786         Reported by Michel Boaventura <michel@michelboaventura.com>.
31787
31788 2010-03-25  Bruno Haible  <bruno@clisp.org>
31789
31790         Use ANSI C.
31791         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31792
31793 2010-03-25  Bruno Haible  <bruno@clisp.org>
31794
31795         Minor formatting changes.
31796         * lib/acosl.c: Insert space before function argument list.
31797         * lib/argz.c: Likewise.
31798         * lib/asinl.c: Likewise.
31799         * lib/expl.c: Likewise.
31800         * lib/gen-uni-tables.c: Likewise.
31801         * lib/gettext.h: Likewise.
31802         * lib/glthread/lock.h: Likewise.
31803         * lib/tanl.c: Likewise.
31804         * lib/uniname/uniname.c: Likewise.
31805         * tests/test-idpriv-drop.c: Likewise.
31806         * tests/test-idpriv-droptemp.c: Likewise.
31807         * tests/test-lock.c: Likewise.
31808         * tests/test-tls.c: Likewise.
31809         * lib/argp-help.c: Insert space before function-like macro argument
31810         list.
31811         * lib/memcmp.c: Likewise.
31812         * tests/test-base64.c: Likewise.
31813         * lib/localename.c: Insert space before sizeof's argument list.
31814         * lib/safe-alloc.h: Likewise.
31815         * lib/file-set.h: Insert space before macro argument list.
31816         * tests/test-argp.c: Likewise.
31817         * lib/argp-namefrob.h: Insert space before function parameter list.
31818         * lib/getaddrinfo.c: Likewise.
31819         * lib/netdb.in.h: Likewise.
31820         * lib/parse-duration.h: Likewise.
31821         * lib/parse-duration.c: Likewise.
31822         * lib/poll.c: Likewise.
31823         * lib/select.c: Likewise.
31824         * lib/trim.h: Likewise.
31825         * tests/test-usleep.c: Likewise.
31826         * lib/ldexpl.c: Insert space before function parameter list and before
31827         function argument list.
31828         * lib/logl.c: Likewise.
31829         * lib/sqrtl.c: Likewise.
31830         * lib/trim.c: Likewise.
31831         * lib/cosl.c: Use GNU style indentation. Insert space before function
31832         argument list.
31833         * lib/sinl.c: Likewise.
31834         * lib/tsearch.c: Insert space after 'for'.
31835         Reported by Jim Meyering.
31836
31837 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31838
31839         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31840         config header before grepping, as it's not present before
31841         autoreconf/configure are run.  Reported by Simon Josefsson.
31842
31843 2010-03-23  Bruno Haible  <bruno@clisp.org>
31844
31845         pt_chown: Make it work with automake < 1.11.
31846         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31847         Reported by Simon Josefsson.
31848
31849 2010-03-23  Bruno Haible  <bruno@clisp.org>
31850
31851         pt_chown: Don't depend on GPLed modules.
31852         * lib/pt_chown.c: Don't include idpriv.h.
31853         (main): Don't drop privileges.
31854         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31855         Reported by Simon Josefsson.
31856
31857 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31858
31859         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31860         suggestions from karl@freefriends.org (Karl Berry).
31861
31862 2010-03-22  Eric Blake  <eblake@redhat.com>
31863
31864         gethostname: further tweaks
31865         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31866         are overriding gethostname.
31867         Suggested by Bruno Haible.
31868
31869 2010-03-21  Bruno Haible  <bruno@clisp.org>
31870
31871         Fix comments.
31872         * lib/forkpty.c (rpl_forkpty): Fix comment.
31873         * lib/openpty.c (rpl_openpty): Likewise.
31874         Reported by Eric Blake.
31875
31876 2010-03-22  Eric Blake  <eblake@redhat.com>
31877
31878         gethostname: fix build on mingw
31879         * lib/unistd.in.h (includes): Work around fact that mingw
31880         <winsock2.h> re-includes <unistd.h>, by avoiding any
31881         redeclarations if we are being included by <winsock2.h>.
31882         Reported by Matthias Bolte.
31883
31884 2010-03-21  Bruno Haible  <bruno@clisp.org>
31885
31886         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31887         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31888         modifications.
31889         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31890         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31891         provide the replacement.
31892         * modules/forkpty (Depends-on): Add openpty, login_tty.
31893         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31894         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31895         * doc/glibc-functions/forkpty.texi: More supported platforms.
31896         * config/srclist.txt: Add forkpty.c (commented).
31897
31898 2010-03-21  Bruno Haible  <bruno@clisp.org>
31899
31900         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31901         (Makefile.am): Verify that PTY_LIB is defined.
31902
31903         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31904
31905 2010-03-21  Bruno Haible  <bruno@clisp.org>
31906
31907         Tests for module 'login_tty'.
31908         * modules/login_tty-tests: New file.
31909         * tests/test-login_tty.c: New file.
31910
31911         New module 'login_tty'.
31912         * lib/login_tty.c: New file.
31913         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31914         * modules/login_tty: New file.
31915         * doc/glibc-functions/login_tty.texi: Mention the new module.
31916
31917 2010-03-21  Bruno Haible  <bruno@clisp.org>
31918
31919         login_tty: Documentation.
31920         * doc/glibc-functions/login_tty.texi: New file.
31921         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31922
31923 2010-03-21  Bruno Haible  <bruno@clisp.org>
31924
31925         pty: Consistent macro naming.
31926         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31927         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31928         * modules/pty (configure.ac): Update.
31929
31930 2010-03-21  Bruno Haible  <bruno@clisp.org>
31931
31932         Tests for openpty: Make stricter.
31933         * tests/test-openpty.c (main): Add test of canonical processing and
31934         erase.
31935         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31936
31937         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31938         * lib/openpty.c (openpty): New replacement function.
31939         * lib/pty.in.h: Include <termios.h>.
31940         (openpty): Update declaration. Add comments.
31941         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31942         is not declared, arrange to provide the replacement. Check for _getpty
31943         and posix_openpt.
31944         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31945         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31946         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31947         * modules/pty-tests (test_pty_c___LDADD): New variable.
31948         * doc/glibc-functions/openpty.texi: More supported platforms.
31949
31950 2010-03-21  Bruno Haible  <bruno@clisp.org>
31951
31952         setenv: Tweaks.
31953         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31954         the test program.
31955         * doc/posix-functions/setenv.texi: Update platforms list.
31956
31957 2010-03-21  Bruno Haible  <bruno@clisp.org>
31958
31959         New module 'unlockpt'.
31960         * lib/unlockpt.c: New file, from glibc with modifications.
31961         * m4/unlockpt.m4: New file.
31962         * modules/unlockpt: New file.
31963         * lib/stdlib.in.h (unlockpt): New declaration.
31964         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31965         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31966         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31967         HAVE_UNLOCKPT.
31968         * doc/posix-functions/unlockpt.texi: Mention the new module.
31969         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31970         * config/srclist.txt: Add unlockpt.c (commented).
31971
31972 2010-03-21  Jim Meyering  <meyering@redhat.com>
31973
31974         maint.mk: prohibit inclusion of "intprops.h" without use
31975         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31976
31977 2010-03-21  Bruno Haible  <bruno@clisp.org>
31978
31979         New module 'grantpt'.
31980         * lib/grantpt.c: New file, from glibc with modifications.
31981         * m4/grantpt.m4: New file.
31982         * modules/grantpt: New file.
31983         * lib/stdlib.in.h (grantpt): New declaration.
31984         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31985         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31986         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31987         HAVE_GRANTPT.
31988         * doc/posix-functions/grantpt.texi: Mention the new module.
31989         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31990         * config/srclist.txt: Add grantpt.c (commented).
31991
31992 2010-03-21  Bruno Haible  <bruno@clisp.org>
31993
31994         New module 'pt_chown'.
31995         * lib/pt_chown.c: New file, from glibc with modifications.
31996         * lib/pty-private.h: New file, from glibc with modifications.
31997         * modules/pt_chown: New file.
31998         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31999
32000 2010-03-21  Bruno Haible  <bruno@clisp.org>
32001
32002         Tests for module 'ptsname'.
32003         * modules/ptsname-tests: New file.
32004         * tests/test-ptsname.c: New file.
32005
32006         New module 'ptsname'.
32007         * lib/ptsname.c: New file, from glibc with modifications.
32008         * m4/ptsname.m4: New file.
32009         * modules/ptsname: New file.
32010         * lib/stdlib.in.h (ptsname): New declaration.
32011         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32012         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32013         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32014         HAVE_PTSNAME.
32015         * doc/posix-functions/ptsname.texi: Mention the new module.
32016         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32017         * config/srclist.txt: Add ptsname.c (commented).
32018
32019 2010-03-21  Bruno Haible  <bruno@clisp.org>
32020
32021         Tests for module 'ttyname_r'.
32022         * modules/ttyname_r-tests: New file.
32023         * tests/test-ttyname_r.c: New file.
32024
32025         New module 'ttyname_r'.
32026         * lib/ttyname_r.c: New file.
32027         * m4/ttyname_r.m4: New file.
32028         * modules/ttyname_r: New file.
32029         * lib/unistd.in.h (ttyname_r): New declaration.
32030         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32031         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32032         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32033         HAVE_TTYNAME_R.
32034         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32035         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32036
32037 2010-03-20  Bruno Haible  <bruno@clisp.org>
32038
32039         signal: Undefine macro definitions in C++ mode.
32040         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32041         sigfillset): Undefine macro definitions from the system header in C++
32042         mode.
32043         Reported by John W. Eaton <jwe@gnu.org>.
32044
32045 2010-03-20  Bruno Haible  <bruno@clisp.org>
32046
32047         Ensure no #include statements inside extern "C" { ... }.
32048         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32049         contain #include statements.
32050         * lib/time.in.h: Likewise.
32051
32052 2010-03-20  Bruno Haible  <bruno@clisp.org>
32053
32054         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32055         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32056         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32057         Reported by John W. Eaton <jwe@gnu.org>.
32058
32059 2010-03-20  Bruno Haible  <bruno@clisp.org>
32060
32061         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32062         Reported by Jim Meyering.
32063
32064 2010-03-20  Bruno Haible  <bruno@clisp.org>
32065
32066         pipe: Set errno upon failure.
32067         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32068         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32069         errno value in error message.
32070
32071 2010-03-20  Bruno Haible  <bruno@clisp.org>
32072             Jim Meyering  <meyering@redhat.com>
32073
32074         lchown: Avoid "unused variable" warning.
32075         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32076
32077 2010-03-20  Bruno Haible  <bruno@clisp.org>
32078
32079         Work around unlink() bug on MacOS X 10.5.6.
32080         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32081         attempting to unlink a parent directory.
32082         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32083         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32084         activate for the replacement function.
32085         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32086
32087 2010-03-20  Bruno Haible  <bruno@clisp.org>
32088
32089         Fix link errors on Solaris 8.
32090         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32091         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32092
32093 2010-03-19  Jim Meyering  <meyering@redhat.com>
32094
32095         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32096         The _LIBC implementation of build_range_exp correctly honors the
32097         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32098         However, the non-_LIBC implementation would ignore that syntax-bit
32099         flag and return REG_ERANGE unconditionally.
32100         This change makes it honor that flag.
32101         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32102         Make two pointer parameters "const".
32103         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32104         (parse_bracket_exp): Update caller.
32105
32106         regex.m4: correct the reversed range endpoint ([b-a]) test
32107         * m4/regex.m4: When requiring that [b-a] evoke failure,
32108         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32109         test pass once again for x86-based systems.
32110
32111 2010-03-19  Bruno Haible  <bruno@clisp.org>
32112
32113         scandir: Fix link error on Solaris 8.
32114         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32115         macros.
32116
32117 2010-03-19  Bruno Haible  <bruno@clisp.org>
32118
32119         getusershell: Fix documentation.
32120         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32121         module.
32122         * doc/glibc-functions/setusershell.texi: Likewise.
32123
32124         getusershell: Provide declaration, missing on Solaris 9.
32125         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32126         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32127         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32128         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32130         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32131         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32132         HAVE_GETUSERSHELL.
32133         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32134
32135 2010-03-19  Bruno Haible  <bruno@clisp.org>
32136
32137         wctype: Provide iswblank function.
32138         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32139         exists and is fine.
32140         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32141         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32142         * tests/test-wctype.c (main): Re-enable the iswblank tests.
32143         * doc/posix-functions/iswblank.texi: Update.
32144
32145 2010-03-19  Bruno Haible  <bruno@clisp.org>
32146
32147         Tests of module 'pty' in C++ mode.
32148         * modules/pty-tests: New file.
32149         * tests/test-pty-c++.cc: New file.
32150         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32151
32152 2010-03-19  Eric Blake  <eblake@redhat.com>
32153
32154         logb: fix documentation
32155         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
32156         1.5 declaration bug.
32157
32158         forkpty, openpty: prefer glibc's const-safe prototype
32159         * lib/forkpty.c (rpl_forkpty): New file.
32160         * lib/openpty.c (rpl_openpty): Likewise.
32161         * modules/forkpty (Files): Distribute it.
32162         * modules/openpty (Files): Likewise.
32163         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
32164         check...
32165         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
32166         replacement for for non-const BSD signature.
32167         * modules/pty (Makefile.am): Substitute witnesses.
32168         * lib/pty.in.h (forkpty, openpty): Declare replacements.
32169         * tests/test-forkpty.c: Update signature check.
32170         * tests/test-openpty.c: Likewise.
32171         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
32172         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32173
32174         forkpty, openpty: split functions into new modules
32175         * modules/pty (Makefile.am): Substitute new witnesses.
32176         (Libraries): Move library detection...
32177         * modules/forkpty: ...into new module.
32178         * modules/openpty: Another new module.
32179         * modules/pty-tests: Rename and split...
32180         * modules/forkpty-tests: ...to this...
32181         * modules/openpty-tests: ...and this.
32182         * tests/test-pty.c: Rename and split...
32183         * tests/test-forkpty.c: ...to this...
32184         * tests/test-openpty.c: ...and this.
32185         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32186         (gl_PTY): Split library searching...
32187         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32188         (gl_FORKPTY, gl_OPENPTY): New macros.
32189         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32190         * NEWS: Mention the split.
32191         * MODULES.html.sh (Misc): Document the modules.
32192         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32193         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32194
32195         pty: improve replacement header
32196         * lib/pty.in.h: New file.
32197         * modules/pty (Files): Ship it.
32198         (Makefile.am): Always build replacement.
32199         * m4/pty.m4: Rename...
32200         * m4/pty_h.m4: ...to this.
32201         (gl_PTY): Modernize setting of witness macros; update check of
32202         forkpty to take proper advantage of cache.
32203         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32204
32205         getopt: avoid compiler warning
32206         * lib/getopt.c (attribute_hidden): Remove unused macro.
32207
32208 2010-03-18  Bruno Haible  <bruno@clisp.org>
32209
32210         Fix link errors on Solaris 8.
32211         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32212         * modules/search-tests (test_search_c___LDADD): Likewise.
32213         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32214         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32215         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32216         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32217         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32218         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32219         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32220
32221 2010-03-18  Bruno Haible  <bruno@clisp.org>
32222
32223         Fix bug introduced on 2010-03-14.
32224         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32225         (gl_SPAWN_H): Require it.
32226         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32227         Reported by Simon Josefsson.
32228
32229 2010-03-18  Bruno Haible  <bruno@clisp.org>
32230
32231         Fix typo introduced on 2009-12-31.
32232         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32233         posix_spawn_file_actions_adddup2.
32234
32235 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32236         and Eric Blake  <eblake@redhat.com>
32237
32238         test-vc-list-files-git: make more robust
32239         * tests/test-vc-list-files-git.sh: Unset problematic environment
32240         variables.  Chain commands together.
32241
32242 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
32243
32244         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
32245         `AC_CHECK_DECL' invocation.
32246
32247 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
32248
32249         * lib/inttostr.c (inttostr): Make sure the invocation of verify
32250         appears before executable statements. Suggested by Petr Sumbera
32251         <Petr.Sumbera@Sun.COM>.
32252
32253 2010-03-14  Bruno Haible  <bruno@clisp.org>
32254
32255         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32256         portability problems. Instead use a simpler test.
32257         (main): Check that invalid arguments are rejected only on Linux.
32258
32259 2010-03-14  Bruno Haible  <bruno@clisp.org>
32260
32261         Fix bug introduced on 2009-12-31.
32262         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32263         gl_PREREQ_SYS_H_WINSOCK2 always.
32264         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32265         SYS_SOCKET_H variable.
32266         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32267         Update comments.
32268         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32269         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32270         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32271         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32272         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32273
32274 2010-03-14  Bruno Haible  <bruno@clisp.org>
32275
32276         Fix values returned by sinl, cosl.
32277         * lib/trigl.h: Add specification comments.
32278         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32279         that combines the values from the precomputed table with the values of
32280         the Chebyshev polynomials.
32281
32282 2010-03-14  Bruno Haible  <bruno@clisp.org>
32283
32284         Fix compilation error when modules 'posix_spawn[p]' are not used.
32285         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32286         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32287
32288 2010-03-14  Bruno Haible  <bruno@clisp.org>
32289
32290         Fix compilation error on mingw when module 'time_r' is not used.
32291         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32292         is 1.
32293         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32294         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32295         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32296         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32297
32298 2010-03-14  Bruno Haible  <bruno@clisp.org>
32299
32300         Fix compilation error with Sun C.
32301         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32302         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32303         instead of GCC specific ULONG_LONG_MAX.
32304         * lib/xstrtoll.c: Likewise.
32305         * lib/xstrtoull.c: Likewise.
32306
32307 2010-03-13  Bruno Haible  <bruno@clisp.org>
32308
32309         Allow the user to disable C++ code and tests.
32310         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32311         (gl_PROG_ANSI_CXX): Require it.
32312
32313 2010-03-13  Bruno Haible  <bruno@clisp.org>
32314
32315         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32316         cases.
32317
32318 2010-03-13  Bruno Haible  <bruno@clisp.org>
32319
32320         Test that gnulib does not break the standard C++ headers.
32321         * tests/test-locale-c++2.cc: New file.
32322         * modules/locale-tests (Files): Add it.
32323         (Makefile.am): Compile it for test-locale-c++.
32324         * tests/test-math-c++2.cc: New file.
32325         * modules/math-tests (Files): Add it.
32326         (Makefile.am): Compile it for test-math-c++.
32327         * tests/test-signal-c++2.cc: New file.
32328         * modules/signal-tests (Files): Add it.
32329         (Makefile.am): Compile it for test-signal-c++.
32330         * tests/test-stdio-c++2.cc: New file.
32331         * modules/stdio-tests (Files): Add it.
32332         (Makefile.am): Compile it for test-stdio-c++.
32333         * tests/test-stdlib-c++2.cc: New file.
32334         * modules/stdlib-tests (Files): Add it.
32335         (Makefile.am): Compile it for test-stdlib-c++.
32336         * tests/test-string-c++2.cc: New file.
32337         * modules/string-tests (Files): Add it.
32338         (Makefile.am): Compile it for test-string-c++.
32339         * tests/test-time-c++2.cc: New file.
32340         * modules/time-tests (Files): Add it.
32341         (Makefile.am): Compile it for test-time-c++.
32342         Reported by John W. Eaton <jwe@gnu.org>.
32343
32344 2010-03-13  Bruno Haible  <bruno@clisp.org>
32345
32346         * gnulib-tool (func_usage): Clarify which options are available for
32347         --create-testdir and --create-megatestdir.
32348
32349 2010-03-13  Bruno Haible  <bruno@clisp.org>
32350
32351         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32352         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32353         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32354         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32355         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32356         when appropriate.
32357         Reported by Jim Meyering.
32358
32359 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32360
32361         * gnulib-tool (func_import): Explain origin of code.
32362
32363 2010-03-12  Bruno Haible  <bruno@clisp.org>
32364
32365         Fix problem with automake's definition of CXXLINK.
32366         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32367         Reported by Simon Josefsson and Ludovic Courtès.
32368
32369 2010-03-12  Bruno Haible  <bruno@clisp.org>
32370
32371         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32372         stable releases.
32373
32374 2010-03-11  Bruno Haible  <bruno@clisp.org>
32375
32376         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32377         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32378         whether the system provides one variant or multiple variants of the
32379         function.
32380         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32381         C++ compilers.
32382         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32383         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32384         Reported by Jim Meyering.
32385
32386 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32387
32388         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32389
32390 2010-03-08  Bruno Haible  <bruno@clisp.org>
32391
32392         gnulib-tool: Add support for --libtool in --create-testdir.
32393         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32394         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32395
32396 2010-03-08  Eric Blake  <eblake@redhat.com>
32397
32398         gnulib-tool.texi: mention possibility of git submodule
32399         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32400         submodules.
32401         * doc/.gitignore: Ignore another generated file.
32402
32403 2010-03-08  Karl Berry  <karl@gnu.org>
32404
32405         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32406         of committing gnulib files while skipping others.
32407
32408 2010-03-07  Bruno Haible  <bruno@clisp.org>
32409
32410         Tests of module 'wctype' in C++ mode.
32411         * tests/test-wctype-c++.cc: New file.
32412         * modules/wctype-tests (Files): Add it and tests/signature.h.
32413         (Depends-on): Add ansi-c++-opt.
32414         (Makefile.am): Arrange to compile and run test-wctype-c++.
32415
32416         Tests of module 'wchar' in C++ mode.
32417         * tests/test-wchar-c++.cc: New file.
32418         * modules/wchar-tests (Files): Add it and tests/signature.h.
32419         (Depends-on): Add ansi-c++-opt.
32420         (Makefile.am): Arrange to compile and run test-wchar-c++.
32421         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32422         gl_MODULE_INDICATOR.
32423
32424         Tests of module 'unistd' in C++ mode.
32425         * tests/test-unistd-c++.cc: New file.
32426         * modules/unistd-tests (Files): Add it and tests/signature.h.
32427         (Depends-on): Add ansi-c++-opt.
32428         (Makefile.am): Arrange to compile and run test-unistd-c++.
32429         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32430         gl_MODULE_INDICATOR.
32431
32432         Tests of module 'time' in C++ mode.
32433         * tests/test-time-c++.cc: New file.
32434         * modules/time-tests (Files): Add it and tests/signature.h.
32435         (Depends-on): Add ansi-c++-opt.
32436         (Makefile.am): Arrange to compile and run test-time-c++.
32437         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32438
32439         Tests of module 'sys_time' in C++ mode.
32440         * tests/test-sys_time-c++.cc: New file.
32441         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32442         (Depends-on): Add ansi-c++-opt.
32443         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32444         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32445         gl_MODULE_INDICATOR.
32446
32447         Tests of module 'sys_stat' in C++ mode.
32448         * tests/test-sys_stat-c++.cc: New file.
32449         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32450         (Depends-on): Add ansi-c++-opt.
32451         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32452         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32453         gl_MODULE_INDICATOR.
32454
32455         Tests of module 'sys_socket' in C++ mode.
32456         * tests/test-sys_socket-c++.cc: New file.
32457         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32458         (Depends-on): Add ansi-c++-opt.
32459         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32460         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32461         gl_MODULE_INDICATOR.
32462
32463         Tests of module 'sys_select' in C++ mode.
32464         * tests/test-sys_select-c++.cc: New file.
32465         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32466         (Depends-on): Add ansi-c++-opt.
32467         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32468         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32469         gl_MODULE_INDICATOR.
32470
32471         Tests of module 'sys_ioctl' in C++ mode.
32472         * tests/test-sys_ioctl-c++.cc: New file.
32473         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32474         (Depends-on): Add ansi-c++-opt.
32475         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32476         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32477         gl_MODULE_INDICATOR.
32478
32479         Tests of module 'string' in C++ mode.
32480         * tests/test-string-c++.cc: New file.
32481         * modules/string-tests (Files): Add it and tests/signature.h.
32482         (Depends-on): Add ansi-c++-opt.
32483         (Makefile.am): Arrange to compile and run test-string-c++.
32484         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32485         gl_MODULE_INDICATOR.
32486
32487         Tests of module 'stdlib' in C++ mode.
32488         * tests/test-stdlib-c++.cc: New file.
32489         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32490         (Depends-on): Add ansi-c++-opt.
32491         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32492         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32493         gl_MODULE_INDICATOR.
32494
32495         Tests of module 'stdio' in C++ mode.
32496         * tests/test-stdio-c++.cc: New file.
32497         * modules/stdio-tests (Files): Add it and tests/signature.h.
32498         (Depends-on): Add ansi-c++-opt.
32499         (Makefile.am): Arrange to compile and run test-stdio-c++.
32500         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32501         gl_MODULE_INDICATOR.
32502
32503         Tests of module 'spawn' in C++ mode.
32504         * tests/test-spawn-c++.cc: New file.
32505         * modules/spawn-tests (Files): Add it and tests/signature.h.
32506         (Depends-on): Add ansi-c++-opt.
32507         (Makefile.am): Arrange to compile and run test-spawn-c++.
32508         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32509         gl_MODULE_INDICATOR.
32510
32511         Tests of module 'signal' in C++ mode.
32512         * tests/test-signal-c++.cc: New file.
32513         * modules/signal-tests (Files): Add it and tests/signature.h.
32514         (Depends-on): Add ansi-c++-opt.
32515         (Makefile.am): Arrange to compile and run test-signal-c++.
32516         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32517         gl_MODULE_INDICATOR.
32518
32519         Tests of module 'search' in C++ mode.
32520         * tests/test-search-c++.cc: New file.
32521         * modules/search-tests (Files): Add it and tests/signature.h.
32522         (Depends-on): Add ansi-c++-opt.
32523         (Makefile.am): Arrange to compile and run test-search-c++.
32524         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32525         gl_MODULE_INDICATOR.
32526
32527         Tests of module 'math' in C++ mode.
32528         * tests/test-math-c++.cc: New file.
32529         * modules/math-tests (Files): Add it and tests/signature.h.
32530         (Depends-on): Add ansi-c++-opt.
32531         (Makefile.am): Arrange to compile and run test-math-c++.
32532         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32533
32534         Tests of module 'locale' in C++ mode.
32535         * tests/test-locale-c++.cc: New file.
32536         * modules/locale-tests (Files): Add it and tests/signature.h.
32537         (Depends-on): Add ansi-c++-opt.
32538         (Makefile.am): Arrange to compile and run test-locale-c++.
32539         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32540         gl_MODULE_INDICATOR.
32541
32542         Tests of module 'langinfo' in C++ mode.
32543         * tests/test-langinfo-c++.cc: New file.
32544         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32545         (Depends-on): Add ansi-c++-opt.
32546         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32547         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32548         gl_MODULE_INDICATOR.
32549
32550         Tests of module 'iconv-h' in C++ mode.
32551         * tests/test-iconv-h-c++.cc: New file.
32552         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32553         (Depends-on): Add ansi-c++-opt.
32554         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32555
32556         Tests of module 'glob' in C++ mode.
32557         * tests/test-glob-c++.cc: New file.
32558         * modules/glob-tests (Files): Add it.
32559         (Depends-on): Add ansi-c++-opt.
32560         (Makefile.am): Arrange to compile and run test-glob-c++.
32561
32562         Tests of module 'fcntl-h' in C++ mode.
32563         * tests/test-fcntl-h-c++.cc: New file.
32564         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32565         (Depends-on): Add ansi-c++-opt.
32566         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32567         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32568         gl_MODULE_INDICATOR.
32569
32570         Tests of module 'dirent' in C++ mode.
32571         * tests/test-dirent-c++.cc: New file.
32572         * modules/dirent-tests (Files): Add it and tests/signature.h.
32573         (Depends-on): Add ansi-c++-opt.
32574         (Makefile.am): Arrange to compile and run test-dirent-c++.
32575         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32576         gl_MODULE_INDICATOR.
32577
32578         New module 'ansi-c++-opt'.
32579         * modules/ansi-c++-opt: New file.
32580         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32581
32582         Document C++ namespace mode.
32583         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32584
32585         wctype: Avoid #define replacements in C++ mode.
32586         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32587         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32588         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32589         In C++, define a namespaced alias symbol.
32590         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32591         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32592         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32593         rule.
32594
32595         wchar: Avoid #define replacements in C++ mode.
32596         * lib/wchar.in.h: Include c++defs.h.
32597         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32598         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32599         symbol.
32600         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32601         * modules/wchar (Depends-on): Add c++defs.
32602         (Makefile.am): Update wchar.h rule.
32603
32604         unistd: Avoid #define replacements in C++ mode.
32605         * lib/unistd.in.h: Include c++defs.h.
32606         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32607         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32608         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32609         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32610         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32611         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32612         symbol.
32613         (environ): Update.
32614         * modules/unistd (Depends-on): Add c++defs.
32615         (Makefile.am): Update unistd.h rule.
32616
32617         time: Avoid #define replacements in C++ mode.
32618         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32619         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32620         define a namespaced alias symbol.
32621         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32622         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32623         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32624         * modules/time (Depends-on): Add c++defs, warn-on-use.
32625         (Makefile.am): Update time.h rule.
32626         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32627         * modules/nanosleep (configure.ac): Likewise.
32628         * modules/strptime (configure.ac): Likewise.
32629         * modules/timegm (configure.ac): Likewise.
32630
32631         sys_time: Avoid #define replacements in C++ mode.
32632         * lib/sys_time.in.h: Include c++defs.h.
32633         (gettimeofday): In C++, define a namespaced alias symbol.
32634         * modules/sys_time (Depends-on): Add c++defs.
32635         (Makefile.am): Update sys/time.h rule.
32636
32637         sys_stat: Avoid #define replacements in C++ mode.
32638         * lib/sys_stat.in.h: Include c++defs.h.
32639         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32640         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32641         namespaced alias symbol.
32642         In C++, define a namespaced alias symbol.
32643         * modules/sys_stat (Depends-on): Add c++defs.
32644         (Makefile.am): Update sys/stat.h rule.
32645
32646         sys_socket: Avoid #define replacements in C++ mode.
32647         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32648         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32649         definitions also when the system has a <sys/socket.h>.
32650         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32651         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32652         In C++, define a namespaced alias symbol.
32653         * modules/sys_socket (Depends-on): Add c++defs.
32654         (Makefile.am): Update sys/socket.h rule.
32655
32656         sys_select: Avoid #define replacements in C++ mode.
32657         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32658         definitions also when the system has a <sys/select.h>.
32659         (select): In C++, define a namespaced alias symbol.
32660         * modules/sys_select (Depends-on): Add c++defs.
32661         (Makefile.am): Update sys/select.h rule.
32662
32663         sys_ioctl: Avoid #define replacements in C++ mode.
32664         * lib/sys_ioctl.in.h: Include c++defs.h.
32665         (ioctl): In C++, define a namespaced alias symbol.
32666         * modules/sys_ioctl (Depends-on): Add c++defs.
32667         (Makefile.am): Update sys/ioctl.h rule.
32668
32669         string: Avoid #define replacements in C++ mode.
32670         * lib/string.in.h: Include c++defs.h.
32671         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32672         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32673         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32674         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32675         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32676         * modules/string (Depends-on): Add c++defs.
32677         (Makefile.am): Update string.h rule.
32678
32679         stdlib: Avoid #define replacements in C++ mode.
32680         * lib/stdlib.in.h: Include c++defs.h.
32681         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32682         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32683         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32684         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32685         symbol.
32686         * modules/stdlib (Depends-on): Add c++defs.
32687         (Makefile.am): Update stdlib.h rule.
32688
32689         stdio: Avoid #define replacements in C++ mode.
32690         * lib/stdio.in.h: Include c++defs.h.
32691         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32692         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32693         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32694         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32695         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32696         namespaced alias symbol.
32697         * modules/stdio (Depends-on): Add c++defs.
32698         (Makefile.am): Update stdio.h rule.
32699
32700         spawn: Avoid #define replacements in C++ mode.
32701         * lib/spawn.in.h: Include c++defs.h.
32702         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32703         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32704         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32705         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32706         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32707         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32708         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32709         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32710         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32711         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32712         In C++, define a namespaced alias symbol.
32713         * modules/spawn (Depends-on): Add c++defs.
32714         (Makefile.am): Update spawn.h rule.
32715
32716         signal: Avoid #define replacements in C++ mode.
32717         * lib/signal.in.h: Include c++defs.h.
32718         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32719         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32720         namespaced alias symbol.
32721         * modules/signal (Depends-on): Add c++defs.
32722         (Makefile.am): Update signal.h rule.
32723
32724         search: Avoid #define replacements in C++ mode.
32725         * lib/search.in.h: Include c++defs.h.
32726         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32727         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32728         symbol.
32729         * modules/search (Depends-on): Add c++defs.
32730         (Makefile.am): Update search.h rule.
32731
32732         math: Avoid #define replacements in C++ mode.
32733         * lib/math.in.h: Include c++defs.h.
32734         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32735         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32736         trunc, truncl): In C++, define a namespaced alias symbol.
32737         * modules/math (Depends-on): Add c++defs.
32738         (Makefile.am): Update math.h rule.
32739
32740         locale: Avoid #define replacements in C++ mode.
32741         * lib/locale.in.h: Include c++defs.h.
32742         (duplocale): In C++, define a namespaced alias symbol.
32743         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32744         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32745         * modules/locale (Depends-on): Add c++defs.
32746         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32747
32748         langinfo: Avoid #define replacements in C++ mode.
32749         * lib/langinfo.in.h: Include c++defs.h.
32750         (nl_langinfo): In C++, define a namespaced alias symbol.
32751         * modules/langinfo (Depends-on): Add c++defs.
32752         (Makefile.am): Update langinfo.h rule.
32753
32754         iconv-h: Avoid #define replacements in C++ mode.
32755         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32756         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32757         symbol.
32758         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32759         whenever iconv is present.
32760         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32761         (Makefile.am): Update iconv.h rule.
32762
32763         glob: Avoid #define replacements in C++ mode.
32764         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32765         (_gl_glob_errfunc_fn): New type.
32766         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32767         symbol.
32768         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32769         (Makefile.am): Update glob.h rule.
32770
32771         fcntl-h: Avoid #define replacements in C++ mode.
32772         * lib/fcntl.in.h: Include c++defs.h.
32773         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32774         * modules/fcntl-h (Depends-on): Add c++defs.
32775         (Makefile.am): Update fcntl.h rule.
32776
32777         dirent: Avoid #define replacements in C++ mode.
32778         * lib/dirent.in.h: Include c++defs.h.
32779         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32780         namespaced alias symbol.
32781         (dirfd): Update declaration.
32782         * modules/dirent (Depends-on): Add c++defs.
32783         (Makefile.am): Update dirent.h rule.
32784
32785         ctype: Make it usable in C++ code.
32786         * lib/ctype.in.h: Include c++defs.h.
32787         (isblank): Declare as extern "C".
32788         * modules/ctype (Depends-on): Add c++defs.
32789         (Makefile.am): Update ctype.h rule.
32790
32791         New module 'c++defs'.
32792         * modules/c++defs: New file.
32793         * build-aux/c++defs.h: New file.
32794         Reported by John W. Eaton <jwe@gnu.org>.
32795
32796 2010-03-07  Bruno Haible  <bruno@clisp.org>
32797
32798         logb: Provide missing declaration for Cygwin.
32799         * lib/math.in.h (logb): New declaration.
32800         * m4/logb.m4: New file.
32801         * modules/logb (Files): Add m4/logb.m4.
32802         (Depends-on): Add math.
32803         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32804         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32806         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32807         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32808
32809 2010-03-07  Bruno Haible  <bruno@clisp.org>
32810
32811         Fix test-cond link error.
32812         * tests/test-cond.c: Include <stdio.h>.
32813
32814 2010-03-07  Bruno Haible  <bruno@clisp.org>
32815
32816         Fix test-dirent-safer link error.
32817         * modules/dirent-safer-tests (Makefile.am): Define
32818         test_dirent_safer_LDADD.
32819
32820 2010-03-07  Bruno Haible  <bruno@clisp.org>
32821
32822         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32823         among default module list.
32824
32825 2010-03-07  Bruno Haible  <bruno@clisp.org>
32826
32827         Fix link error on platforms with GNU libiconv.
32828         * modules/unistr/u8-strcoll-tests (Makefile): Define
32829         test_u8_strcoll_LDADD.
32830         * modules/unistr/u16-strcoll-tests (Makefile): Define
32831         test_u16_strcoll_LDADD.
32832         * modules/unistr/u32-strcoll-tests (Makefile): Define
32833         test_u32_strcoll_LDADD.
32834
32835 2010-03-07  Bruno Haible  <bruno@clisp.org>
32836
32837         Use POSIX declarations for socket functions.
32838         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32839         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32840         rpl_sendto): Change declaration to match POSIX.
32841         * lib/connect.c (rpl_connect): Likewise.
32842         * lib/accept.c (rpl_accept): Likewise.
32843         * lib/bind.c (rpl_bind): Likewise.
32844         * lib/getpeername.c (rpl_getpeername): Likewise.
32845         * lib/getsockname.c (rpl_getsockname): Likewise.
32846         * lib/recv.c (rpl_recv): Likewise.
32847         * lib/send.c (rpl_send): Likewise.
32848         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32849         * lib/sendto.c (rpl_sendto): Likewise.
32850
32851 2010-03-06  Bruno Haible  <bruno@clisp.org>
32852
32853         Clarify access, euidaccess, faccessat.
32854         * doc/posix-functions/faccessat.texi: Mention security problem under
32855         "Other problems", not "Portability problems".
32856         * doc/posix-functions/access.texi: Likewise. Mention a related security
32857         problem.
32858         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32859         * lib/euidaccess.c: Add comments about platforms.
32860         * lib/unistd.in.h (access, euidaccess): Add warnings.
32861
32862 2010-03-07  Bruno Haible  <bruno@clisp.org>
32863
32864         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32865         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32866         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32867         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32868         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32869         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32870         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32871         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32872         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32873         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32874         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32875         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32876         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32877         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32878         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32879         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32880         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32881         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32882         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32883         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32884         Likewise.
32885         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32886         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32887         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32888         Likewise.
32889         * tests/test-spawn.c (main): Make it work when
32890         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32891
32892 2010-03-07  Bruno Haible  <bruno@clisp.org>
32893
32894         Fix incorrect Makefile.am generation in German locale.
32895         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32896         Execute sed command with character range in C locale.
32897
32898 2010-03-06  Bruno Haible  <bruno@clisp.org>
32899
32900         Tests for module 'iconv-h'.
32901         * modules/iconv-h-tests: New file.
32902         * tests/test-iconv-h.c: New file.
32903
32904         New module 'iconv-h'.
32905         * modules/iconv-h: New file.
32906         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32907         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32908         (configure.ac): Remove gl_ICONV_H.
32909         (Makefile.am): Remove rule for iconv.h.
32910
32911 2010-03-06  Bruno Haible  <bruno@clisp.org>
32912
32913         More consistent naming of *.m4 files.
32914         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32915         * modules/wctype (Files): Update.
32916
32917         More consistent naming of *.m4 files.
32918         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32919         * modules/wchar (Files): Update.
32920
32921 2010-03-06  Jim Meyering  <meyering@redhat.com>
32922
32923         euidaccess: relax license to LGPLv2+
32924         * modules/euidaccess (License): Relax to LGPLv2+.
32925
32926 2010-03-06  Bruno Haible  <bruno@clisp.org>
32927
32928         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32929         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32930         (Makefile.am): Augment lib_SOURCES instead.
32931
32932 2010-03-04  Jim Meyering  <meyering@redhat.com>
32933
32934         utime: remove obsolete module
32935         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32936         unnecessary for years, and has been marked as obsolete for 10 months.
32937         * modules/utime: Remove file.
32938         * lib/utime.c: Remove file.
32939         * m4/utime.m4: Remove file.
32940         * m4/utimes-null.m4: Remove file.
32941         * doc/posix-functions/utime.texi (utime): Remove reference to
32942         the module.  Move the sole "fixed by gnulib" item into the
32943         "problems not fixed by Gnulib" list.
32944         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32945
32946 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32947
32948         * modules/exit (License): Relax license to LGPLv2+.
32949         (Status): Mark as obsolete.
32950         * NEWS: Mention deprecated 'exit' module.
32951         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32952         of now obsolete 'exit'.
32953
32954 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32955
32956         fts-lgpl: remove unused module
32957         * modules/fts-lgpl: Remove.
32958         * MODULES.html.sh (func_all_modules): Adjust.
32959         * check-module (find_included_lib_files): Adjust.
32960         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32961
32962 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32963
32964         copy-acl: enhance Solaris ACL error handling
32965         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32966         * lib/set-mode-acl.c (qset_acl): Likewise.
32967
32968 2010-03-02  Bruno Haible  <bruno@clisp.org>
32969
32970         spawn: Don't override the system defined values on FreeBSD 8.
32971         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32972         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32973         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32974         if HAVE_POSIX_SPAWN is 1.
32975         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32976
32977 2010-03-01  Bruno Haible  <bruno@clisp.org>
32978
32979         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32980         regarding Automake.
32981
32982 2010-02-25  Bruno Haible  <bruno@clisp.org>
32983
32984         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32985         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32986         setting, not afterwards.
32987         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32988
32989 2010-02-24  Eric Blake  <eblake@redhat.com>
32990
32991         bootstrap, git-version-gen: use timestamp
32992         * build-aux/git-version-gen (scriptversion): Force UTC.
32993         * build-aux/bootstrap (scriptversion): New variable.
32994
32995         bootstrap: allow older git
32996         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32997         older than 1.6.4.  Requested by the libvirt project.
32998
32999 2010-02-23  Eric Blake  <eblake@redhat.com>
33000
33001         warn-on-use: work with old autoconf
33002         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
33003         AS_VAR semantics of autoconf 2.60.
33004         Reported by Bruno Haible.
33005
33006         bootstrap: improve some comments
33007         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33008         clarification comments.
33009
33010         gettimeofday: provide correct function
33011         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33012         when replacement is declared, otherwise provide gettimeofday.
33013         Reported by Michael Goffioul.
33014
33015 2010-02-23  Jim Meyering  <meyering@redhat.com>
33016
33017         lib-ignore: relax license to "unlimited", not LGPLv2+
33018         * modules/lib-ignore (License): Relax to "unlimited".
33019
33020 2010-02-23  Jim Meyering  <meyering@redhat.com>
33021
33022         lib-ignore: relax license to LGPLv2+
33023         * modules/lib-ignore (License): Relax to LGPLv2+.
33024
33025 2010-02-22  Eric Blake  <eblake@redhat.com>
33026
33027         lseek: avoid bash 3.2 broken pipe bug
33028         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33029         warning from bash 3.2.
33030         Reported by Ben Pfaff, with analysis from Bruno Haible.
33031
33032         bootstrap: support non-FSF copyright holder
33033         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33034         bootstrap.conf override of COPYRIGHT_HOLDER.
33035         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33036
33037         bootstrap: interoperate with gettext 0.14.1
33038         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33039
33040         bootstrap: allow for alternate submodule location
33041         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33042         hardcoding submodule location.
33043         (gnulib_mk): Allow direct use of Makefile.am.
33044
33045         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33046         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33047         rather than reconfiguring where the submodule points.
33048
33049         gettimeofday: restore support for platforms that lack function
33050         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33051         replacement if function is missing.
33052         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33053         * modules/sys_time (Makefile.am): Substitute it.
33054         * lib/sys_time.in.h (gettimeofday): Check it.
33055         Reported by Michael Goffioul.
33056
33057 2010-02-21  Bruno Haible  <bruno@clisp.org>
33058
33059         * lib/stdio.in.h (obstack_printf): Fix typo.
33060
33061 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33062
33063         vc-list-files: use bzr ls's -R option
33064         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33065         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33066
33067 2010-02-21  Jim Meyering  <meyering@redhat.com>
33068
33069         init.sh: fix EXEEXT shims to work also for names like test-prog
33070         * tests/init.sh: Re-exec a better shell, when needed.
33071         If the current shell lacks support for posix $(...), an init.sh-using
33072         test will now try to find a shell that supports that.  If EXEEXT is
33073         nonempty, we also require support for hyphen-in-alias-name and shell
33074         substitutions like ${var#glob}.  Failure to find such a shell results
33075         in a skipped test.
33076
33077 2010-02-21  Bruno Haible  <bruno@clisp.org>
33078
33079         Really work around around "broken pipe" error message from bash 3.2.
33080         * gnulib-tool (func_reset_sigpipe): Remove function.
33081         (echo): In bash 3.2, define to a function that uses printf.
33082         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33083
33084 2010-02-20  Bruno Haible  <bruno@clisp.org>
33085
33086         Restore support for automake 1.9.6 with autoconf 2.61.
33087         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33088         Reported by James Youngman <jay@gnu.org>.
33089
33090 2010-02-20  Bruno Haible  <bruno@clisp.org>
33091
33092         Improve *printf warning condition.
33093         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33094         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33095         and the function is overridden due to SIGPIPE emulation.
33096
33097 2010-02-20  Bruno Haible  <bruno@clisp.org>
33098
33099         * lib/stdio.in.h: Tweak comments.
33100
33101 2010-02-19  Bruno Haible  <bruno@clisp.org>
33102
33103         Make it easier to find modules. New gnulib-tool option '--find'.
33104         * gnulib-tool: New option --find.
33105         (func_usage): Document it.
33106         (func_sanitize_modulelist): New function, extracted from
33107         func_all_modules.
33108         (func_all_modules): Invoke it.
33109         * doc/gnulib-tool.texi (Which modules?): New node.
33110
33111 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33112
33113         * lib/sys_select.in.h: Provide select replacement even if
33114         sys/select.h exists on a system, for Interix.
33115
33116 2010-02-18  Jim Meyering  <meyering@redhat.com>
33117
33118         init.sh: don't use $(...) just yet
33119         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33120         to accommodate e.g., Solaris' /bin/sh.
33121
33122 2010-02-17  Bruno Haible  <bruno@clisp.org>
33123
33124         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33125         Reported by Ludovic Courtès <ludo@gnu.org>.
33126
33127 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33128
33129         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33130         linking with -lintl.
33131
33132 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33133
33134         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33135         if not provided by the system's netdb.h.  Reported by
33136         ludo@gnu.org (Ludovic Courtès).
33137
33138 2010-02-15  Jim Meyering  <meyering@redhat.com>
33139
33140         init.sh: improve portability and efficiency
33141         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33142         "dummy" in a for loop.
33143         Use '!', not '^' to select the complement of a character set used
33144         in a "case" statement.
33145         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
33146         Suggestions from Eric Blake.
33147
33148         init.sh: automatically accommodate programs with the .exe suffix
33149         Automatically arrange for an invocation of "prog" to execute the
33150         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
33151         may use the simpler "prog", yet still work when built on a system
33152         that requires specifying the added suffix.
33153         Do this by constructing a function named "prog" that invokes
33154         "prog.exe" for each .exe file in selected directories.
33155         * tests/init.sh (find_exe_basenames_): New function.
33156         (create_exe_shim_functions_): New function.
33157         (path_prepend_): Use it.
33158
33159         maint.mk: mark syntax-check sc_*.m rules as .PHONY
33160         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
33161         "make -t syntax-check" doesn't create a ton of sc_*.m files.
33162
33163 2010-02-14  Jim Meyering  <meyering@redhat.com>
33164
33165         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
33166         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
33167         (sc_prohibit_hash_pjw_without_use): New rule.
33168
33169         maint.mk: allow the default upload destination dir to be overridden
33170         * top/maint.mk (upload_dest_dir_): Define with a default that
33171         preserves the status quo.
33172         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33173         Reported by Peter Simons.
33174
33175         maint.mk: prohibit inclusion of "hash.h" without_use
33176         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
33177
33178 2010-02-10  Jim Meyering  <meyering@redhat.com>
33179
33180         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33181         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33182
33183 2010-02-09  Eric Blake  <ebb9@byu.net>
33184         and Bruno Haible  <bruno@clisp.org>
33185
33186         obstack-printf-posix: ensure declaration
33187         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33188         extracted from gl_FUNC_OBSTACK_PRINTF.
33189         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33190         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33191         Likewise.
33192         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33193         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33194         0.
33195
33196 2010-02-08  Bruno Haible  <bruno@clisp.org>
33197
33198         gnulib-tool: Fix typo in 2010-02-07 commit.
33199         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33200         Reported by Eric Blake.
33201
33202 2010-02-07  Bruno Haible  <bruno@clisp.org>
33203
33204         gnulib-tool: Fix up caching patches.
33205         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33206         option --no-cache. Use associative arrays when supported by the shell.
33207         (sed_comments): New variable.
33208         (modcache): Renamed from do_cache.
33209         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33210         abbreviate unnecessarily.
33211         (have_associative): New variable.
33212         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33213         way also for ksh and zsh.
33214         (func_init_sed_convert_to_cache_statements): New function, extracted
33215         from func_cache_lookup_module. Add support for associative arrays.
33216         Don't set the c_MODULE_cached variable here. Ignore all lines before
33217         the first field header. Remove only the final newline, not all trailing
33218         newlines. Support empty fields correctly. Limit the use of 'eval' to
33219         assignments.
33220         (func_get_description, func_get_status, func_get_notice,
33221         func_get_applicability, func_get_filelist, func_get_dependencies,
33222         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33223         func_get_automake_snippet, func_get_include_directive,
33224         func_get_link_directive, func_get_license, func_get_maintainer):
33225         Update documentation. List the unoptimized code first. Add support for
33226         associative arrays. Limit the use of 'eval' to assignments.
33227         (func_get_applicability): Undo stylistic pessimisations.
33228         (func_get_automake_snippet, func_get_include_directive): Reduce code
33229         duplication.
33230         (func_modules_transitive_closure, func_modules_add_dummy,
33231         func_modules_notice, func_modules_to_filelist, func_add_file,
33232         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33233         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33234         func_create_testdir, func_create_megatestdir): Update documentation.
33235
33236 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33237
33238         * gnulib-tool (func_cache_lookup_module): Store the module name
33239         belonging to the cache variable; error out if two different
33240         module names map to the same cache variable name.
33241
33242 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33243
33244         gnulib-tool: Make caching optional.
33245         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
33246         Update matching short versions of --no-changelog.
33247         (func_usage): Update.
33248         (sed_extract_cache_prog): Renamed from ...
33249         (sed_extract_prog): ... this; revert to old extraction script.
33250         (func_get_description, func_get_status)
33251         (func_get_notice, func_get_applicability, func_get_filelist)
33252         (func_get_dependencies, func_get_autoconf_early_snippet)
33253         (func_get_autoconf_snippet, func_get_automake_snippet)
33254         (func_get_include_directive, func_get_link_directive)
33255         (func_get_license, func_get_maintainer): If $do_cache is false,
33256         use old, non-caching extraction scripts.
33257         Suggestion by Bruno Haible.
33258
33259 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33260
33261         gnulib-tool: cache module metainformation.
33262         * gnulib-tool (sed_extract_prog): Match newline before each
33263         header, and rewrite header to a shell variable suffix.
33264         (func_cache_var, func_cache_lookup_module): New functions,
33265         to turn a module name into a cache variable prefix, and to
33266         look up and cache module metainformation.
33267         (func_get_description, func_get_status)
33268         (func_get_notice, func_get_applicability, func_get_filelist)
33269         (func_get_dependencies, func_get_autoconf_early_snippet)
33270         (func_get_autoconf_snippet, func_get_automake_snippet)
33271         (func_get_include_directive, func_get_link_directive)
33272         (func_get_license, func_get_maintainer): Use
33273         func_cache_lookup_module.
33274
33275 2010-02-07  Bruno Haible  <bruno@clisp.org>
33276
33277         fnctl: Fix missing dependency.
33278         * modules/fcntl (Depends-on): Add getdtablesize.
33279         Reported by John W. Eaton <jwe@gnu.org>.
33280
33281 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33282
33283         Argp: fix recognition of short alias options.
33284
33285         * lib/argp-parse.c (convert_options): Fix improper use of
33286         `|' between character values.
33287         * tests/test-argp.c (group1_option): New alias option
33288         --read (-r).
33289         (group1_parser): Special handling for 'r'.
33290         (test15): New test case.
33291         (test_fun): Add test15.
33292         * tests/test-argp-2.sh: Update expected --help and --usage
33293         outputs.
33294
33295 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33296
33297         * tests/test-argp.c: Fix indentation.
33298
33299 2010-02-04  Eric Blake  <ebb9@byu.net>
33300
33301         gettimeofday: expose type of second argument
33302         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33303         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33304         * tests/test-gettimeofday.c: Use it to silence warning.
33305         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33306         the issue.
33307
33308 2010-02-03  Jim Meyering  <meyering@redhat.com>
33309
33310         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33311         * lib/regcomp.c (TYPE_SIGNED): Define.
33312         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33313
33314         regcomp.c: avoid a new -Wshadow warning
33315         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33316
33317 2010-02-01  Jim Meyering  <meyering@redhat.com>
33318
33319         removing useless parentheses in cpp #define directives
33320         For motivation, see commit c0221df4, "define STREQ(a,b)
33321         consistently, removing useless parentheses"
33322         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33323         * lib/mountlist.c (MNT_IGNORE): Likewise.
33324         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33325
33326 2010-02-01  Eric Blake  <ebb9@byu.net>
33327
33328         sys_time: use link-warning
33329         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33330         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33331         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33332         * modules/sys_time (Depends-on): Add warn-on-use.
33333         (Makefile.am): Always build replacement.
33334         (configure.ac): Update substitutions.
33335         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33336         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33337         bother with SYS_TIME_H.
33338         * modules/gettimeofday (configure.ac): Declare indicator.
33339         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33340         in use.
33341
33342         closein-tests: silence compiler warning
33343         * tests/test-closein.c (main): Ignore fread result.
33344         * modules/closein-tests (Depends-on): Add ignore-value.
33345
33346         tests: silence warning about system return
33347         * tests/test-areadlink-with-size.c (main): Ignore system result.
33348         * tests/test-areadlink.c (main): Likewise.
33349         * tests/test-areadlinkat-with-size.c (main): Likewise.
33350         * tests/test-areadlinkat.c (main): Likewise.
33351         * tests/test-canonicalize-lgpl.c (main): Likewise.
33352         * tests/test-canonicalize.c (main): Likewise.
33353         * tests/test-chown.c (main): Likewise.
33354         * tests/test-fchownat.c (main): Likewise.
33355         * tests/test-fdutimensat.c (main): Likewise.
33356         * tests/test-fstatat.c (main): Likewise.
33357         * tests/test-futimens.c (main): Likewise.
33358         * tests/test-lchown.c (main): Likewise.
33359         * tests/test-link.c (main): Likewise.
33360         * tests/test-linkat.c (main): Likewise.
33361         * tests/test-lstat.c (main): Likewise.
33362         * tests/test-mkdir.c (main): Likewise.
33363         * tests/test-mkdirat.c (main): Likewise.
33364         * tests/test-mkfifo.c (main): Likewise.
33365         * tests/test-mkfifoat.c (main): Likewise.
33366         * tests/test-mknod.c (main): Likewise.
33367         * tests/test-readlink.c (main): Likewise.
33368         * tests/test-remove.c (main): Likewise.
33369         * tests/test-rename.c (main): Likewise.
33370         * tests/test-renameat.c (main): Likewise.
33371         * tests/test-rmdir.c (main): Likewise.
33372         * tests/test-symlink.c (main): Likewise.
33373         * tests/test-symlinkat.c (main): Likewise.
33374         * tests/test-unlink.c (main): Likewise.
33375         * tests/test-unlinkat.c (main): Likewise.
33376         * tests/test-utimens.c (main): Likewise.
33377         * tests/test-utimensat.c (main): Likewise.
33378         * modules/areadlink-tests (Depends-on): Add ignore-value.
33379         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33380         * modules/areadlinkat-tests (Depends-on): Likewise.
33381         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33382         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33383         * modules/canonicalize-tests (Depends-on): Likewise.
33384         * modules/chown-tests (Depends-on): Likewise.
33385         * modules/fdutimensat-tests (Depends-on): Likewise.
33386         * modules/futimens-tests (Depends-on): Likewise.
33387         * modules/lchown-tests (Depends-on): Likewise.
33388         * modules/link-tests (Depends-on): Likewise.
33389         * modules/linkat-tests (Depends-on): Likewise.
33390         * modules/lstat-tests (Depends-on): Likewise.
33391         * modules/mkdir-tests (Depends-on): Likewise.
33392         * modules/mkfifo-tests (Depends-on): Likewise.
33393         * modules/mkfifoat-tests (Depends-on): Likewise.
33394         * modules/mknod-tests (Depends-on): Likewise.
33395         * modules/openat-tests (Depends-on): Likewise.
33396         * modules/readlink-tests (Depends-on): Likewise.
33397         * modules/remove-tests (Depends-on): Likewise.
33398         * modules/rename-tests (Depends-on): Likewise.
33399         * modules/renameat-tests (Depends-on): Likewise.
33400         * modules/rmdir-tests (Depends-on): Likewise.
33401         * modules/symlink-tests (Depends-on): Likewise.
33402         * modules/symlinkat-tests (Depends-on): Likewise.
33403         * modules/unlink-tests (Depends-on): Likewise.
33404         * modules/utimens-tests (Depends-on): Likewise.
33405         * modules/utimensat-tests (Depends-on): Likewise.
33406
33407 2010-01-31  Bruno Haible  <bruno@clisp.org>
33408
33409         Perform the same test for many <math.h> functions.
33410         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33411         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33412         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33413         of gl_MATHFUNC.
33414         * modules/acos (configure.ac): Likewise.
33415         * modules/asin (configure.ac): Likewise.
33416         * modules/atan (configure.ac): Likewise.
33417         * modules/atan2 (configure.ac): Likewise.
33418         * modules/cbrt (configure.ac): Likewise.
33419         * modules/copysign (configure.ac): Likewise.
33420         * modules/cos (configure.ac): Likewise.
33421         * modules/cosh (configure.ac): Likewise.
33422         * modules/erf (configure.ac): Likewise.
33423         * modules/erfc (configure.ac): Likewise.
33424         * modules/exp (configure.ac): Likewise.
33425         * modules/fmod (configure.ac): Likewise.
33426         * modules/hypot (configure.ac): Likewise.
33427         * modules/j0 (configure.ac): Likewise.
33428         * modules/j1 (configure.ac): Likewise.
33429         * modules/jn (configure.ac): Likewise.
33430         * modules/lgamma (configure.ac): Likewise.
33431         * modules/log (configure.ac): Likewise.
33432         * modules/log10 (configure.ac): Likewise.
33433         * modules/log1p (configure.ac): Likewise.
33434         * modules/pow (configure.ac): Likewise.
33435         * modules/remainder (configure.ac): Likewise.
33436         * modules/sin (configure.ac): Likewise.
33437         * modules/sinh (configure.ac): Likewise.
33438         * modules/tan (configure.ac): Likewise.
33439         * modules/tanh (configure.ac): Likewise.
33440         * modules/y0 (configure.ac): Likewise.
33441         * modules/y1 (configure.ac): Likewise.
33442         * modules/yn (configure.ac): Likewise.
33443         Suggested by Paolo Bonzini.
33444
33445 2010-01-31  Bruno Haible  <bruno@clisp.org>
33446
33447         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33448
33449 2010-01-31  Bruno Haible  <bruno@clisp.org>
33450
33451         Work around getdelim() bug on FreeBSD 8.0.
33452         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33453         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33454         not work.
33455         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33456         is 1.
33457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33458         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33459         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33460         a non-zero size.
33461         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33462
33463 2010-01-31  Bruno Haible  <bruno@clisp.org>
33464
33465         Work around getline() bug on FreeBSD 8.0.
33466         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33467         and a non-zero size.
33468         * tests/test-getline.c (main): Likewise.
33469         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33470         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33471
33472 2010-01-28  Eric Blake  <ebb9@byu.net>
33473
33474         regex: fix build failure
33475         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33476         platforms.
33477
33478 2010-01-28  Jim Meyering  <meyering@redhat.com>
33479
33480         regex: do not ignore memory allocation failure
33481         * lib/regex_internal.c (create_cd_newstate): Detect
33482         re_node_set_init_copy failure.   Extracted from glibc commit
33483         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33484
33485         regex: sync more white-space changes from libc
33486         * lib/regex_internal.c: White-space only changes.
33487         * lib/regexec.c: Likewise.
33488
33489         regex: add many uses of __attribute_warn_unused_result__
33490         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33491         * lib/regexec.c: Likewise.
33492         Extracted from a messy glibc commit.
33493
33494         regcomp.c: spelling and merge-artifact from glibc
33495         * lib/regcomp.c: Merge remainder of glibc's
33496         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33497
33498         regcomp.c: sync white-space changes from glibc
33499         * lib/regcomp.c: Merge to accommodate white space
33500         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33501
33502         regcomp.c: do not ignore internal return values
33503         * lib/regcomp.c: Do not ignore internal return values.
33504         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33505         but without its white-space changes and spelling fixes.
33506
33507         regex_internal.h: define __attribute_warn_unused_result__
33508         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33509
33510         maint: add a syntax-check rule to check for vulnerable Makefile.in
33511         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33512
33513 2010-01-27  Jim Meyering  <meyering@redhat.com>
33514
33515         ncftpput-ftp: clean up spaces
33516         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33517         Remove trailing blanks.
33518
33519 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33520
33521         * build-aux/git-version-gen: Fix copyright statement.
33522         * build-aux/gnupload: Likewise.
33523         * tests/test-arcfour.c: Likewise.
33524         * tests/test-arctwo.c: Likewise.
33525         * tests/test-count-one-bits.c: Likewise.
33526         * tests/test-crc.c: Likewise.
33527         * tests/test-des.c: Likewise.
33528         * tests/test-gc-arcfour.c: Likewise.
33529         * tests/test-gc-arctwo.c: Likewise.
33530         * tests/test-gc-des.c: Likewise.
33531         * tests/test-gc-hmac-md5.c: Likewise.
33532         * tests/test-gc-hmac-sha1.c: Likewise.
33533         * tests/test-gc-md2.c: Likewise.
33534         * tests/test-gc-md4.c: Likewise.
33535         * tests/test-gc-md5.c: Likewise.
33536         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33537         * tests/test-gc-rijndael.c: Likewise.
33538         * tests/test-gc-sha1.c: Likewise.
33539         * tests/test-gc.c: Likewise.
33540         * tests/test-gethostname.c: Likewise.
33541         * tests/test-gettimeofday.c: Likewise.
33542         * tests/test-hash.c: Likewise.
33543         * tests/test-hmac-md5.c: Likewise.
33544         * tests/test-hmac-sha1.c: Likewise.
33545         * tests/test-md2.c: Likewise.
33546         * tests/test-md4.c: Likewise.
33547         * tests/test-md5.c: Likewise.
33548         * tests/test-memchr.c: Likewise.
33549         * tests/test-memchr2.c: Likewise.
33550         * tests/test-memcmp.c: Likewise.
33551         * tests/test-memmem.c: Likewise.
33552         * tests/test-memrchr.c: Likewise.
33553         * tests/test-rawmemchr.c: Likewise.
33554         * tests/test-read-file.c: Likewise.
33555         * tests/test-rijndael.c: Likewise.
33556         * tests/test-sockets.c: Likewise.
33557         * tests/test-strchrnul.c: Likewise.
33558         * tests/test-strstr.c: Likewise.
33559         * tests/test-strtod.c: Likewise.
33560         * build-aux/ncftpput-ftp: Likewise.
33561
33562 2010-01-26  Eric Blake  <ebb9@byu.net>
33563
33564         ignore-value: update recommended header name
33565         * modules/ignore-value (Include): Only use <> for headers that
33566         exist in glibc.
33567
33568 2010-01-26  Jim Meyering  <meyering@redhat.com>
33569
33570         test-userspec.c: avoid compiler warnings
33571         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33572         and "initialization discards qualifiers..." warnings.
33573         Put the first "uid" in its own scope, and make char* members "const".
33574
33575 2010-01-25  Bruno Haible  <bruno@clisp.org>
33576
33577         gnulib-tool: Make warning diagnostics consistent.
33578         * gnulib-tool (func_warning): New function.
33579         Use it everywhere where gnulib-tool produces output to stderr and it is
33580         not a fatal error.
33581
33582 2010-01-25  Bruno Haible  <bruno@clisp.org>
33583
33584         Fix test dependencies.
33585         * modules/xstrtol-tests (Depends-on): Add inttypes.
33586         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33587
33588 2010-01-25 Pádraig Brady <P@draigBrady.com>
33589
33590         syntax-check: detect incorrect boolean macro values in config.h
33591         * modules/maintainer-makefile (configure.ac): Parameterize the location
33592         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33593         The logic is from Eric Blake and the location indicated by Jim Meyering.
33594         Note the more natural CONFIG_HEADER name is prohibited by automake
33595         for backwards compatibility reasons.
33596         * top/maint.mk (sc_Wundef_boolean): New rule.
33597
33598 2010-01-25  Jim Meyering  <meyering@redhat.com>
33599
33600         bootstrap: detect MacOS 10.6's shasum, too
33601         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33602         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33603
33604 2010-01-23  Jim Meyering  <meyering@redhat.com>
33605
33606         xstrtoll: new module
33607         * modules/xstrtoll: New file.
33608         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33609         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33610         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33611         ./configure fails if you use this module and lack "long long".
33612         * modules/xstrtoll-tests: New module.
33613         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33614         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33615         new init.sh-based test framework.
33616
33617 2010-01-24  Bruno Haible  <bruno@clisp.org>
33618
33619         Tests for module 'yn'.
33620         * modules/yn-tests: New file.
33621         * tests/test-yn.c: New file.
33622
33623         Tests for module 'y1'.
33624         * modules/y1-tests: New file.
33625         * tests/test-y1.c: New file.
33626
33627         Tests for module 'y0'.
33628         * modules/y0-tests: New file.
33629         * tests/test-y0.c: New file.
33630
33631         Tests for module 'tanh'.
33632         * modules/tanh-tests: New file.
33633         * tests/test-tanh.c: New file.
33634
33635         Tests for module 'tan'.
33636         * modules/tan-tests: New file.
33637         * tests/test-tan.c: New file.
33638
33639         Tests for module 'sqrt'.
33640         * modules/sqrt-tests: New file.
33641         * tests/test-sqrt.c: New file.
33642
33643         Tests for module 'sinh'.
33644         * modules/sinh-tests: New file.
33645         * tests/test-sinh.c: New file.
33646
33647         Tests for module 'sin'.
33648         * modules/sin-tests: New file.
33649         * tests/test-sin.c: New file.
33650
33651         Tests for module 'rint'.
33652         * modules/rint-tests: New file.
33653         * tests/test-rint.c: New file.
33654
33655         Tests for module 'remainder'.
33656         * modules/remainder-tests: New file.
33657         * tests/test-remainder.c: New file.
33658
33659         Tests for module 'pow'.
33660         * modules/pow-tests: New file.
33661         * tests/test-pow.c: New file.
33662
33663         Tests for module 'nextafter'.
33664         * modules/nextafter-tests: New file.
33665         * tests/test-nextafter.c: New file.
33666
33667         Tests for module 'modf'.
33668         * modules/modf-tests: New file.
33669         * tests/test-modf.c: New file.
33670
33671         Tests for module 'logb'.
33672         * modules/logb-tests: New file.
33673         * tests/test-logb.c: New file.
33674
33675         Tests for module 'log1p'.
33676         * modules/log1p-tests: New file.
33677         * tests/test-log1p.c: New file.
33678
33679         Tests for module 'log10'.
33680         * modules/log10-tests: New file.
33681         * tests/test-log10.c: New file.
33682
33683         Tests for module 'log'.
33684         * modules/log-tests: New file.
33685         * tests/test-log.c: New file.
33686
33687         Tests for module 'lgamma'.
33688         * modules/lgamma-tests: New file.
33689         * tests/test-lgamma.c: New file.
33690
33691         Tests for module 'ldexp'.
33692         * modules/ldexp-tests: New file.
33693         * tests/test-ldexp.c: New file.
33694
33695         Tests for module 'jn'.
33696         * modules/jn-tests: New file.
33697         * tests/test-jn.c: New file.
33698
33699         Tests for module 'j1'.
33700         * modules/j1-tests: New file.
33701         * tests/test-j1.c: New file.
33702
33703         Tests for module 'j0'.
33704         * modules/j0-tests: New file.
33705         * tests/test-j0.c: New file.
33706
33707         Tests for module 'hypot'.
33708         * modules/hypot-tests: New file.
33709         * tests/test-hypot.c: New file.
33710
33711         Tests for module 'fmod'.
33712         * modules/fmod-tests: New file.
33713         * tests/test-fmod.c: New file.
33714
33715         Tests for module 'fabs'.
33716         * modules/fabs-tests: New file.
33717         * tests/test-fabs.c: New file.
33718
33719         Tests for module 'exp'.
33720         * modules/exp-tests: New file.
33721         * tests/test-exp.c: New file.
33722
33723         Tests for module 'erfc'.
33724         * modules/erfc-tests: New file.
33725         * tests/test-erfc.c: New file.
33726
33727         Tests for module 'erf'.
33728         * modules/erf-tests: New file.
33729         * tests/test-erf.c: New file.
33730
33731         Tests for module 'cosh'.
33732         * modules/cosh-tests: New file.
33733         * tests/test-cosh.c: New file.
33734
33735         Tests for module 'cos'.
33736         * modules/cos-tests: New file.
33737         * tests/test-cos.c: New file.
33738
33739         Tests for module 'copysign'.
33740         * modules/copysign-tests: New file.
33741         * tests/test-copysign.c: New file.
33742
33743         Tests for module 'cbrt'.
33744         * modules/cbrt-tests: New file.
33745         * tests/test-cbrt.c: New file.
33746
33747         Tests for module 'atan2'.
33748         * modules/atan2-tests: New file.
33749         * tests/test-atan2.c: New file.
33750
33751         Tests for module 'atan'.
33752         * modules/atan-tests: New file.
33753         * tests/test-atan.c: New file.
33754
33755         Tests for module 'asin'.
33756         * modules/asin-tests: New file.
33757         * tests/test-asin.c: New file.
33758
33759         Tests for module 'acos'.
33760         * modules/acos-tests: New file.
33761         * tests/test-acos.c: New file.
33762
33763 2010-01-24  Bruno Haible  <bruno@clisp.org>
33764
33765         Fix tests for common <math.h> functions.
33766         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33767         code snippet that references the function pointer, rather than merely
33768         calling the function. Substitute the FUNC_LIBM variable.
33769         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33770         * modules/acos (configure.ac): Likewise.
33771         * modules/asin (configure.ac): Likewise.
33772         * modules/atan (configure.ac): Likewise.
33773         * modules/atan2 (configure.ac): Likewise.
33774         * modules/cbrt (configure.ac): Likewise.
33775         * modules/copysign (configure.ac): Likewise.
33776         * modules/cos (configure.ac): Likewise.
33777         * modules/cosh (configure.ac): Likewise.
33778         * modules/erf (configure.ac): Likewise.
33779         * modules/erfc (configure.ac): Likewise.
33780         * modules/exp (configure.ac): Likewise.
33781         * modules/fabs (configure.ac): Likewise.
33782         * modules/fmod (configure.ac): Likewise.
33783         * modules/hypot (configure.ac): Likewise.
33784         * modules/j0 (configure.ac): Likewise.
33785         * modules/j1 (configure.ac): Likewise.
33786         * modules/jn (configure.ac): Likewise.
33787         * modules/ldexp (configure.ac): Likewise.
33788         * modules/lgamma (configure.ac): Likewise.
33789         * modules/log (configure.ac): Likewise.
33790         * modules/log10 (configure.ac): Likewise.
33791         * modules/log1p (configure.ac): Likewise.
33792         * modules/logb (configure.ac): Likewise.
33793         * modules/modf (configure.ac): Likewise.
33794         * modules/nextafter (configure.ac): Likewise.
33795         * modules/pow (configure.ac): Likewise.
33796         * modules/remainder (configure.ac): Likewise.
33797         * modules/rint (configure.ac): Likewise.
33798         * modules/sin (configure.ac): Likewise.
33799         * modules/sinh (configure.ac): Likewise.
33800         * modules/tan (configure.ac): Likewise.
33801         * modules/tanh (configure.ac): Likewise.
33802         * modules/y0 (configure.ac): Likewise.
33803         * modules/y1 (configure.ac): Likewise.
33804         * modules/yn (configure.ac): Likewise.
33805
33806 2010-01-24  Bruno Haible  <bruno@clisp.org>
33807
33808         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33809         * tests/test-acosl.c (x): New variable.
33810         (main): Store argument in x and fetch it from x.
33811         * tests/test-asinl.c (x): New variable.
33812         (main): Store argument in x and fetch it from x.
33813         * tests/test-atanl.c (x): New variable.
33814         (main): Store argument in x and fetch it from x.
33815         * tests/test-cosl.c (x): New variable.
33816         (main): Store argument in x and fetch it from x.
33817         * tests/test-expl.c (x): New variable.
33818         (main): Store argument in x and fetch it from x.
33819         * tests/test-logl.c (x): New variable.
33820         (main): Store argument in x and fetch it from x.
33821         * tests/test-sinl.c (x): New variable.
33822         (main): Store argument in x and fetch it from x.
33823         * tests/test-sqrtl.c (x): New variable.
33824         (main): Store argument in x and fetch it from x.
33825         * tests/test-tanl.c (x): New variable.
33826         (main): Store argument in x and fetch it from x.
33827
33828 2010-01-24  Bruno Haible  <bruno@clisp.org>
33829
33830         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33831         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33832         assignments to the initial TESTS_ENVIRONMENT.
33833         * doc/gnulib.texi (Unit test modules): Document it.
33834         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33835         TESTS_ENVIRONMENT.
33836         * modules/btowc-tests (Makefile.am): Likewise.
33837         * modules/c-stack-tests (Makefile.am): Likewise.
33838         * modules/c-strcase-tests (Makefile.am): Likewise.
33839         * modules/copy-file-tests (Makefile.am): Likewise.
33840         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33841         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33842         * modules/mbrtowc-tests (Makefile.am): Likewise.
33843         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33844         * modules/mbscasestr-tests (Makefile.am): Likewise.
33845         * modules/mbschr-tests (Makefile.am): Likewise.
33846         * modules/mbscspn-tests (Makefile.am): Likewise.
33847         * modules/mbsinit-tests (Makefile.am): Likewise.
33848         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33849         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33850         * modules/mbspbrk-tests (Makefile.am): Likewise.
33851         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33852         * modules/mbsrchr-tests (Makefile.am): Likewise.
33853         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33854         * modules/mbsspn-tests (Makefile.am): Likewise.
33855         * modules/mbsstr-tests (Makefile.am): Likewise.
33856         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33857         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33858         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33859         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33860         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33861         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33862         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33863         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33864         * modules/wcrtomb-tests (Makefile.am): Likewise.
33865         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33866         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33867         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33868         assignments from TESTS_ENVIRONMENT.
33869         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33870         augmentation.
33871         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33872         * modules/atexit-tests (Makefile.am): Likewise.
33873         * modules/binary-io-tests (Makefile.am): Likewise.
33874         * modules/closein-tests (Makefile.am): Likewise.
33875         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33876         * modules/exclude-tests (Makefile.am): Likewise.
33877         * modules/fflush-tests (Makefile.am): Likewise.
33878         * modules/fpending-tests (Makefile.am): Likewise.
33879         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33880         * modules/freadahead-tests (Makefile.am): Likewise.
33881         * modules/freadptr-tests (Makefile.am): Likewise.
33882         * modules/freadseek-tests (Makefile.am): Likewise.
33883         * modules/fseek-tests (Makefile.am): Likewise.
33884         * modules/fseeko-tests (Makefile.am): Likewise.
33885         * modules/ftell-tests (Makefile.am): Likewise.
33886         * modules/ftello-tests (Makefile.am): Likewise.
33887         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33888         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33889         * modules/lseek-tests (Makefile.am): Likewise.
33890         * modules/parse-duration-tests (Makefile.am): Likewise.
33891         * modules/perror-tests (Makefile.am): Likewise.
33892         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33893         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33894         * modules/pipe-tests (Makefile.am): Likewise.
33895         * modules/pread-tests (Makefile.am): Likewise.
33896         * modules/printf-posix-tests (Makefile.am): Likewise.
33897         * modules/select-tests (Makefile.am): Likewise.
33898         * modules/sigpipe-tests (Makefile.am): Likewise.
33899         * modules/tsearch-tests (Makefile.am): Likewise.
33900         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33901         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33902         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33903         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33904         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33905         * modules/version-etc-tests (Makefile.am): Likewise.
33906         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33907         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33908         * modules/xalloc-die-tests (Makefile.am): Likewise.
33909         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33910         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33911         * modules/xstrtol-tests (Makefile.am): Likewise.
33912         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33913         * modules/yesno-tests (Makefile.am): Likewise.
33914         Suggested by Jim Meyering.
33915
33916 2010-01-24  Bruno Haible  <bruno@clisp.org>
33917
33918         More documentation.
33919         * doc/gnulib.texi (Writing modules): New chapter.
33920         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33921         the new chapter.
33922
33923 2010-01-24  Jim Meyering  <meyering@redhat.com>
33924
33925         maint.mk: do not prepend "./" after filtering
33926         * top/maint.mk (_prepend_srcdir_prefix): New variable
33927         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33928         "./" when $(srcdir) is ".".
33929
33930         define STREQ(a,b) consistently, removing useless parentheses
33931         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33932         since the only risk is that "a" or "b" contains an unparenthesized
33933         comma, but if either did that, STREQ would have 3 or more arguments.
33934         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33935         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33936         * lib/hash-triple.c (STREQ): Likewise.
33937         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33938         * lib/getugroups.c (STREQ): Likewise.
33939
33940 2010-01-23  Jim Meyering  <meyering@redhat.com>
33941
33942         maint.mk: fix syntax-check in a non-srcdir build directory
33943         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33944         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33945
33946 2010-01-22  Jim Meyering  <meyering@redhat.com>
33947
33948         userspec: add unit tests
33949         * tests/test-userspec.c: New file.
33950         * modules/userspec-tests: Likewise.
33951
33952 2010-01-21  Jim Meyering  <meyering@redhat.com>
33953
33954         maint.mk: handle source file names containing "." robustly
33955         * top/maint.mk (_dot_escaped_srcdir): Define.
33956         (VC_LIST): Use it in LHS of sed substitution.
33957
33958 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33959
33960         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33961         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33962         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33963         from a non-srcdir build.
33964
33965 2010-01-20  Eric Blake  <ebb9@byu.net>
33966
33967         warn-on-use: use instead of link-warning
33968         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33969         * modules/unistd (Depends-on, Makefile.am): Likewise.
33970         * modules/arpa_inet (Depends-on): Replace link-warning with
33971         warn-on-use.
33972         (Makefile.am): Update rules accordingly.
33973         * modules/ctype (Depends-on, Makefile.am): Likewise.
33974         * modules/dirent (Depends-on, Makefile.am): Likewise.
33975         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33976         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33977         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33978         * modules/locale (Depends-on, Makefile.am): Likewise.
33979         * modules/math (Depends-on, Makefile.am): Likewise.
33980         * modules/search (Depends-on, Makefile.am): Likewise.
33981         * modules/signal (Depends-on, Makefile.am): Likewise.
33982         * modules/spawn (Depends-on, Makefile.am): Likewise.
33983         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33984         * modules/string (Depends-on, Makefile.am): Likewise.
33985         * modules/strings (Depends-on, Makefile.am): Likewise.
33986         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33987         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33988         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33989         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33990         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33991         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33992         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33993         * modules/wchar (Depends-on, Makefile.am): Likewise.
33994         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33995         should be poisoned.
33996         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33997         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33998         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33999         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34000         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34001         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34002         * m4/math_h.m4 (gl_MATH_H): Likewise.
34003         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34004         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34005         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34006         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34007         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34008         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34009         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34010         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34011         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34012         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34013         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34014         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34015         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34016         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34017         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34018         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34019         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34020         GL_LINK_WARNING.
34021         * lib/ctype.in.h: Likewise.
34022         * lib/dirent.in.h: Likewise.
34023         * lib/fcntl.in.h: Likewise.
34024         * lib/inttypes.in.h: Likewise.
34025         * lib/langinfo.in.h: Likewise.
34026         * lib/locale.in.h: Likewise.
34027         * lib/math.in.h: Likewise.
34028         * lib/search.in.h: Likewise.
34029         * lib/signal.in.h: Likewise.
34030         * lib/spawn.in.h: Likewise.
34031         * lib/stdio.in.h: Likewise.
34032         * lib/stdlib.in.h: Likewise.
34033         * lib/string.in.h: Likewise.
34034         * lib/strings.in.h: Likewise.
34035         * lib/sys_file.in.h: Likewise.
34036         * lib/sys_ioctl.in.h: Likewise.
34037         * lib/sys_select.in.h: Likewise.
34038         * lib/sys_socket.in.h: Likewise.
34039         * lib/sys_stat.in.h: Likewise.
34040         * lib/sys_times.in.h: Likewise.
34041         * lib/sys_utsname.in.h: Likewise.
34042         * lib/unistd.in.h: Likewise.
34043         * lib/wchar.in.h: Likewise.
34044
34045 2010-01-20  Bruno Haible  <bruno@clisp.org>
34046
34047         Avoid duplicate -lm.
34048         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34049         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34050         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34051         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34052         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34053         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34054         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34055         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34056         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34057         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34058         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34059         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34060         Reported by Paolo Bonzini.
34061
34062 2010-01-19  Bruno Haible  <bruno@clisp.org>
34063
34064         langinfo, nl_langinfo: Relicense under LGPLv2+.
34065         * modules/langinfo (License): Change to LGPLv2+.
34066         * modules/nl_langinfo (License): Likewise.
34067         Patch by David Lutterkort <lutter@redhat.com>.
34068
34069 2010-01-19  Bruno Haible  <bruno@clisp.org>
34070
34071         Avoid compilation error with cc on OSF/1 5.1.
34072         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34073         statement, not before.
34074         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34075
34076 2010-01-18  Bruno Haible  <bruno@clisp.org>
34077
34078         Avoid a link error due to the __printf__ symbol.
34079         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34080         and 2.6.x.
34081         (__format__, __printf__): Remove definitions.
34082         * lib/argp-fmtstream.h: Likewise.
34083         * lib/argp.h: Likewise.
34084         * lib/error.h: Likewise.
34085         * lib/vasnprintf.h: Likewise.
34086         * lib/xprintf.h: Likewise.
34087         * lib/xvasprintf.h: Likewise.
34088         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34089
34090 2010-01-18  Bruno Haible  <bruno@clisp.org>
34091
34092         Tests for module 'tanl'.
34093         * modules/tanl-tests: New file.
34094         * tests/test-tanl.c: New file.
34095
34096         Tests for module 'sqrtl'.
34097         * modules/sqrtl-tests: New file.
34098         * tests/test-sqrtl.c: New file.
34099
34100         Tests for module 'sinl'.
34101         * modules/sinl-tests: New file.
34102         * tests/test-sinl.c: New file.
34103
34104         Tests for module 'logl'.
34105         * modules/logl-tests: New file.
34106         * tests/test-logl.c: New file.
34107
34108         Tests for module 'expl'.
34109         * modules/expl-tests: New file.
34110         * tests/test-expl.c: New file.
34111
34112         Tests for module 'cosl'.
34113         * modules/cosl-tests: New file.
34114         * tests/test-cosl.c: New file.
34115
34116         Tests for module 'atanl'.
34117         * modules/atanl-tests: New file.
34118         * tests/test-atanl.c: New file.
34119
34120         Tests for module 'asinl'.
34121         * modules/asinl-tests: New file.
34122         * tests/test-asinl.c: New file.
34123
34124         Tests for module 'acosl'.
34125         * modules/acosl-tests: New file.
34126         * tests/test-acosl.c: New file.
34127
34128         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34129         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34130         tanl): Use the standard gnulib idiom.
34131         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34132         * lib/sinl.c: Likewise.
34133         * lib/tanl.c: Don't include trigl.c.
34134         (kernel_tanl): Make static.
34135         * lib/sincosl.c: Include trigl.h first.
34136         * lib/trigl.c: Likewise.
34137         * m4/acosl.m4: New file.
34138         * m4/asinl.m4: New file.
34139         * m4/atanl.m4: New file.
34140         * m4/cosl.m4: New file.
34141         * m4/expl.m4: New file.
34142         * m4/logl.m4: New file.
34143         * m4/sinl.m4: New file.
34144         * m4/sqrtl.m4: New file.
34145         * m4/tanl.m4: New file.
34146         * m4/mathl.m4: Remove file.
34147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
34148         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34149         Don't initialize GNULIB_MATHL.
34150         * modules/acosl: New file.
34151         * modules/asinl: New file.
34152         * modules/atanl: New file.
34153         * modules/cosl: New file.
34154         * modules/expl: New file.
34155         * modules/logl: New file.
34156         * modules/sinl: New file.
34157         * modules/sqrtl: New file.
34158         * modules/tanl: New file.
34159         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
34160         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
34161         substitute GNULIB_MATHL.
34162         * modules/mathl: Rewritten.
34163         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
34164         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
34165         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
34166         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
34167         * doc/posix-functions/expl.texi: Mention the 'expl' module.
34168         * doc/posix-functions/logl.texi: Mention the 'logl' module.
34169         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
34170         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
34171         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
34172
34173 2010-01-18  Bruno Haible  <bruno@clisp.org>
34174
34175         sqrt: Make gl_FUNC_SQRT requirable.
34176         * m4/sqrt.m4: New file.
34177         * modules/sqrt (Files): Add it.
34178         (configure.ac): Invoke gl_FUNC_SQRT.
34179
34180 2010-01-18  Bruno Haible  <bruno@clisp.org>
34181
34182         New modules for common <math.h> functions.
34183         * m4/mathfunc.m4: New file.
34184         * modules/acos: New file.
34185         * modules/asin: New file.
34186         * modules/atan: New file.
34187         * modules/atan2: New file.
34188         * modules/cbrt: New file.
34189         * modules/copysign: New file.
34190         * modules/cos: New file.
34191         * modules/cosh: New file.
34192         * modules/erf: New file.
34193         * modules/erfc: New file.
34194         * modules/exp: New file.
34195         * modules/fabs: New file.
34196         * modules/fmod: New file.
34197         * modules/hypot: New file.
34198         * modules/j0: New file.
34199         * modules/j1: New file.
34200         * modules/jn: New file.
34201         * modules/ldexp: New file.
34202         * modules/lgamma: New file.
34203         * modules/log: New file.
34204         * modules/log10: New file.
34205         * modules/log1p: New file.
34206         * modules/logb: New file.
34207         * modules/modf: New file.
34208         * modules/nextafter: New file.
34209         * modules/pow: New file.
34210         * modules/remainder: New file.
34211         * modules/rint: New file.
34212         * modules/sin: New file.
34213         * modules/sinh: New file.
34214         * modules/sqrt: New file.
34215         * modules/tan: New file.
34216         * modules/tanh: New file.
34217         * modules/y0: New file.
34218         * modules/y1: New file.
34219         * modules/yn: New file.
34220         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34221         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34222         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34223         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34224         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34225         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34226         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34227         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34228         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34229         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34230         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34231         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34232         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34233         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34234         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34235         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34236         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34237         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34238         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34239         * doc/posix-functions/log.texi: Mention the 'log' module.
34240         * doc/posix-functions/log10.texi: Mention the 'log10' module.
34241         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
34242         * doc/posix-functions/logb.texi: Mention the 'logb' module.
34243         * doc/posix-functions/modf.texi: Mention the 'modf' module.
34244         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
34245         * doc/posix-functions/pow.texi: Mention the 'pow' module.
34246         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
34247         * doc/posix-functions/rint.texi: Mention the 'rint' module.
34248         * doc/posix-functions/sin.texi: Mention the 'sin' module.
34249         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
34250         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
34251         * doc/posix-functions/tan.texi: Mention the 'tan' module.
34252         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
34253         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34254         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34255         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34256
34257 2010-01-18  Jim Meyering  <meyering@redhat.com>
34258
34259         ignore-value: relax license to LGPLv2+
34260         * modules/ignore-value (License): Relax to LGPLv2+.
34261
34262         getdate: don't leak when TZ contains two or more '"'s
34263         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34264         double quote in TZ after the first one.
34265
34266         readtokens: do not leak internal token_lengths buffer
34267         * lib/readtokens.c (readtokens): Free the local, lengths,
34268         when the supplied "token_lengths" parameter is NULL.
34269
34270 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34271
34272         Fix a couple of missing LIBTHREAD link failures on AIX.
34273         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34274         $(LIBTHREAD).
34275         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34276
34277         Link test-poll against INET_PTON_LIB.
34278         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34279         for inet_pton on Solaris 10.
34280
34281 2010-01-17  Bruno Haible  <bruno@clisp.org>
34282
34283         unistdio/*-sprintf: Fix typo in module description.
34284         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34285         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34286         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34287         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34288         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34289         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34290         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34291         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34292
34293 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34294
34295         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34296         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34297         variables in shell case patterns, for AIX and HP-UX ksh.
34298
34299         Split large sed scripts, for HP-UX sed.
34300         * modules/stdio: Split sed scripts around 50 sed commands,
34301         to avoid HP-UX limit of 99 commands, in the near future.
34302         * modules/string: Likewise.
34303         * modules/unistd: Likewise.
34304
34305         gnulib-tool: avoid writing in the current directory.
34306         * gnulib-tool (func_emit_lib_Makefile_am)
34307         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34308         not in the current directory, so concurrent gnulib-tool
34309         instances do not interfere.
34310
34311 2010-01-16  Jim Meyering  <meyering@redhat.com>
34312
34313         doc: update users.txt
34314         * users.txt: Add grep.
34315         (diffutils, gzip): Update URLs.
34316
34317 2010-01-12  Bruno Haible  <bruno@clisp.org>
34318
34319         posix_spawn: Avoid test failure on Cygwin.
34320         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34321         characters.
34322         Reported by Simon Josefsson.
34323
34324 2010-01-12  Bruno Haible  <bruno@clisp.org>
34325
34326         * tests/test-cond.c (main): When skipping the test, show the reason.
34327
34328 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34329
34330         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34331
34332 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34333
34334         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34335         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34336
34337 2010-01-12  Eric Blake  <ebb9@byu.net>
34338
34339         build: guarantee AS_VAR_IF
34340         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34341         (gl_AS_VAR_IF): Move...
34342         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34343         Reported by Simon Josefsson.
34344
34345 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34346
34347         * lib/stdio.in.h: Fix typo.
34348
34349 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34350
34351         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34352         libgpg-error.
34353
34354 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34355
34356         * tests/test-xalloc-die.sh: Use $EXEEXT.
34357
34358 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34359             Bruno Haible  <bruno@clisp.org>
34360
34361         getlogin, getlogin_r: Avoid test failure.
34362         * tests/test-getlogin.c: Include <stdio.h>.
34363         (main): Skip the test when the function fails because stdin is not a
34364         tty.
34365         * tests/test-getlogin_r.c: Include <stdio.h>.
34366         (main): Skip the test when the function fails because stdin is not a
34367         tty.
34368
34369 2010-01-11  Eric Blake  <ebb9@byu.net>
34370
34371         tests: avoid more large file warnings
34372         * tests/test-fflush.c: Avoid warning about ftell use.
34373         * tests/test-fseek.c: Avoid warning about fseek use.
34374
34375 2010-01-10  Bruno Haible  <bruno@clisp.org>
34376
34377         nproc: Work better on Linux when /proc and /sys are not mounted.
34378         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34379         as lower bound when, on glibc/Linux systems,
34380         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34381         Suggested by Pádraig Brady <P@draigbrady.com>.
34382         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34383
34384         nproc: Refactor.
34385         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34386         extracted from num_processors.
34387         (num_processors): Call it.
34388
34389 2010-01-11  Jim Meyering  <meyering@redhat.com>
34390
34391         utimecmp: avoid new warning from upcoming gcc-4.5.0
34392         * lib/utimecmp.c (BILLION): Define using #define rather than an
34393         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34394
34395 2010-01-11  Eric Blake  <ebb9@byu.net>
34396
34397         math: add portability warnings for classification macros
34398         * modules/math (Depends-on): Add warn-on-use.
34399         (Makefile.am): Provide new substitutions.
34400         * m4/math_h.m4 (gl_MATH_H): Require inline.
34401         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34402         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34403         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34404         implement warnings.
34405
34406         unistd: warn on use of environ without module
34407         * modules/unistd (Depends-on): Add warn-on-use.
34408         (Makefile.am): Provide new substitutions.
34409         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34410         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34411
34412         stdio: warn on suspicious uses
34413         * modules/stdio (Depends-on): Add warn-on-use.
34414         (Makefile.am): Provide new substitutions.
34415         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34416         fseeko.
34417         * lib/stdio.in.h (gets): Always warn on use.
34418         (fseek, ftell): Adjust when warnings are issued, and honor
34419         _GL_NO_LARGE_FILES as a way to silence the warning.
34420         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34421         any warning about large file offsets.
34422         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34423         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34424         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34425         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34426         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34427         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34428         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34429         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34430
34431         warn-on-use: new module
34432         * modules/warn-on-use: New file.
34433         * build-aux/warn-on-use.h: Likewise.
34434         * m4/warn-on-use.m4: Likewise.
34435         * MODULES.html.sh (Support for building): Mention it.
34436
34437 2010-01-10  Bruno Haible  <bruno@clisp.org>
34438
34439         Tests for module 'unistr/u32-strdup'.
34440         * modules/unistr/u32-strdup-tests: New file.
34441         * tests/unistr/test-u32-strdup.c: New file.
34442
34443         Tests for module 'unistr/u16-strdup'.
34444         * modules/unistr/u16-strdup-tests: New file.
34445         * tests/unistr/test-u16-strdup.c: New file.
34446
34447         Tests for module 'unistr/u8-strdup'.
34448         * modules/unistr/u8-strdup-tests: New file.
34449         * tests/unistr/test-u8-strdup.c: New file.
34450         * tests/unistr/test-strdup.h: New file.
34451
34452         Tests for module 'unistr/u32-strncmp'.
34453         * modules/unistr/u32-strncmp-tests: New file.
34454         * tests/unistr/test-u32-strncmp.c: New file.
34455
34456         Tests for module 'unistr/u16-strncmp'.
34457         * modules/unistr/u16-strncmp-tests: New file.
34458         * tests/unistr/test-u16-strncmp.c: New file.
34459
34460         Tests for module 'unistr/u8-strncmp'.
34461         * modules/unistr/u8-strncmp-tests: New file.
34462         * tests/unistr/test-u8-strncmp.c: New file.
34463         * tests/unistr/test-strncmp.h: New file.
34464
34465         Tests for module 'unistr/u32-strcoll'.
34466         * modules/unistr/u32-strcoll-tests: New file.
34467         * tests/unistr/test-u32-strcoll.c: New file.
34468
34469         Tests for module 'unistr/u16-strcoll'.
34470         * modules/unistr/u16-strcoll-tests: New file.
34471         * tests/unistr/test-u16-strcoll.c: New file.
34472
34473         Tests for module 'unistr/u8-strcoll'.
34474         * modules/unistr/u8-strcoll-tests: New file.
34475         * tests/unistr/test-u8-strcoll.c: New file.
34476
34477         Tests for module 'unistr/u32-strcmp'.
34478         * modules/unistr/u32-strcmp-tests: New file.
34479         * tests/unistr/test-u32-strcmp.c: New file.
34480         * tests/unistr/test-u32-strcmp.h: New file.
34481
34482         Tests for module 'unistr/u16-strcmp'.
34483         * modules/unistr/u16-strcmp-tests: New file.
34484         * tests/unistr/test-u16-strcmp.c: New file.
34485         * tests/unistr/test-u16-strcmp.h: New file.
34486
34487         Tests for module 'unistr/u8-strcmp'.
34488         * modules/unistr/u8-strcmp-tests: New file.
34489         * tests/unistr/test-u8-strcmp.c: New file.
34490         * tests/unistr/test-u8-strcmp.h: New file.
34491         * tests/unistr/test-strcmp.h: New file.
34492
34493         Tests for module 'unistr/u32-strncat'.
34494         * modules/unistr/u32-strncat-tests: New file.
34495         * tests/unistr/test-u32-strncat.c: New file.
34496
34497         Tests for module 'unistr/u16-strncat'.
34498         * modules/unistr/u16-strncat-tests: New file.
34499         * tests/unistr/test-u16-strncat.c: New file.
34500
34501         Tests for module 'unistr/u8-strncat'.
34502         * modules/unistr/u8-strncat-tests: New file.
34503         * tests/unistr/test-u8-strncat.c: New file.
34504         * tests/unistr/test-strncat.h: New file.
34505
34506         Tests for module 'unistr/u32-strcat'.
34507         * modules/unistr/u32-strcat-tests: New file.
34508         * tests/unistr/test-u32-strcat.c: New file.
34509
34510         Tests for module 'unistr/u16-strcat'.
34511         * modules/unistr/u16-strcat-tests: New file.
34512         * tests/unistr/test-u16-strcat.c: New file.
34513
34514         Tests for module 'unistr/u8-strcat'.
34515         * modules/unistr/u8-strcat-tests: New file.
34516         * tests/unistr/test-u8-strcat.c: New file.
34517         * tests/unistr/test-strcat.h: New file.
34518
34519         Tests for module 'unistr/u32-stpncpy'.
34520         * modules/unistr/u32-stpncpy-tests: New file.
34521         * tests/unistr/test-u32-stpncpy.c: New file.
34522
34523         Tests for module 'unistr/u16-stpncpy'.
34524         * modules/unistr/u16-stpncpy-tests: New file.
34525         * tests/unistr/test-u16-stpncpy.c: New file.
34526
34527         Tests for module 'unistr/u8-stpncpy'.
34528         * modules/unistr/u8-stpncpy-tests: New file.
34529         * tests/unistr/test-u8-stpncpy.c: New file.
34530         * tests/unistr/test-stpncpy.h: New file.
34531
34532         Tests for module 'unistr/u32-strncpy'.
34533         * modules/unistr/u32-strncpy-tests: New file.
34534         * tests/unistr/test-u32-strncpy.c: New file.
34535
34536         Tests for module 'unistr/u16-strncpy'.
34537         * modules/unistr/u16-strncpy-tests: New file.
34538         * tests/unistr/test-u16-strncpy.c: New file.
34539
34540         Tests for module 'unistr/u8-strncpy'.
34541         * modules/unistr/u8-strncpy-tests: New file.
34542         * tests/unistr/test-u8-strncpy.c: New file.
34543         * tests/unistr/test-strncpy.h: New file.
34544
34545         Tests for module 'unistr/u32-stpcpy'.
34546         * modules/unistr/u32-stpcpy-tests: New file.
34547         * tests/unistr/test-u32-stpcpy.c: New file.
34548
34549         Tests for module 'unistr/u16-stpcpy'.
34550         * modules/unistr/u16-stpcpy-tests: New file.
34551         * tests/unistr/test-u16-stpcpy.c: New file.
34552
34553         Tests for module 'unistr/u8-stpcpy'.
34554         * modules/unistr/u8-stpcpy-tests: New file.
34555         * tests/unistr/test-u8-stpcpy.c: New file.
34556         * tests/unistr/test-stpcpy.h: New file.
34557
34558         Tests for module 'unistr/u32-strcpy'.
34559         * modules/unistr/u32-strcpy-tests: New file.
34560         * tests/unistr/test-u32-strcpy.c: New file.
34561
34562         Tests for module 'unistr/u16-strcpy'.
34563         * modules/unistr/u16-strcpy-tests: New file.
34564         * tests/unistr/test-u16-strcpy.c: New file.
34565
34566         Tests for module 'unistr/u8-strcpy'.
34567         * modules/unistr/u8-strcpy-tests: New file.
34568         * tests/unistr/test-u8-strcpy.c: New file.
34569         * tests/unistr/test-strcpy.h: New file.
34570
34571         Tests for module 'unistr/u32-strnlen'.
34572         * modules/unistr/u32-strnlen-tests: New file.
34573         * tests/unistr/test-u32-strnlen.c: New file.
34574
34575         Tests for module 'unistr/u16-strnlen'.
34576         * modules/unistr/u16-strnlen-tests: New file.
34577         * tests/unistr/test-u16-strnlen.c: New file.
34578
34579         Tests for module 'unistr/u8-strnlen'.
34580         * modules/unistr/u8-strnlen-tests: New file.
34581         * tests/unistr/test-u8-strnlen.c: New file.
34582         * tests/unistr/test-strnlen.h: New file.
34583
34584         Tests for module 'unistr/u32-strlen'.
34585         * modules/unistr/u32-strlen-tests: New file.
34586         * tests/unistr/test-u32-strlen.c: New file.
34587
34588         Tests for module 'unistr/u16-strlen'.
34589         * modules/unistr/u16-strlen-tests: New file.
34590         * tests/unistr/test-u16-strlen.c: New file.
34591
34592         Tests for module 'unistr/u8-strlen'.
34593         * modules/unistr/u8-strlen-tests: New file.
34594         * tests/unistr/test-u8-strlen.c: New file.
34595
34596         Tests for module 'unistr/u32-prev'.
34597         * modules/unistr/u32-prev-tests: New file.
34598         * tests/unistr/test-u32-prev.c: New file.
34599
34600         Tests for module 'unistr/u16-prev'.
34601         * modules/unistr/u16-prev-tests: New file.
34602         * tests/unistr/test-u16-prev.c: New file.
34603
34604         Tests for module 'unistr/u8-prev'.
34605         * modules/unistr/u8-prev-tests: New file.
34606         * tests/unistr/test-u8-prev.c: New file.
34607
34608         Tests for module 'unistr/u32-next'.
34609         * modules/unistr/u32-next-tests: New file.
34610         * tests/unistr/test-u32-next.c: New file.
34611
34612         Tests for module 'unistr/u16-next'.
34613         * modules/unistr/u16-next-tests: New file.
34614         * tests/unistr/test-u16-next.c: New file.
34615
34616         Tests for module 'unistr/u8-next'.
34617         * modules/unistr/u8-next-tests: New file.
34618         * tests/unistr/test-u8-next.c: New file.
34619
34620         Tests for module 'unistr/u32-strmbtouc'.
34621         * modules/unistr/u32-strmbtouc-tests: New file.
34622         * tests/unistr/test-u32-strmbtouc.c: New file.
34623
34624         Tests for module 'unistr/u16-strmbtouc'.
34625         * modules/unistr/u16-strmbtouc-tests: New file.
34626         * tests/unistr/test-u16-strmbtouc.c: New file.
34627
34628         Tests for module 'unistr/u8-strmbtouc'.
34629         * modules/unistr/u8-strmbtouc-tests: New file.
34630         * tests/unistr/test-u8-strmbtouc.c: New file.
34631
34632         Tests for module 'unistr/u32-strmblen'.
34633         * modules/unistr/u32-strmblen-tests: New file.
34634         * tests/unistr/test-u32-strmblen.c: New file.
34635
34636         Tests for module 'unistr/u16-strmblen'.
34637         * modules/unistr/u16-strmblen-tests: New file.
34638         * tests/unistr/test-u16-strmblen.c: New file.
34639
34640         Tests for module 'unistr/u8-strmblen'.
34641         * modules/unistr/u8-strmblen-tests: New file.
34642         * tests/unistr/test-u8-strmblen.c: New file.
34643
34644         Tests for module 'unistr/u32-cpy-alloc'.
34645         * modules/unistr/u32-cpy-alloc-tests: New file.
34646         * tests/unistr/test-u32-cpy-alloc.c: New file.
34647
34648         Tests for module 'unistr/u16-cpy-alloc'.
34649         * modules/unistr/u16-cpy-alloc-tests: New file.
34650         * tests/unistr/test-u16-cpy-alloc.c: New file.
34651
34652         Tests for module 'unistr/u8-cpy-alloc'.
34653         * modules/unistr/u8-cpy-alloc-tests: New file.
34654         * tests/unistr/test-u8-cpy-alloc.c: New file.
34655         * tests/unistr/test-cpy-alloc.h: New file.
34656
34657         Tests for module 'unistr/u32-mbsnlen'.
34658         * modules/unistr/u32-mbsnlen-tests: New file.
34659         * tests/unistr/test-u32-mbsnlen.c: New file.
34660
34661         Tests for module 'unistr/u16-mbsnlen'.
34662         * modules/unistr/u16-mbsnlen-tests: New file.
34663         * tests/unistr/test-u16-mbsnlen.c: New file.
34664
34665         Tests for module 'unistr/u8-mbsnlen'.
34666         * modules/unistr/u8-mbsnlen-tests: New file.
34667         * tests/unistr/test-u8-mbsnlen.c: New file.
34668
34669         Tests for module 'unistr/u32-chr'.
34670         * modules/unistr/u32-chr-tests: New file.
34671         * tests/unistr/test-u32-chr.c: New file.
34672
34673         Tests for module 'unistr/u16-chr'.
34674         * modules/unistr/u16-chr-tests: New file.
34675         * tests/unistr/test-u16-chr.c: New file.
34676
34677         Tests for module 'unistr/u8-chr'.
34678         * modules/unistr/u8-chr-tests: New file.
34679         * tests/unistr/test-u8-chr.c: New file.
34680         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34681
34682         Tests for module 'unistr/u32-cmp2'.
34683         * modules/unistr/u32-cmp2-tests: New file.
34684         * tests/unistr/test-u32-cmp2.c: New file.
34685
34686         Tests for module 'unistr/u16-cmp2'.
34687         * modules/unistr/u16-cmp2-tests: New file.
34688         * tests/unistr/test-u16-cmp2.c: New file.
34689
34690         Tests for module 'unistr/u8-cmp2'.
34691         * modules/unistr/u8-cmp2-tests: New file.
34692         * tests/unistr/test-u8-cmp2.c: New file.
34693         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34694
34695         Tests for module 'unistr/u32-cmp'.
34696         * modules/unistr/u32-cmp-tests: New file.
34697         * tests/unistr/test-u32-cmp.c: New file.
34698
34699         Tests for module 'unistr/u16-cmp'.
34700         * modules/unistr/u16-cmp-tests: New file.
34701         * tests/unistr/test-u16-cmp.c: New file.
34702
34703         Tests for module 'unistr/u8-cmp'.
34704         * modules/unistr/u8-cmp-tests: New file.
34705         * tests/unistr/test-u8-cmp.c: New file.
34706         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34707
34708         Tests for module 'unistr/u32-set'.
34709         * modules/unistr/u32-set-tests: New file.
34710         * tests/unistr/test-u32-set.c: New file.
34711
34712         Tests for module 'unistr/u16-set'.
34713         * modules/unistr/u16-set-tests: New file.
34714         * tests/unistr/test-u16-set.c: New file.
34715
34716         Tests for module 'unistr/u8-set'.
34717         * modules/unistr/u8-set-tests: New file.
34718         * tests/unistr/test-u8-set.c: New file.
34719         * tests/unistr/test-set.h: New file.
34720
34721         Tests for module 'unistr/u32-move'.
34722         * modules/unistr/u32-move-tests: New file.
34723         * tests/unistr/test-u32-move.c: New file.
34724
34725         Tests for module 'unistr/u16-move'.
34726         * modules/unistr/u16-move-tests: New file.
34727         * tests/unistr/test-u16-move.c: New file.
34728
34729         Tests for module 'unistr/u8-move'.
34730         * modules/unistr/u8-move-tests: New file.
34731         * tests/unistr/test-u8-move.c: New file.
34732         * tests/unistr/test-move.h: New file.
34733
34734         Tests for module 'unistr/u32-cpy'.
34735         * modules/unistr/u32-cpy-tests: New file.
34736         * tests/unistr/test-u32-cpy.c: New file.
34737
34738         Tests for module 'unistr/u16-cpy'.
34739         * modules/unistr/u16-cpy-tests: New file.
34740         * tests/unistr/test-u16-cpy.c: New file.
34741
34742         Tests for module 'unistr/u8-cpy'.
34743         * modules/unistr/u8-cpy-tests: New file.
34744         * tests/unistr/test-u8-cpy.c: New file.
34745         * tests/unistr/test-cpy.h: New file.
34746
34747 2010-01-09  Bruno Haible  <bruno@clisp.org>
34748
34749         Tests for module 'unistr/u32-uctomb'.
34750         * modules/unistr/u32-uctomb-tests: New file.
34751         * tests/unistr/test-u32-uctomb.c: New file.
34752
34753         Tests for module 'unistr/u16-uctomb'.
34754         * modules/unistr/u16-uctomb-tests: New file.
34755         * tests/unistr/test-u16-uctomb.c: New file.
34756
34757         Tests for module 'unistr/u8-uctomb'.
34758         * modules/unistr/u8-uctomb-tests: New file.
34759         * tests/unistr/test-u8-uctomb.c: New file.
34760
34761         Tests for module 'unistr/u32-mbtoucr'.
34762         * modules/unistr/u32-mbtoucr-tests: New file.
34763         * tests/unistr/test-u32-mbtoucr.c: New file.
34764
34765         Tests for module 'unistr/u16-mbtoucr'.
34766         * modules/unistr/u16-mbtoucr-tests: New file.
34767         * tests/unistr/test-u16-mbtoucr.c: New file.
34768
34769         Tests for module 'unistr/u8-mbtoucr'.
34770         * modules/unistr/u8-mbtoucr-tests: New file.
34771         * tests/unistr/test-u8-mbtoucr.c: New file.
34772
34773         Tests for module 'unistr/u32-mbtouc'.
34774         * modules/unistr/u32-mbtouc-tests: New file.
34775         * tests/unistr/test-u32-mbtouc.c: New file.
34776
34777         Tests for module 'unistr/u16-mbtouc'.
34778         * modules/unistr/u16-mbtouc-tests: New file.
34779         * tests/unistr/test-u16-mbtouc.c: New file.
34780
34781         Tests for module 'unistr/u8-mbtouc'.
34782         * modules/unistr/u8-mbtouc-tests: New file.
34783         * tests/unistr/test-u8-mbtouc.c: New file.
34784
34785         Tests for module 'unistr/u32-mbtouc-unsafe'.
34786         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34787         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34788         * tests/unistr/test-u32-mbtouc.h: New file.
34789
34790         Tests for module 'unistr/u16-mbtouc-unsafe'.
34791         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34792         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34793         * tests/unistr/test-u16-mbtouc.h: New file.
34794
34795         Tests for module 'unistr/u8-mbtouc-unsafe'.
34796         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34797         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34798         * tests/unistr/test-u8-mbtouc.h: New file.
34799
34800         Tests for module 'unistr/u32-mblen'.
34801         * modules/unistr/u32-mblen-tests: New file.
34802         * tests/unistr/test-u32-mblen.c: New file.
34803
34804         Tests for module 'unistr/u16-mblen'.
34805         * modules/unistr/u16-mblen-tests: New file.
34806         * tests/unistr/test-u16-mblen.c: New file.
34807
34808         Tests for module 'unistr/u8-mblen'.
34809         * modules/unistr/u8-mblen-tests: New file.
34810         * tests/unistr/test-u8-mblen.c: New file.
34811
34812         Tests for module 'unistr/u32-to-u16'.
34813         * modules/unistr/u32-to-u16-tests: New file.
34814         * tests/unistr/test-u32-to-u16.c: New file.
34815
34816         Tests for module 'unistr/u32-to-u8'.
34817         * modules/unistr/u32-to-u8-tests: New file.
34818         * tests/unistr/test-u32-to-u8.c: New file.
34819
34820         Tests for module 'unistr/u16-to-u32'.
34821         * modules/unistr/u16-to-u32-tests: New file.
34822         * tests/unistr/test-u16-to-u32.c: New file.
34823
34824         Tests for module 'unistr/u16-to-u8'.
34825         * modules/unistr/u16-to-u8-tests: New file.
34826         * tests/unistr/test-u16-to-u8.c: New file.
34827
34828         Tests for module 'unistr/u8-to-u32'.
34829         * modules/unistr/u8-to-u32-tests: New file.
34830         * tests/unistr/test-u8-to-u32.c: New file.
34831
34832         Tests for module 'unistr/u8-to-u16'.
34833         * modules/unistr/u8-to-u16-tests: New file.
34834         * tests/unistr/test-u8-to-u16.c: New file.
34835
34836         Tests for module 'unistr/u32-check'.
34837         * modules/unistr/u32-check-tests: New file.
34838         * tests/unistr/test-u32-check.c: New file.
34839
34840         Tests for module 'unistr/u16-check'.
34841         * modules/unistr/u16-check-tests: New file.
34842         * tests/unistr/test-u16-check.c: New file.
34843
34844         Tests for module 'unistr/u8-check'.
34845         * modules/unistr/u8-check-tests: New file.
34846         * tests/unistr/test-u8-check.c: New file.
34847
34848         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34849         (category_equals): New function.
34850         (main): Add more tests.
34851         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34852
34853         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34854
34855 2010-01-10  Bruno Haible  <bruno@clisp.org>
34856
34857         unistr/u*-strcoll: Try harder to distinguish different strings.
34858         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34859         compare s1 and s2 to see if they are different.
34860
34861 2010-01-10  Bruno Haible  <bruno@clisp.org>
34862
34863         unistr/u*-stpncpy: Fix the return value.
34864         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34865         description of the return value consistent with stpncpy in glibc.
34866         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34867         written non-NUL unit.
34868
34869 2010-01-10  Bruno Haible  <bruno@clisp.org>
34870
34871         unistr/u*-next: Add missing dependencies.
34872         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34873         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34874         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34875
34876 2010-01-10  Bruno Haible  <bruno@clisp.org>
34877
34878         unistr/u8-mbsnlen: Fix return value for incomplete character.
34879         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34880         u8_mblen.
34881         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34882         Remove unistr/u8-mblen.
34883         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34884         u16_mblen.
34885         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34886         Remove unistr/u16-mblen.
34887
34888 2010-01-10  Bruno Haible  <bruno@clisp.org>
34889
34890         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34891         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34892         Reported by Brian Gough <bjg@gnu.org> and
34893         Chris Clayton <chris2553@googlemail.com> via
34894         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34895
34896 2010-01-09  Bruno Haible  <bruno@clisp.org>
34897
34898         unistr/u16-to-u32: Reject invalid input.
34899         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34900         u16_mbtouc.
34901         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34902         Remove unistr/u16-mbtouc.
34903
34904         unistr/u16-to-u8: Reject invalid input.
34905         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34906         u16_mbtouc.
34907         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34908         Remove unistr/u16-mbtouc.
34909
34910         unistr/u8-to-u32: Reject invalid input.
34911         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34912         u8_mbtouc.
34913         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34914         Remove unistr/u8-mbtouc.
34915
34916         unistr/u8-to-u16: Reject invalid input.
34917         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34918         u8_mbtouc.
34919         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34920         Remove unistr/u8-mbtouc.
34921
34922 2010-01-09  Bruno Haible  <bruno@clisp.org>
34923
34924         Tests for module 'getlogin'.
34925         * modules/getlogin-tests: New file.
34926         * tests/test-getlogin.c: New file.
34927
34928         New module 'getlogin'.
34929         * lib/unistd.in.h (getlogin): New declaration.
34930         * lib/getlogin.c: New file.
34931         * m4/getlogin.m4: New file.
34932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34933         HAVE_GETLOGIN.
34934         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34935         HAVE_GETLOGIN.
34936         * modules/getlogin: New file.
34937         * doc/posix-functions/getlogin.texi: Mention the new module.
34938         Reported by John W. Eaton <jwe@gnu.org>.
34939
34940 2010-01-09  Bruno Haible  <bruno@clisp.org>
34941
34942         getlogin_r: Support for native Windows.
34943         * lib/getlogin_r.c: Include <windows.h>
34944         (getlogin_r): Implement for native Windows.
34945         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34946         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34947         via John W. Eaton <jwe@gnu.org>.
34948
34949 2010-01-09  Bruno Haible  <bruno@clisp.org>
34950
34951         getlogin_r: Small fixes.
34952         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34953         succeeds.
34954         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34955         before testing whether getlogin_r is declared. No need to set
34956         HAVE_DECL_GETLOGIN_R to 1.
34957         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34958
34959 2010-01-09  Bruno Haible  <bruno@clisp.org>
34960
34961         * lib/unistd.in.h (getlogin_r): Add comment.
34962
34963 2010-01-09  Bruno Haible  <bruno@clisp.org>
34964
34965         Tests for module 'getlogin_r'.
34966         * modules/getlogin_r-tests: New file.
34967         * tests/test-getlogin_r.c: New file.
34968
34969 2010-01-09  Jim Meyering  <meyering@redhat.com>
34970
34971         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34972         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34973         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34974
34975 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34976
34977         * lib/dup2.c (rpl_dup2): Improve comment.
34978
34979 2010-01-08  Eric Blake  <ebb9@byu.net>
34980
34981         maint.mk: allow packages to add makefile @@ exceptions
34982         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34983         (sc_makefile_check): Rename...
34984         (sc_makefile_at_at_check): ...to this, and use hook.
34985
34986         dup2: work around mingw bug
34987         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34988         Reported by Simon Josefsson.
34989
34990 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34991
34992         glob: Fix C++ compilation.
34993         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34994         C++.
34995
34996 2010-01-07  Bruno Haible  <bruno@clisp.org>
34997
34998         Fix indentation of wctype.in.h, broken since 2007-01-06.
34999         * lib/wctype.in.h: Fix indentation of preprocessor directives.
35000
35001 2010-01-07  Bruno Haible  <bruno@clisp.org>
35002
35003         mbslen: Avoid collision with system function.
35004         * lib/string.in.h [MirBSD]: Include <wchar.h>.
35005         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
35006         * m4/mbslen.m4: New file.
35007         * modules/mbslen (Files): Add it.
35008         (configure.ac): Invoke gl_MBSLEN.
35009         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35010         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35011         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35012         via Ian Beckwith <ianb@erislabs.net>.
35013
35014 2010-01-07  Bruno Haible  <bruno@clisp.org>
35015
35016         dirent: Document the last fix.
35017         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35018
35019 2010-01-07  Bruno Haible  <bruno@clisp.org>
35020
35021         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35022         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35023         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35024         va_list are defined.
35025         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35026         Reported by Eric Blake.
35027
35028 2010-01-07  Bruno Haible  <bruno@clisp.org>
35029
35030         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35031         * modules/xlist (Depends-on): Add 'list',
35032         * modules/xoset (Depends-on): Add 'oset'.
35033         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35034
35035 2010-01-07  Bruno Haible  <bruno@clisp.org>
35036
35037         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35038         * doc/posix-functions/strncasecmp.texi: Likewise.
35039
35040 2010-01-07  Bruno Haible  <bruno@clisp.org>
35041
35042         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35043
35044 2010-01-07  John W. Eaton  <jwe@octave.org>
35045
35046         wctype: allow C++ use
35047         * lib/wctype.in.h: Add extern "C" block for C++.
35048
35049 2010-01-06  Eric Blake  <ebb9@byu.net>
35050
35051         maint.mk: detect incorrect GFDL usage
35052         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35053
35054 2010-01-06  Jim Meyering  <meyering@redhat.com>
35055         and Eric Blake  <ebb9@byu.net>
35056
35057         maint.mk: ignore multi-line copyright in NEWS
35058         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35059
35060 2010-01-06  Eric Blake  <ebb9@byu.net>
35061
35062         select: add missing dependency
35063         * modules/select-tests (Depends-on): Move sockets dependency...
35064         * modules/select (Depends-on): ...here.
35065         Reported by Ian Beckwith.
35066
35067         doc: regenerate INSTALL
35068         * doc/INSTALL: Reflect recent autoconf update.
35069         * doc/INSTALL.ISO: Likewise.
35070         * doc/INSTALL.UTF-8: Likewise.
35071
35072         pread: fix compilation on glibc
35073         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35074         Reported by Ralf Wildenhues.
35075
35076         dirent: fix test failure
35077         * lib/dirent.in.h (includes): Guarantee ino_t.
35078         Reported by Ralf Wildenhues.
35079
35080 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35081
35082         linkat, renameat: avoid bad free
35083         * lib/at-func2.c (at_func2): Fix typo.
35084         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35085
35086 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35087
35088         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35089         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35090         to avoid failure of symlink test later.
35091
35092 2010-01-06  Eric Blake  <ebb9@byu.net>
35093
35094         stdio, unistd: guarantee ssize_t
35095         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35096         2008 are exposed when needed.
35097         * lib/stdio.in.h (includes): Likewise.
35098         Reported by Ralf Wildenhues.
35099
35100 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35101
35102         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35103         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35104         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35105
35106 2010-01-06  Jim Meyering  <meyering@redhat.com>
35107
35108         readtokens: this module *does* require xalloc.h
35109         It uses only functions that were omitted by the old syntax-check rule.
35110         * lib/readtokens.c: Include "xalloc.h" once again.
35111         * modules/readtokens (Depends-on): Add xalloc.
35112         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35113
35114 2010-01-05  Eric Blake  <ebb9@byu.net>
35115
35116         maint: support 'make announcement' from a VPATH build
35117         * top/maint.mk (announcement): Look for correct NEWS file.
35118
35119 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35120
35121         utimens (fdutimens): ignore a negative FD, per contract
35122         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35123         when we have a valid file descriptor.  Otherwise, using a brand
35124         new glibc (with just-patched futimens that now fails with EBADF)
35125         would cause this function to fail with ENOSYS.
35126         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35127         See also http://bugzilla.redhat.com/552320.
35128
35129 2010-01-05  Eric Blake  <ebb9@byu.net>
35130
35131         strcase: document what it provides
35132         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35133         gnulib module.
35134         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35135         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35136
35137 2010-01-05  Jim Meyering  <meyering@redhat.com>
35138
35139         maint: remove useless inclusions of "xalloc.h"
35140         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35141         * lib/readtokens.c: Likewise.
35142         * lib/same.c: Likewise.
35143         * modules/getloadavg (Depends-on): Remove xalloc.
35144         * modules/readtokens: Likewise.
35145         * modules/same: Likewise.
35146
35147         maint.mk: include 4 more function names in alloca.h-checking regexp
35148         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
35149         regexp.  Before, we would give a false-positive (saying alloca.h
35150         is included unnecessarily) when the only uses involved omitted symbols.
35151
35152         xalloc.h: use consistent formatting
35153         * lib/xalloc.h: Move declarations to start in the first column.
35154
35155 2010-01-05  Eric Blake  <ebb9@byu.net>
35156
35157         mkdir: avoid xalloc
35158         * lib/mkdir.c (includes): Drop unused header.
35159         Reported by John W. Eaton.
35160
35161 2010-01-04  Jim Meyering  <meyering@redhat.com>
35162
35163         nl_langinfo: avoid configure-time syntax error
35164         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
35165         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
35166         the empty string.  Don't let that provoke a shell syntax error.
35167
35168         regcomp, regexec, fnmatch: avoid array bounds read error
35169         * lib/regcomp.c (build_equiv_class): From glibc:
35170         Use only the low 24 bits of a findidx return value as an index
35171         into the weights array.  Patch by Ulrich Drepper:
35172         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
35173         * lib/regexec.c (check_node_accept_bytes): Likewise.
35174         * lib/fnmatch_loop.c (FCT): Likewise.
35175
35176         regcomp: skip collseq lookup when there are no rules
35177         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
35178         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
35179
35180         regcomp: recognize ill-formed { } expressions
35181         * lib/regcomp.c (parse_dup_op): From glibc:
35182         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35183
35184         regcomp: fix typo in comment
35185         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35186         s/satisfy/satisfies/.
35187
35188         regcomp: sync from glibc: remove dead store
35189         * lib/regcomp.c (duplicate_node_closure): Remove useless
35190         search_duplicated_node call and dead store.
35191
35192         regcomp: sync from glibc; always use nl_langinfo
35193         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35194         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35195         * modules/regex (Depends-on): Add nl_langinfo.
35196
35197 2010-01-04  Eric Blake  <ebb9@byu.net>
35198
35199         fdopendir: fix configure test
35200         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35201
35202 2010-01-01  Bruno Haible  <bruno@clisp.org>
35203
35204         wchar: Remove unused configure check.
35205         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35206
35207 2010-01-01  Eric Blake  <ebb9@byu.net>
35208
35209         headers: make check of system header explicit
35210         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35211         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35212         ourselves.
35213         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35214         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35215         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35216         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35217         internals.
35218         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35219         missing.
35220         Suggested by Bruno Haible.
35221
35222 2010-01-01  Jim Meyering  <meyering@redhat.com>
35223
35224         ChangeLog: tweak to eliminate unnecessary copyright line
35225         * ChangeLog: Remove a copyright line that was mistakenly updated
35226         by today's update-copyright run.  Reported by Eric Blake.
35227
35228         test-update-copyright: don't let envvar setting cause test failure
35229         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35230
35231 2010-01-01  Bruno Haible  <bruno@clisp.org>
35232
35233         localename: Avoid gcc warning.
35234         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35235         function if it is not used.
35236
35237 2010-01-01  Jim Meyering  <meyering@redhat.com>
35238
35239         update nearly all FSF copyright year lists to include 2010
35240         Use the same procedure as for 2009, outlined in
35241         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
35242
35243         version-etc: set COPYRIGHT_YEAR to 2010
35244         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
35245
35246 2009-12-31  Eric Blake  <ebb9@byu.net>
35247
35248         doc: correct availability of cygwin 1.5.x getopt
35249         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
35250         variables.
35251         * doc/posix-functions/opterr.texi (opterr): Likewise.
35252         * doc/posix-functions/optind.texi (optind): Likewise.
35253         * doc/posix-functions/optopt.texi (optopt): Likewise.
35254         * doc/posix-functions/tzname.texi (tzname): Likewise.
35255
35256         openat: update maintainer
35257         * modules/openat (Maintainer): Add myself.
35258
35259         utimens: avoid shadowing warning
35260         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35261         buffers into one, to avoid shadowing, as well as avoiding a
35262         redundant stat.
35263         Reported by Jim Meyering.
35264
35265         test-dup2: avoid compiler warning
35266         * tests/test-dup2.c (is_inheritable): Only define if used.
35267
35268 2010-01-01  Bruno Haible  <bruno@clisp.org>
35269
35270         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35271         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35272         defined, use wctomb instead of wcrtomb.
35273
35274 2010-01-01  Bruno Haible  <bruno@clisp.org>
35275
35276         iconv: Reject native Solaris iconv.
35277         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35278         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35279
35280 2009-12-31  Bruno Haible  <bruno@clisp.org>
35281
35282         * tests/test-signal.c (main): Remove test of 'SIG'.
35283
35284 2009-12-31  Bruno Haible  <bruno@clisp.org>
35285
35286         spawn: Fix incomplete fix.
35287         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35288         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35289         warnings for GNULIB_POSIXCHECK again.
35290         Reported by Eric Blake.
35291
35292 2009-12-31  Bruno Haible  <bruno@clisp.org>
35293
35294         Avoid namespace pollution on glibc systems.
35295         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35296         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35297         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35298         glibc systems.
35299
35300 2009-12-31  Bruno Haible  <bruno@clisp.org>
35301
35302         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35303         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35304         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35305         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35306         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35307         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35308         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35309
35310 2009-12-31  Bruno Haible  <bruno@clisp.org>
35311
35312         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35313         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35314         afterwards.
35315
35316 2009-12-31  Bruno Haible  <bruno@clisp.org>
35317
35318         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35319         SYS_UTSNAME_H.
35320
35321 2009-12-31  Bruno Haible  <bruno@clisp.org>
35322
35323         spawn: Fix misapplied patch.
35324         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35325         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35326         warnings for GNULIB_POSIXCHECK.
35327
35328 2009-12-31  Bruno Haible  <bruno@clisp.org>
35329
35330         times: Update after sys_times changed.
35331         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35332         * modules/times (Files): Add it.
35333         (configure.ac): Invoke gl_FUNC_TIMES.
35334
35335 2009-12-31  Bruno Haible  <bruno@clisp.org>
35336
35337         Use AC_C_INLINE where necessary.
35338         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35339         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35340         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35341         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35342         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35343         * m4/mbiter.m4 (gl_MBITER): Likewise.
35344         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35345         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35346         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35347         * modules/u64 (configure.ac): Likewise.
35348
35349 2009-12-31  Bruno Haible  <bruno@clisp.org>
35350
35351         Use AC_C_INLINE instead of module 'inline' where possible.
35352         * modules/inline (Description): Clarify purpose.
35353         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35354         * modules/count-one-bits (Depends-on): Remove inline.
35355         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35356         * modules/openat (Depends-on): Remove inline.
35357         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35358         instead of depending on module 'inline'.
35359         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35360         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35361         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35362         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35363         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35364         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35365         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35366         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35367         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35368         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35369         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35370         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35371         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35372         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35373         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35374         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35375         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35376         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35377         Likewise.
35378         * modules/unictype/property-ascii-hex-digit (Depends-on,
35379         configure.ac): Likewise.
35380         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35381         configure.ac): Likewise.
35382         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35383         configure.ac): Likewise.
35384         * modules/unictype/property-bidi-block-separator (Depends-on,
35385         configure.ac): Likewise.
35386         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35387         configure.ac): Likewise.
35388         * modules/unictype/property-bidi-common-separator (Depends-on,
35389         configure.ac): Likewise.
35390         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35391         Likewise.
35392         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35393         configure.ac): Likewise.
35394         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35395         configure.ac): Likewise.
35396         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35397         configure.ac): Likewise.
35398         * modules/unictype/property-bidi-european-digit (Depends-on,
35399         configure.ac): Likewise.
35400         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35401         configure.ac): Likewise.
35402         * modules/unictype/property-bidi-left-to-right (Depends-on,
35403         configure.ac): Likewise.
35404         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35405         configure.ac): Likewise.
35406         * modules/unictype/property-bidi-other-neutral (Depends-on,
35407         configure.ac): Likewise.
35408         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35409         Likewise.
35410         * modules/unictype/property-bidi-segment-separator (Depends-on,
35411         configure.ac): Likewise.
35412         * modules/unictype/property-bidi-whitespace (Depends-on,
35413         configure.ac): Likewise.
35414         * modules/unictype/property-combining (Depends-on, configure.ac):
35415         Likewise.
35416         * modules/unictype/property-composite (Depends-on, configure.ac):
35417         Likewise.
35418         * modules/unictype/property-currency-symbol (Depends-on,
35419         configure.ac): Likewise.
35420         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35421         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35422         Likewise.
35423         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35424         configure.ac): Likewise.
35425         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35426         Likewise.
35427         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35428         Likewise.
35429         * modules/unictype/property-extender (Depends-on, configure.ac):
35430         Likewise.
35431         * modules/unictype/property-format-control (Depends-on, configure.ac):
35432         Likewise.
35433         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35434         Likewise.
35435         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35436         Likewise.
35437         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35438         Likewise.
35439         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35440         Likewise.
35441         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35442         Likewise.
35443         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35444         Likewise.
35445         * modules/unictype/property-id-start (Depends-on, configure.ac):
35446         Likewise.
35447         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35448         Likewise.
35449         * modules/unictype/property-ids-binary-operator (Depends-on,
35450         configure.ac): Likewise.
35451         * modules/unictype/property-ids-trinary-operator (Depends-on,
35452         configure.ac): Likewise.
35453         * modules/unictype/property-ignorable-control (Depends-on,
35454         configure.ac): Likewise.
35455         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35456         Likewise.
35457         * modules/unictype/property-join-control (Depends-on, configure.ac):
35458         Likewise.
35459         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35460         Likewise.
35461         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35462         Likewise.
35463         * modules/unictype/property-logical-order-exception (Depends-on,
35464         configure.ac): Likewise.
35465         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35466         Likewise.
35467         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35468         * modules/unictype/property-non-break (Depends-on, configure.ac):
35469         Likewise.
35470         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35471         Likewise.
35472         * modules/unictype/property-numeric (Depends-on, configure.ac):
35473         Likewise.
35474         * modules/unictype/property-other-alphabetic (Depends-on,
35475         configure.ac): Likewise.
35476         * modules/unictype/property-other-default-ignorable-code-point
35477         (Depends-on, configure.ac): Likewise.
35478         * modules/unictype/property-other-grapheme-extend (Depends-on,
35479         configure.ac): Likewise.
35480         * modules/unictype/property-other-id-continue (Depends-on,
35481         configure.ac): Likewise.
35482         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35483         Likewise.
35484         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35485         Likewise.
35486         * modules/unictype/property-other-math (Depends-on, configure.ac):
35487         Likewise.
35488         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35489         Likewise.
35490         * modules/unictype/property-paired-punctuation (Depends-on,
35491         configure.ac): Likewise.
35492         * modules/unictype/property-paragraph-separator (Depends-on,
35493         configure.ac): Likewise.
35494         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35495         Likewise.
35496         * modules/unictype/property-pattern-white-space (Depends-on,
35497         configure.ac): Likewise.
35498         * modules/unictype/property-private-use (Depends-on, configure.ac):
35499         Likewise.
35500         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35501         Likewise.
35502         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35503         Likewise.
35504         * modules/unictype/property-radical (Depends-on, configure.ac):
35505         Likewise.
35506         * modules/unictype/property-sentence-terminal (Depends-on,
35507         configure.ac): Likewise.
35508         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35509         Likewise.
35510         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35511         * modules/unictype/property-terminal-punctuation (Depends-on,
35512         configure.ac): Likewise.
35513         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35514         Likewise.
35515         * modules/unictype/property-unassigned-code-value (Depends-on,
35516         configure.ac): Likewise.
35517         * modules/unictype/property-unified-ideograph (Depends-on,
35518         configure.ac): Likewise.
35519         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35520         Likewise.
35521         * modules/unictype/property-variation-selector (Depends-on,
35522         configure.ac): Likewise.
35523         * modules/unictype/property-white-space (Depends-on, configure.ac):
35524         Likewise.
35525         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35526         Likewise.
35527         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35528         Likewise.
35529         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35530         Likewise.
35531         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35532         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35533         Likewise.
35534
35535 2009-12-31  Bruno Haible  <bruno@clisp.org>
35536
35537         Remove unnecessary AC_C_INLINE invocation.
35538         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35539         since 2009-08-21.
35540
35541 2009-12-31  Jim Meyering  <meyering@redhat.com>
35542
35543         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35544         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35545         With this change, we can all remove the gpg_key_ID = ... definition
35546         from our respective cfg.mk files.
35547
35548         maint.mk: create announcement template in ~/, not in /tmp
35549         * top/maint.mk (emit_upload_commands): Adjust.
35550         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35551         Remove temporary file, .ci-msg.
35552
35553 2009-12-31  Eric Blake  <ebb9@byu.net>
35554
35555         link-warning: always build headers with link warnings
35556         * modules/arpa_inet (Makefile.am): Always build replacement
35557         header.
35558         * modules/ctype (Makefile.am): Likewise.
35559         * modules/dirent (Makefile.am): Likewise.
35560         * modules/inttypes (Makefile.am): Likewise.
35561         * modules/langinfo (Makefile.am): Likewise.
35562         * modules/locale (Makefile.am): Likewise.
35563         * modules/spawn (Makefile.am): Likewise.
35564         * modules/sys_file (Makefile.am): Likewise.
35565         * modules/sys_ioctl (Makefile.am): Likewise.
35566         * modules/sys_select (Makefile.am): Likewise.
35567         * modules/sys_socket (Makefile.am): Likewise.
35568         * modules/sys_times (Makefile.am): Likewise.
35569         * modules/sys_utsname (Makefile.am): Likewise.
35570         * modules/sys_wait (Makefile.am): Likewise.
35571         * modules/wchar (Makefile.am): Likewise.
35572         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35573         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35574         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35575         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35576         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35577         Likewise.
35578         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35579         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35580         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35581         Likewise.
35582         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35583         Likewise.
35584         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35585         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35586         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35587         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35588         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35589         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35590         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35591         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35592         (gl_WCHAR_H_DEFAULTS): Likewise.
35593
35594 2009-12-31  Eric Blake  <ebb9@byu.net>
35595
35596         signal, spawn: use link warnings
35597         * lib/signal.in.h (sigset_t): Make unconditional.
35598         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35599         (sigpending, sigprocmask, sigaction): Add link warnings.
35600         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35601         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35602         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35603         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35604         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35605         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35606         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35607         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35608         (posix_spawn_file_actions_destroy)
35609         (posix_spawn_file_actions_addopen)
35610         (posix_spawn_file_actions_addclose)
35611         (posix_spawn_file_actions_adddup2): Likewise.
35612         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35613         * tests/test-signal.c (main): Enhance test.
35614
35615         spawn: improve wrapper support
35616         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35617         (gl_SPAWN_H_DEFAULTS): New defaults.
35618         * modules/spawn (Makefile.am): Substitute them.
35619         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35620         Only declare if missing or broken.
35621
35622         sys_times, sys_utsname: use include_next
35623         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35624         header.
35625         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35626         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35627         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35628         * modules/sys_times (Depends-on): Add include_next.
35629         (Makefile.am): Substitute additional values.
35630         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35631         * lib/sys_times.in.h (includes): Include native header, if
35632         available.
35633         * lib/sys_utsname.in.h (includes): Likewise.
35634         * tests/test-sys_times.c (main): Enhance test.
35635
35636         fdutimensat: revert prior patch
35637         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35638         utimens.h.
35639         Reported by Bruno Haible.
35640
35641 2009-12-30  Eric Blake  <ebb9@byu.net>
35642
35643         sys_wait: drop link-warning dependency
35644         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35645         link-warning efforts.
35646         * lib/sys_wait.in.h: Likewise.
35647
35648         fdutimensat: remove bogus dependency
35649         * modules/fdutimensat (Depends-on): Drop inline.
35650
35651         unistd: fix typo
35652         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35653
35654 2009-12-30  Bruno Haible  <bruno@clisp.org>
35655
35656         Fix compilation error with Solaris cc.
35657         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35658         * lib/unicase/u16-is-invariant.c: Likewise.
35659         * lib/unicase/u32-is-invariant.c: Likewise.
35660         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35661
35662 2009-12-30  Bruno Haible  <bruno@clisp.org>
35663
35664         Fix test crash.
35665         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35666         locales.
35667         Reported by Simon Josefsson <simon@josefsson.org>.
35668
35669 2009-12-30  Bruno Haible  <bruno@clisp.org>
35670
35671         Fix compilation error on most platforms.
35672         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35673         Reported by Simon Josefsson <simon@josefsson.org>
35674         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35675
35676 2009-12-30  Eric Blake  <ebb9@byu.net>
35677
35678         futimens, utimensat: work around ntfs-3g bug
35679         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35680         a ctime bug is present, and expand workaround to cover ntfs-3g.
35681         * lib/utimens.c (fdutimens, lutimens): Likewise.
35682         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35683         (validate_timespec): Adjust return value.
35684         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35685         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35686         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35687
35688 2009-12-29  Eric Blake  <ebb9@byu.net>
35689
35690         link-warning: make usage consistent
35691         * modules/ctype (Depends-on): Add link-warning.
35692         (Makefile.am): Update rules accordingly.
35693         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35694         * modules/locale (Depends-on, Makefile.am): Likewise.
35695         * modules/sys_file (Makefile.am): Likewise.
35696         * modules/getopt-posix (Makefile.am): Delete unused link warning
35697         efforts.
35698         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35699         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35700         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35701         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35702
35703         stdio: remove unused variables
35704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35705         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35706         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35707
35708         tests: test more substitute headers
35709         * modules/ctype-tests: New file.
35710         * modules/dirent-tests: Likewise.
35711         * modules/spawn-tests: Likewise.
35712         * modules/sys_file-tests: Likewise.
35713         * modules/sys_ioctl-tests: Likewise.
35714         * modules/sys_wait-tests: Likewise.
35715         * tests/test-ctype.c: Likewise.
35716         * tests/test-dirent.c: Likewise.
35717         * tests/test-spawn.c: Likewise.
35718         * tests/test-sys_file.c: Likewise.
35719         * tests/test-sys_ioctl.c: Likewise.
35720         * tests/test-sys_wait.c: Likewise.
35721         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35722         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35723         whether or not flock is in use.
35724
35725         tests: remove License section from module
35726         * modules/arpa_inet-tests: Remove unneeded section.
35727         * modules/byteswap-tests: Likewise.
35728         * modules/ceilf-tests: Likewise.
35729         * modules/ceill-tests: Likewise.
35730         * modules/crypto/des-tests: Likewise.
35731         * modules/crypto/gc-arcfour-tests: Likewise.
35732         * modules/crypto/gc-arctwo-tests: Likewise.
35733         * modules/crypto/gc-des-tests: Likewise.
35734         * modules/crypto/gc-hmac-md5-tests: Likewise.
35735         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35736         * modules/crypto/gc-md2-tests: Likewise.
35737         * modules/crypto/gc-md4-tests: Likewise.
35738         * modules/crypto/gc-md5-tests: Likewise.
35739         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35740         * modules/crypto/gc-rijndael-tests: Likewise.
35741         * modules/crypto/gc-sha1-tests: Likewise.
35742         * modules/crypto/gc-tests: Likewise.
35743         * modules/crypto/md2-tests: Likewise.
35744         * modules/crypto/md4-tests: Likewise.
35745         * modules/fcntl-h-tests: Likewise.
35746         * modules/floorf-tests: Likewise.
35747         * modules/floorl-tests: Likewise.
35748         * modules/frexp-nolibm-tests: Likewise.
35749         * modules/frexp-tests: Likewise.
35750         * modules/frexpl-nolibm-tests: Likewise.
35751         * modules/frexpl-tests: Likewise.
35752         * modules/getaddrinfo-tests: Likewise.
35753         * modules/inttypes-tests: Likewise.
35754         * modules/isfinite-tests: Likewise.
35755         * modules/isinf-tests: Likewise.
35756         * modules/ldexpl-tests: Likewise.
35757         * modules/locale-tests: Likewise.
35758         * modules/math-tests: Likewise.
35759         * modules/netdb-tests: Likewise.
35760         * modules/netinet_in-tests: Likewise.
35761         * modules/printf-frexp-tests: Likewise.
35762         * modules/printf-frexpl-tests: Likewise.
35763         * modules/priv-set-tests: Likewise.
35764         * modules/random_r-tests: Likewise.
35765         * modules/round-tests: Likewise.
35766         * modules/roundf-tests: Likewise.
35767         * modules/roundl-tests: Likewise.
35768         * modules/search-tests: Likewise.
35769         * modules/select-tests: Likewise.
35770         * modules/signal-tests: Likewise.
35771         * modules/stdbool-tests: Likewise.
35772         * modules/stddef-tests: Likewise.
35773         * modules/stdint-tests: Likewise.
35774         * modules/stdio-tests: Likewise.
35775         * modules/stdlib-tests: Likewise.
35776         * modules/string-tests: Likewise.
35777         * modules/strings-tests: Likewise.
35778         * modules/sys_select-tests: Likewise.
35779         * modules/sys_socket-tests: Likewise.
35780         * modules/sys_stat-tests: Likewise.
35781         * modules/sys_time-tests: Likewise.
35782         * modules/sys_utsname-tests: Likewise.
35783         * modules/sysexits-tests: Likewise.
35784         * modules/time-tests: Likewise.
35785         * modules/trunc-tests: Likewise.
35786         * modules/truncf-tests: Likewise.
35787         * modules/truncl-tests: Likewise.
35788         * modules/tsearch-tests: Likewise.
35789         * modules/unistd-tests: Likewise.
35790         * modules/wchar-tests: Likewise.
35791         * modules/wctype-tests: Likewise.
35792
35793         tests: fix license on several tests
35794         * tests/test-des.c: Update to GPLv3+.
35795         * tests/test-flock.c: Likewise.
35796         * tests/test-fsync.c: Likewise.
35797         * tests/test-futimens.h: Likewise.
35798         * tests/test-gc-arcfour.c: Likewise.
35799         * tests/test-gc-arctwo.c: Likewise.
35800         * tests/test-gc-des.c: Likewise.
35801         * tests/test-gc-hmac-md5.c: Likewise.
35802         * tests/test-gc-hmac-sha1.c: Likewise.
35803         * tests/test-gc-md2.c: Likewise.
35804         * tests/test-gc-md4.c: Likewise.
35805         * tests/test-gc-md5.c: Likewise.
35806         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35807         * tests/test-gc-rijndael.c: Likewise.
35808         * tests/test-gc-sha1.c: Likewise.
35809         * tests/test-gc.c: Likewise.
35810         * tests/test-getcwd.c: Likewise.
35811         * tests/test-link.c: Likewise.
35812         * tests/test-link.h: Likewise.
35813         * tests/test-lutimens.h: Likewise.
35814         * tests/test-md2.c: Likewise.
35815         * tests/test-md4.c: Likewise.
35816         * tests/test-mkdir.h: Likewise.
35817         * tests/test-rename.c: Likewise.
35818         * tests/test-rename.h: Likewise.
35819         * tests/test-safe-alloc.c: Likewise.
35820         * tests/test-utimens-common.h: Likewise.
35821         * tests/test-utimens.h: Likewise.
35822
35823         maint: sync license texts
35824         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35825         * doc/gpl-3.0.texi: Revert copyright year update.
35826         * doc/lgpl-3.0.texi: Likewise.
35827
35828 2009-12-29  Jim Meyering  <meyering@redhat.com>
35829
35830         update nearly all FSF copyright year lists to include 2009
35831         The files named by the following are exempted:
35832             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35833               test -f "$dst" && { echo "$dst"; continue; }
35834               test -d "$dst" || continue
35835               echo "$dst"/$(basename "$src")
35836             done > exempt
35837             git ls-files tests/unictype >> exempt
35838         In the remaining files, convert to all-interval notation if
35839         - there is already at least one year interval like 2000-2003
35840         - the file is maintained by me
35841         - the file is in lib/uni*/, where that style already prevails
35842         Otherwise, use update-copyright's default.
35843
35844 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35845         and Eric Blake  <ebb9@byu.net>
35846
35847         tests: don't require debug system() to pass
35848         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35849         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35850         * tests/test-unlink.h (test_unlink_func): Likewise.
35851         * tests/test-fstatat.c (main): ...into callers.
35852         * tests/test-lstat.c (main): Likewise.
35853         * tests/test-rmdir.c (main): Likewise.
35854         * tests/test-unlink.c (main): Likewise.
35855         * tests/test-unlinkat.c (main): Likewise.
35856         * tests/test-areadlink-with-size.c (main): Don't require a
35857         debug-only system call to pass, aiding cross-testing to mingw.
35858         * tests/test-areadlink.c (main): Likewise.
35859         * tests/test-areadlinkat-with-size.c (main): Likewise.
35860         * tests/test-areadlinkat.c (main): Likewise.
35861         * tests/test-canonicalize-lgpl.c (main): Likewise.
35862         * tests/test-canonicalize.c (main): Likewise.
35863         * tests/test-chown.c (main): Likewise.
35864         * tests/test-fchownat.c (main): Likewise.
35865         * tests/test-lchown.c (main): Likewise.
35866         * tests/test-fdutimensat.c (main): Likewise.
35867         * tests/test-futimens.c (main): Likewise.
35868         * tests/test-link.c (main): Likewise.
35869         * tests/test-linkat.c (main): Likewise.
35870         * tests/test-mkdir.c (main): Likewise.
35871         * tests/test-mkdirat.c (main): Likewise.
35872         * tests/test-mkfifo.c (main): Likewise.
35873         * tests/test-mkfifoat.c (main): Likewise.
35874         * tests/test-mknod.c (main): Likewise.
35875         * tests/test-readlink.c (main): Likewise.
35876         * tests/test-remove.c (main): Likewise.
35877         * tests/test-rename.c (main): Likewise.
35878         * tests/test-renameat.c (main): Likewise.
35879         * tests/test-symlink.c (main): Likewise.
35880         * tests/test-symlinkat.c (main): Likewise.
35881         * tests/test-utimens.c (main): Likewise.
35882         * tests/test-utimensat.c (main): Likewise.
35883
35884 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35885
35886         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35887         on $(UNUSED_PARAMETER_H) to avoid build failure.
35888
35889 2009-12-28  Jim Meyering  <meyering@redhat.com>
35890
35891         update-copyright: you may specify a max. line length other than 72
35892         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35893
35894         maint: use consistent FSF copyright line syntax
35895         * lib/posixtm.c: Add missing comma in FSF copyright line.
35896         * lib/posixtm.h: Likewise.
35897         * lib/getugroups.c: Add missing ", Inc.".
35898
35899         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35900         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35901         FSF copyright line.  Remove trailing blanks.
35902
35903 2009-12-28  Eric Blake  <ebb9@byu.net>
35904
35905         test-dup2: reduce dependencies
35906         * modules/cloexec (Configure.ac): Set witness.
35907         * modules/dup2-tests (Depends-on): Drop cloexec.
35908         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35909         not present.
35910         Suggested by Bruno Haible.
35911
35912 2009-12-26  Bruno Haible  <bruno@clisp.org>
35913
35914         Remove an unneeded dependency.
35915         * modules/fseterr (Depends-on): Remove dup2.
35916
35917 2009-12-26  Eric Blake  <ebb9@byu.net>
35918
35919         tests: use macros.h in more places
35920         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35921         (ASSERT_STREAM): Provide default of stderr.
35922         * tests/test-dirent-safer.c: Include macros.h, using alternate
35923         stream for assertions.
35924         * tests/test-dup-safer.c: Likewise.
35925         * tests/test-freopen-safer.c: Likewise.
35926         * tests/test-getopt.c: Likewise.
35927         * tests/test-openat-safer.c: Likewise.
35928         * tests/test-pipe.c: Likewise.
35929         * tests/test-popen-safer.c: Likewise.
35930         * modules/dirent-safer-tests (Files): Include macros.h.
35931         * modules/unistd-safer-tests (Files): Likewise.
35932         * modules/freopen-safer-tests (Files): Likewise.
35933         * modules/getopt-posix-tests (Files): Likewise.
35934         * modules/openat-safer-tests (Files): Likewise.
35935         * modules/pipe-tests (Files): Likewise.
35936
35937 2009-12-26  Bruno Haible  <bruno@clisp.org>
35938
35939         javacomp: Portability fix.
35940         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35941         that it also works on Solaris.
35942
35943 2009-12-26  Bruno Haible  <bruno@clisp.org>
35944
35945         localename: Fix storage allocation of gl_locale_name_thread's result.
35946         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35947         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35948         all platforms that have 'uselocale'.
35949         (gl_locale_name_thread_unsafe): New function, extracted from
35950         gl_locale_name_thread.
35951         (gl_locale_name_thread): Call struniq on all platforms that have
35952         'uselocale'.
35953         * tests/test-localename.c (test_locale_name_thread): Check that the
35954         resulting strings are permanently allocated.
35955         * modules/localename-tests (Depends-on): Add strdup.
35956
35957 2009-12-26  Bruno Haible  <bruno@clisp.org>
35958
35959         * tests/test-localename.c (categories): Fill in the strings.
35960
35961 2009-12-26  Jim Meyering  <meyering@redhat.com>
35962
35963         isdir: complete the removal of m4/isdir.m4
35964         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35965
35966         isdir: clean up, since at least grep still uses it
35967         * lib/isdir.c: Include "isdir.h".
35968         (S_ISDIR): Remove now-unneeded definition.
35969         * modules/isdir (Files): Add lib/isdir.h.
35970         * lib/isdir.h: New file, with declaration.
35971         * m4/isdir.m4: Remove file -- unneeded.
35972
35973 2009-12-25  Bruno Haible  <bruno@clisp.org>
35974
35975         selinux-h: Make generated .h files standalone.
35976         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35977         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35978         * lib/se-selinux.in.h: Likewise.
35979         * modules/selinux-h (Depends-on): Add unused-parameter.
35980         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35981         selinux/selinux.h and selinux/context.h.
35982         Suggested by Eric Blake.
35983
35984 2009-12-25  Bruno Haible  <bruno@clisp.org>
35985
35986         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35987         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35988         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35989         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35990         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35991
35992 2009-12-24  Bruno Haible  <bruno@clisp.org>
35993
35994         openat: Fix warning.
35995         * lib/openat-proc.c: Include <unistd.h>.
35996
35997 2009-12-24  Bruno Haible  <bruno@clisp.org>
35998
35999         New module 'unused-parameter'.
36000         * build-aux/unused-parameter.h: New file, extracted from earlier
36001         gnulib-common.m4.
36002         * modules/unused-parameter: New file.
36003         * lib/unistr.h: Include unused-parameter.h.
36004         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
36005         _GL_UNUSED.
36006         * modules/unistr/base (Depends-on): Add unused-parameter.
36007
36008 2009-12-24  Bruno Haible  <bruno@clisp.org>
36009
36010         Add missing dependencies to 'extensions' module.
36011         * m4/extensions.m4: Add comment.
36012         * modules/accept4 (Depends-on): Add extensions.
36013         * modules/dup3 (Depends-on): Likewise.
36014         * modules/fcntl (Depends-on): Likewise.
36015         * modules/futimens (Depends-on): Likewise.
36016         * modules/mknod (Depends-on): Likewise.
36017         * modules/pipe2 (Depends-on): Likewise.
36018         * modules/stat-time (Depends-on): Likewise.
36019         * modules/strcasestr-simple (Depends-on): Likewise.
36020         * modules/strsignal (Depends-on): Likewise.
36021         * modules/utimensat (Depends-on): Likewise.
36022         * modules/localcharset (Depends-on): Likewise. Needed because of
36023         gl_FCNTL_O_FLAGS.
36024         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36025         AC_TYPE_MBSTATE_T.
36026         * modules/wcsnrtombs (Depends-on): Likewise.
36027         * modules/wcsrtombs (Depends-on): Likewise.
36028
36029 2009-12-24  Bruno Haible  <bruno@clisp.org>
36030
36031         binary-io: Avoid gcc warning due to SET_BINARY.
36032         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36033         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36034
36035 2009-12-24  Bruno Haible  <bruno@clisp.org>
36036
36037         Avoid future namespace pollution on glibc systems.
36038         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36039         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36040         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36041         glibc systems.
36042
36043 2009-12-24  Bruno Haible  <bruno@clisp.org>
36044
36045         Refactor common macros used in tests.
36046         * tests/macros.h: New file.
36047         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36048         and/or <stdlib.h>, if appropriate.
36049         (ASSERT, SIZEOF): Remove macros.
36050         * tests/test-areadlink-with-size.c: Likewise.
36051         * tests/test-areadlinkat.c: Likewise.
36052         * tests/test-areadlinkat-with-size.c: Likewise.
36053         * tests/test-argmatch.c: Likewise.
36054         * tests/test-argv-iter.c: Likewise.
36055         * tests/test-array-mergesort.c: Likewise.
36056         * tests/test-array_list.c: Likewise.
36057         * tests/test-array_oset.c: Likewise.
36058         * tests/test-avltree_list.c: Likewise.
36059         * tests/test-avltree_oset.c: Likewise.
36060         * tests/test-avltreehash_list.c: Likewise.
36061         * tests/test-base64.c: Likewise.
36062         * tests/test-binary-io.c: Likewise.
36063         * tests/test-bitrotate.c: Likewise.
36064         * tests/test-btowc.c: Likewise.
36065         * tests/test-byteswap.c: Likewise.
36066         * tests/test-c-ctype.c: Likewise.
36067         * tests/test-c-stack.c: Likewise.
36068         * tests/test-c-strcasecmp.c: Likewise.
36069         * tests/test-c-strcasestr.c: Likewise.
36070         * tests/test-c-strncasecmp.c: Likewise.
36071         * tests/test-c-strstr.c: Likewise.
36072         * tests/test-canonicalize-lgpl.c: Likewise.
36073         * tests/test-canonicalize.c: Likewise.
36074         * tests/test-carray_list.c: Likewise.
36075         * tests/test-ceilf1.c: Likewise.
36076         * tests/test-ceilf2.c: Likewise.
36077         * tests/test-ceill.c: Likewise.
36078         * tests/test-chown.c: Likewise.
36079         * tests/test-cloexec.c: Likewise.
36080         * tests/test-copy-acl.c: Likewise.
36081         * tests/test-copy-file.c: Likewise.
36082         * tests/test-count-one-bits.c: Likewise.
36083         * tests/test-dprintf-posix.c: Likewise.
36084         * tests/test-dup2.c: Likewise.
36085         * tests/test-dup3.c: Likewise.
36086         * tests/test-duplocale.c: Likewise.
36087         * tests/test-fbufmode.c: Likewise.
36088         * tests/test-fchdir.c: Likewise.
36089         * tests/test-fchownat.c: Likewise.
36090         * tests/test-fcntl-safer.c: Likewise.
36091         * tests/test-fcntl.c: Likewise.
36092         * tests/test-fdopendir.c: Likewise.
36093         * tests/test-fdutimensat.c: Likewise.
36094         * tests/test-fflush2.c: Likewise.
36095         * tests/test-file-has-acl.c: Likewise.
36096         * tests/test-filevercmp.c: Likewise.
36097         * tests/test-flock.c: Likewise.
36098         * tests/test-floorf1.c: Likewise.
36099         * tests/test-floorf2.c: Likewise.
36100         * tests/test-floorl.c: Likewise.
36101         * tests/test-fnmatch.c: Likewise.
36102         * tests/test-fopen.h: Likewise.
36103         * tests/test-fpending.c: Likewise.
36104         * tests/test-fprintf-posix.c: Likewise.
36105         * tests/test-fpurge.c: Likewise.
36106         * tests/test-freadable.c: Likewise.
36107         * tests/test-freadahead.c: Likewise.
36108         * tests/test-freading.c: Likewise.
36109         * tests/test-freadptr.c: Likewise.
36110         * tests/test-freadptr2.c: Likewise.
36111         * tests/test-freadseek.c: Likewise.
36112         * tests/test-freopen.c: Likewise.
36113         * tests/test-frexp.c: Likewise.
36114         * tests/test-frexpl.c: Likewise.
36115         * tests/test-fseek.c: Likewise.
36116         * tests/test-fseeko.c: Likewise.
36117         * tests/test-fstatat.c: Likewise.
36118         * tests/test-fstrcmp.c: Likewise.
36119         * tests/test-fsync.c: Likewise.
36120         * tests/test-ftell.c: Likewise.
36121         * tests/test-ftello.c: Likewise.
36122         * tests/test-func.c: Likewise.
36123         * tests/test-futimens.c: Likewise.
36124         * tests/test-fwritable.c: Likewise.
36125         * tests/test-fwriting.c: Likewise.
36126         * tests/test-getcwd.c: Likewise.
36127         * tests/test-getdate.c: Likewise.
36128         * tests/test-getdelim.c: Likewise.
36129         * tests/test-getdtablesize.c: Likewise.
36130         * tests/test-getgroups.c: Likewise.
36131         * tests/test-getline.c: Likewise.
36132         * tests/test-getndelim2.c: Likewise.
36133         * tests/test-glob.c: Likewise.
36134         * tests/test-hash.c: Likewise.
36135         * tests/test-i-ring.c: Likewise.
36136         * tests/test-iconv-utf.c: Likewise.
36137         * tests/test-iconv.c: Likewise.
36138         * tests/test-idpriv-drop.c: Likewise.
36139         * tests/test-idpriv-droptemp.c: Likewise.
36140         * tests/test-inet_ntop.c: Likewise.
36141         * tests/test-inet_pton.c: Likewise.
36142         * tests/test-isblank.c: Likewise.
36143         * tests/test-isfinite.c: Likewise.
36144         * tests/test-isinf.c: Likewise.
36145         * tests/test-isnan.c: Likewise.
36146         * tests/test-isnand.h: Likewise.
36147         * tests/test-isnanf.h: Likewise.
36148         * tests/test-isnanl.h: Likewise.
36149         * tests/test-lchown.c: Likewise.
36150         * tests/test-ldexpl.c: Likewise.
36151         * tests/test-link.c: Likewise.
36152         * tests/test-linkat.c: Likewise.
36153         * tests/test-linked_list.c: Likewise.
36154         * tests/test-linkedhash_list.c: Likewise.
36155         * tests/test-localename.c: Likewise.
36156         * tests/test-lseek.c: Likewise.
36157         * tests/test-lstat.c: Likewise.
36158         * tests/test-mbmemcasecmp.c: Likewise.
36159         * tests/test-mbmemcasecoll.c: Likewise.
36160         * tests/test-mbrtowc.c: Likewise.
36161         * tests/test-mbscasecmp.c: Likewise.
36162         * tests/test-mbscasestr1.c: Likewise.
36163         * tests/test-mbscasestr2.c: Likewise.
36164         * tests/test-mbscasestr3.c: Likewise.
36165         * tests/test-mbscasestr4.c: Likewise.
36166         * tests/test-mbschr.c: Likewise.
36167         * tests/test-mbscspn.c: Likewise.
36168         * tests/test-mbsinit.c: Likewise.
36169         * tests/test-mbsncasecmp.c: Likewise.
36170         * tests/test-mbsnrtowcs.c: Likewise.
36171         * tests/test-mbspbrk.c: Likewise.
36172         * tests/test-mbspcasecmp.c: Likewise.
36173         * tests/test-mbsrchr.c: Likewise.
36174         * tests/test-mbsrtowcs.c: Likewise.
36175         * tests/test-mbsspn.c: Likewise.
36176         * tests/test-mbsstr1.c: Likewise.
36177         * tests/test-mbsstr2.c: Likewise.
36178         * tests/test-mbsstr3.c: Likewise.
36179         * tests/test-memchr.c: Likewise.
36180         * tests/test-memchr2.c: Likewise.
36181         * tests/test-memcmp.c: Likewise.
36182         * tests/test-memmem.c: Likewise.
36183         * tests/test-memrchr.c: Likewise.
36184         * tests/test-mkdir.c: Likewise.
36185         * tests/test-mkdirat.c: Likewise.
36186         * tests/test-mkfifo.c: Likewise.
36187         * tests/test-mkfifoat.c: Likewise.
36188         * tests/test-mknod.c: Likewise.
36189         * tests/test-nanosleep.c: Likewise.
36190         * tests/test-nl_langinfo.c: Likewise.
36191         * tests/test-obstack-printf.c: Likewise.
36192         * tests/test-open.c: Likewise.
36193         * tests/test-openat.c: Likewise.
36194         * tests/test-pipe-filter-gi1.c: Likewise.
36195         * tests/test-pipe-filter-gi2-main.c: Likewise.
36196         * tests/test-pipe-filter-ii1.c: Likewise.
36197         * tests/test-pipe-filter-ii2-main.c: Likewise.
36198         * tests/test-pipe2.c: Likewise.
36199         * tests/test-popen.h: Likewise.
36200         * tests/test-posixtm.c: Likewise.
36201         * tests/test-pread.c: Likewise.
36202         * tests/test-printf-frexp.c: Likewise.
36203         * tests/test-printf-frexpl.c: Likewise.
36204         * tests/test-printf-posix.c: Likewise.
36205         * tests/test-priv-set.c: Likewise.
36206         * tests/test-quotearg.c: Likewise.
36207         * tests/test-random_r.c: Likewise.
36208         * tests/test-rawmemchr.c: Likewise.
36209         * tests/test-rbtree_list.c: Likewise.
36210         * tests/test-rbtree_oset.c: Likewise.
36211         * tests/test-rbtreehash_list.c: Likewise.
36212         * tests/test-readlink.c: Likewise.
36213         * tests/test-remove.c: Likewise.
36214         * tests/test-rename.c: Likewise.
36215         * tests/test-renameat.c: Likewise.
36216         * tests/test-rmdir.c: Likewise.
36217         * tests/test-round1.c: Likewise.
36218         * tests/test-roundf1.c: Likewise.
36219         * tests/test-roundl.c: Likewise.
36220         * tests/test-safe-alloc.c: Likewise.
36221         * tests/test-sameacls.c: Likewise.
36222         * tests/test-set-mode-acl.c: Likewise.
36223         * tests/test-setenv.c: Likewise.
36224         * tests/test-sigaction.c: Likewise.
36225         * tests/test-signbit.c: Likewise.
36226         * tests/test-sleep.c: Likewise.
36227         * tests/test-snprintf-posix.c: Likewise.
36228         * tests/test-snprintf.c: Likewise.
36229         * tests/test-sprintf-posix.c: Likewise.
36230         * tests/test-stat-time.c: Likewise.
36231         * tests/test-stat.c: Likewise.
36232         * tests/test-strcasestr.c: Likewise.
36233         * tests/test-strchrnul.c: Likewise.
36234         * tests/test-strerror.c: Likewise.
36235         * tests/test-striconv.c: Likewise.
36236         * tests/test-striconveh.c: Likewise.
36237         * tests/test-striconveha.c: Likewise.
36238         * tests/test-strsignal.c: Likewise.
36239         * tests/test-strstr.c: Likewise.
36240         * tests/test-strtod.c: Likewise.
36241         * tests/test-strverscmp.c: Likewise.
36242         * tests/test-symlink.c: Likewise.
36243         * tests/test-symlinkat.c: Likewise.
36244         * tests/test-trunc1.c: Likewise.
36245         * tests/test-trunc2.c: Likewise.
36246         * tests/test-truncf1.c: Likewise.
36247         * tests/test-truncf2.c: Likewise.
36248         * tests/test-truncl.c: Likewise.
36249         * tests/test-uname.c: Likewise.
36250         * tests/test-unlink.c: Likewise.
36251         * tests/test-unlinkat.c: Likewise.
36252         * tests/test-unsetenv.c: Likewise.
36253         * tests/test-usleep.c: Likewise.
36254         * tests/test-utimens.c: Likewise.
36255         * tests/test-utimensat.c: Likewise.
36256         * tests/test-vasnprintf-posix.c: Likewise.
36257         * tests/test-vasnprintf-posix2.c: Likewise.
36258         * tests/test-vasnprintf.c: Likewise.
36259         * tests/test-vasprintf-posix.c: Likewise.
36260         * tests/test-vasprintf.c: Likewise.
36261         * tests/test-vdprintf-posix.c: Likewise.
36262         * tests/test-vfprintf-posix.c: Likewise.
36263         * tests/test-vprintf-posix.c: Likewise.
36264         * tests/test-vsnprintf-posix.c: Likewise.
36265         * tests/test-vsnprintf.c: Likewise.
36266         * tests/test-vsprintf-posix.c: Likewise.
36267         * tests/test-wcrtomb.c: Likewise.
36268         * tests/test-wcsnrtombs.c: Likewise.
36269         * tests/test-wcsrtombs.c: Likewise.
36270         * tests/test-wctype.c: Likewise.
36271         * tests/test-wcwidth.c: Likewise.
36272         * tests/test-xfprintf-posix.c: Likewise.
36273         * tests/test-xmemdup0.c: Likewise.
36274         * tests/test-xprintf-posix.c: Likewise.
36275         * tests/test-xvasprintf.c: Likewise.
36276         * tests/unicase/test-locale-language.c: Likewise.
36277         * tests/unicase/test-mapping-part1.h: Likewise.
36278         * tests/unicase/test-predicate-part1.h: Likewise.
36279         * tests/unicase/test-u8-casecmp.c: Likewise.
36280         * tests/unicase/test-u8-casecoll.c: Likewise.
36281         * tests/unicase/test-u8-casefold.c: Likewise.
36282         * tests/unicase/test-u8-is-cased.c: Likewise.
36283         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36284         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36285         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36286         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36287         * tests/unicase/test-u8-tolower.c: Likewise.
36288         * tests/unicase/test-u8-totitle.c: Likewise.
36289         * tests/unicase/test-u8-toupper.c: Likewise.
36290         * tests/unicase/test-u16-casecmp.c: Likewise.
36291         * tests/unicase/test-u16-casecoll.c: Likewise.
36292         * tests/unicase/test-u16-casefold.c: Likewise.
36293         * tests/unicase/test-u16-is-cased.c: Likewise.
36294         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36295         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36296         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36297         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36298         * tests/unicase/test-u16-tolower.c: Likewise.
36299         * tests/unicase/test-u16-totitle.c: Likewise.
36300         * tests/unicase/test-u16-toupper.c: Likewise.
36301         * tests/unicase/test-u32-casecmp.c: Likewise.
36302         * tests/unicase/test-u32-casecoll.c: Likewise.
36303         * tests/unicase/test-u32-casefold.c: Likewise.
36304         * tests/unicase/test-u32-is-cased.c: Likewise.
36305         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36306         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36307         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36308         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36309         * tests/unicase/test-u32-tolower.c: Likewise.
36310         * tests/unicase/test-u32-totitle.c: Likewise.
36311         * tests/unicase/test-u32-toupper.c: Likewise.
36312         * tests/unicase/test-ulc-casecmp.c: Likewise.
36313         * tests/unicase/test-ulc-casecoll.c: Likewise.
36314         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36315         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36316         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36317         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36318         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36319         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36320         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36321         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36322         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36323         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36324         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36325         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36326         * tests/unictype/test-bidi_byname.c: Likewise.
36327         * tests/unictype/test-bidi_name.c: Likewise.
36328         * tests/unictype/test-bidi_of.c: Likewise.
36329         * tests/unictype/test-bidi_test.c: Likewise.
36330         * tests/unictype/test-block_list.c: Likewise.
36331         * tests/unictype/test-block_of.c: Likewise.
36332         * tests/unictype/test-block_test.c: Likewise.
36333         * tests/unictype/test-categ_and.c: Likewise.
36334         * tests/unictype/test-categ_and_not.c: Likewise.
36335         * tests/unictype/test-categ_byname.c: Likewise.
36336         * tests/unictype/test-categ_name.c: Likewise.
36337         * tests/unictype/test-categ_none.c: Likewise.
36338         * tests/unictype/test-categ_of.c: Likewise.
36339         * tests/unictype/test-categ_or.c: Likewise.
36340         * tests/unictype/test-categ_test_withtable.c: Likewise.
36341         * tests/unictype/test-combining.c: Likewise.
36342         * tests/unictype/test-decdigit.c: Likewise.
36343         * tests/unictype/test-digit.c: Likewise.
36344         * tests/unictype/test-mirror.c: Likewise.
36345         * tests/unictype/test-numeric.c: Likewise.
36346         * tests/unictype/test-pr_byname.c: Likewise.
36347         * tests/unictype/test-pr_test.c: Likewise.
36348         * tests/unictype/test-predicate-part1.h: Likewise.
36349         * tests/unictype/test-scripts.c: Likewise.
36350         * tests/unictype/test-sy_c_ident.c: Likewise.
36351         * tests/unictype/test-sy_java_ident.c: Likewise.
36352         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36353         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36354         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36355         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36356         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36357         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36358         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36359         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36360         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36361         * tests/uninorm/test-compat-decomposition.c: Likewise.
36362         * tests/uninorm/test-composition.c: Likewise.
36363         * tests/uninorm/test-decomposing-form.c: Likewise.
36364         * tests/uninorm/test-decomposition.c: Likewise.
36365         * tests/uninorm/test-u8-nfc.c: Likewise.
36366         * tests/uninorm/test-u8-nfd.c: Likewise.
36367         * tests/uninorm/test-u8-nfkc.c: Likewise.
36368         * tests/uninorm/test-u8-nfkd.c: Likewise.
36369         * tests/uninorm/test-u8-normcmp.c: Likewise.
36370         * tests/uninorm/test-u8-normcoll.c: Likewise.
36371         * tests/uninorm/test-u16-nfc.c: Likewise.
36372         * tests/uninorm/test-u16-nfd.c: Likewise.
36373         * tests/uninorm/test-u16-nfkc.c: Likewise.
36374         * tests/uninorm/test-u16-nfkd.c: Likewise.
36375         * tests/uninorm/test-u16-normcmp.c: Likewise.
36376         * tests/uninorm/test-u16-normcoll.c: Likewise.
36377         * tests/uninorm/test-u32-nfc.c: Likewise.
36378         * tests/uninorm/test-u32-nfd.c: Likewise.
36379         * tests/uninorm/test-u32-nfkc.c: Likewise.
36380         * tests/uninorm/test-u32-nfkd.c: Likewise.
36381         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36382         * tests/uninorm/test-u32-normcmp.c: Likewise.
36383         * tests/uninorm/test-u32-normcoll.c: Likewise.
36384         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36385         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36386         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36387         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36388         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36389         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36390         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36391         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36392         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36393         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36394         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36395         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36396         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36397         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36398         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36399         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36400         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36401         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36402         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36403         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36404         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36405         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36406         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36407         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36408         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36409         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36410         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36411         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36412         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36413         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36414         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36415         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36416         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36417         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36418         * tests/uniwidth/test-u8-width.c: Likewise.
36419         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36420         * tests/uniwidth/test-u16-width.c: Likewise.
36421         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36422         * tests/uniwidth/test-u32-width.c: Likewise.
36423         * tests/uniwidth/test-uc_width.c: Likewise.
36424         * tests/uniwidth/test-uc_width2.c: Likewise.
36425         * modules/acl-tests (Files): Add tests/macros.h.
36426         * modules/areadlink-tests (Files): Likewise.
36427         * modules/areadlink-with-size-tests (Files): Likewise.
36428         * modules/areadlinkat-tests (Files): Likewise.
36429         * modules/areadlinkat-with-size-tests (Files): Likewise.
36430         * modules/argmatch-tests (Files): Likewise.
36431         * modules/argv-iter-tests (Files): Likewise.
36432         * modules/array-list-tests (Files): Likewise.
36433         * modules/array-mergesort-tests (Files): Likewise.
36434         * modules/array-oset-tests (Files): Likewise.
36435         * modules/avltree-list-tests (Files): Likewise.
36436         * modules/avltree-oset-tests (Files): Likewise.
36437         * modules/avltreehash-list-tests (Files): Likewise.
36438         * modules/base64-tests (Files): Likewise.
36439         * modules/binary-io-tests (Files): Likewise.
36440         * modules/bitrotate-tests (Files): Likewise.
36441         * modules/btowc-tests (Files): Likewise.
36442         * modules/byteswap-tests (Files): Likewise.
36443         * modules/c-ctype-tests (Files): Likewise.
36444         * modules/c-stack-tests (Files): Likewise.
36445         * modules/c-strcase-tests (Files): Likewise.
36446         * modules/c-strcasestr-tests (Files): Likewise.
36447         * modules/c-strstr-tests (Files): Likewise.
36448         * modules/canonicalize-lgpl-tests (Files): Likewise.
36449         * modules/canonicalize-tests (Files): Likewise.
36450         * modules/carray-list-tests (Files): Likewise.
36451         * modules/ceilf-tests (Files): Likewise.
36452         * modules/ceill-tests (Files): Likewise.
36453         * modules/chown-tests (Files): Likewise.
36454         * modules/cloexec-tests (Files): Likewise.
36455         * modules/copy-file-tests (Files): Likewise.
36456         * modules/count-one-bits-tests (Files): Likewise.
36457         * modules/dprintf-posix-tests (Files): Likewise.
36458         * modules/dup2-tests (Files): Likewise.
36459         * modules/dup3-tests (Files): Likewise.
36460         * modules/duplocale-tests (Files): Likewise.
36461         * modules/fbufmode-tests (Files): Likewise.
36462         * modules/fchdir-tests (Files): Likewise.
36463         * modules/fcntl-safer-tests (Files): Likewise.
36464         * modules/fcntl-tests (Files): Likewise.
36465         * modules/fdopendir-tests (Files): Likewise.
36466         * modules/fdutimensat-tests (Files): Likewise.
36467         * modules/fflush-tests (Files): Likewise.
36468         * modules/filevercmp-tests (Files): Likewise.
36469         * modules/flock-tests (Files): Likewise.
36470         * modules/floorf-tests (Files): Likewise.
36471         * modules/floorl-tests (Files): Likewise.
36472         * modules/fnmatch-tests (Files): Likewise.
36473         * modules/fopen-safer-tests (Files): Likewise.
36474         * modules/fopen-tests (Files): Likewise.
36475         * modules/fpending-tests (Files): Likewise.
36476         * modules/fprintf-posix-tests (Files): Likewise.
36477         * modules/fpurge-tests (Files): Likewise.
36478         * modules/freadable-tests (Files): Likewise.
36479         * modules/freadahead-tests (Files): Likewise.
36480         * modules/freading-tests (Files): Likewise.
36481         * modules/freadptr-tests (Files): Likewise.
36482         * modules/freadseek-tests (Files): Likewise.
36483         * modules/freopen-tests (Files): Likewise.
36484         * modules/frexp-nolibm-tests (Files): Likewise.
36485         * modules/frexp-tests (Files): Likewise.
36486         * modules/frexpl-nolibm-tests (Files): Likewise.
36487         * modules/frexpl-tests (Files): Likewise.
36488         * modules/fseek-tests (Files): Likewise.
36489         * modules/fseeko-tests (Files): Likewise.
36490         * modules/fstrcmp-tests (Files): Likewise.
36491         * modules/fsync-tests (Files): Likewise.
36492         * modules/ftell-tests (Files): Likewise.
36493         * modules/ftello-tests (Files): Likewise.
36494         * modules/func-tests (Files): Likewise.
36495         * modules/futimens-tests (Files): Likewise.
36496         * modules/fwritable-tests (Files): Likewise.
36497         * modules/fwriting-tests (Files): Likewise.
36498         * modules/getcwd-tests (Files): Likewise.
36499         * modules/getdate-tests (Files): Likewise.
36500         * modules/getdelim-tests (Files): Likewise.
36501         * modules/getdtablesize-tests (Files): Likewise.
36502         * modules/getgroups-tests (Files): Likewise.
36503         * modules/getline-tests (Files): Likewise.
36504         * modules/getndelim2-tests (Files): Likewise.
36505         * modules/glob-tests (Files): Likewise.
36506         * modules/hash-tests (Files): Likewise.
36507         * modules/i-ring-tests (Files): Likewise.
36508         * modules/iconv-tests (Files): Likewise.
36509         * modules/iconv_open-utf-tests (Files): Likewise.
36510         * modules/idpriv-drop-tests (Files): Likewise.
36511         * modules/idpriv-droptemp-tests (Files): Likewise.
36512         * modules/inet_ntop-tests (Files): Likewise.
36513         * modules/inet_pton-tests (Files): Likewise.
36514         * modules/isblank-tests (Files): Likewise.
36515         * modules/isfinite-tests (Files): Likewise.
36516         * modules/isinf-tests (Files): Likewise.
36517         * modules/isnan-tests (Files): Likewise.
36518         * modules/isnand-nolibm-tests (Files): Likewise.
36519         * modules/isnand-tests (Files): Likewise.
36520         * modules/isnanf-nolibm-tests (Files): Likewise.
36521         * modules/isnanf-tests (Files): Likewise.
36522         * modules/isnanl-nolibm-tests (Files): Likewise.
36523         * modules/isnanl-tests (Files): Likewise.
36524         * modules/lchown-tests (Files): Likewise.
36525         * modules/ldexpl-tests (Files): Likewise.
36526         * modules/link-tests (Files): Likewise.
36527         * modules/linkat-tests (Files): Likewise.
36528         * modules/linked-list-tests (Files): Likewise.
36529         * modules/linkedhash-list-tests (Files): Likewise.
36530         * modules/localename-tests (Files): Likewise.
36531         * modules/lseek-tests (Files): Likewise.
36532         * modules/lstat-tests (Files): Likewise.
36533         * modules/mbmemcasecmp-tests (Files): Likewise.
36534         * modules/mbmemcasecoll-tests (Files): Likewise.
36535         * modules/mbrtowc-tests (Files): Likewise.
36536         * modules/mbscasecmp-tests (Files): Likewise.
36537         * modules/mbscasestr-tests (Files): Likewise.
36538         * modules/mbschr-tests (Files): Likewise.
36539         * modules/mbscspn-tests (Files): Likewise.
36540         * modules/mbsinit-tests (Files): Likewise.
36541         * modules/mbsncasecmp-tests (Files): Likewise.
36542         * modules/mbsnrtowcs-tests (Files): Likewise.
36543         * modules/mbspbrk-tests (Files): Likewise.
36544         * modules/mbspcasecmp-tests (Files): Likewise.
36545         * modules/mbsrchr-tests (Files): Likewise.
36546         * modules/mbsrtowcs-tests (Files): Likewise.
36547         * modules/mbsspn-tests (Files): Likewise.
36548         * modules/mbsstr-tests (Files): Likewise.
36549         * modules/memchr-tests (Files): Likewise.
36550         * modules/memchr2-tests (Files): Likewise.
36551         * modules/memcmp-tests (Files): Likewise.
36552         * modules/memmem-tests (Files): Likewise.
36553         * modules/memrchr-tests (Files): Likewise.
36554         * modules/mkdir-tests (Files): Likewise.
36555         * modules/mkfifo-tests (Files): Likewise.
36556         * modules/mkfifoat-tests (Files): Likewise.
36557         * modules/mknod-tests (Files): Likewise.
36558         * modules/nanosleep-tests (Files): Likewise.
36559         * modules/nl_langinfo-tests (Files): Likewise.
36560         * modules/obstack-printf-tests (Files): Likewise.
36561         * modules/open-tests (Files): Likewise.
36562         * modules/openat-tests (Files): Likewise.
36563         * modules/pipe-filter-gi-tests (Files): Likewise.
36564         * modules/pipe-filter-ii-tests (Files): Likewise.
36565         * modules/pipe2-tests (Files): Likewise.
36566         * modules/popen-safer-tests (Files): Likewise.
36567         * modules/popen-tests (Files): Likewise.
36568         * modules/posixtm-tests (Files): Likewise.
36569         * modules/pread-tests (Files): Likewise.
36570         * modules/printf-frexp-tests (Files): Likewise.
36571         * modules/printf-frexpl-tests (Files): Likewise.
36572         * modules/printf-posix-tests (Files): Likewise.
36573         * modules/priv-set-tests (Files): Likewise.
36574         * modules/quotearg-tests (Files): Likewise.
36575         * modules/random_r-tests (Files): Likewise.
36576         * modules/rawmemchr-tests (Files): Likewise.
36577         * modules/rbtree-list-tests (Files): Likewise.
36578         * modules/rbtree-oset-tests (Files): Likewise.
36579         * modules/rbtreehash-list-tests (Files): Likewise.
36580         * modules/readlink-tests (Files): Likewise.
36581         * modules/remove-tests (Files): Likewise.
36582         * modules/rename-tests (Files): Likewise.
36583         * modules/renameat-tests (Files): Likewise.
36584         * modules/rmdir-tests (Files): Likewise.
36585         * modules/round-tests (Files): Likewise.
36586         * modules/roundf-tests (Files): Likewise.
36587         * modules/roundl-tests (Files): Likewise.
36588         * modules/safe-alloc-tests (Files): Likewise.
36589         * modules/setenv-tests (Files): Likewise.
36590         * modules/sigaction-tests (Files): Likewise.
36591         * modules/signbit-tests (Files): Likewise.
36592         * modules/sleep-tests (Files): Likewise.
36593         * modules/snprintf-posix-tests (Files): Likewise.
36594         * modules/snprintf-tests (Files): Likewise.
36595         * modules/sprintf-posix-tests (Files): Likewise.
36596         * modules/stat-tests (Files): Likewise.
36597         * modules/stat-time-tests (Files): Likewise.
36598         * modules/strcasestr-tests (Files): Likewise.
36599         * modules/strchrnul-tests (Files): Likewise.
36600         * modules/strerror-tests (Files): Likewise.
36601         * modules/striconv-tests (Files): Likewise.
36602         * modules/striconveh-tests (Files): Likewise.
36603         * modules/striconveha-tests (Files): Likewise.
36604         * modules/strsignal-tests (Files): Likewise.
36605         * modules/strstr-tests (Files): Likewise.
36606         * modules/strtod-tests (Files): Likewise.
36607         * modules/strverscmp-tests (Files): Likewise.
36608         * modules/symlink-tests (Files): Likewise.
36609         * modules/symlinkat-tests (Files): Likewise.
36610         * modules/trunc-tests (Files): Likewise.
36611         * modules/truncf-tests (Files): Likewise.
36612         * modules/truncl-tests (Files): Likewise.
36613         * modules/uname-tests (Files): Likewise.
36614         * modules/unicase/cased-tests (Files): Likewise.
36615         * modules/unicase/ignorable-tests (Files): Likewise.
36616         * modules/unicase/locale-language-tests (Files): Likewise.
36617         * modules/unicase/tolower-tests (Files): Likewise.
36618         * modules/unicase/totitle-tests (Files): Likewise.
36619         * modules/unicase/toupper-tests (Files): Likewise.
36620         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36621         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36622         * modules/unicase/u8-casefold-tests (Files): Likewise.
36623         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36624         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36625         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36626         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36627         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36628         * modules/unicase/u8-tolower-tests (Files): Likewise.
36629         * modules/unicase/u8-totitle-tests (Files): Likewise.
36630         * modules/unicase/u8-toupper-tests (Files): Likewise.
36631         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36632         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36633         * modules/unicase/u16-casefold-tests (Files): Likewise.
36634         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36635         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36636         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36637         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36638         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36639         * modules/unicase/u16-tolower-tests (Files): Likewise.
36640         * modules/unicase/u16-totitle-tests (Files): Likewise.
36641         * modules/unicase/u16-toupper-tests (Files): Likewise.
36642         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36643         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36644         * modules/unicase/u32-casefold-tests (Files): Likewise.
36645         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36646         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36647         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36648         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36649         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36650         * modules/unicase/u32-tolower-tests (Files): Likewise.
36651         * modules/unicase/u32-totitle-tests (Files): Likewise.
36652         * modules/unicase/u32-toupper-tests (Files): Likewise.
36653         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36654         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36655         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36656         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36657         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36658         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36659         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36660         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36661         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36662         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36663         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36664         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36665         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36666         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36667         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36668         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36669         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36670         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36671         * modules/unictype/block-list-tests (Files): Likewise.
36672         * modules/unictype/block-of-tests (Files): Likewise.
36673         * modules/unictype/block-test-tests (Files): Likewise.
36674         * modules/unictype/category-C-tests (Files): Likewise.
36675         * modules/unictype/category-Cc-tests (Files): Likewise.
36676         * modules/unictype/category-Cf-tests (Files): Likewise.
36677         * modules/unictype/category-Cn-tests (Files): Likewise.
36678         * modules/unictype/category-Co-tests (Files): Likewise.
36679         * modules/unictype/category-Cs-tests (Files): Likewise.
36680         * modules/unictype/category-L-tests (Files): Likewise.
36681         * modules/unictype/category-Ll-tests (Files): Likewise.
36682         * modules/unictype/category-Lm-tests (Files): Likewise.
36683         * modules/unictype/category-Lo-tests (Files): Likewise.
36684         * modules/unictype/category-Lt-tests (Files): Likewise.
36685         * modules/unictype/category-Lu-tests (Files): Likewise.
36686         * modules/unictype/category-M-tests (Files): Likewise.
36687         * modules/unictype/category-Mc-tests (Files): Likewise.
36688         * modules/unictype/category-Me-tests (Files): Likewise.
36689         * modules/unictype/category-Mn-tests (Files): Likewise.
36690         * modules/unictype/category-N-tests (Files): Likewise.
36691         * modules/unictype/category-Nd-tests (Files): Likewise.
36692         * modules/unictype/category-Nl-tests (Files): Likewise.
36693         * modules/unictype/category-No-tests (Files): Likewise.
36694         * modules/unictype/category-P-tests (Files): Likewise.
36695         * modules/unictype/category-Pc-tests (Files): Likewise.
36696         * modules/unictype/category-Pd-tests (Files): Likewise.
36697         * modules/unictype/category-Pe-tests (Files): Likewise.
36698         * modules/unictype/category-Pf-tests (Files): Likewise.
36699         * modules/unictype/category-Pi-tests (Files): Likewise.
36700         * modules/unictype/category-Po-tests (Files): Likewise.
36701         * modules/unictype/category-Ps-tests (Files): Likewise.
36702         * modules/unictype/category-S-tests (Files): Likewise.
36703         * modules/unictype/category-Sc-tests (Files): Likewise.
36704         * modules/unictype/category-Sk-tests (Files): Likewise.
36705         * modules/unictype/category-Sm-tests (Files): Likewise.
36706         * modules/unictype/category-So-tests (Files): Likewise.
36707         * modules/unictype/category-Z-tests (Files): Likewise.
36708         * modules/unictype/category-Zl-tests (Files): Likewise.
36709         * modules/unictype/category-Zp-tests (Files): Likewise.
36710         * modules/unictype/category-Zs-tests (Files): Likewise.
36711         * modules/unictype/category-and-not-tests (Files): Likewise.
36712         * modules/unictype/category-and-tests (Files): Likewise.
36713         * modules/unictype/category-byname-tests (Files): Likewise.
36714         * modules/unictype/category-name-tests (Files): Likewise.
36715         * modules/unictype/category-none-tests (Files): Likewise.
36716         * modules/unictype/category-of-tests (Files): Likewise.
36717         * modules/unictype/category-or-tests (Files): Likewise.
36718         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36719         * modules/unictype/combining-class-tests (Files): Likewise.
36720         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36721         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36722         * modules/unictype/ctype-blank-tests (Files): Likewise.
36723         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36724         * modules/unictype/ctype-digit-tests (Files): Likewise.
36725         * modules/unictype/ctype-graph-tests (Files): Likewise.
36726         * modules/unictype/ctype-lower-tests (Files): Likewise.
36727         * modules/unictype/ctype-print-tests (Files): Likewise.
36728         * modules/unictype/ctype-punct-tests (Files): Likewise.
36729         * modules/unictype/ctype-space-tests (Files): Likewise.
36730         * modules/unictype/ctype-upper-tests (Files): Likewise.
36731         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36732         * modules/unictype/decimal-digit-tests (Files): Likewise.
36733         * modules/unictype/digit-tests (Files): Likewise.
36734         * modules/unictype/mirror-tests (Files): Likewise.
36735         * modules/unictype/numeric-tests (Files): Likewise.
36736         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36737         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36738         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36739         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36740         Likewise.
36741         * modules/unictype/property-bidi-block-separator-tests (Files):
36742         Likewise.
36743         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36744         Likewise.
36745         * modules/unictype/property-bidi-common-separator-tests (Files):
36746         Likewise.
36747         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36748         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36749         Likewise.
36750         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36751         Likewise.
36752         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36753         Likewise.
36754         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36755         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36756         Likewise.
36757         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36758         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36759         Likewise.
36760         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36761         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36762         * modules/unictype/property-bidi-segment-separator-tests (Files):
36763         Likewise.
36764         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36765         * modules/unictype/property-byname-tests (Files): Likewise.
36766         * modules/unictype/property-combining-tests (Files): Likewise.
36767         * modules/unictype/property-composite-tests (Files): Likewise.
36768         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36769         * modules/unictype/property-dash-tests (Files): Likewise.
36770         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36771         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36772         Likewise.
36773         * modules/unictype/property-deprecated-tests (Files): Likewise.
36774         * modules/unictype/property-diacritic-tests (Files): Likewise.
36775         * modules/unictype/property-extender-tests (Files): Likewise.
36776         * modules/unictype/property-format-control-tests (Files): Likewise.
36777         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36778         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36779         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36780         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36781         * modules/unictype/property-hyphen-tests (Files): Likewise.
36782         * modules/unictype/property-id-continue-tests (Files): Likewise.
36783         * modules/unictype/property-id-start-tests (Files): Likewise.
36784         * modules/unictype/property-ideographic-tests (Files): Likewise.
36785         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36786         * modules/unictype/property-ids-trinary-operator-tests (Files):
36787         Likewise.
36788         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36789         * modules/unictype/property-iso-control-tests (Files): Likewise.
36790         * modules/unictype/property-join-control-tests (Files): Likewise.
36791         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36792         * modules/unictype/property-line-separator-tests (Files): Likewise.
36793         * modules/unictype/property-logical-order-exception-tests (Files):
36794         Likewise.
36795         * modules/unictype/property-lowercase-tests (Files): Likewise.
36796         * modules/unictype/property-math-tests (Files): Likewise.
36797         * modules/unictype/property-non-break-tests (Files): Likewise.
36798         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36799         * modules/unictype/property-numeric-tests (Files): Likewise.
36800         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36801         * modules/unictype/property-other-default-ignorable-code-point-tests
36802         (Files): Likewise.
36803         * modules/unictype/property-other-grapheme-extend-tests (Files):
36804         Likewise.
36805         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36806         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36807         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36808         * modules/unictype/property-other-math-tests (Files): Likewise.
36809         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36810         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36811         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36812         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36813         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36814         * modules/unictype/property-private-use-tests (Files): Likewise.
36815         * modules/unictype/property-punctuation-tests (Files): Likewise.
36816         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36817         * modules/unictype/property-radical-tests (Files): Likewise.
36818         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36819         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36820         * modules/unictype/property-space-tests (Files): Likewise.
36821         * modules/unictype/property-terminal-punctuation-tests (Files):
36822         Likewise.
36823         * modules/unictype/property-test-tests (Files): Likewise.
36824         * modules/unictype/property-titlecase-tests (Files): Likewise.
36825         * modules/unictype/property-unassigned-code-value-tests (Files):
36826         Likewise.
36827         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36828         * modules/unictype/property-uppercase-tests (Files): Likewise.
36829         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36830         * modules/unictype/property-white-space-tests (Files): Likewise.
36831         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36832         * modules/unictype/property-xid-start-tests (Files): Likewise.
36833         * modules/unictype/property-zero-width-tests (Files): Likewise.
36834         * modules/unictype/scripts-tests (Files): Likewise.
36835         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36836         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36837         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36838         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36839         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36840         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36841         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36842         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36843         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36844         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36845         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36846         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36847         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36848         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36849         * modules/uninorm/composition-tests (Files): Likewise.
36850         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36851         * modules/uninorm/decomposition-tests (Files): Likewise.
36852         * modules/uninorm/filter-tests (Files): Likewise.
36853         * modules/uninorm/nfc-tests (Files): Likewise.
36854         * modules/uninorm/nfd-tests (Files): Likewise.
36855         * modules/uninorm/nfkc-tests (Files): Likewise.
36856         * modules/uninorm/nfkd-tests (Files): Likewise.
36857         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36858         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36859         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36860         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36861         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36862         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36863         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36864         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36865         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36866         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36867         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36868         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36869         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36870         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36871         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36872         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36873         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36874         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36875         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36876         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36877         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36878         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36879         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36880         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36881         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36882         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36883         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36884         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36885         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36886         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36887         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36888         * modules/uniwidth/u8-width-tests (Files): Likewise.
36889         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36890         * modules/uniwidth/u16-width-tests (Files): Likewise.
36891         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36892         * modules/uniwidth/u32-width-tests (Files): Likewise.
36893         * modules/uniwidth/width-tests (Files): Likewise.
36894         * modules/unlink-tests (Files): Likewise.
36895         * modules/unsetenv-tests (Files): Likewise.
36896         * modules/usleep-tests (Files): Likewise.
36897         * modules/utimens-tests (Files): Likewise.
36898         * modules/utimensat-tests (Files): Likewise.
36899         * modules/vasnprintf-posix-tests (Files): Likewise.
36900         * modules/vasnprintf-tests (Files): Likewise.
36901         * modules/vasprintf-posix-tests (Files): Likewise.
36902         * modules/vasprintf-tests (Files): Likewise.
36903         * modules/vdprintf-posix-tests (Files): Likewise.
36904         * modules/vfprintf-posix-tests (Files): Likewise.
36905         * modules/vprintf-posix-tests (Files): Likewise.
36906         * modules/vsnprintf-posix-tests (Files): Likewise.
36907         * modules/vsnprintf-tests (Files): Likewise.
36908         * modules/vsprintf-posix-tests (Files): Likewise.
36909         * modules/wcrtomb-tests (Files): Likewise.
36910         * modules/wcsnrtombs-tests (Files): Likewise.
36911         * modules/wcsrtombs-tests (Files): Likewise.
36912         * modules/wctype-tests (Files): Likewise.
36913         * modules/wcwidth-tests (Files): Likewise.
36914         * modules/xmemdup0-tests (Files): Likewise.
36915         * modules/xprintf-posix-tests (Files): Likewise.
36916         * modules/xvasprintf-tests (Files): Likewise.
36917
36918 2009-12-24  Eric Blake  <ebb9@byu.net>
36919
36920         test-nanosleep: fix typo
36921         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36922         patch.
36923         Reported by Bruno Haible.
36924
36925 2009-12-24  Bruno Haible  <bruno@clisp.org>
36926
36927         Reduce namespace pollution on glibc systems.
36928         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36929         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36930         systems.
36931         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36932         <getopt.h> on glibc systems.
36933         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36934         systems.
36935         * lib/fcntl.c: Include <unistd.h> here instead.
36936
36937 2009-12-24  Bruno Haible  <bruno@clisp.org>
36938
36939         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36940
36941 2009-12-24  Eric Blake  <ebb9@byu.net>
36942
36943         tests: add signature checks
36944         * tests/signature.h (SIGNATURE_CHECK): New file.
36945         * modules/atexit-tests (Files): Use it.
36946         * modules/btowc-tests (Files): Likewise.
36947         * modules/canonicalize-lgpl-tests (Files): Likewise.
36948         * modules/ceilf-tests (Files): Likewise.
36949         * modules/ceill-tests (Files): Likewise.
36950         * modules/chown-tests (Files): Likewise.
36951         * modules/dprintf-posix-tests (Files): Likewise.
36952         * modules/dup2-tests (Files): Likewise.
36953         * modules/dup3-tests (Files): Likewise.
36954         * modules/duplocale-tests (Files): Likewise.
36955         * modules/fchdir-tests (Files): Likewise.
36956         * modules/fcntl-tests (Files): Likewise.
36957         * modules/fdopendir-tests (Files): Likewise.
36958         * modules/fflush-tests (Files): Likewise.
36959         * modules/flock-tests (Files): Likewise.
36960         * modules/floorf-tests (Files): Likewise.
36961         * modules/floorl-tests (Files): Likewise.
36962         * modules/fnmatch-tests (Files): Likewise.
36963         * modules/fopen-tests (Files): Likewise.
36964         * modules/fprintf-posix-tests (Files): Likewise.
36965         * modules/freopen-tests (Files): Likewise.
36966         * modules/frexp-nolibm-tests (Files): Likewise.
36967         * modules/frexp-tests (Files): Likewise.
36968         * modules/frexpl-nolibm-tests (Files): Likewise.
36969         * modules/frexpl-tests (Files): Likewise.
36970         * modules/fseek-tests (Files): Likewise.
36971         * modules/fseeko-tests (Files): Likewise.
36972         * modules/fsync-tests (Files): Likewise.
36973         * modules/ftell-tests (Files): Likewise.
36974         * modules/ftello-tests (Files): Likewise.
36975         * modules/futimens-tests (Files): Likewise.
36976         * modules/getaddrinfo-tests (Files): Likewise.
36977         * modules/getcwd-tests (Files): Likewise.
36978         * modules/getdelim-tests (Files): Likewise.
36979         * modules/getdtablesize-tests (Files): Likewise.
36980         * modules/getgroups-tests (Files): Likewise.
36981         * modules/gethostname-tests (Files): Likewise.
36982         * modules/getline-tests (Files): Likewise.
36983         * modules/getopt-posix-tests (Files): Likewise.
36984         * modules/gettimeofday-tests (Files): Likewise.
36985         * modules/glob-tests (Files): Likewise.
36986         * modules/iconv-tests (Files): Likewise.
36987         * modules/inet_ntop-tests (Files): Likewise.
36988         * modules/inet_pton-tests (Files): Likewise.
36989         * modules/isblank-tests (Files): Likewise.
36990         * modules/lchown-tests (Files): Likewise.
36991         * modules/ldexpl-tests (Files): Likewise.
36992         * modules/link-tests (Files): Likewise.
36993         * modules/linkat-tests (Files): Likewise.
36994         * modules/lseek-tests (Files): Likewise.
36995         * modules/lstat-tests (Files): Likewise.
36996         * modules/mbrtowc-tests (Files): Likewise.
36997         * modules/mbsinit-tests (Files): Likewise.
36998         * modules/mbsnrtowcs-tests (Files): Likewise.
36999         * modules/mbsrtowcs-tests (Files): Likewise.
37000         * modules/memchr-tests (Files): Likewise.
37001         * modules/memcmp-tests (Files): Likewise.
37002         * modules/memmem-tests (Files): Likewise.
37003         * modules/memrchr-tests (Files): Likewise.
37004         * modules/mkdir-tests (Files): Likewise.
37005         * modules/mkfifo-tests (Files): Likewise.
37006         * modules/mkfifoat-tests (Files): Likewise.
37007         * modules/mknod-tests (Files): Likewise.
37008         * modules/nanosleep-tests (Files): Likewise.
37009         * modules/nl_langinfo-tests (Files): Likewise.
37010         * modules/obstack-printf-tests (Files): Likewise.
37011         * modules/open-tests (Files): Likewise.
37012         * modules/openat-tests (Files): Likewise.
37013         * modules/perror-tests (Files): Likewise.
37014         * modules/pipe2-tests (Files): Likewise.
37015         * modules/poll-tests (Files): Likewise.
37016         * modules/popen-tests (Files): Likewise.
37017         * modules/posix_spawn-tests (Files): Likewise.
37018         * modules/posix_spawnp-tests (Files): Likewise.
37019         * modules/pread-tests (Files): Likewise.
37020         * modules/printf-posix-tests (Files): Likewise.
37021         * modules/pty-tests (Files): Likewise.
37022         * modules/random_r-tests (Files): Likewise.
37023         * modules/rawmemchr-tests (Files): Likewise.
37024         * modules/readlink-tests (Files): Likewise.
37025         * modules/remove-tests (Files): Likewise.
37026         * modules/rename-tests (Files): Likewise.
37027         * modules/renameat-tests (Files): Likewise.
37028         * modules/rmdir-tests (Files): Likewise.
37029         * modules/round-tests (Files): Likewise.
37030         * modules/roundf-tests (Files): Likewise.
37031         * modules/roundl-tests (Files): Likewise.
37032         * modules/select-tests (Files): Likewise.
37033         * modules/setenv-tests (Files): Likewise.
37034         * modules/sigaction-tests (Files): Likewise.
37035         * modules/sleep-tests (Files): Likewise.
37036         * modules/snprintf-posix-tests (Files): Likewise.
37037         * modules/snprintf-tests (Files): Likewise.
37038         * modules/sprintf-posix-tests (Files): Likewise.
37039         * modules/stat-tests (Files): Likewise.
37040         * modules/strcasestr-tests (Files): Likewise.
37041         * modules/strchrnul-tests (Files): Likewise.
37042         * modules/strerror-tests (Files): Likewise.
37043         * modules/strsignal-tests (Files): Likewise.
37044         * modules/strstr-tests (Files): Likewise.
37045         * modules/strtod-tests (Files): Likewise.
37046         * modules/strverscmp-tests (Files): Likewise.
37047         * modules/symlink-tests (Files): Likewise.
37048         * modules/symlinkat-tests (Files): Likewise.
37049         * modules/times-tests (Files): Likewise.
37050         * modules/trunc-tests (Files): Likewise.
37051         * modules/truncf-tests (Files): Likewise.
37052         * modules/truncl-tests (Files): Likewise.
37053         * modules/tsearch-tests (Files): Likewise.
37054         * modules/uname-tests (Files): Likewise.
37055         * modules/unlink-tests (Files): Likewise.
37056         * modules/unsetenv-tests (Files): Likewise.
37057         * modules/usleep-tests (Files): Likewise.
37058         * modules/utimensat-tests (Files): Likewise.
37059         * modules/vasprintf-tests (Files): Likewise.
37060         * modules/vdprintf-posix-tests (Files): Likewise.
37061         * modules/vfprintf-posix-tests (Files): Likewise.
37062         * modules/vprintf-posix-tests (Files): Likewise.
37063         * modules/vsnprintf-posix-tests (Files): Likewise.
37064         * modules/vsnprintf-tests (Files): Likewise.
37065         * modules/vsprintf-posix-tests (Files): Likewise.
37066         * modules/wcrtomb-tests (Files): Likewise.
37067         * modules/wcsnrtombs-tests (Files): Likewise.
37068         * modules/wcsrtombs-tests (Files): Likewise.
37069         * modules/wcwidth-tests (Files): Likewise.
37070         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37071         * tests/test-isinf.c (isinf): Likewise.
37072         * tests/test-isnan.c (isnan): Likewise.
37073         * tests/test-signbit.c (signbit): Likewise.
37074         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37075         declaration, either as macro or with correct signature.
37076         (select): Ensure function under test is declared with correct
37077         signature in correct header.
37078         * tests/test-atexit.c (atexit): Likewise.
37079         * tests/test-btowc.c (btowc): Likewise.
37080         * tests/test-canonicalize-lgpl.c (realpath)
37081         (canonicalize_file_name): Likewise.
37082         * tests/test-ceilf1.c (ceilf): Likewise.
37083         * tests/test-ceill.c (ceill): Likewise.
37084         * tests/test-chown.c (chown): Likewise.
37085         * tests/test-dprintf-posix.c (dprintf): Likewise.
37086         * tests/test-dup2.c (dup2): Likewise.
37087         * tests/test-dup3.c (dup3): Likewise.
37088         * tests/test-duplocale.c (duplocale): Likewise.
37089         * tests/test-fchdir.c (fchdir): Likewise.
37090         * tests/test-fchownat.c (fchownat): Likewise.
37091         * tests/test-fcntl.c (fcntl): Likewise.
37092         * tests/test-fdopendir.c (fdopendir): Likewise.
37093         * tests/test-fflush.c (fflush): Likewise.
37094         * tests/test-flock.c (flock): Likewise.
37095         * tests/test-floorf1.c (floorf): Likewise.
37096         * tests/test-floorl.c (floorl): Likewise.
37097         * tests/test-fnmatch.c (fnmatch): Likewise.
37098         * tests/test-fopen.c (fopen): Likewise.
37099         * tests/test-fprintf-posix.c (fprintf): Likewise.
37100         * tests/test-freopen.c (freopen): Likewise.
37101         * tests/test-frexp.c (frexp): Likewise.
37102         * tests/test-frexpl.c (frexpl): Likewise.
37103         * tests/test-fseek.c (fseek): Likewise.
37104         * tests/test-fseeko.c (fseeko): Likewise.
37105         * tests/test-fstatat.c (fstatat): Likewise.
37106         * tests/test-fsync.c (fsync): Likewise.
37107         * tests/test-ftell.c (ftell): Likewise.
37108         * tests/test-ftello.c (ftello): Likewise.
37109         * tests/test-futimens.c (futimens): Likewise.
37110         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37111         (gai_strerror): Likewise.
37112         * tests/test-getcwd.c (getcwd): Likewise.
37113         * tests/test-getdelim.c (getdelim): Likewise.
37114         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37115         * tests/test-getgroups.c (getgroups): Likewise.
37116         * tests/test-gethostname.c (gethostname): Likewise.
37117         * tests/test-getline.c (getline): Likewise.
37118         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37119         Likewise.
37120         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37121         * tests/test-glob.c (glob, globfree): Likewise.
37122         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37123         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37124         * tests/test-inet_pton.c (inet_pton): Likewise.
37125         * tests/test-isblank.c (isblank): Likewise.
37126         * tests/test-lchown.c (lchown): Likewise.
37127         * tests/test-ldexpl.c (ldexpl): Likewise.
37128         * tests/test-link.c (link): Likewise.
37129         * tests/test-linkat.c (linkat): Likewise.
37130         * tests/test-lseek.c (lseek): Likewise.
37131         * tests/test-lstat.c (lstat): Likewise.
37132         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37133         * tests/test-mbsinit.c (mbsinit): Likewise.
37134         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37135         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37136         * tests/test-memchr.c (memchr): Likewise.
37137         * tests/test-memcmp.c (memcmp): Likewise.
37138         * tests/test-memmem.c (memmem): Likewise.
37139         * tests/test-memrchr.c (memrchr): Likewise.
37140         * tests/test-mkdir.c (mkdir): Likewise.
37141         * tests/test-mkdirat.c (mkdirat): Likewise.
37142         * tests/test-mkfifo.c (mkfifo): Likewise.
37143         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
37144         * tests/test-mknod.c (mknod): Likewise.
37145         * tests/test-nanosleep.c (nanosleep): Likewise.
37146         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
37147         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
37148         Likewise.
37149         * tests/test-open.c (open): Likewise.
37150         * tests/test-openat.c (openat): Likewise.
37151         * tests/test-perror.c (perror): Likewise.
37152         * tests/test-pipe2.c (pipe2): Likewise.
37153         * tests/test-poll.c (poll): Likewise.
37154         * tests/test-popen.c (popen, pclose): Likewise.
37155         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
37156         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
37157         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
37158         (posix_spawn_file_actions_destroy)
37159         (posix_spawn_file_actions_addclose)
37160         (posix_spawn_file_actions_addopen)
37161         (posix_spawn_file_actions_adddup2): Likewise.
37162         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
37163         * tests/test-pread.c (pread): Likewise.
37164         * tests/test-printf-posix.c (printf): Likewise.
37165         * tests/test-pty.c (openpty, forkpty): Likewise.
37166         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
37167         (random_r): Likewise.
37168         * tests/test-rawmemchr.c (rawmemchr): Likewise.
37169         * tests/test-readlink.c (readlink): Likewise.
37170         * tests/test-remove.c (remove): Likewise.
37171         * tests/test-rename.c (rename): Likewise.
37172         * tests/test-renameat.c (renameat): Likewise.
37173         * tests/test-rmdir.c (rmdir): Likewise.
37174         * tests/test-round1.c (round): Likewise.
37175         * tests/test-roundf1.c (roundf): Likewise.
37176         * tests/test-roundl.c (roundl): Likewise.
37177         * tests/test-setenv.c (setenv): Likewise.
37178         * tests/test-sigaction.c (sigaction): Likewise.
37179         * tests/test-sleep.c (sleep): Likewise.
37180         * tests/test-snprintf.c (snprintf): Likewise.
37181         * tests/test-sprintf-posix.c (sprintf): Likewise.
37182         * tests/test-stat.c (stat): Likewise.
37183         * tests/test-stpncpy.c (stpncpy): Likewise.
37184         * tests/test-strcasestr.c (strcasestr): Likewise.
37185         * tests/test-strchrnul.c (strchrnul): Likewise.
37186         * tests/test-strerror.c (strerror): Likewise.
37187         * tests/test-strsignal.c (strsignal): Likewise.
37188         * tests/test-strstr.c (strstr): Likewise.
37189         * tests/test-strtod.c (strtod): Likewise.
37190         * tests/test-strverscmp.c (strverscmp): Likewise.
37191         * tests/test-symlink.c (symlink): Likewise.
37192         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37193         * tests/test-times.c (times): Likewise.
37194         * tests/test-trunc1.c (trunc): Likewise.
37195         * tests/test-truncf1.c (truncf): Likewise.
37196         * tests/test-truncl.c (truncl): Likewise.
37197         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37198         Likewise.
37199         * tests/test-uname.c (uname): Likewise.
37200         * tests/test-unlink.c (unlink): Likewise.
37201         * tests/test-unlinkat.c (unlinkat): Likewise.
37202         * tests/test-unsetenv.c (unsetenv): Likewise.
37203         * tests/test-usleep.c (usleep): Likewise.
37204         * tests/test-utimensat.c (utimensat): Likewise.
37205         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37206         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37207         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37208         * tests/test-vprintf-posix.c (vprintf): Likewise.
37209         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37210         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37211         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37212         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37213         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37214         * tests/test-wcwidth.c (wcwidth): Likewise.
37215
37216         build: pull in conditional headers during GNULIB_POSIXCHECK
37217         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37218         definitions from any conditionally-included headers.
37219         * lib/stdlib.in.h (includes): Likewise.
37220         * lib/unistd.in.h (includes): Likewise.
37221
37222 2009-12-24  Bruno Haible  <bruno@clisp.org>
37223
37224         * tests/test-argv-iter.c: Include header file being tested immediately
37225         after config.h.
37226         * tests/test-base64.c: Likewise.
37227         * tests/test-flock.c: Likewise.
37228         * tests/test-fsync.c: Likewise.
37229         * tests/test-getdate.c: Likewise.
37230         * tests/test-getndelim2.c: Likewise.
37231         * tests/test-isfinite.c: Likewise.
37232         * tests/test-isinf.c: Likewise.
37233         * tests/test-strerror.c: Likewise.
37234         * tests/test-strsignal.c: Likewise.
37235
37236 2009-12-23  Eric Blake  <ebb9@byu.net>
37237
37238         unistd: work around cygwin bug
37239         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
37240         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
37241         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37242
37243 2009-12-23  Bruno Haible  <bruno@clisp.org>
37244
37245         localename: More tests.
37246         * tests/test-localename.c (SIZEOF): New macro.
37247         (categories): New variable.
37248         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
37249         test_locale_name_default): Add test w.r.t. thread locale.
37250         (test_locale_name_thread): New function.
37251         (main): Invoke it.
37252
37253         localename: Make aware of thread locale.
37254         * lib/localename.h (gl_locale_name_thread): New declaration.
37255         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37256         behaviour with respect to thread locale.
37257         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37258         <langinfo.h>, glthread/lock.h.
37259         (SIZE_BITS): New macro.
37260         (string_hash): New function.
37261         (struct hash_node): New type.
37262         (HASH_TABLE_SIZE): New macro.
37263         (struniq_hash_table, struniq_lock): New variables.
37264         (struniq): New function.
37265         (gl_locale_name_thread): New function.
37266         (gl_locale_name): Invoke it.
37267         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37268         * modules/localename (Depends-on): Add lock.
37269         Reported by Mike Gran <spk121@yahoo.com>.
37270
37271 2009-12-23  Eric Blake  <ebb9@byu.net>
37272
37273         va-args: new module
37274         * modules/va-args: New file.
37275         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37276         * MODULES.html.sh (Core language properties): Mention it.
37277
37278         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37279         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37280         named alias for __attribute__((__unused__)).
37281         * lib/chown.c: Update client.
37282         * lib/fchmodat.c: Likewise.
37283         * lib/fts.c: Likewise.
37284         * lib/getdate.y: Likewise.
37285         * lib/getgroups.c: Likewise.
37286         * lib/getopt.c: Likewise.
37287         * lib/getugroups.c: Likewise.
37288         * lib/mkdir.c: Likewise.
37289         * lib/mkfifo.c: Likewise.
37290         * lib/mkfifoat.c: Likewise.
37291         * lib/mknod.c: Likewise.
37292         * lib/mknodat.c: Likewise.
37293         * lib/readlink.c: Likewise.
37294         * lib/se-context.in.h: Likewise.
37295         * lib/se-selinux.in.h: Likewise.
37296         * lib/sockets.c: Likewise.
37297         * lib/symlink.c: Likewise.
37298         * lib/symlinkat.c: Likewise.
37299         * lib/unicodeio.c: Likewise.
37300         * lib/unistr.h: Likewise.
37301         * tests/test-areadlink.c: Likewise.
37302         * tests/test-areadlinkat.c: Likewise.
37303         * tests/test-filenamecat.c: Likewise.
37304         * tests/test-fseeko.c: Likewise.
37305         * tests/test-ftello.c: Likewise.
37306         * tests/test-getdate.c: Likewise.
37307         * tests/test-getgroups.c: Likewise.
37308         * tests/test-gethostname.c: Likewise.
37309         * tests/test-quotearg.c: Likewise.
37310         * tests/test-version-etc.c: Likewise.
37311         * tests/test-xalloc-die.c: Likewise.
37312         * tests/test-xfprintf-posix.c: Likewise.
37313         * tests/test-xprintf-posix.c: Likewise.
37314         * tests/test-xvasprintf.c: Likewise.
37315
37316         tests: avoid compiler warnings
37317         * tests/test-fcntl.c (main): Delete unused parameters.
37318         * tests/test-freopen-safer.c (main): Likewise.
37319         * tests/test-xalloc-die.c (main): Mark unused parameters.
37320         * tests/test-fseeko.c (main): Likewise.
37321         * tests/test-ftello.c (main): Likewise.
37322         * tests/test-nanosleep.c (main): Avoid declaration warning.
37323         * tests/test-sleep.c (main): Likewise.
37324         * tests/test-unsetenv.c (main): Silence warning about string
37325         literal.
37326         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37327
37328 2009-12-23  Bruno Haible  <bruno@clisp.org>
37329
37330         * tests/test-localename.c (test_locale_name): New function, extracted
37331         from main. Also test mixed situations.
37332         (test_locale_name_posix, test_locale_name_environ,
37333         test_locale_name_default): New functions.
37334         (main): Invoke them all.
37335         * modules/localename-tests (configure.ac): Test for newlocale.
37336
37337 2009-12-23  Bruno Haible  <bruno@clisp.org>
37338
37339         unistd: Ensure getcwd gets declared before being overridden.
37340         * lib/unistd.in.h: Conditionally include <io.h>.
37341
37342 2009-12-22  Bruno Haible  <bruno@clisp.org>
37343
37344         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37345         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37346         (gl_WCHAR_H): Invoke it.
37347         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37348         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37349         Reported by Karl Berry <karl@freefriends.org>.
37350
37351 2009-12-22  Eric Blake  <ebb9@byu.net>
37352
37353         math, unistd: avoid redundant includes
37354         * lib/math.in.h (isnan): No need to re-include <math.h>.
37355         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37356
37357         getsubopt: work around cygwin bug
37358         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37359         avoid conflicting with system getsubopt.
37360         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37361         bug.
37362
37363         getopt: synchronize from glibc
37364         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37365         parameter order.  Adjust all callers.
37366         (_getopt_internal_r, main): Adjust quoting in error messages.
37367         Drop considerations for outdated POSIX 1003.2 error message.
37368         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37369         callers.
37370         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37371
37372         test-getopt: test stderr behavior
37373         * modules/getopt-posix-tests (Depends-on): Add dup2.
37374         * tests/test-getopt.c (ASSERT): Avoid stderr.
37375         (main): Move stderr to a temporary file.
37376         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37377         Instead, add parameter to inform caller if output occurred.
37378         (test_getopt): Adjust all existing tests to expect silence, and
37379         add new tests of leading ":".
37380         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37381         glibc shortcomings with leading "-:" or "+:" in optstring.
37382         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37383         Likewise.
37384         * doc/posix-functions/getopt.texi (getopt): Likewise.
37385
37386         test-getopt: enhance test
37387         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37388         supports optind=0.
37389         * tests/test-getopt.c (OPTIND_MIN): Move...
37390         * tests/test-getopt.h (OPTIND_MIN): ...here.
37391         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37392         Require that optind=0 works, since modern BSD supports it in
37393         addition to optreset, and since coreutils expects it.
37394         (test_getopt_long_only): New test.
37395         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37396         glibc shortcomings with 'W;', and enforcement of optind=0.
37397         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37398         Likewise.
37399
37400 2009-12-21  Bruno Haible  <bruno@clisp.org>
37401
37402         localename: Improvements for MacOS X and Cygwin.
37403         * lib/localename.h (gl_locale_name_environ): New declaration.
37404         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37405         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37406         (gl_locale_name_posix): Invoke it.
37407         (gl_locale_name_default): Add comments. Use Windows native API also on
37408         Cygwin.
37409
37410 2009-12-21  Bruno Haible  <bruno@clisp.org>
37411
37412         Update list of Win32 locale ids.
37413         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37414         (LANG_SAMI): Renamed from LANG_SAAMI.
37415         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37416         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37417         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37418         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37419         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37420         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37421         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37422         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37423         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37424         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37425         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37426         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37427         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37428         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37429         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37430         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37431         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37432         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37433         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37434         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37435         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37436         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37437         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37438         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37439         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37440         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37441         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37442         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37443         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37444         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37445         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37446         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37447         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37448         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37449         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37450         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37451         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37452         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37453         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37454         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37455         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37456         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37457         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37458         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37459         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37460         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37461         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37462         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37463         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37464         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37465         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37466         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37467         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37468         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37469         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37470         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37471         Add more languages and countries for Sami, Sorbian. Add more countries
37472         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37473         for Pashto. Change country for Syriac, Tswana.
37474
37475 2009-12-21  Eric Blake  <ebb9@byu.net>
37476
37477         test-utimens: avoid spurious failure
37478         * tests/test-chown.h (nap): Factor...
37479         * tests/nap.h: ...into new file.
37480         * tests/test-lchown.h (nap): Avoid duplication.
37481         * tests/test-utimens-common.h (nap): Use shared implementation,
37482         necessary on file systems with 1-second resolution.
37483         * modules/chown-tests (Files): Include new file.
37484         * modules/fdutimensat-tests (Files): Likewise.
37485         * modules/futimens-tests (Files): Likewise.
37486         * modules/lchown-tests (Files): Likewise.
37487         * modules/openat-tests (Files): Likewise.
37488         * modules/utimens-tests (Files): Likewise.
37489         * modules/utimensat-tests (Files): Likewise.
37490
37491 2009-12-19  Eric Blake  <ebb9@byu.net>
37492
37493         futimens, utimensat: work around Linux bug
37494         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37495         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37496         * lib/utimensat.c (rpl_utimensat): Work around it.
37497         * lib/futimens.c (rpl_futimens): Adjust comment.
37498
37499         utimens: work around Linux ctime bug
37500         * lib/utimens.c (detect_ctime_bug): New helper function.
37501         (update_timespec): Differentiate between workaround needed for
37502         this bug vs. what is needed for systems that lack utimensat.
37503         (fdutimens, lutimens): Work around bug.
37504
37505         utimens: check for ctime update
37506         * tests/test-utimens-common.h (check_ctime): Define.
37507         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37508         * tests/test-futimens.h (test_futimens): Likewise.
37509         * tests/test-lutimens.h (test_lutimens): Likewise.
37510         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37511         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37512
37513 2009-12-19  Bruno Haible  <bruno@clisp.org>
37514
37515         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37516         * tests/test-dprintf-posix2.sh: New file.
37517         * tests/test-dprintf-posix2.c: New file.
37518         * modules/dprintf-posix-tests (Files): Add them.
37519         (configure.ac): Check for getrlimit and setrlimit.
37520         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37521
37522 2009-12-19  Bruno Haible  <bruno@clisp.org>
37523
37524         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37525         * tests/test-fprintf-posix3.sh: New file.
37526         * tests/test-fprintf-posix3.c: New file.
37527         * modules/fprintf-posix-tests (Files): Add them.
37528         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37529
37530 2009-12-19  Eric Blake  <ebb9@byu.net>
37531
37532         dirfd: fix prototype
37533         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37534         * lib/dirfd.c (dirfd): Likewise.
37535
37536         canonicalize: reduce memory usage
37537         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37538         allocation to size.
37539         Reported by Solar Designer <solar@openwall.com>.
37540
37541 2009-12-19  Bruno Haible  <bruno@clisp.org>
37542
37543         New module attribute 'Applicability'.
37544         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37545         * gnulib-tool: New option --extract-applicability.
37546         (func_usage): Document it.
37547         (sed_extract_prog): Recognize it.
37548         (func_get_applicability): New function.
37549         (func_import): Generalize handling of 'link-warning' module.
37550         * modules/link-warning (Applicability): New section.
37551         * modules/arg-nonnull (Applicability): New section.
37552         Repoted by Simon Josefsson <simon@josefsson.org>.
37553
37554 2009-12-19  Bruno Haible  <bruno@clisp.org>
37555
37556         fflush: tweak
37557         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37558         * lib/fseeko.c (rpl_fseeko): Likewise.
37559
37560 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37561
37562         * lib/gl_list.h: Fix typo in comment.
37563
37564 2009-12-16  Eric Blake  <ebb9@byu.net>
37565
37566         fcntl: use to simplify other modules
37567         * modules/cloexec (Depends-on): Add fcntl.
37568         * modules/fchdir (Depends-on): Likewise.
37569         * modules/fd-safer-flag (Depends-on): Likewise.
37570         * modules/unistd-safer (Depends-on): Likewise.
37571         * modules/dup3 (configure.ac): Set module indicator.
37572         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37573         missing.
37574         * lib/fchdir.c (_gl_register_dup): Fix comment.
37575         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37576         * lib/dup-safer.c (dup_safer): Likewise.
37577         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37578         * lib/dup3.c (dup3): Likewise.
37579         * tests/test-fchdir.c (main): Enhance test.
37580         Fixes a dup_cloexec bug reported by Ondřej Vašík.
37581
37582         fcntl: port portions of fcntl to mingw
37583         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37584         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37585         replacement for mingw.
37586         * modules/fcntl (Description): Update.
37587         (Depends-on): Add dup2.
37588         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37589         * modules/fcntl-h (Makefile.am): Substitute it.
37590         * lib/fcntl.in.h (fcntl): Update declaration.
37591         (F_DUPFD, F_GETFD): New macros, when needed.
37592         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37593         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37594         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37595         we now guarantee.
37596
37597         fcntl: work around cygwin bug in F_DUPFD
37598         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37599         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37600         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37601         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37602         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37603
37604         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37605         * modules/fcntl (Files): List new files.
37606         (configure.ac): Run a test.
37607         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37608         * lib/fcntl.c (rpl_fcntl): Likewise.
37609         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37610         (gl_FCNTL_H): Always replace fcntl.h.
37611         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37612         * lib/fcntl.in.h (fcntl): Declare replacement.
37613         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37614         needed, plus a witness.
37615         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37616         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37617         * tests/test-fcntl.c: New file.
37618         * modules/fcntl-tests: Likewise.
37619
37620         binary-io: avoid potential compilation warning
37621         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37622         directives.
37623
37624         fflush: avoid compilation error on NetBSD
37625         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37626         between off_t and fpos_t, since the latter is sometimes a struct.
37627         * lib/fseeko.c (rpl_fseeko): Likewise.
37628         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37629
37630 2009-12-15  Eric Blake  <ebb9@byu.net>
37631
37632         fcntl-h, stdio, sys_ioctl: fix declarations
37633         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37634         function must not take arguments.
37635         * lib/sys_ioctl.in.h (ioctl): Likewise.
37636         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37637         (open): Add a link warning.
37638
37639 2009-12-15  Jim Meyering  <meyering@redhat.com>
37640
37641         areadlink, areadlink-with-size: relax license to LGPLv2+
37642         * modules/areadlink (License): Relax to LGPLv2+.
37643         * modules/areadlink-with-size (License): Likewise.
37644
37645 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37646             Bruno Haible  <bruno@clisp.org>
37647
37648         *printf: Fix memory leak.
37649         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37650         * lib/vfprintf.c (vfprintf): Likewise.
37651         * lib/dprintf.c (dprintf): Likewise.
37652         * lib/vdprintf.c (vdprintf): Likewise.
37653
37654 2009-12-14  Eric Blake  <ebb9@byu.net>
37655
37656         accept4: adjust module dependencies
37657         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37658
37659         utimens: one more try at avoiding compiler warning
37660         * lib/utimens.c (lutimens): Lower scope of result.
37661
37662 2009-12-13  Bruno Haible  <bruno@clisp.org>
37663
37664         Move the malloc checking from module 'list' to new module 'xlist'.
37665         * modules/xlist: New file.
37666         * lib/gl_xlist.h: New file.
37667         * lib/gl_xlist.c: New file.
37668         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37669         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37670         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37671         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37672         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37673         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37674         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37675         gl_sortedlist_nx_add): New declarations.
37676         (struct gl_list_implementation): Rename and change methods accordingly.
37677         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37678         (gl_list_nx_create): Renamed from gl_list_create.
37679         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37680         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37681         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37682         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37683         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37684         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37685         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37686         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37687         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37688         gl_list_create_empty.
37689         (gl_list_nx_create): Renamed from gl_list_create.
37690         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37691         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37692         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37693         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37694         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37695         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37696         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37697         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37698         * lib/gl_array_list.c: Don't include xalloc.h.
37699         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37700         NULL upon out-of-memory.
37701         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37702         out-of-memory.
37703         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37704         Change return type to 'int'.
37705         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37706         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37707         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37708         upon out-of-memory.
37709         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37710         upon out-of-memory.
37711         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37712         upon out-of-memory.
37713         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37714         upon out-of-memory.
37715         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37716         out-of-memory.
37717         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37718         Update.
37719         (gl_array_list_implementation): Update.
37720         * lib/gl_carray_list.c: Don't include xalloc.h.
37721         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37722         Return NULL upon out-of-memory.
37723         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37724         out-of-memory.
37725         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37726         Change return type to 'int'.
37727         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37728         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37729         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37730         upon out-of-memory.
37731         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37732         upon out-of-memory.
37733         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37734         out-of-memory.
37735         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37736         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37737         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37738         Update.
37739         (gl_carray_list_implementation): Update.
37740         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37741         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37742         gl_linked_create_empty. Return NULL upon out-of-memory.
37743         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37744         out-of-memory.
37745         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37746         Change return type to 'int'. Return -1 upon out-of-memory.
37747         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37748         out-of-memory.
37749         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37750         upon out-of-memory.
37751         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37752         upon out-of-memory.
37753         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37754         NULL upon out-of-memory.
37755         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37756         upon out-of-memory.
37757         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37758         out-of-memory.
37759         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37760         Update.
37761         * lib/gl_linked_list.c: Don't include xalloc.h.
37762         (gl_linked_list_implementation): Update.
37763         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37764         (add_to_bucket): Change return type to 'int'.
37765         (gl_linkedhash_list_implementation): Update.
37766         * lib/gl_anytree_list1.h (free_subtree): New function.
37767         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37768         gl_tree_create_empty. Return NULL upon out-of-memory.
37769         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37770         Change return type to 'int'. Return -1 upon out-of-memory.
37771         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37772         out-of-memory.
37773         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37774         (gl_tree_remove_node): New function, moved here from
37775         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37776         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37777         Update.
37778         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37779         malloc, not xmalloc. Return NULL upon out-of-memory.
37780         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37781         out-of-memory.
37782         (gl_tree_remove_node_from_tree): New function, extracted from
37783         gl_tree_remove_node.
37784         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37785         upon out-of-memory.
37786         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37787         out-of-memory.
37788         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37789         upon out-of-memory.
37790         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37791         upon out-of-memory.
37792         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37793         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37794         not xmalloc. Return NULL upon out-of-memory.
37795         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37796         out-of-memory.
37797         (gl_tree_remove_node_from_tree): New function, extracted from
37798         gl_tree_remove_node.
37799         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37800         upon out-of-memory.
37801         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37802         out-of-memory.
37803         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37804         upon out-of-memory.
37805         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37806         upon out-of-memory.
37807         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37808         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37809         gl_anytree_list1.h before gl_anyavltree_list2.h.
37810         (gl_avltree_list_implementation): Update.
37811         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37812         gl_anytree_list1.h before gl_anyavltree_list2.h.
37813         (gl_rbtree_list_implementation): Update.
37814         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37815         Change return type to 'int'. Return -1 upon out-of-memory. Use
37816         __builtin_expect.
37817         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37818         (gl_avltreehash_list_implementation): Update.
37819         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37820         (gl_rbtreehash_list_implementation): Update.
37821         * modules/array-list (Depends-on): Remove xalloc.
37822         * modules/carray-list (Depends-on): Likewise.
37823         * modules/linked-list (Depends-on): Likewise.
37824         * modules/linkedhash-list (Depends-on): Likewise.
37825         * modules/avltree-list (Depends-on): Likewise.
37826         * modules/rbtree-list (Depends-on): Likewise.
37827         * modules/avltreehash-list (Depends-on): Likewise.
37828         * modules/rbtreehash-list (Depends-on): Likewise.
37829
37830         * modules/xsublist: New file.
37831         * lib/gl_xsublist.h: New file.
37832         * lib/gl_xsublist.c: New file.
37833         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37834         (gl_sublist_nx_create): New declaration.
37835         * lib/gl_sublist.c: Don't include xalloc.h.
37836         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37837         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37838         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37839         Change return type to 'int'. Return -1 upon out-of-memory.
37840         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37841         upon out-of-memory.
37842         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37843         NULL upon out-of-memory.
37844         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37845         upon out-of-memory.
37846         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37847         NULL upon out-of-memory.
37848         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37849         NULL upon out-of-memory.
37850         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37851         upon out-of-memory.
37852         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37853         (gl_sublist_list_implementation): Update.
37854         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37855         upon out-of-memory.
37856         * modules/sublist (Depends-on): Remove xalloc.
37857
37858         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37859         * tests/test-carray_list.c: Likewise.
37860         * tests/test-linked_list.c: Likewise.
37861         * tests/test-linkedhash_list.c: Likewise.
37862         * tests/test-avltree_list.c: Likewise.
37863         * tests/test-rbtree_list.c: Likewise.
37864         * tests/test-avltreehash_list.c: Likewise.
37865         * tests/test-rbtreehash_list.c: Likewise.
37866         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37867         * modules/carray-list-tests (Makefile.am): Likewise.
37868         * modules/linked-list-tests (Makefile.am): Likewise.
37869         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37870         * modules/avltree-list-tests (Makefile.am): Likewise.
37871         * modules/rbtree-list-tests (Makefile.am): Likewise.
37872         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37873         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37874
37875         * NEWS: Mention the changes.
37876
37877         * lib/clean-temp.c: Include gl_xlist.h.
37878         * modules/clean-temp (Depends-on): Add xlist.
37879
37880         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37881         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37882
37883         * tests/test-array_oset.c: Include gl_xlist.h.
37884         * modules/array-oset-tests (Depends-on): Add xlist.
37885
37886         Reported by José E. Marchesi <jemarch@gnu.org>.
37887
37888 2009-12-13  Bruno Haible  <bruno@clisp.org>
37889
37890         Move the malloc checking from module 'oset' to new module 'xoset'.
37891         * modules/xoset: New file.
37892         * lib/gl_xoset.h: New file.
37893         * lib/gl_xoset.c: New file.
37894         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37895         declarations.
37896         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37897         (struct gl_oset_implementation): Rename and change methods accordingly.
37898         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37899         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37900         'int'. Mark as __warn_unused_result__.
37901         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37902         gl_oset_create_empty.
37903         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37904         'int'.
37905         * lib/gl_array_oset.c: Don't include xalloc.h.
37906         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37907         malloc, not xmalloc.
37908         (grow): Change return type to 'int'. Don't call xalloc_die.
37909         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37910         to 'int'.
37911         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37912         'int'.
37913         (gl_array_oset_implementation): Update.
37914         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37915         gl_tree_create_empty.
37916         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37917         'int'.
37918         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37919         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37920         xmalloc.
37921         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37922         not xmalloc.
37923         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37924         xmalloc.
37925         (gl_avltree_oset_implementation): Update.
37926         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37927         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37928         xmalloc.
37929         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37930         not xmalloc.
37931         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37932         xmalloc.
37933         (gl_rbtree_oset_implementation): Update.
37934         * modules/array-oset (Depends-on): Remove xalloc.
37935         * modules/avltree-oset (Depends-on): Likewise.
37936         * modules/rbtree-oset (Depends-on): Likewise.
37937         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37938         * tests/test-avltree_oset.c: Likewise.
37939         * tests/test-rbtree_oset.c: Likewise.
37940         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37941         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37942         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37943         * NEWS: Mention the change.
37944
37945 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37946
37947         maint.mk: allow a project to override release-prep commands
37948         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37949         commands into a new rule.
37950         (release-prep): New rule.
37951         (release-prep-hook): New overridable variable.
37952
37953 2009-12-13  Bruno Haible  <bruno@clisp.org>
37954
37955         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37956
37957 2009-12-13  Jim Meyering  <meyering@redhat.com>
37958
37959         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37960         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37961
37962 2009-12-12  Bruno Haible  <bruno@clisp.org>
37963
37964         duplocale: Tweak.
37965         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37966
37967 2009-12-12  Karl Berry  <karl@gnu.org>
37968
37969         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37970
37971 2009-12-12  Bruno Haible  <bruno@clisp.org>
37972
37973         * m4/po.m4: Undo incorrect untabification.
37974
37975 2009-12-12  Bruno Haible  <bruno@clisp.org>
37976
37977         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37978         * modules/c-strtod (Depends-on): Add locale.
37979         * modules/c-strtold (Depends-on): Likewise.
37980
37981 2009-12-12  Bruno Haible  <bruno@clisp.org>
37982
37983         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37984
37985 2009-12-11  Eric Blake  <ebb9@byu.net>
37986
37987         setenv: relax requirement in light of POSIX ruling
37988         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37989         not NULL.
37990         * tests/test-setenv.c (main): Relax test.
37991         * tests/test-unsetenv.c (main): Likewise.
37992         * doc/posix-functions/setenv.texi (setenv): Document this.
37993         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37994
37995 2009-12-11  Bruno Haible  <bruno@clisp.org>
37996
37997         New module 'fd-safer-flag'.
37998         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37999         * lib/dup-safer.c (dup_safer_flag): Remove function.
38000         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
38001         * lib/fd-safer.c (fd_safer_flag): Remove function.
38002         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
38003         * modules/cloexec (configure.ac): Drop indicator macro.
38004         * modules/fd-safer-flag: New file.
38005         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
38006         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38007         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38008
38009 2009-12-11  Bruno Haible  <bruno@clisp.org>
38010
38011         Tests for module 'nl_langinfo'.
38012         * modules/nl_langinfo-tests: New file.
38013         * tests/test-nl_langinfo.sh: New file.
38014         * tests/test-nl_langinfo.c: New file.
38015
38016         New module 'nl_langinfo'.
38017         * lib/nl_langinfo.c: New file.
38018         * m4/nl_langinfo.m4: New file.
38019         * modules/nl_langinfo: New file.
38020         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38021
38022 2009-12-11  Bruno Haible  <bruno@clisp.org>
38023
38024         Tests for module 'langinfo'.
38025         * modules/langinfo-tests: New file.
38026         * tests/test-langinfo.c: New file.
38027
38028         New module 'langinfo'.
38029         * lib/langinfo.in.h: New file.
38030         * m4/langinfo_h.m4: New file.
38031         * modules/langinfo: New file.
38032         * doc/posix-headers/langinfo.texi: Mention the new module.
38033
38034 2009-12-11  Bruno Haible  <bruno@clisp.org>
38035
38036         * lib/config.charset: Untabify.
38037
38038 2009-12-11  Bruno Haible  <bruno@clisp.org>
38039
38040         * modules/unistd-safer (configure.ac): Drop indicator macro.
38041
38042 2009-12-11  Bruno Haible  <bruno@clisp.org>
38043
38044         Move pipe2-safer code to its own file.
38045         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38046         * lib/pipe-safer.c (pipe2_safer): Remove function.
38047         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38048         (Makefile.am): Add it to lib_SOURCES.
38049
38050 2009-12-10  Bruno Haible  <bruno@clisp.org>
38051
38052         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38053
38054 2009-12-10  Bruno Haible  <bruno@clisp.org>
38055
38056         Declare which arguments expect non-NULL values, for GCC and clang.
38057         * build-aux/arg-nonnull.h: New file.
38058         * modules/arg-nonnull: New file.
38059         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38060         (inet_ntop, inet_pton): Use it.
38061         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38062         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38063         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38064         (open, openat): Use it.
38065         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38066         (fnmatch): Use it.
38067         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38068         (getopt, getopt_long, getopt_long_only): Use it.
38069         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38070         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38071         Use it.
38072         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38073         (iconv_open): Use it.
38074         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38075         (strtoimax, strtoumax): Use it.
38076         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38077         (duplocale): Use it.
38078         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38079         (frexp, frexpl): Use it.
38080         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38081         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38082         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38083         (tsearch, tfind, tdelete, twalk): Use it.
38084         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38085         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38086         sigpending): Use it.
38087         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38088         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38089         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38090         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38091         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38092         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38093         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38094         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38095         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38096         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38097         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38098         Use it.
38099         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38100         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38101         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38102         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38103         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38104         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38105         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38106         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38107         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38108         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38109         strtoull, unsetenv): Use it.
38110         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38111         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38112         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38113         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38114         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38115         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38116         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38117         (strcasecmp, strncasecmp): Use it.
38118         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38119         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38120         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38121         rpl_setsockopt): Use it.
38122         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38123         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38124         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38125         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38126         (gettimeofday): Use it.
38127         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38128         (times): Use it.
38129         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38130         (uname): Use it.
38131         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38132         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38133         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38134         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38135         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38136         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38137         unlinkat, write): Use it.
38138         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38139         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38140         * lib/argv-iter.h: Include arg-nonnull.h.
38141         (_ATTRIBUTE_NONNULL_): Remove macro.
38142         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
38143         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
38144         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
38145         optimization.
38146         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
38147         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
38148         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
38149         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
38150         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
38151         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
38152         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
38153         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
38154         * modules/arpa_inet (Depends-on): Add arg-nonnull.
38155         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
38156         * modules/dirent (Depends-on): Add arg-nonnull.
38157         (Makefile.am): Insert arg-nonnull.h into dirent.h.
38158         * modules/fcntl-h (Depends-on): Add arg-nonnull.
38159         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
38160         * modules/fnmatch (Depends-on): Add arg-nonnull.
38161         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
38162         * modules/getopt-posix (Depends-on): Add arg-nonnull.
38163         (Makefile.am): Insert arg-nonnull.h into getopt.h.
38164         * modules/glob (Depends-on): Add arg-nonnull.
38165         (Makefile.am): Insert arg-nonnull.h into glob.h.
38166         * modules/iconv_open (Depends-on): Add arg-nonnull.
38167         (Makefile.am): Insert arg-nonnull.h into iconv.h.
38168         * modules/inttypes (Depends-on): Add arg-nonnull.
38169         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
38170         * modules/locale (Depends-on): Add arg-nonnull.
38171         (Makefile.am): Insert arg-nonnull.h into locale.h.
38172         * modules/math (Depends-on): Add arg-nonnull.
38173         (Makefile.am): Insert arg-nonnull.h into math.h.
38174         * modules/netdb (Depends-on): Add arg-nonnull.
38175         (Makefile.am): Insert arg-nonnull.h into netdb.h.
38176         * modules/search (Depends-on): Add arg-nonnull.
38177         (Makefile.am): Insert arg-nonnull.h into search.h.
38178         * modules/signal (Depends-on): Add arg-nonnull.
38179         (Makefile.am): Insert arg-nonnull.h into signal.h.
38180         * modules/spawn (Depends-on): Add arg-nonnull.
38181         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38182         * modules/stdio (Depends-on): Add arg-nonnull.
38183         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38184         * modules/stdlib (Depends-on): Add arg-nonnull.
38185         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38186         * modules/string (Depends-on): Add arg-nonnull.
38187         (Makefile.am): Insert arg-nonnull.h into string.h.
38188         * modules/strings (Depends-on): Add arg-nonnull.
38189         (Makefile.am): Insert arg-nonnull.h into strings.h.
38190         * modules/sys_socket (Depends-on): Add arg-nonnull.
38191         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38192         * modules/sys_stat (Depends-on): Add arg-nonnull.
38193         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38194         * modules/sys_time (Depends-on): Add arg-nonnull.
38195         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38196         * modules/sys_times (Depends-on): Add arg-nonnull.
38197         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38198         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38199         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38200         * modules/time (Depends-on): Add arg-nonnull.
38201         (Makefile.am): Insert arg-nonnull.h into time.h.
38202         * modules/unistd (Depends-on): Add arg-nonnull.
38203         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38204         * modules/wchar (Depends-on): Add arg-nonnull.
38205         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38206         * modules/argv-iter (Depends-on): Add arg-nonnull.
38207         * tests/test-canonicalize.c (null_ptr): New function.
38208         (main): Use it.
38209         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38210         (main): Use it.
38211         * tests/test-memmem.c (null_ptr): New function.
38212         (main): Use it.
38213         Reported by Jim Meyering.
38214
38215 2009-12-10  Bruno Haible  <bruno@clisp.org>
38216
38217         Use spaces for indentation, not tabs.
38218         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38219         * m4/*.m4: Untabify.
38220         * build-aux/*.h: Untabify.
38221         * tests/**/*.[hc]: Untabify.
38222         * README: New section "Indent with spaces, not TABs", based on
38223         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38224         * NEWS: Mention the change.
38225
38226 2009-12-10  Bruno Haible  <bruno@clisp.org>
38227
38228         pty test: Fix link error.
38229         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38230         test_pty_LDADD.
38231
38232 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38233
38234         * modules/pty: New file.
38235         * modules/pty-tests: New file.
38236         * m4/pty.m4: New file.
38237         * tests/test-pty.c: New file.
38238         * doc/glibc-headers/pty.texi: Modified.
38239         * doc/glibc-functions/forkpty.texi: Modified.
38240         * doc/glibc-functions/openpty.texi: Modified.
38241
38242 2009-12-10  Bruno Haible  <bruno@clisp.org>
38243
38244         Avoid syntax error in C++ mode.
38245         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
38246
38247 2009-12-10  Bruno Haible  <bruno@clisp.org>
38248
38249         Use sed with option -e.
38250         * gnulib-tool (func_version, func_emit_copyright_notice,
38251         func_emit_initmacro_end, func_import, func_create_testdir): Pass
38252         option -e to sed.
38253         * modules/link-warning (Makefile.am): Likewise.
38254
38255 2009-12-10  Jim Meyering  <meyering@redhat.com>
38256
38257         mgetgroups: do not write bytes beyond end of malloc'd buffer
38258         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38259         username, we call getgroups with a one-element-shorter buffer,
38260         but still told it the length was original, max_n_groups.
38261
38262 2009-12-09  Eric Blake  <ebb9@byu.net>
38263
38264         cloexec: relax license
38265         * modules/cloexec (Maintainer): Add myself.
38266         (License): Use LGPL, not GPL.
38267
38268         link-warning: optimize generation
38269         * modules/link-warning (Makefile.am): Reduce process usage.
38270
38271 2009-12-09  Bruno Haible  <bruno@clisp.org>
38272
38273         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38274         workaround was added on 2009-11-17.
38275
38276 2009-12-09  Jim Meyering  <meyering@redhat.com>
38277             Bruno Haible  <bruno@clisp.org>
38278
38279         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38280         * modules/link-warning (Makefile.am): Make the comment-removing sed
38281         command more robust in the face of bootstrap-prepended comment lines.
38282
38283 2009-12-09  Bruno Haible  <bruno@clisp.org>
38284
38285         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38286         most one group.
38287
38288 2009-12-09  Simon Josefsson <simon@josefsson.org>
38289             Bruno Haible  <bruno@clisp.org>
38290
38291         * build-aux/link-warning.h: Add copyright notice.
38292         * modules/link-warning (Makefile.am): Generate link-warning.h from
38293         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38294         * NEWS: Mention change in link-warning module.
38295         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38296         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38297         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38298         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38299         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38300         * modules/math (Makefile.am): Add dependency to math.h.
38301         * modules/search (Makefile.am): Add dependency to search.h.
38302         * modules/signal (Makefile.am): Add dependency to signal.h.
38303         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38304         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38305         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38306         * modules/string (Makefile.am): Add dependency to string.h.
38307         * modules/strings (Makefile.am): Add dependency to strings.h.
38308         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38309         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38310         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38311         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38312         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38313         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38314         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38315         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38316         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38317
38318 2009-12-09  Bruno Haible  <bruno@clisp.org>
38319
38320         fchdir: Optimize away rpl_fstat when possible.
38321         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38322         REPLACE_OPEN_DIRECTORY.
38323         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38324
38325 2009-12-09  Bruno Haible  <bruno@clisp.org>
38326
38327         * lib/fchdir.c: Update comment.
38328
38329 2009-12-09  Bruno Haible  <bruno@clisp.org>
38330
38331         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38332
38333 2009-12-08  Eric Blake  <ebb9@byu.net>
38334
38335         fchdir: avoid memory leak on re-registration.
38336         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38337
38338 2009-12-08  Jim Meyering  <meyering@redhat.com>
38339
38340         init.sh: avoid Solaris 10 /bin/sh portability problem
38341         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38342         sourced script:
38343           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38344           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38345           bar
38346         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38347         and two tests used that idiom.
38348         * tests/init.sh: Update suggested usage comments.
38349         (path_prepend_): New function, to be used in place
38350         of the --src-path=DIR option.
38351         (setup_): Move PATH-prepending code into path_prepend_.
38352         * tests/test-pread.sh: Adapt to new usage.
38353         * tests/test-xalloc-die.sh: Likewise.
38354
38355 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38356
38357         * doc/gnulib.texi (Glibc pty.h): Add.
38358         * doc/glibc-functions/forkpty.texi: Add.
38359         * doc/glibc-functions/openpty.texi: Add.
38360         Suggested by Bruno Haible.
38361
38362 2009-12-08  Eric Blake  <ebb9@byu.net>
38363
38364         fchdir: fix logic bugs
38365         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38366         * tests/test-fchdir.c (main): Enhance test.
38367         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38368         is in use.
38369
38370         dup2: fix logic bugs
38371         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38372         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38373         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38374         exists.
38375         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38376
38377 2009-12-07  Eric Blake  <ebb9@byu.net>
38378
38379         unlink: fix m4 detection
38380         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38381
38382         unistd-safer: add unit test
38383         * modules/unistd-safer-tests: New file.
38384         * tests/test-dup-safer.c: Likewise.
38385         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38386         * tests/test-dup2.c (setmode): Likewise.
38387         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38388
38389         cloexec: preserve text vs. binary across dup_cloexec
38390         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38391         mode.
38392         * modules/dup2-tests (Depends-on): Add binary-io.
38393         * modules/cloexec-tests (Depends-on): Likewise.
38394         * tests/test-dup2.c (setmode, is_mode): New helpers.
38395         (main): Add tests that translation mode is preserved.
38396         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38397         Reported by Bruno Haible.
38398
38399         mgetgroups: reduce duplicate listings
38400         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38401         resulting array.
38402         * tests/test-chown.h (test_chown): Simplify client.
38403         * tests/test-lchown.h (test_lchown): Likewise.
38404
38405 2009-12-06  Bruno Haible  <bruno@clisp.org>
38406
38407         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38408         value.
38409
38410 2009-12-06  Bruno Haible  <bruno@clisp.org>
38411
38412         * lib/progname.c: Include stdio.h, stdlib.h.
38413         (set_program_name): Reject a NULL argument.
38414
38415 2009-12-05  Eric Blake  <ebb9@byu.net>
38416
38417         pipe2-safer: new module
38418         * modules/pipe2-safer: New file.
38419         * lib/unistd-safer.h (pipe2_safer): New prototype.
38420         * lib/unistd--.h (pipe2): New wrapper.
38421         * lib/pipe-safer.c (pipe2_safer): New function.
38422         * modules/pipe (Depends-on): Add pipe2-safer.
38423         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38424
38425         stdlib-safer: preserve cloexec flag for mkostemp[s]
38426         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38427         fd_safer_flag.
38428
38429         unistd-safer: allow preservation of cloexec status via flag
38430         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38431         prototypes.
38432         * lib/dup-safer.c (dup_safer_flag): New function.
38433         * lib/fd-safer.c (fd_safer_flag): Likewise.
38434         * modules/cloexec (configure.ac): Set witness.
38435
38436         test-dup2: enhance test
38437         * modules/dup2-tests (Depends-on): Add cloexec.
38438         * tests/test-dup2.c (main): Enhance test.
38439
38440         cloexec: add dup_cloexec
38441         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38442         header and comments.
38443         * lib/cloexec.c (set_cloexec_flag): Add comments.
38444         (dup_cloexec): New function, with mingw implementation borrowed
38445         from...
38446         * lib/w32spawn.h (dup_noinherit): ...here.
38447         * modules/execute (Depends-on): Add cloexec.
38448         * modules/pipe (Depends-on): Likewise.
38449         * modules/cloexec (Depends-on): Add dup2.
38450         * modules/cloexec-tests (Files): New file.
38451         * tests/test-cloexec.c: Likewise.
38452
38453         test-xalloc-die: fix test for mingw
38454         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38455         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38456         directory and .exe suffix off argv[0] output.
38457
38458         test-fseeko: fix test for mingw
38459         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38460         than undefining fseek, so test will pass on mingw.
38461
38462 2009-12-05  Bruno Haible  <bruno@clisp.org>
38463
38464         * lib/progname.h (set_program_name): Clarify specification.
38465         * lib/progname.c (set_program_name): Likewise.
38466         Reported by Jim Meyering.
38467
38468 2009-12-05  Jim Meyering  <meyering@redhat.com>
38469
38470         maint.mk: backslash-escape parens in default regexp
38471         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38472         backslash-escape the literal parentheses.
38473
38474         maint.mk: news-date-check: use grep -E
38475         * top/maint.mk (today): Define a Make variable, not a...
38476         (news-date-check): ...shell variable.
38477         (news-date-regexp): Use the Make variable.
38478         Use grep's -E option.  Change the failing diagnostic to mention
38479         the variable, $(news-date-regexp).
38480
38481 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38482
38483         maintainer-makefile: allow customization of NEWS entry format
38484         * top/maint.mk (news-date-regexp): New overridable variable.
38485         (news-date-check): Use it.
38486
38487 2009-12-04  Eric Blake  <ebb9@byu.net>
38488
38489         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38490         * lib/mgetgroups.h (xgetgroups): New prototype.
38491         * lib/mgetgroups.c (xgetgroups): New wrapper.
38492         (mgetgroups): Handle ENOSYS.
38493         * modules/mgetgroups (Depends-on): Add realloc.
38494         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38495
38496         mgetgroups: avoid argument promotion issues with -1
38497         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38498         for invalid gid_t.
38499         * tests/test-chown.h (getegid, test_chown): Likewise.
38500         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38501
38502 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38503
38504         exclude: Fix header file problems.
38505         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38506
38507 2009-12-01  Jim Meyering  <meyering@redhat.com>
38508
38509         fts: fts_open: do not let an empty string cause immediate failure
38510         This is required in support of GNU rm, for which the command
38511         "rm A '' B" must process and remove both A and B, in spite of
38512         the empty string argument.
38513         * lib/fts.c (fts_open): Do not let the presence of an empty string
38514         cause fts_open to fail immediately.  Most fts-using tools must be
38515         able to process all arguments, in order, and can be expected to
38516         diagnose such arguments themselves.
38517
38518 2009-11-30  Eric Blake  <ebb9@byu.net>
38519
38520         utimens: fix compilation error
38521         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38522         Declare variable at right scope.
38523
38524 2009-11-29  Jim Meyering  <meyering@redhat.com>
38525
38526         bootstrap: handle perl-5.11's changed --version output
38527         * build-aux/bootstrap (get_version): Handle perl separately,
38528         since perl-5.11's --version output is different.
38529
38530 2009-11-28  Jim Meyering  <meyering@redhat.com>
38531
38532         userspec: depend on the inttostr module, too
38533         * modules/userspec (Depends-on): Add inttostr.
38534
38535         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38536         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38537         number of MAXUID when it evaluates to (uid_t) -1.
38538         Likewise for group ID.  Reported by Matt McCutchen in
38539         <http://savannah.gnu.org/bugs/?28113>
38540
38541         userspec: reformat to use spaces, not TABs
38542         * lib/userspec.c: Expand TABs to spaces.
38543         Add Emacs' "indent-tabs-mode: nil" hint.
38544
38545 2009-11-27  Eric Blake  <ebb9@byu.net>
38546
38547         getopt-gnu: flush out another BSD bug
38548         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38549         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38550         flush out BSD bug.
38551         * tests/test-getopt.h (test_getopt): End lists with NULL.
38552         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38553         (test_getopt_long_posix): Enhance test.
38554         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38555         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38556         getopt-gnu.
38557         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38558         Likewise.
38559
38560 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38561
38562         * modules/idpriv-droptemp-tests (Notice): Fix text.
38563
38564 2009-11-27  Jim Meyering  <meyering@redhat.com>
38565
38566         test-xalloc-die: avoid spurious failure due to libtool argv difference
38567         In a libtool-enabled project, this test would fail due to a difference
38568         in the emitted program name, e.g.,
38569         -test-xalloc-die: memory exhausted
38570         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38571         Use program to avoid that.
38572         * modules/xalloc-die-tests (Depends-on): Add progname.
38573         * tests/test-xalloc-die.c: Include progname.h".
38574         (program_name): Remove decl.
38575         (main): Call set_program_name.
38576         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38577
38578 2009-11-26  Richard Jones  <rjones@redhat.com>
38579
38580         w32sock: leave win32 error in place.
38581         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38582
38583 2009-11-26  Eric Blake  <ebb9@byu.net>
38584
38585         init.sh: suggest to use skip_ and fail_ functions in comments
38586         * tests/init.sh: Add a sentence.
38587
38588 2009-11-25  Bruno Haible  <bruno@clisp.org>
38589
38590         init.sh: add documentation in comments
38591         * tests/init.sh: Add some developer and user documentation.
38592
38593 2009-11-26  Jim Meyering  <meyering@redhat.com>
38594
38595         init.sh: accommodate even those who specify bogus srcdir manually
38596         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38597         configure-time tests to be sanitized, so that there is no need to
38598         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38599         (with no double quotes) suffices.  However, since tests may be
38600         invoked manually, and since you may explicitly set srcdir to the
38601         name of a directory containing spaces, do quote its uses here.
38602         * tests/test-pread.sh: Likewise.
38603         Suggested by Bruno Haible.
38604
38605         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38606         * tests/test-pread.sh: Write no data into the pipe, because
38607         test-pread actually reads none.  This avoids a diagnostic,
38608         "bash: echo: write error: Broken pipe", that arises in the unusual
38609         event something is ignoring SIGPIPE, and might be interpreted
38610         as some sort of failure.  Reported by Bruno Haible.
38611
38612 2009-11-25  Jim Meyering  <meyering@redhat.com>
38613
38614         test-pread: cover failure with ESPIPE and EINVAL
38615         * tests/test-pread.c (main): Test for failure, too.
38616         * tests/test-pread.sh: Invoke with stdin on a pipe.
38617         Suggested by Eric Blake.
38618
38619         pread: improvement and fix
38620         * modules/pread (Depends-on): Depend on lseek, for portability to
38621         e.g., mingw.  Suggested by Eric Blake.
38622         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38623
38624         unistd.in.h: correct declaration of pread
38625         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38626         Reported by Richard W.M. Jones.
38627
38628         test-pread.sh: distribute the test script
38629         * modules/pread-tests (Files): Include test-pread.sh.
38630
38631         test-pread.sh: clean up
38632         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38633         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38634         That is unnecessary, since it's always ".".
38635         Suggestion from Eric Blake.
38636
38637         test-pread.sh: make executable
38638         * tests/test-pread.sh: Set executable bit.
38639         Reported by Eric Blake.
38640
38641         correct typo in test-pread.sh
38642         * tests/test-pread.sh: Add #! line.
38643
38644         test pread
38645         * tests/test-pread.c: New file.
38646         * tests/test-pread.sh: Likewise.
38647         * modules/pread-tests: Likewise.
38648
38649         pread: new module
38650         * modules/pread: New file.
38651         * lib/unistd.in.h (pread): Define/declare.
38652         * lib/pread.c (pread): New file.
38653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38654         * modules/unistd (Makefile.am): Substitute witnesses.
38655         * doc/posix-functions/pread.texi (pread): Update.
38656         * MODULES.html.sh: Add pread.
38657
38658 2009-11-25  Jim Meyering  <meyering@redhat.com>
38659
38660         tests/init.sh: new file to be used via most *.sh tests
38661         * tests/init.sh: New file.
38662
38663 2009-11-25  Eric Blake  <ebb9@byu.net>
38664
38665         utimens: work around older Linux failure with symlinks
38666         * lib/utimens.c (lutimensat_works_really): New variable.
38667         (fdutimens, lutimens): Use it to manage kernels that support
38668         nanosecond times on files, but not on symlinks.
38669         Reported by Ondřej Vašík.
38670
38671         utimes: fix configure grammar
38672         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38673
38674 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38675
38676         regex: Fix fastmap for multibyte character ranges.
38677         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38678         characters when a multibyte character range is included.
38679
38680 2009-11-22  Andy Wingo  <wingo@pobox.com>
38681
38682         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38683         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38684
38685 2009-11-24  Bruno Haible  <bruno@clisp.org>
38686
38687         doc: Most *_l functions exist in MacOS X 10.5.
38688         * doc/posix-functions/duplocale.texi: Update platforms list.
38689         * doc/posix-functions/freelocale.texi: Likewise.
38690         * doc/posix-functions/newlocale.texi: Likewise.
38691         * doc/posix-functions/uselocale.texi: Likewise.
38692         * doc/posix-functions/isalnum_l.texi: Likewise.
38693         * doc/posix-functions/isalpha_l.texi: Likewise.
38694         * doc/posix-functions/isblank_l.texi: Likewise.
38695         * doc/posix-functions/iscntrl_l.texi: Likewise.
38696         * doc/posix-functions/isdigit_l.texi: Likewise.
38697         * doc/posix-functions/isgraph_l.texi: Likewise.
38698         * doc/posix-functions/islower_l.texi: Likewise.
38699         * doc/posix-functions/isprint_l.texi: Likewise.
38700         * doc/posix-functions/ispunct_l.texi: Likewise.
38701         * doc/posix-functions/isspace_l.texi: Likewise.
38702         * doc/posix-functions/isupper_l.texi: Likewise.
38703         * doc/posix-functions/iswalnum_l.texi: Likewise.
38704         * doc/posix-functions/iswalpha_l.texi: Likewise.
38705         * doc/posix-functions/iswblank_l.texi: Likewise.
38706         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38707         * doc/posix-functions/iswctype_l.texi: Likewise.
38708         * doc/posix-functions/iswdigit_l.texi: Likewise.
38709         * doc/posix-functions/iswgraph_l.texi: Likewise.
38710         * doc/posix-functions/iswlower_l.texi: Likewise.
38711         * doc/posix-functions/iswprint_l.texi: Likewise.
38712         * doc/posix-functions/iswpunct_l.texi: Likewise.
38713         * doc/posix-functions/iswspace_l.texi: Likewise.
38714         * doc/posix-functions/iswupper_l.texi: Likewise.
38715         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38716         * doc/posix-functions/isxdigit_l.texi: Likewise.
38717         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38718         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38719         * doc/posix-functions/strcoll_l.texi: Likewise.
38720         * doc/posix-functions/strfmon_l.texi: Likewise.
38721         * doc/posix-functions/strftime_l.texi: Likewise.
38722         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38723         * doc/posix-functions/strxfrm_l.texi: Likewise.
38724         * doc/posix-functions/tolower_l.texi: Likewise.
38725         * doc/posix-functions/toupper_l.texi: Likewise.
38726         * doc/posix-functions/towctrans_l.texi: Likewise.
38727         * doc/posix-functions/towlower_l.texi: Likewise.
38728         * doc/posix-functions/towupper_l.texi: Likewise.
38729         * doc/posix-functions/wcscoll_l.texi: Likewise.
38730         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38731         * doc/posix-functions/wctrans_l.texi: Likewise.
38732         * doc/posix-functions/wctype_l.texi: Likewise.
38733         * doc/glibc-functions/strptime_l.texi: Likewise.
38734         * doc/glibc-functions/strtod_l.texi: Likewise.
38735         * doc/glibc-functions/strtof_l.texi: Likewise.
38736         * doc/glibc-functions/strtol_l.texi: Likewise.
38737         * doc/glibc-functions/strtold_l.texi: Likewise.
38738         * doc/glibc-functions/strtoll_l.texi: Likewise.
38739         * doc/glibc-functions/strtoul_l.texi: Likewise.
38740         * doc/glibc-functions/strtoull_l.texi: Likewise.
38741         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38742         * doc/glibc-functions/wcstod_l.texi: Likewise.
38743         * doc/glibc-functions/wcstof_l.texi: Likewise.
38744         * doc/glibc-functions/wcstol_l.texi: Likewise.
38745         * doc/glibc-functions/wcstold_l.texi: Likewise.
38746         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38747         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38748         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38749
38750 2009-11-24  Bruno Haible  <bruno@clisp.org>
38751
38752         duplocale: Fix logic bug.
38753         * lib/duplocale.c: Don't include <langinfo.h>.
38754         (_NL_LOCALE_NAME): Remove macro.
38755         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38756         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38757
38758 2009-11-23  Jim Meyering  <meyering@redhat.com>
38759
38760         test-update-copyright: don't hard-code /usr/bin/perl
38761         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38762         perl to print the current year.  Gilles Espinasse reported that
38763         the replaced use of perl was hard-coded as /usr/bin/perl.
38764
38765 2009-11-23  Bruno Haible  <bruno@clisp.org>
38766
38767         duplocale: Add support for glibc 2.3.x.
38768         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38769
38770 2009-11-22  Bruno Haible  <bruno@clisp.org>
38771
38772         vasnprintf: Tiny optimization.
38773         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38774         MacOS X.
38775
38776 2009-11-22  Bruno Haible  <bruno@clisp.org>
38777
38778         Tests for module 'duplocale'.
38779         * modules/duplocale-tests: New file.
38780         * tests/test-duplocale.c: New file.
38781
38782         New module 'duplocale'.
38783         * m4/duplocale.m4: New file.
38784         * lib/locale.in.h (duplocale): New declaration.
38785         * lib/duplocale.c: New file.
38786         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38787         gl_LOCALE_H_DEFAULTS): New macros.
38788         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38789         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38790         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38791         REPLACE_DUPLOCALE.
38792         * modules/duplocale: New file.
38793         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38794
38795 2009-11-22  Bruno Haible  <bruno@clisp.org>
38796
38797         * modules/locale-tests (configure.ac): Test for newlocale function.
38798         * tests/test-locale.c: When the system has extended locale functions,
38799         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38800
38801         locale: Make locale_t available when possible.
38802         * lib/locale.in.h: Include <xlocale.h> when it exists.
38803         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38804         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38805         * modules/locale (Depends-on): Add extensions.
38806         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38807         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38808
38809 2009-11-22  Bruno Haible  <bruno@clisp.org>
38810
38811         Add comments.
38812         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38813         invocation.
38814         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38815         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38816         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38817
38818 2009-11-22  Bruno Haible  <bruno@clisp.org>
38819
38820         error: account for the possibility of freopen (stdout).
38821         * lib/error.c: Include <unistd.h>.
38822         (flush_stdout): New function, extracted from error and error_at_line.
38823         Determine stdout's fd dynamically.
38824         (error, error_at_line): Invoke flush_stdout.
38825         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38826         * modules/error (Depends-on): Add unistd.
38827
38828 2009-11-22  Bruno Haible  <bruno@clisp.org>
38829
38830         diffseq: Add comment.
38831         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38832
38833 2009-11-22  Jim Meyering  <meyering@redhat.com>
38834
38835         c-stack: avoid defining an unused static function
38836         * lib/c-stack.c (find_stack_direction): Do not define this function
38837         when it will not be used.
38838
38839         diffseq: avoid spurious gcc warnings
38840         * lib/diffseq.h (IF_LINT2): Define.
38841         (compareseq): Use it to initialize two members of "part".
38842         This avoids two used-uninitialized warnings.
38843
38844 2009-11-21  Jim Meyering  <meyering@redhat.com>
38845
38846         c-stack: avoid "ignoring return value of `write'" warning
38847         * lib/c-stack.c: Include "ignore-value.h".
38848         (die): Explicitly ignore each write return value.
38849         * modules/c-stack (Depends-on): Add ignore-value.
38850
38851 2009-11-21  Bruno Haible  <bruno@clisp.org>
38852
38853         diffseq: reduce scope of variable 'best'.
38854         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38855         variable, earlier used for two different purposes.
38856
38857 2009-11-21  Jim Meyering  <meyering@redhat.com>
38858
38859         diffseq: remove useless assignment to "best"
38860         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38861         assignment.  At that point "best" is already guaranteed to be zero.
38862
38863 2009-11-20  Eric Blake  <ebb9@byu.net>
38864
38865         build: mention ftp redirector in release announcements
38866         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38867         values that used to come from cfg.mk; mention FTP redirect URL.
38868         * build-aux/announce-gen: Mention the mirror list.
38869         Suggested by Karl Berry.
38870
38871         nanosleep: improve port to mingw
38872         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38873         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38874         LIB_NANOSLEEP, but only when needed.
38875         * modules/select (Link): Document LIBSOCKET.
38876         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38877         enough.
38878
38879         nanosleep: work around cygwin bug
38880         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38881         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38882         bug.
38883         (getnow): Delete, not needed.
38884         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38885         LIB_CLOCK_GETTIME.
38886         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38887         clock-time, gettime.
38888         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38889         bug.
38890         * modules/nanosleep-tests: New test.
38891         * tests/test-nanosleep.c: New file.
38892
38893         sleep: work around cygwin bug
38894         * lib/sleep.c (rpl_sleep): Work around the bug.
38895         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38896         (gl_PREREQ_SLEEP): Delete unused macro.
38897         * modules/sleep (Depends-on): Add verify.
38898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38899         * modules/unistd (Makefile.am): Substitute witness.
38900         * lib/unistd.in.h (sleep): Update prototype.
38901         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38902         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38903         * modules/sleep-tests (Depends-on): Check for alarm.
38904
38905 2009-11-20  Jim Meyering  <meyering@redhat.com>
38906
38907         maint.mk: improve sc_prohibit_magic_number_exit
38908         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38909         so it does not match uses like System.exit(1).
38910         Add comments showing how to correct all offenders.
38911
38912 2009-11-19  Eric Blake  <ebb9@byu.net>
38913
38914         xalloc-die-tests: add missing library
38915         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38916
38917         test-xvasprintf: silence compiler warnings
38918         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38919         empty string from gcc.
38920
38921 2009-11-19  Jim Meyering  <meyering@redhat.com>
38922
38923         xfreopen: new module, from coreutils
38924         * modules/xfreopen: New module.
38925         * lib/xfreopen.c: New file.
38926         * lib/xfreopen.h: New file.
38927         * MODULES.html.sh (File stream based Input/Output"): Add it.
38928
38929 2009-11-19  Eric Blake  <ebb9@byu.net>
38930
38931         manywarnings: depend on warnings
38932         * modules/manywarnings (Depends-on): Add warnings.
38933
38934         build: avoid compiler warnings
38935         * lib/select.c (rpl_select): Delete unused variable.
38936         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38937
38938 2009-11-18  Eric Blake  <ebb9@byu.net>
38939
38940         tests: avoid false negative with --with-packager
38941         * tests/test-version-etc.sh: Discard packager information.
38942         * tests/test-argp-version-etc-1.sh: Likewise.
38943         Reported by Mike Frysinger.
38944
38945         utimens: fix regression on Solaris
38946         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38947         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38948         can only change fd timestamps via futimesat.  Instead, use an
38949         additional witness macro to avoid BSD bug.
38950         Reported by Jim Meyering.
38951
38952 2009-11-17  Eric Blake  <ebb9@byu.net>
38953
38954         usleep: use it to simplify tests
38955         * modules/stat-time-tests (Depends-on): Add usleep.
38956         (configure.ac): Drop usleep check.
38957         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38958         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38959         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38960         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38961         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38962         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38963         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38964         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38965         Likewise.
38966         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38967         * tests/test-lchown.h (nap): Likewise.
38968         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38969         * tests/test-stat-time.c (nap): Likewise.
38970         * tests/test-utimens-common.h (nap): Update comments.
38971
38972         usleep: new module
38973         * modules/usleep: New file.
38974         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38975         * lib/usleep.c (usleep): Likewise.
38976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38977         * modules/unistd (Makefile.am): Substitute witnesses.
38978         * lib/unistd.in.h (usleep): Add declaration.
38979         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38980         * MODULES.html.sh (Date and time): Likewise.
38981         * modules/usleep-tests (Depends-on): New test.
38982         * tests/test-usleep.c: New file.
38983
38984         chown: work around OpenBSD bug
38985         * lib/chown.c (rpl_chown): Work around the bug.
38986         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38987         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38988         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38989         * modules/chown (Depends-on): Add stdbool.
38990         * modules/lchown (Depends-on): Likewise.
38991         * doc/posix-functions/chown.texi (chown): Document the bug.
38992         * doc/posix-functions/lchown.texi (lchown): Likewise.
38993         * tests/test-lchown.h (test_chown): Relax test.
38994
38995         mkstemp: avoid conflict with C++ keyword template
38996         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38997         * lib/mkostemp.c (mkostemp): Likewise.
38998         * lib/mkostemps.c (mkostemps): Likewise.
38999         * lib/mkstemp.c (mkstemp): Likewise.
39000         * lib/mkstemps.c (mkstemps): Likewise.
39001
39002         xalloc-die-tests: optimize
39003         * tests/test-xalloc-die.sh: Reduce number of processes.
39004
39005 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39006
39007         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39008         patch from ludo@gnu.org (Ludovic Courtès).
39009
39010 2009-11-17  Jim Meyering  <meyering@redhat.com>
39011
39012         version-etc: use proper license string
39013         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39014         * modules/version-etc-fsf: Likewise.
39015
39016 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39017
39018         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39019         printed to stdout.  Deal with EOL differences.
39020
39021 2009-11-17  Eric Blake  <ebb9@byu.net>
39022
39023         unsetenv: work around Solaris bug
39024         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39025         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39026         Reported by Jim Meyering.
39027
39028         vasnprintf: avoid compiler warnings
39029         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39030         variables.
39031         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39032
39033 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39034
39035         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39036         settings since xalloc-die is no longer the self test,
39037         xalloc-die.sh is.
39038
39039 2009-11-17  Jim Meyering  <meyering@redhat.com>
39040
39041         test-xalloc-die.sh: make the code agree with the commit log
39042         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39043         at the end, just in case you happen to have a test-xalloc-die
39044         program in some other PATH directory.
39045
39046         test-xalloc-die.sh: fix a portability bug
39047         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39048         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39049         Otherwise, argv[0] (as often seen in diagnostics) would be too
39050         system-dependent, sometimes with, and sometimes without the leading "./".
39051
39052         version-etc-fsf: relax license to LGPLv3+
39053         * modules/version-etc-fsf (License): Relax license.
39054
39055 2009-11-16  Eric Blake  <ebb9@byu.net>
39056
39057         xalloc-die-tests: avoid printing null pointer
39058         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39059         shell script.
39060         * tests/test-xalloc-die.c (program_name): Declare.
39061         * tests/test-xalloc-die.sh (tmpfiles): New file.
39062
39063         setenv, unsetenv: work around various bugs
39064         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39065         (setenv) [HAVE_SETENV]: Work around bugs.
39066         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39067         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39068         for bugs.
39069         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39070         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39072         * modules/stdlib (Makefile.am): Update substitutions.
39073         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39074         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39075         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39076         * modules/setenv-tests: New test.
39077         * modules/unsetenv-tests: Likewise.
39078         * tests/test-setenv.c: New file.
39079         * tests/test-unsetenv.c: Likewise.
39080
39081 2009-11-16  Jim Meyering  <meyering@redhat.com>
39082
39083         version-etc: relax license to LGPLv3+
39084         * modules/version-etc (License): Relax license.
39085
39086         better AC_REQUIRE expanded-before-required-warning avoidance
39087         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39088         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39089         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39090         which is no longer needed.
39091
39092 2009-11-16  Eric Blake  <ebb9@byu.net>
39093
39094         test-freading: clean up temporary file
39095         * tests/test-freading.c (main): Remove file on success, and use
39096         ASSERT more liberally.
39097         Reported by Jim Meyering.
39098
39099 2009-11-16  Jim Meyering  <meyering@redhat.com>
39100
39101         avoid new AC_REQUIRE expanded-before-required warnings
39102         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39103         merely using it.
39104         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39105         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39106
39107 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39108
39109         * tests/test-xalloc-die.c: New file.
39110         * modules/xalloc-die-tests: New file.
39111         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39112         XFAIL_TESTS so it can be appended by modules.
39113
39114 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39115
39116         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39117         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39118
39119 2009-11-14  Eric Blake  <ebb9@byu.net>
39120
39121         fnmatch: avoid compiler warning
39122         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39123         to silence compiler warning about mismatch signedness in ?:.
39124         Reported by Robert Millan.
39125
39126         intprops: add double-inclusion guard
39127         * lib/intprops.h: Allow idempotent includes.
39128         Suggested by Bruce Korb.
39129
39130         openat: detect Solaris fchownat bug
39131         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39132         penalizing glibc chownat when only lchownat is broken.
39133         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39134         trailing slash bugs.
39135         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39136         * modules/openat-tests (Files): Include more files.
39137         (Depends-on): Add mgetgroups, sleep, stat-time.
39138         (configure.ac): Add additional checks.
39139         (Makefile.am): Build new test.
39140         * tests/test-fchownat.c: New file.
39141
39142         lchown: detect Solaris and FreeBSD bug
39143         * lib/lchown.c (rpl_lchown): Work around bug.
39144         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
39145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39146         * modules/unistd (Makefile.am): Populate it.
39147         * lib/unistd.in.h (lchown): Update declaration.
39148         * doc/posix-functions/lchown.texi (lchown): Document the bug.
39149         * modules/lchown-tests: New file.
39150         * tests/test-lchown.h (test_lchown): Likewise.
39151         * tests/test-lchown.c (main): Likewise.
39152
39153         chown: detect Solaris and FreeBSD bug
39154         * lib/chown.c (rpl_chown): Work around bug.
39155         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
39156         (gl_PREREQ_CHOWN): Delete.
39157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39158         * modules/unistd (Makefile.am): Populate it.
39159         * lib/unistd.in.h (chown): Update declaration.
39160         * lib/lchown.c (chown): Update client.
39161         * modules/lchown (Depends-on): Add lstat.
39162         * doc/posix-functions/chown.texi (chown): Document the bug.
39163         * doc/posix-functions/getgroups.texi (getgroups): Document
39164         getgroups pitfall.
39165         * modules/chown-tests: New file.
39166         * tests/test-chown.h (test_chown): Likewise.
39167         * tests/test-chown.c (main): Likewise.
39168
39169 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
39170
39171         gnulib-tool: correctly detect absence of m4 directories
39172         * gnulib-tool: Avoid extra newline on data passed to wc -l.
39173
39174 2009-11-14  Jim Meyering  <meyering@redhat.com>
39175
39176         maint.mk: Prohibit inclusion of "xalloc.h" without use.
39177         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39178
39179 2009-11-14  John W. Eaton  <jwe@gnu.org>
39180
39181         strftime.h: wrap function declaration in extern "C" block
39182         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39183
39184 2009-11-13  Eric Blake  <ebb9@byu.net>
39185
39186         getgroups: avoid compiler warning
39187         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39188
39189         getgroups: work around FreeBSD bug
39190         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39191         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39192         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39193         * tests/test-getgroups.c (main): Fix buffer overrun.
39194
39195         getgroups: avoid compilation failure
39196         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39197         * modules/getgroups (Depends-on): Add stdint.
39198
39199 2009-11-13  Jim Meyering  <meyering@redhat.com>
39200
39201         test-getgroups: avoid compilation failure
39202         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39203
39204 2009-11-13  Eric Blake  <ebb9@byu.net>
39205
39206         mgetgroups: new module, taken from coreutils
39207         * modules/mgetgroups: New file.
39208         * lib/mgetgroups.h: Likewise.
39209         * lib/mgetgroups.c (mgetgroups): Likewise.
39210         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39211         * MODULES.html.sh (Users and groups): Mention it.
39212
39213         getgroups: don't expose GETGROUPS_T to user
39214         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39215         an element at a time if GETGROUPS_T is wrong size.
39216         * lib/getugroups.h (getugroups): Change signature.
39217         * lib/unistd.in.h (getgroups): Likewise.
39218         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39219         signature needs fixing.
39220         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39221         AC_TYPE_GETGROUPS.
39222         * modules/group-member (Depends-on): Add getgroups.
39223         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39224         (group_member): Rely on getgroups replacement.
39225         * lib/getugroups.c (getugroups): Use gid_t.
39226         * tests/test-getgroups.c (main): Likewise.
39227         * NEWS: Mention the signature change.
39228         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39229         problem with signature.
39230         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39231         GETGROUPS_T is still useful for setgroups.
39232
39233         getgroups, getugroups: provide stubs for mingw
39234         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39235         * lib/getugroups.c (getugroups): Likewise.
39236         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39237         function.  Modernize replacement scheme.
39238         (gl_PREREQ_GETGROUPS): Delete.
39239         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
39240         * modules/getgroups (configure.ac): Declare witness.
39241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39242         * modules/unistd (Depends-on): Substitute witness.
39243         * lib/unistd.in.h (getgroups): Declare replacement.
39244
39245         getgroups: avoid calling exit
39246         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
39247         drop xalloc.
39248         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
39249         dependencies.
39250         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
39251         exiting, in the rare case of malloc failure.
39252
39253         getgroups: fix logic error
39254         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39255         has more than 20 groups.
39256         * modules/getgroups-tests: New test.
39257         * tests/test-getgroups.c: New file.
39258
39259 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39260
39261         * tests/test-base64.c: Improve.
39262
39263 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39264
39265         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39266         Blake <ebb9@byu.net>.
39267
39268 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39269
39270         * tests/test-xvasprintf.c: Add %s%s related checks.
39271
39272 2009-11-12  Eric Blake  <ebb9@byu.net>
39273
39274         version-etc: match standards.texi style
39275         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39276         and use <> only for URLs.
39277
39278 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39279
39280         fts: do not fail on a submount during traversal
39281         * lib/fts.c (fts_build): Read the stat info again after opening
39282         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39283         Original report at http://bugzilla.redhat.com/501848.
39284
39285 2009-11-12  Jim Meyering  <meyering@redhat.com>
39286
39287         bootstrap: sync from coreutils
39288         * build-aux/bootstrap (bootstrap_epilogue): New function.
39289         Use git_modules_config in one more place.  This make bootstrap's
39290         --gnulib-srcdir option more useful for testing.
39291
39292         bootstrap: generalize autoheader check
39293         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39294         AC_CONFIG_HEADERS.
39295
39296 2009-11-11  Eric Blake  <ebb9@byu.net>
39297
39298         mkfifoat: use new modules for Solaris and BSD bugs
39299         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39300         * lib/mkfifoat.c (mknodat): Split...
39301         * lib/mknodat.c (mknodat): ...into new file.
39302         * modules/mkfifoat (Files): Ship new file.
39303         (Depends-on): Add mkfifo, mknod.
39304         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39305         (Depends-on): Add symlink.
39306         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39307         redundant with test_mkfifo.h.
39308         (do_mkfifoat, do_mknodat): New helpers.
39309
39310         mknod: new module
39311         * modules/mknod: New file.
39312         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39313         * lib/mknod.c (mknod): Likewise.
39314         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39315         defaults.
39316         * modules/sys_stat (Makefile.am): Substitute them.
39317         * lib/sys_stat.in.h (mknod): Declare replacement.
39318         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39319         Document it.
39320         * doc/posix-functions/mknod.texi (mknod): Likewise.
39321         * modules/mknod-tests: New test.
39322         * tests/test-mknod.c: Likewise.
39323
39324         mkfifo: new module
39325         * modules/mkfifo: New file.
39326         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39327         * lib/mkfifo.c (mkfifo): Likewise.
39328         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39329         defaults.
39330         * modules/sys_stat (Makefile.am): Substitute them.
39331         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39332         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39333         Document it.
39334         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39335         * modules/mkfifo-tests: New test.
39336         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39337         from test-mkfifoat.c.
39338         * tests/test-mkfifo.c: New file.
39339
39340         readlink: detect FreeBSD bug
39341         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39342         slash on symlink.
39343         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39344         * tests/test-readlink.h (test_readlink): Enhance test.
39345
39346         symlink: detect FreeBSD bug
39347         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39348         slash on symlink.
39349         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39350         * tests/test-symlink.h (test_symlink): Enhance test.
39351
39352 2009-11-10  Eric Blake  <ebb9@byu.net>
39353
39354         link: detect FreeBSD bug
39355         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39356         symlink.
39357         * doc/posix-functions/link.texi (link): Document the bug.
39358         * tests/test-link.h (test_link): Enhance test.
39359         * tests/test-linkat.c (main): Update caller.
39360
39361         unlink, remove: detect FreeBSD bug
39362         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39363         slash on symlink.
39364         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39365         * doc/posix-functions/remove.texi (remove): Likewise.
39366         * tests/test-unlink.h (test_unlink): Enhance test.
39367         * tests/test-remove.c (main): Likewise.
39368
39369 2009-11-09  Eric Blake  <ebb9@byu.net>
39370
39371         rename: detect FreeBSD bug
39372         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39373         slash on symlink.
39374         * modules/renameat-tests (Depends-on): Add filenamecat.
39375         * tests/test-rename.h (test_rename): Allow one more errno.
39376         * tests/test-renameat.c (main): Likewise.
39377         * doc/posix-functions/rename.texi (rename): Document the bug.
39378
39379         open: detect FreeBSD bug
39380         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39381         symlink.
39382         * doc/posix-functions/open.texi (open): Document the bug.
39383         * doc/posix-functions/utimes.texi (utimes): Likewise.
39384         * tests/test-open.h (test_open): Add parameters, and test symlink
39385         handling.
39386         * tests/test-open.c (main): Adjust caller.
39387         * tests/test-fcntl-safer.c (main): Likewise.
39388         * modules/open-tests (Depends-on): Add stdbool, symlink.
39389         * modules/fcntl-safer-tests (Depends-on): Likewise.
39390         * tests/test-openat.c (main): Add test-open tests.
39391
39392         stat: detect FreeBSD bug
39393         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39394         symlink.
39395         * doc/posix-functions/stat.texi (stat): Document the bug.
39396         * tests/test-stat.h (test_stat_func): Add argument.
39397         * tests/test-stat.c (main): Adjust caller.
39398         * tests/test-fstatat.c (main): Likewise.
39399         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39400         Reported by Jim Meyering.
39401
39402 2009-11-09  James Youngman  <jay@gnu.org>
39403
39404         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39405         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39406
39407 2009-11-08  Jim Meyering  <meyering@redhat.com>
39408
39409         utimens: remove invalid futimesat call
39410         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39411         It used the file descriptor of the target file as the DIR_FD
39412         parameter and NULL as the file name.  That caused failure with
39413         errno == EFAULT on FreeBSD-8.0-rc2
39414
39415 2009-11-07  Eric Blake  <ebb9@byu.net>
39416
39417         fflush, freadseek: use fseeko, not fseek
39418         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39419         (clear_ungetc_buffer): Avoid potential problems on large files.
39420         * lib/freadseek.c (freadseek): Likewise.
39421         * modules/freadseek (Depends-on): Add fseeko.
39422         * modules/fseek (configure.ac): Set a witness.
39423         * tests/test-fflush.c (main): Use fseeko.
39424         * tests/test-fpurge.c (fseek): Disable link warning.
39425         * tests/test-freadable.c (fseek): Likewise.
39426         * tests/test-freading.c (fseek): Likewise.
39427         * tests/test-fseeko.c (fseek): Likewise.
39428         * tests/test-ftell.c (fseek): Likewise.
39429         * tests/test-ftello.c (fseek): Likewise.
39430         * tests/test-fwritable.c (fseek): Likewise.
39431         * tests/test-fwriting.c (fseek): Likewise.
39432
39433 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39434
39435         * modules/memchr (Depends-on): Drop getpagesize dependency.
39436
39437 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39438
39439         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39440         Reported by Ludovic Courtès.
39441         * build-aux/pmccabe2html: Improve example usage.
39442         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39443
39444 2009-11-06  Jim Meyering  <meyering@redhat.com>
39445
39446         do-release-commit-and-tag: New module.
39447         Automate the release-commit and tag process.
39448         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39449         * modules/do-release-commit-and-tag: New file.
39450         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39451
39452 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39453
39454         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39455         because test-select.c uses inet_pton.
39456
39457 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39458
39459         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39460         GETADDRINFO_LIB.  Bump serial number.
39461         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39462         Suggested by Eric Blake <ebb9@byu.net>.
39463
39464 2009-11-05  Eric Blake  <ebb9@byu.net>
39465
39466         strtod: detect darwin bug
39467         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39468         Reported by Leo Davis.
39469
39470         freopen-safer: new module
39471         * modules/freopen-safer: New module.
39472         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39473         * lib/freopen-safer.c (freopen_safer): New file.
39474         * lib/stdio-safer.h (freopen_safer): New declaration.
39475         * lib/stdio--.h (freopen): New override.
39476         * MODULES.html.sh (File stream based Input/Output): Mention it.
39477         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39478         freopen-safer module.
39479         * doc/posix-functions/stderr.texi (stderr): Likewise.
39480         * doc/posix-functions/stdin.texi (stdin): Likewise.
39481         * doc/posix-functions/stdout.texi (stdout): Likewise.
39482         * modules/freopen-safer-tests: New test.
39483         * tests/test-reopen-safer.c: New file.
39484
39485 2009-11-05  Jim Meyering  <meyering@redhat.com>
39486
39487         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39488         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39489
39490 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39491
39492         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39493
39494 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39495
39496         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39497
39498 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39499
39500         Fix link error.
39501         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39502         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39503
39504 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39505
39506         * tests/test-func.c: Also test value of __func__.
39507
39508 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39509
39510         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39511         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39512
39513 2009-11-05  Bruno Haible  <bruno@clisp.org>
39514
39515         Fix link error.
39516         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39517         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39518         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39519
39520 2009-11-05  Bruno Haible  <bruno@clisp.org>
39521
39522         Tests for module 'inet_pton'.
39523         * modules/inet_pton-tests: New file.
39524         * tests/test-inet_pton.c: New file.
39525
39526 2009-11-05  Bruno Haible  <bruno@clisp.org>
39527
39528         Tests for module 'inet_ntop'.
39529         * modules/inet_ntop-tests: New file.
39530         * tests/test-inet_ntop.c: New file.
39531
39532 2009-11-04  Eric Blake  <ebb9@byu.net>
39533
39534         stdlib-safer: wrap all mkstemp variants
39535         * modules/mkostemp (configure.ac): Set witness.
39536         * modules/mkostemps (configure.ac): Likewise.
39537         * modules/mkstemps (configure.ac): Likewise.
39538         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39539         (mkstemps_safer): Wrap more functions.
39540         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39541         wrapping.
39542         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39543         (mkstemps_safer): Implement the wrappers.
39544
39545         mkstemps, mkostemps: new modules
39546         * modules/mkostemps: New module.
39547         * modules/mkstemps: Likewise.
39548         * lib/mkostemps.c (mkostemps): New file.
39549         * lib/mkstemps.c (mkstemps): Likewise.
39550         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39551         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39552         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39553         * modules/stdlib (Makefile.am): Substitute them.
39554         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39555         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39556         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39557         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39558         * MODULES.html.sh (File system functions): Mention them.
39559
39560         tempname: resync from glibc
39561         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39562         same values for __GT_FILE as glibc.  Abort even when assertions
39563         are disabled.
39564         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39565         match its value otherwise.  Allow idempotent inclusion.
39566         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39567         * lib/mkostemp.c (mkostemp): Likewise.
39568         * lib/mkstemp.c (mkstemp): Likewise.
39569         * lib/tmpfile.c (tmpfile): Likewise.
39570         * NEWS: Document this.
39571
39572         utimens: fix use of futimens on older Linux
39573         * lib/utimens.c (fdutimens): Use updated, rather than original,
39574         timespec to avoid bug in older Linux kernel.
39575         Reported by Simon Josefsson.
39576
39577 2009-11-04  Bruno Haible  <bruno@clisp.org>
39578
39579         Make num_processors more flexible and consistent.
39580         * lib/nproc.h (enum nproc_query): New type.
39581         (num_processors): Add a 'query' argument.
39582         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39583         (num_processors): Add a 'query' argument. Test the value of the
39584         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39585         mingw, count the number of CPUs available for the current process.
39586         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39587         Check for sched_getaffinity and sched_getaffinity_np.
39588         * modules/nproc (Depends-on): Add c-ctype, extensions.
39589         * NEWS: Mention the change.
39590
39591 2009-11-03  Bruno Haible  <bruno@clisp.org>
39592
39593         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39594
39595 2009-11-03  Jim Meyering  <meyering@redhat.com>
39596
39597         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39598         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39599         if it is defined.
39600
39601 2009-11-02  Eric Blake  <ebb9@byu.net>
39602
39603         mktime, timegm: share common declaration
39604         * lib/mktime-internal.h: New file.
39605         * lib/mktime.c: Use it rather than open-coding a declaration.
39606         * lib/timegm.c: Likewise.
39607         * modules/mktime (Files): Ship it.
39608         * modules/timegm (Files): Likewise.
39609         Suggested by Bruno Haible.
39610
39611         test-update-copyright: update test to match script changes
39612         * tests/test-update-copyright.sh: Avoid hard-coding perl
39613         location.  Don't update *.bak created by earlier runs.
39614
39615 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39616             Simon Josefsson  <simon@josefsson.org>
39617             Bruno Haible  <bruno@clisp.org>
39618
39619         Fix link error on Solaris 8.
39620         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39621         also in libnsl. Define also INET_PTON_LIB.
39622         * modules/inet_pton (Link): New section.
39623
39624 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39625             Bruno Haible  <bruno@clisp.org>
39626
39627         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39628         * modules/inet_ntop (Link): New section.
39629         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39630
39631 2009-11-02  Eric Blake  <ebb9@byu.net>
39632
39633         maint: avoid compiler warnings in m4 macros
39634         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39635         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39636
39637 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39638
39639         * m4/pmccabe2html.m4: Remove file.
39640         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39641         function.  Change maintainer.
39642         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39643         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39644         Courtès).
39645
39646 2009-10-31  Eric Blake  <ebb9@byu.net>
39647
39648         fseeko: fix m4 regression
39649         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39650         regression from 2009-10-27.
39651         Reported by Ralf Wildenhues.
39652
39653 2009-10-31  Jim Meyering  <meyering@redhat.com>
39654
39655         inttostr: aesthetics and improved (compile-time) safety
39656         Define inttype_is_signed rather than inttype_is_unsigned,
39657         since the sole use is via "#if inttype_is_signed".
39658         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39659         inttype_is_unsigned.
39660         * lib/offtostr.c (inttype_is_signed): Likewise.
39661         * lib/uinttostr.c (inttype_is_signed): Likewise.
39662         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39663         * lib/inttostr.c (inttostr): Use verify to cross-check the
39664         inttype_is_signed value and the signedness of the actual type.
39665         * modules/inttostr (Depends-on): Add verify.
39666
39667 2009-10-30  Eric Blake  <ebb9@byu.net>
39668
39669         build: avoid compiler warnings
39670         * lib/fchmodat.c (lchmod): Mark unused variables.
39671         * lib/getopt.c (_getopt_initialize): Likewise.
39672         * lib/mktime.c (__mktime_internal): Provide prototype.
39673         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39674         older gcc that do not understand #pragma GCC diagnostic.
39675         * lib/uinttostr.c (inttype_is_unsigned): Define.
39676         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39677
39678 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39679
39680         stat: fix compilation on AIX
39681         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39682         only see struct stat64.
39683
39684 2009-10-30  Eric Blake  <ebb9@byu.net>
39685
39686         exclude: make more robust
39687         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39688         rather than masking a coding bug.
39689         Suggested by Bruno Haible.
39690
39691 2009-10-30  Jim Meyering  <meyering@redhat.com>
39692
39693         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39694         Rather than putting #!/usr/bin/perl on the first line,
39695         start with a variant of what's recommended by "man perlrun" that
39696         invokes the first "perl" program from your shell's search path.
39697         * build-aux/gitlog-to-changelog: Replace #!... as above.
39698         Add a "Local Variables" perl mode setting.
39699         Prompted by a patch from Ludovic Courtès.
39700         Improved by Eric Blake.
39701         * build-aux/useless-if-before-free: Likewise.
39702         * build-aux/announce-gen: Likewise.
39703         * build-aux/update-copyright: Likewise.
39704
39705 2009-10-29  Eric Blake  <ebb9@byu.net>
39706
39707         filenamecat-lgpl: adjust clients
39708         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39709         filenamecat.
39710         * modules/renameat (Depends-on): Likewise.
39711
39712         filenamecat: split into filenamecat-lgpl
39713         * modules/filenamecat-lgpl: New module.
39714         * modules/filenamecat (Files): Move library-safe files into
39715         filenamecat-lgpl.
39716         (Depends-on): Add filenamecat-lgpl.
39717         (configure.ac): Declare witness.
39718         * lib/filenamecat.h (file_name_concat): Only declare when using
39719         GPL module.
39720         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39721         Move...
39722         * lib/filenamecat-lgpl.c: ...into new file.
39723         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39724         (gl_FILE_NAME_CONCAT): Use it.
39725         * MODULES.html.sh (File system functions): Mention new module.
39726
39727         argp: avoid memory leak
39728         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39729         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39730         base_name, since the latter malloc()s and can call exit().
39731         Leak introduced 2006-07-03.
39732
39733         dirname-lgpl: adjust clients that don't need full dirname
39734         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39735         * modules/filenamecat (Depends-on): Likewise.
39736         * modules/linkat (Depends-on): Likewise.
39737         * modules/mkancesdirs (Depends-on): Likewise.
39738         * modules/mkdir (Depends-on): Likewise.
39739         * modules/openat (Depends-on): Likewise.
39740         * modules/savewd (Depends-on): Likewise.
39741         * modules/rename (Depends-on): Likewise.
39742         (License): Relax license.
39743         * modules/mkdir-tests (Depends-on): Drop progname.
39744         (Makefile.am): Delete unneeded LDADD.
39745         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39746
39747         dirname: split into dirname-lgpl
39748         * modules/dirname-lgpl: New module.
39749         * modules/dirname (Files): Move library-safe files into
39750         dirname-lgpl.
39751         (Depends-on): Add dirname-lgpl.
39752         (configure.ac): Declare witness.
39753         * modules/double-slash-root (License): Relax license.
39754         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39755         module.
39756         * lib/dirname.c (dir_len, mdir_name): Move...
39757         * lib/dirname-lgpl.c: ...into new file.
39758         * lib/basename.c (last_component, base_len): Move...
39759         * lib/basename-lgpl.c: ...into new file.
39760         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39761         (gl_DIRNAME): Use it.
39762         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39763         Mention new module.
39764         * modules/dirname-tests (Depends-on): Add progname.
39765         * tests/test-dirname.c (program_name): Delete.
39766
39767         mkdir: make safe for libraries
39768         * modules/mkdir (Depends-on): Drop xalloc.
39769         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39770         exit.
39771
39772         tests: avoid some compiler warnings
39773         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39774         literals.
39775         * tests/test-memchr.c (main): Avoid type mismatch.
39776         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39777         * tests/test-base64.c (main): Likewise.
39778         * tests/test-getdelim.c (main): Likewise.
39779         * tests/test-gethostname.c (main): Likewise.
39780         * tests/test-getline.c (main): Likewise.
39781         * tests/test-netinet_in.c (main): Likewise.
39782         * tests/test-select.c (open_server_socket, main): Likewise.
39783         * tests/test-select-stdin.c (main): Likewise.
39784         * tests/test-sockets.c (main): Likewise.
39785         * tests/test-strsignal.c (main): Likewise.
39786         * tests/test-sys_select.c (main): Likewise.
39787         * tests/test-sys_socket.c (main): Likewise.
39788         * tests/test-u64.c (main): Likewise.
39789         * tests/test-xfprintf-posix.c (main): Likewise.
39790         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39791
39792         sockets: avoid compiler warning
39793         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39794
39795         maint: detect usage(1) and other suspicious exits
39796         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39797
39798 2009-10-29  Jim Meyering  <meyering@redhat.com>
39799
39800         timespec: long-to-int truncation could make timespec_cmp malfunction
39801         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39802         a multiple of 2^32 nanoseconds as no difference.
39803
39804 2009-10-28  Jim Meyering  <meyering@redhat.com>
39805
39806         fprintftime: wrap macro code argument in "do {...} while(0)"
39807         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39808         cpy macro must be a statement that can be followed by a semicolon.
39809         Now that the else clause contains a comment and is hence longer
39810         than one line, I require curly braces.  That in turn requires
39811         that we wrap this code block in the standard do...while(0).
39812
39813         fprintftime: remove stray semicolon from previous change
39814         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39815
39816         fprintftime: avoid a warning about ignored fwrite return value
39817         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39818         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39819         that is unsafe.
39820         * modules/fprintftime (Depends-on): Add ignore-value.
39821
39822         exclude: avoid an unwarranted warning
39823         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39824
39825 2009-10-27  Eric Blake  <ebb9@byu.net>
39826
39827         fseek: avoid compilation failure when fflush is replaced
39828         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39829         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39830         module is in use.
39831         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39832         module is not in use; since REPLACE_FSEEK worked otherwise.
39833         (GNULIB_FTELLO): Likewise for ftell.
39834         Reported by Ian Beckwith and others.
39835
39836 2009-10-27  Bruno Haible  <bruno@clisp.org>
39837
39838         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39839         Reported by Jim Meyering.
39840
39841 2009-10-27  Jim Meyering  <jim@meyering.net>
39842             Bruno Haible  <bruno@clisp.org>
39843
39844         Avoid warning despite dropping the return value of fwrite.
39845         * lib/unicodeio.c: Include ignore-value.h.
39846         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39847         * modules/unicodeio (Depends-on): Add ignore-value.
39848
39849 2009-10-26  Eric Blake  <ebb9@byu.net>
39850
39851         areadlinkat: fix fallback path
39852         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39853         pointer and zero.
39854
39855 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39856
39857         Use a better IO block size for modern systems
39858         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39859         * lib/md2.c: Likewise.
39860         * lib/md4.c: Likewise.
39861         * lib/md5.c: Likewise.
39862         * lib/sha1.c: Likewise.
39863         * lib/sha256.c: Likewise.
39864         * lib/sha512.c: Likewise.
39865
39866 2009-10-22  Eric Blake  <ebb9@byu.net>
39867
39868         tests: avoid several compiler warnings
39869         * tests/test-getcwd.c (main): Avoid buffer underflow.
39870         * tests/test-getdate.c (main): String literals are not safe with
39871         putenv, so use setenv.  Declare unused argument.
39872         * modules/getdate-tests (Depends-on): Add setenv.
39873         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39874         problems with string literals in char *.
39875         * tests/test-hash.c (main): Avoid shadowing declaration.
39876         (insert_new): Treat string literals as char const *.
39877         * tests/test-getopt.h (test_getopt): Likewise.
39878         (getopt_loop): Alter types to minimize casting elsewhere.
39879         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39880         (test_getopt_long_posix): Likewise.
39881         (do_getopt_long): Add wrapper to minimize casting.
39882         * tests/test-atexit.c (clear_temp_file): Use void.
39883         * tests/test-areadlink-with-size.c (main): Declare unused
39884         arguments.
39885         * tests/test-areadlink.c (main): Likewise.
39886         * tests/test-areadlinkat-with-size.c (main): Likewise.
39887         * tests/test-areadlinkat.c (main): Likewise.
39888         * tests/test-canonicalize-lgpl.c (main): Likewise.
39889         * tests/test-canonicalize.c (main): Likewise.
39890         * tests/test-dirent-safer.c (main): Likewise.
39891         * tests/test-dirname.c (main): Likewise.
39892         * tests/test-dup2.c (main): Likewise.
39893         * tests/test-fchdir.c (main): Likewise.
39894         * tests/test-fcntl-h.c (main): Likewise.
39895         * tests/test-fcntl-safer.c (main): Likewise.
39896         * tests/test-fdopendir.c (main): Likewise.
39897         * tests/test-fdutimensat.c (main): Likewise.
39898         * tests/test-fflush.c (main): Likewise.
39899         * tests/test-filenamecat.c (main): Likewise.
39900         * tests/test-filevercmp.c (main): Likewise.
39901         * tests/test-fopen-safer.c (main): Likewise.
39902         * tests/test-fopen.c (main): Likewise.
39903         * tests/test-fpending.c (main): Likewise.
39904         * tests/test-fpurge.c (main): Likewise.
39905         * tests/test-freading.c (main): Likewise.
39906         * tests/test-fstatat.c (main): Likewise.
39907         * tests/test-fsync.c (main): Likewise.
39908         * tests/test-futimens.c (main): Likewise.
39909         * tests/test-getndelim2.c (main): Likewise.
39910         * tests/test-gettimeofday.c (main): Likewise.
39911         * tests/test-getopt.c (main): Likewise.
39912         * tests/test-i-ring.c (main): Likewise.
39913         * tests/test-inttypes.c (main): Likewise.
39914         * tests/test-link.c (main): Likewise.
39915         * tests/test-lstat.c (main): Likewise.
39916         * tests/test-math.c (main): Likewise.
39917         * tests/test-md5.c (main): Likewise.
39918         * tests/test-memchr2.c (main): Likewise.
39919         * tests/test-memrchr.c (main): Likewise.
39920         * tests/test-mkdir.c (main): Likewise.
39921         * tests/test-mkdirat.c (main): Likewise.
39922         * tests/test-mkfifoat.c (main): Likewise.
39923         * tests/test-open.c (main): Likewise.
39924         * tests/test-openat-safer.c (main): Likewise.
39925         * tests/test-openat.c (main): Likewise.
39926         * tests/test-quotearg.c (main): Likewise.
39927         * tests/test-rawmemchr.c (main): Likewise.
39928         * tests/test-readlink.c (main): Likewise.
39929         * tests/test-remove.c (main): Likewise.
39930         * tests/test-rename.c (main): Likewise.
39931         * tests/test-renameat.c (main): Likewise.
39932         * tests/test-rmdir.c (main): Likewise.
39933         * tests/test-sha1.c (main): Likewise.
39934         * tests/test-signal.c (main): Likewise.
39935         * tests/test-sigaction.c (main): Likewise.
39936         * tests/test-stat.c (main): Likewise.
39937         * tests/test-stat-time.c (main): Likewise.
39938         * tests/test-stddef.c (main): Likewise.
39939         * tests/test-stdint.c (main): Likewise.
39940         * tests/test-stdio.c (main): Likewise.
39941         * tests/test-stdlib.c (main): Likewise.
39942         * tests/test-strchrnul.c (main): Likewise.
39943         * tests/test-strerror.c (main): Likewise.
39944         * tests/test-string.c (main): Likewise.
39945         * tests/test-strtod.c (main): Likewise.
39946         * tests/test-strverscmp.c (main): Likewise.
39947         * tests/test-symlink.c (main): Likewise.
39948         * tests/test-symlinkat.c (main): Likewise.
39949         * tests/test-sys_stat.c (main): Likewise.
39950         * tests/test-sys_time.c (main): Likewise.
39951         * tests/test-time.c (main): Likewise.
39952         * tests/test-unistd.c (main): Likewise.
39953         * tests/test-unlink.c (main): Likewise.
39954         * tests/test-unlinkat.c (main): Likewise.
39955         * tests/test-utimens.c (main): Likewise.
39956         * tests/test-utimensat.c (main): Likewise.
39957         * tests/test-version-etc.c (main): Likewise.
39958         * tests/test-wchar.c (main): Likewise.
39959         * tests/test-wctype.c (main): Likewise.
39960         * tests/test-xprintf-posix.c (main): Likewise.
39961         * tests/test-posixtm.c (main): Likewise.
39962         (STREQ): Delete unused macro.
39963         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39964         shadowed variables.
39965         * tests/test-memchr.c (main): Likewise.
39966
39967 2009-10-21  Eric Blake  <ebb9@byu.net>
39968
39969         areadlinkat: avoid failure on older glibc
39970         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39971         rather than mis-comparing 0 against FUNC_RESULT of char*.
39972
39973 2009-10-21  Bruno Haible  <bruno@clisp.org>
39974
39975         * modules/stpncpy (License): Relicense under LGPLv2+.
39976         Reported by David Lutterkort <lutter@redhat.com>.
39977
39978 2009-10-20  Eric Blake  <ebb9@byu.net>
39979
39980         utimensat: work around Solaris 9 bug
39981         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39982         has trailing slash bugs.
39983         * tests/test-lutimens.h (test_lutimens): Enhance test.
39984         * tests/test-utimens.h (test_utimens): Likewise.
39985         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39986         * doc/posix-functions/utimes.texi (utimes): Likewise.
39987         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39988         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39989         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39990         * doc/posix-functions/futimens.texi (futimens): Likewise.
39991
39992         fdutimensat: new module
39993         * modules/fdutimensat: New file.
39994         * lib/fdutimensat.c (fdutimensat): Likewise.
39995         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39996         * MODULES.html.sh (File system functions): Mention module.
39997         * modules/fdutimensat-tests: New test.
39998         * tests/test-fdutimensat.c: Likewise.
39999
40000         doc: regenerate INSTALL
40001         * doc/INSTALL: Reflect recent autoconf update.
40002         * doc/INSTALL.ISO: Likewise.
40003         * doc/INSTALL.UTF-8: Likewise.
40004
40005 2009-10-20  Pádraig Brady  <P@draigBrady.com>
40006
40007         acl: warn if ACL support is not detected
40008         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40009
40010 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40011
40012         * lib/nproc.h: Add extern "C" block for C++.
40013
40014 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40015             Bruno Haible  <bruno@clisp.org>
40016
40017         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40018         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40019         * doc/posix-functions/isalpha.texi: Likewise.
40020         * doc/posix-functions/isblank.texi: Likewise.
40021         * doc/posix-functions/iscntrl.texi: Likewise.
40022         * doc/posix-functions/isdigit.texi: Likewise.
40023         * doc/posix-functions/isgraph.texi: Likewise.
40024         * doc/posix-functions/islower.texi: Likewise.
40025         * doc/posix-functions/isprint.texi: Likewise.
40026         * doc/posix-functions/ispunct.texi: Likewise.
40027         * doc/posix-functions/isspace.texi: Likewise.
40028         * doc/posix-functions/isupper.texi: Likewise.
40029         * doc/posix-functions/isxdigit.texi: Likewise.
40030
40031 2009-10-18  Bruno Haible  <bruno@clisp.org>
40032
40033         Tests for module 'isblank'.
40034         * modules/isblank-tests: New file.
40035         * tests/test-isblank.c: New file.
40036
40037         New module 'isblank'.
40038         * lib/isblank.c: New file.
40039         * m4/isblank.m4: New file.
40040         * modules/isblank: New file.
40041         * doc/posix-functions/isblank.texi: Mention the new module.
40042
40043 2009-10-18  Bruno Haible  <bruno@clisp.org>
40044
40045         New module 'ctype'.
40046         * lib/ctype.in.h: New file.
40047         * m4/ctype.m4: New file.
40048         * modules/ctype: New file.
40049         * doc/posix-headers/ctype.texi: Mention the new module.
40050
40051 2009-10-18  Jim Meyering  <meyering@redhat.com>
40052
40053         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40054         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40055         right after its initialization, rather than farther down.
40056         Keeping these in close proximity makes it easier to ensure
40057         that each such variable is initialized.  E.g.,
40058
40059             LIB_CLOCK_GETTIME=
40060             AC_SUBST([LIB_CLOCK_GETTIME])
40061
40062         This change also increments these serial numbers.
40063         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40064         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40066
40067 2009-10-18  Bruno Haible  <bruno@clisp.org>
40068
40069         Don't let environment variables perturb build.
40070         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40071         (gl_PREREQ_GETHRXTIME): ... not here.
40072
40073 2009-10-18  Bruno Haible  <bruno@clisp.org>
40074
40075         Avoid symlink attack in localcharset module.
40076         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40077         (O_NOFOLLOW): Define fallback.
40078         (get_charset_aliases): Don't open the file if it is a symbolic link.
40079         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40080         gl_FCNTL_H.
40081         (gl_FCNTL_H): Require it.
40082         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40083         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40084         Reported by Fergal Glynn <fglynn@veracode.com>.
40085
40086 2009-10-18  Bruno Haible  <bruno@clisp.org>
40087
40088         Implement nproc for mingw.
40089         * lib/nproc.c: Include <windows.h>
40090         (num_processors): On native Windows platforms, try GetSystemInfo.
40091
40092 2009-10-18  Bruno Haible  <bruno@clisp.org>
40093
40094         Implement nproc for IRIX.
40095         * lib/nproc.c: Include <sys/sysmp.h>.
40096         (num_processors): On IRIX systems, try sysmp.
40097         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40098
40099 2009-10-18  Bruno Haible  <bruno@clisp.org>
40100
40101         Implement nproc for HP-UX.
40102         * lib/nproc.c: Include <sys/pstat.h>
40103         (num_processors): On HP-UX systems, try pstat_getdynamic.
40104         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40105         pstat_getdynamic.
40106
40107 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40108             Bruno Haible  <bruno@clisp.org>
40109
40110         Implement nproc for NetBSD, OpenBSD.
40111         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40112         (ARRAY_SIZE): New macro.
40113         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40114         * m4/nproc.m4: New file.
40115         * modules/nproc (Files): Add m4/nproc.m4.
40116         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40117         (Makefile.am): Instead, augment lib_SOURCES.
40118
40119 2009-10-18  Bruno Haible  <bruno@clisp.org>
40120
40121         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40122         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40123         sys/param.h.
40124
40125 2009-10-16  Eric Blake  <ebb9@byu.net>
40126
40127         utimensat: new module
40128         * modules/utimensat: New file.
40129         * lib/utimensat.c (utimensat): Likewise.
40130         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40131         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40132         so we can work around Linux bugs.
40133         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40134         * modules/sys_stat (Makefile.am): Substitute them.
40135         * lib/sys_stat.in.h (utimensat): Declare it.
40136         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40137         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40138         * modules/utimensat-tests: New test.
40139         * tests/test-utimensat.c: Likewise.
40140
40141         utimens: let lutimens work on non-symlinks
40142         * lib/utimens.c (lutimens): Fall back to utimens rather than
40143         failing with ENOSYS, when file is not a symlink.
40144         (utimens): Reduce redirection.
40145         * tests/test-lutimens.h (test_lutimens): Update test to cover
40146         non-symlinks.
40147         * tests/test-utimens.h (test_utimens): Update test to cover
40148         symlinks.
40149         * tests/test-utimens.c (main): Update caller.
40150
40151         utimens: cache whether utimensat syscall works
40152         * lib/utimens.c (utimensat_works_really): New cache variable.
40153         (fdutimens, lutimens): Use it to avoid failing syscall.
40154
40155         test-stat-time, test-utimens: improve portability
40156         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
40157         ext4 on alpha, and for cygwin.
40158         * tests/test-utimens-common.h: New file.
40159         (nap): Factor delays into single function.
40160         * tests/test-lutimens.h (test_lutimens): Use new header.
40161         * tests/test-futimens.h (test_futimens): Likewise.
40162         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
40163         timestamps to occur from same machine, as was done previously for
40164         test_utimens.
40165         * modules/utimens-tests (Files): Ship new file.
40166         * modules/futimens-tests (Files): Likewise.
40167         Reported in part by Jim Meyering.
40168
40169         sys_stat: sort replacement declarations
40170         * lib/sys_stat.in.h: Sort declarations.
40171         * lib/futimens.c (futimens): Fix typo.
40172
40173 2009-10-15  Jim Meyering  <meyering@redhat.com>
40174
40175         don't let environment settings perturb build
40176         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
40177         could cause a configure-time and/or build-time malfunction.
40178         Typically, a configure-time function-in-library test is performed
40179         via code like this:
40180
40181           LIB_VAR=
40182           AC_SUBST([LIB_VAR])
40183           prefix_saved_LIBS=$LIBS
40184             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40185                        [test "$ac_cv_search_FUNC" = "none required" ||
40186                         LIB_VAR=$ac_cv_search_FUNC])
40187           LIBS=$prefix_saved_LIBS
40188
40189         However, in each of the files affected by this change, the LIB_VAR=
40190         initialization was omitted.  Thus, when set in the environment, its
40191         value would propagate into generated Makefiles when FUNC is not found
40192         in LIB_NAME.
40193         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40194         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40195         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40196
40197 2009-10-14  Eric Blake  <ebb9@byu.net>
40198
40199         fchdir: avoid infinite recursion in mingw
40200         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40201         recursing.
40202
40203         test-stat-time: port to mingw
40204         * tests/test-stat-time.c (force_unlink): Return a value.
40205         (test_ctime) [W32]: Fix compilation error.
40206         (nap): Don't call usleep with too large an argument.  Use
40207         force_unlink.
40208         * doc/pastposix-functions/usleep.texi (usleep): Document the
40209         portability issue.
40210
40211 2009-10-13  Jim Meyering  <meyering@redhat.com>
40212
40213         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40214         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40215         * modules/pipe-filter-ii: Likewise.
40216         * modules/sys_socket-tests: Likewise.
40217         * modules/tsearch-tests: Likewise.
40218         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40219         (check): Depend on it.
40220
40221 2009-10-12  Eric Blake  <ebb9@byu.net>
40222
40223         utimens-tests: port to NFS file systems
40224         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40225         comparisons to avoid spurious failures from timestamp drift
40226         between NFS machines.
40227
40228 2009-10-12  Eric Blake  <ebb9@byu.net>
40229
40230         stat-time-tests: minor cleanups
40231         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40232         * tests/test-stat-time.c (nap): Separate assignment from call.
40233         Suggested by Paolo Bonzini and Bruno Haible.
40234
40235         sys_stat: guarantee struct timespec
40236         * lib/sys_stat.in.h (includes): Always include <time.h>
40237         * modules/sys_stat (Depends-on): Add time.
40238         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40239         mode_t permission values.
40240         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
40241         get at subsecond timestamps.
40242
40243 2009-10-10  Eric Blake  <ebb9@byu.net>
40244
40245         futimens: new module
40246         * modules/futimens: New file.
40247         * lib/futimens.c (futimens): Likewise.
40248         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
40249         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
40250         we can work around Linux bugs.
40251         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40252         * modules/sys_stat (Makefile.am): Substitute them.
40253         * lib/sys_stat.in.h (futimens): Declare it.
40254         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40255         * doc/posix-functions/futimens.texi (futimens): Likewise.
40256         * modules/futimens-tests: New test.
40257         * tests/test-futimens.c: Likewise.
40258
40259         utimens: introduce fdutimens
40260         * lib/utimens.h (fdutimens): New prototype.
40261         * lib/utimens.c (gl_futimens): Move guts...
40262         (fdutimens): ...to new interface.
40263         * tests/test-utimens.c (do_fdutimens): Use it.
40264
40265         utimens: add UTIME_NOW and UTIME_OMIT support
40266         * lib/utimens.c (validate_timespec, update_timespec): New helper
40267         functions.
40268         (gl_futimens, lutimens): Use them.
40269         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40270         stdbool, sys_stat.
40271         (Link): Mention resulting library dependency.
40272         * modules/utimecmp (Link): Likewise.
40273         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40274         (Makefile.am): Pick up library dependency.
40275         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40276         definition.
40277         * tests/test-sys_stat.c: Test the definitions.
40278         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40279         * NEWS: Document library dependency.
40280
40281         utimecmp: support symlink timestamps
40282         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40283         hashing when possible.  Use pathconf when available.
40284         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40285         * modules/utimecmp (Depends-on): Add lstat.
40286
40287         utimens: add lutimens interface
40288         * lib/utimens.c (lutimens): New function.
40289         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40290         * lib/utimens.h (lutimens): Declare new interface.
40291         * tests/test-utimens.c (main): Enhance test.
40292         * tests/test-lutimens.h (test_lutimens): New file.
40293         * modules/utimens-tests (Files): Distribute it.
40294         (Depends-on): Add symlink.
40295         (configure.ac): Check for usleep.
40296
40297         utimens: validate futimens usage
40298         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40299         fewer syscalls on failure later on.  Avoid compiler warning on
40300         mingw.
40301         * modules/utimens (Depends-on): Add dup2.
40302
40303         utimens: add test
40304         * modules/utimens-tests: New test.
40305         * tests/test-utimens.h: New file.
40306         * tests/test-futimens.h: Likewise.
40307         * tests/test-utimens.c: Likewise.
40308
40309         doc: mention timestamp portability issues
40310         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40311         instead.
40312         * doc/posix-functions/utime.texi (utime): Likewise.
40313         * doc/posix-functions/utimes.texi (utimes): Likewise.
40314         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40315         instead.
40316         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40317         module.
40318         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40319         Mention weakness with symlink timestamps.
40320         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40321         to utimensat/futimens instead.
40322         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40323
40324         test-dup2: enhance test
40325         * tests/test-dup2.c (main): Also check AT_FDCWD.
40326
40327         test-stat-time: avoid more spurious failures
40328         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40329         xfs; and avoid race if the two timestamps cross quantization edge.
40330
40331         relocatable: prefer 'file system' over 'filesystem'
40332         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40333         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40334         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40335         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40336         * lib/relocatable.c (compute_curr_prefix): Likewise.
40337
40338 2009-10-10  Jim Meyering  <meyering@redhat.com>
40339
40340         stat-time-tests: check for the usleep function
40341         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40342
40343 2009-10-10  Bruno Haible  <bruno@clisp.org>
40344
40345         * modules/xnanosleep: Put the Link section after the Include section.
40346
40347 2009-10-09  Eric Blake  <ebb9@byu.net>
40348
40349         dup2: work around FreeBSD 6.1 bug
40350         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40351         * doc/posix-functions/dup2.texi (dup2): Document it.
40352         Reported by Nelson H. F. Beebe and Jim Meyering.
40353
40354         test-stat-time: port to buggy NFS clients
40355         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40356         (test_ctime): Also skip test if mtime and ctime are skewed.
40357
40358         maint: prefer 'file system' over 'filesystem'
40359         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40360         * doc/posix-functions/lstat.texi (lstat): Likewise.
40361         * lib/file-has-acl.c (file_has_acl): Likewise.
40362         * lib/fwriteerror.c [TEST]: Likewise.
40363         * tests/test-areadlink.h (test_areadlink): Likewise.
40364         * tests/test-areadlinkat-with-size.c (main): Likewise.
40365         * tests/test-areadlinkat.c (main): Likewise.
40366         * tests/test-canonicalize-lgpl.c (main): Likewise.
40367         * tests/test-canonicalize.c (main): Likewise.
40368         * tests/test-fstatat.c (main): Likewise.
40369         * tests/test-linkat.c (main): Likewise.
40370         * tests/test-lstat.h (test_lstat_func): Likewise.
40371         * tests/test-mkdir.h (test_mkdir): Likewise.
40372         * tests/test-readlink.h (test_readlink): Likewise.
40373         * tests/test-remove.c (main): Likewise.
40374         * tests/test-rename.h (test_rename): Likewise.
40375         * tests/test-renameat.c (main): Likewise.
40376         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40377         * tests/test-symlink.h (test_symlink): Likewise.
40378         * tests/test-symlinkat.c (main): Likewise.
40379         * tests/test-unlink.h (test_unlink_func): Likewise.
40380         * tests/test-unlinkat.c (main): Likewise.
40381
40382         maint: make realtime library usage explicit
40383         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40384         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40385         * modules/settime (Link): Likewise.
40386         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40387
40388         test-stat-time: speed up execution
40389         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40390         warning on mingw.
40391         (nap): New helper function.
40392         (prepare_test): Use it to reduce sleep time.
40393         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40394         execution.
40395         * modules/stat-time-tests (configure.ac): Check for usleep.
40396
40397 2009-10-09  Jim Meyering  <meyering@redhat.com>
40398
40399         selinux-h: always use getfilecon wrappers
40400         * lib/getfilecon.c: New file.
40401         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40402         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40403         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40404         (fgetfilecon): Provide a stub.
40405         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40406         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40407         file unconditionally.
40408         When <selinux/selinux.h> is found, arrange to use wrappers.
40409         * modules/selinux-h (Files): Add getfilecon.c.
40410         (Makefile.am): Substitute include-next-related bits
40411         into the now-always-generated selinux/selinux.h file.
40412         * doc/glibc-functions/lgetfilecon.texi: New file.
40413         * doc/glibc-functions/fgetfilecon.texi: New file.
40414         * doc/glibc-functions/getfilecon.texi: New file.
40415         * doc/glibc-functions/getfilecon-desc.texi: New file.
40416         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40417         which to pull in the new files.
40418         * MODULES.html.sh (Misc): Add selinux-h.
40419
40420 2009-10-08  Jim Meyering  <meyering@redhat.com>
40421
40422         unistd: fix comment typo
40423         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40424
40425 2009-10-08  Eric Blake  <ebb9@byu.net>
40426
40427         areadlink: use SIZE_MAX consistently
40428         * modules/areadlink (Depends-on): Add stdint.
40429         * modules/areadlink-with-size (Depends-on): Likewise.
40430         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40431         gives NULL; drop sys/types, since unistd gives size_t; and add
40432         stdint for SIZE_MAX.
40433         (SIZE_MAX): Rely on headers.
40434         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40435         and add stdint.
40436         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40437         (SIZE_MAX): Likewise.
40438         (INITIAL_BUF_SIZE): Turn into enum.
40439         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40440
40441 2009-10-08  Jim Meyering  <meyering@redhat.com>
40442
40443         areadlinkat: avoid compilation failure
40444         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40445         Fix typo in comment.
40446
40447 2009-10-07  Eric Blake  <ebb9@byu.net>
40448
40449         areadlinkat-with-size: new module
40450         * modules/areadlinkat-with-size: New module.
40451         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40452         * lib/areadlink.h (areadlinkat): Declare it.
40453         * MODULES.html.sh (File system functions): Mention it.
40454         * modules/areadlinkat-with-size-tests: New test.
40455         * tests/test-areadlinkat-with-size.c: New file.
40456
40457         xreadlinkat: new module
40458         * modules/xreadlinkat: New module.
40459         * lib/xreadlinkat.c (xreadlinkat): New file.
40460         * lib/xreadlink.h (xreadlinkat): Declare it.
40461         * MODULES.html.sh (File system functions): Mention it.
40462
40463         areadlinkat: new module
40464         * lib/at-func.c (FUNC_FAIL): New define.
40465         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40466         * modules/areadlinkat: New module.
40467         * lib/linkat.c (areadlinkat): Move...
40468         * lib/areadlinkat.c (areadlinkat): ...to new file.
40469         * lib/areadlink.h (areadlinkat): Declare it.
40470         * modules/linkat (Depends-on): Add areadlinkat.
40471         * MODULES.html.sh (File system functions): Mention it.
40472         * modules/areadlinkat-tests: New test.
40473         * tests/test-areadlinkat.c: New file.
40474
40475         areadlink, areadlink-with-size: add tests
40476         * modules/areadlink-tests: New test.
40477         * modules/areadlink-with-size-tests: Likewise.
40478         * tests/test-areadlink.h: New file.
40479         * tests/test-areadlink.c: Likewise.
40480         * tests/test-areadlink-with-size.c: Likewise.
40481
40482         maint: minor cleanups
40483         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40484         _UNUSED_PARAMETER_ instead.
40485         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40486         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40487         * modules/linkat-tests (Files): Distribute test-link.h.
40488
40489         openat, utimens: whitespace cleanup
40490         * lib/openat.c: Prefer space throughout, rather than mix of 8
40491         spaces vs. tabs.
40492         * lib/at-func.c: Likewise.
40493         * lib/utimens.c: Likewise.
40494
40495         openat: avoid using wrong fd
40496         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40497         working directory chooses same fd.
40498         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40499
40500         mkdir, mkdirat: fix cygwin 1.5.x bug
40501         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40502         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40503         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40504         bug.
40505         (gl_PREREQ_MKDIR): Delete unused macro.
40506         * modules/mkdir (Files): Track file rename.
40507         (configure.ac): Update macro name.
40508         * modules/openat (Depends-on): Add mkdir.
40509         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40510
40511         mkdir, mkdirat: add tests
40512         * modules/mkdir-tests: New test.
40513         * tests/test-mkdir.h: New file.
40514         * tests/test-mkdir.c: Likewise.
40515         * tests/test-mkdirat.c: Likewise.
40516         * modules/openat-tests (Files): Add new files.
40517         (Makefile.am): Run new test.
40518
40519 2009-10-06  Eric Blake  <ebb9@byu.net>
40520
40521         doc: tweak *at function documentation
40522         * doc/posix-functions/faccessat.texi (faccessat): Mention
40523         known issue with replacement.
40524         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40525         * doc/posix-functions/linkat.texi (linkat): Likewise.
40526         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40527         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40528         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40529         * doc/posix-functions/renameat.texi (renameat): Likewise.
40530         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40531
40532         openat: fix GNU/Hurd bug in unlinkat
40533         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40534         broken.
40535         * doc/posix-functions/unlink.texi (unlink): Document this.
40536         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40537
40538         fdopendir: fix GNU/Hurd bug
40539         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40540         allowing non-directory fds.
40541         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40542         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40543         * modules/dirent (Makefile.am): Substitute it.
40544         * lib/dirent.in.h (fdopendir): Declare replacement.
40545         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40546         * tests/test-fdopendir.c (main): Test something other than
40547         /dev/null, since on Hurd that behaves like a directory.
40548
40549         test-symlink: port to GNU/Hurd
40550         * tests/test-symlink.h (test_symlink): Relax expected errno.
40551
40552         doc: tweak more cygwin information
40553         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40554         now compatible with glibc.
40555         * doc/posix-functions/getopt.texi (getopt): Likewise.
40556
40557         getopt-gnu: add another test
40558         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40559         guarantee behavior relied on by m4.
40560         * tests/test-getopt.c (main): Use it.
40561         * modules/getopt-posix-tests (Depends-on): Add setenv.
40562         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40563
40564         getopt: fix compilation on darwin
40565         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40566         include.
40567         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40568         Reported by Ludovic Courtès.
40569
40570 2009-10-06  Bruno Haible  <bruno@clisp.org>
40571
40572         * modules/size_max (Description): Discourage its use.
40573         Reported by Simon Josefsson.
40574
40575 2009-10-06  Jim Meyering  <meyering@redhat.com>
40576
40577         linkat: avoid compilation failure
40578         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40579
40580 2009-10-05  Eric Blake  <ebb9@byu.net>
40581
40582         linkat: support Linux 2.6.17
40583         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40584         linkat on Linux, but allow cache variable override.
40585         * lib/linkat.c (rpl_linkat): Define override.
40586         * modules/linkat (Depends-on): Add symlinkat.
40587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40588         * modules/unistd (Makefile.am): Substitute it.
40589         * lib/unistd.in.h (linkat): Declare replacement.
40590         Reported by Pádraig Brady.
40591
40592         quotearg: port test to systems with C.UTF-8 locale
40593         * tests/test-quotearg.c (struct result_strings): Add another
40594         member, differentiating between C.ASCII and C.UTF-8 handling.
40595         (compare_strings): Add parameter.
40596         (main): Adjust all callers.
40597
40598         getopt: avoid clash with FreeBSD _getopt_internal
40599         * lib/getopt.in.h (_getopt_internal): Override the name.
40600         * lib/getopt_int.h (includes): Pick up any overrides.
40601         Reported by Reuben Thomas.
40602
40603         hash: allow C89 compilation
40604         * lib/hash.c (check_tuning): Move declaration before statement.
40605         Reported by Reuben Thomas.
40606
40607 2009-10-05  Karl Berry  <karl@gnu.org>
40608
40609         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40610
40611 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40612             Bruno Haible  <bruno@clisp.org>
40613
40614         * lib/uname.c (uname): Use a table-driven algorithm to compute
40615         Windows NT versions.
40616
40617 2009-10-04  Bruno Haible  <bruno@clisp.org>
40618
40619         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40620         program_invocation_short_name.
40621         * modules/progname (configure.ac): Test for presence of
40622         program_invocation_short_name.
40623         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40624
40625 2009-10-04  Bruno Haible  <bruno@clisp.org>
40626
40627         * lib/progname.c (set_program_name): Fix comment.
40628         Reported by Jim Meyering.
40629
40630 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40631             Bruno Haible  <bruno@clisp.org>
40632
40633         * lib/uname.c: Include <string.h>.
40634         (uname): Do only one call to GetVersionEx in the common case.
40635
40636 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40637             Bruno Haible  <bruno@clisp.org>
40638
40639         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40640         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40641         (uname): Add support for Windows CE and various non-x86 CPU types.
40642
40643 2009-10-03  Bruno Haible  <bruno@clisp.org>
40644
40645         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40646         invocation to tests/configure.ac.
40647         Reported by Ian Beckwith <ianb@erislabs.net>.
40648
40649 2009-10-02  Eric Blake  <ebb9@byu.net>
40650
40651         fchdir: avoid compiler warning
40652         * lib/fchdir.c (canonicalize_file_name)
40653         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40654
40655         test-open: support mingw errno values
40656         * tests/test-open.h (test_open): Relax test.
40657         * tests/test-fopen.h (test_fopen): Likewise.
40658         * tests/test-openat-safer.c (main): Likewise.
40659
40660         open: fix opening directory on mingw
40661         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40662
40663         test-open: on GNU/Hurd, /dev/null is a directory
40664         * tests/test-fopen.h (main): Rename...
40665         (test_fopen): ...to this.  Use a guaranteed non-directory when
40666         confirming open behavior on trailing slash.
40667         * tests/test-openat-safer.c (main): Likewise.
40668         * tests/test-open.h (main): Likewise....
40669         (test_open): ...to this.
40670         * tests/test-fopen.c (main): Adjust caller.
40671         * tests/test-fopen-safer.c (main): Likewise.
40672         * tests/test-open.c (main): Likewise.
40673         * tests/test-fcntl-safer.c (main): Likewise.
40674         Reported by Samuel Thibault.
40675
40676         rename, fchdir: don't ignore chdir failure
40677         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40678         * lib/rename.c (rpl_rename) [W32]: Likewise.
40679         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40680         an empty destination directory if source cannot be renamed,
40681         although there is still possibility for failure.
40682         * doc/posix-functions/rename.texi (rename): Document the race.
40683         Reported by Jim Meyering.
40684
40685         maint: cleanup whitespace in recent commits
40686         * lib/rename.c (rpl_rename): Remove tabs.
40687         * tests/test-link.h (test_link): Likewise.
40688         * lib/fchdir.c (get_name): Likewise.
40689         Reported by Jim Meyering.
40690
40691 2009-10-02  Ben Pfaff  <blp@gnu.org>
40692
40693         relocatable-prog-wrapper: Add missing dependency on
40694         double-slash-root.
40695         * modules/relocatable-prog-wrapper: Add dependency.
40696         Reported by Ian Beckwith <ianb@erislabs.net>.
40697
40698 2009-10-02  Eric Blake  <ebb9@byu.net>
40699
40700         renameat: fix Solaris bugs
40701         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40702         needed fixing.
40703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40704         * modules/stdio (Makefile.am): Substitute it.
40705         * lib/stdio.in.h (renameat): Declare replacement.
40706         * lib/renameat.c (rpl_renameat): Implement fix.
40707
40708         renameat: new module
40709         * modules/renameat: New file.
40710         * lib/renameat.c (renameat): Likewise.
40711         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40713         * modules/stdio (Makefile.am): Substitute them.
40714         * lib/stdio.in.h (renameat): Declare it.
40715         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40716         * doc/posix-functions/renameat.texi (renameat): Likewise.
40717         * modules/renameat-tests: New test.
40718         * tests/test-renameat.c: Likewise.
40719
40720         rename: fix mingw bugs
40721         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40722         directory overwrite bugs.
40723
40724         rename: fix another cygwin 1.5 bug
40725         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40726         checks.
40727         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40728         unnecessary cygwin workarounds.  Also work around bug with moving
40729         full directory onto an empty one.
40730         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40731
40732         rename-dest-slash: merge into rename module
40733         * modules/rename-dest-slash (Status): Mark obsolete.
40734         (Depends-on): Add rename.
40735         (Files): Let rename do it all.
40736         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40737         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40738         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40739         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40740         * lib/rename.c (rpl_rename): Update comments.
40741
40742         rename: fix cygwin 1.5.x bugs
40743         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40744         * lib/rename.c (rpl_rename): Work around them.
40745         * modules/rename (Depends-on): Add same-inode.
40746
40747         rename: fix Solaris 10 bug
40748         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40749         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40750         was the only bug.
40751
40752         rename: fix Solaris 9 bug
40753         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40754         on non-directory.  Avoid calling exit.
40755         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40756         strdup.
40757         * modules/rename-tests (Depends-on): Drop lstat.
40758         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40759         (gl_PREREQ_RENAME): Delete unused macro.
40760
40761         rename-dest-slash: fix NetBSD bug
40762         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40763         links.
40764         * modules/rename-dest-slash (Depends-on): Add same-inode.
40765
40766         rename-tests: new test, exposes several platform bugs
40767         * modules/rename-tests: New file.
40768         * tests/test-rename.h: Likewise.
40769         * tests/test-rename.c: Likewise.
40770         * doc/posix-functions/rename.texi (rename): Improve documentation,
40771         including bugs that will eventually be fixed in gnulib.
40772
40773 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40774
40775         * lib/uname.c: Include <stdlib.h>
40776         (uname): Assume version info is available.
40777
40778 2009-10-02  Jim Meyering  <meyering@redhat.com>
40779
40780         gnu-web-doc-update: correct --help output
40781         * build-aux/gnu-web-doc-update: Make --help output relevant.
40782
40783         gnu-web-doc-update: add standard options
40784         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40785
40786         gnu-web-doc-update: New module.
40787         Use this script to automatically update the on-line web documentation
40788         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40789         * modules/gnu-web-doc-update: New file, from coreutils.
40790         * build-aux/gnu-web-doc-update: New script.
40791
40792 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40793
40794         link: LoadLibrary is not needed.
40795         * lib/link.c: Use GetModuleHandle.
40796
40797 2009-10-01  Eric Blake  <ebb9@byu.net>
40798
40799         getopt: bump serial number
40800         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40801         change.
40802
40803         tests: tighten link, rmdir, and remove tests
40804         * tests/test-link.h (includes): No need to use <config.h> here.
40805         Clean up if directory hard link was created, otherwise test for
40806         trailing '.'.
40807         * tests/test-linkat.c (main): Simplify.
40808         * tests/test-remove.c (main): Enhance test for trailing '.'.
40809         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40810
40811 2009-10-01  Jim Meyering  <meyering@redhat.com>
40812
40813         maint.mk: requiring "make major" was annoying, for a "minor" release.
40814         What is intended is "stable", to contrast with alpha and beta,
40815         so require "make stable", not "make major".
40816         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40817         (get_tool_versions): Likewise.
40818         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40819
40820 2009-09-30  Ben Pfaff  <blp@gnu.org>
40821
40822         Fix broken build of replacement for Windows tmpfile().
40823         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40824         flags argument added along with the 'mkostemp' module.
40825
40826 2009-09-28  Bruno Haible  <bruno@clisp.org>
40827
40828         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40829         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40830         to 'remove_elt'.
40831         (gl_list_remove): Update.
40832         * lib/gl_list.c (gl_list_remove): Update.
40833         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40834         to 'remove_elt'.
40835         (gl_oset_remove): Update.
40836         * lib/gl_list.c (gl_oset_remove): Update.
40837         Reported by Eric Blake.
40838
40839 2009-09-28  Eric Blake  <ebb9@byu.net>
40840
40841         doc: mention yet more cygwin 1.7 status
40842         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40843         cygwin.
40844         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40845         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40846
40847         argp: fix test failure
40848         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40849         that are not upper-case.  Pass correct range to tolower.
40850
40851 2009-09-27  Jim Meyering  <meyering@redhat.com>
40852
40853         test-yesno: work around sparc-dash here-document infelicity
40854         Without this change, the literal \177 byte in a here document
40855         would make dash 0.5.5.1-3 access uninitialized memory.
40856         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40857         Instead, use a marker, "@", and filter through tr to create the desired
40858         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40859
40860 2009-09-27  Bruno Haible  <bruno@clisp.org>
40861
40862         Disable untested support for new flavours of ACLs on AIX.
40863         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40864         progress.
40865         * lib/set-mode-acl.c (qset_acl): Likewise.
40866
40867 2008-12-07  Bruno Haible  <bruno@clisp.org>
40868
40869         Add support for new flavours of ACLs on AIX. (Untested.)
40870         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40871         (file_has_acl): Add support for newer AIX.
40872         * lib/set-mode-acl.c (qset_acl): Likewise.
40873         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40874         Rainer Tammer <tammer@tammer.net>.
40875
40876 2009-09-26  Eric Blake  <ebb9@byu.net>
40877
40878         argp: fix compilation of getopt
40879         * lib/getopt.in.h (includes): Use different guard than glibc.
40880         Reported by Sergey Poznyakoff.
40881
40882         doc: mention more cygwin 1.7 status
40883         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40884         bug.
40885         * doc/posix-functions/execl.texi (execl): Likewise.
40886         * doc/posix-functions/execle.texi (execle): Likewise.
40887         * doc/posix-functions/execlp.texi (execlp): Likewise.
40888         * doc/posix-functions/execv.texi (execv): Likewise.
40889         * doc/posix-functions/execve.texi (execve): Likewise.
40890         * doc/posix-functions/execvp.texi (execvp): Likewise.
40891         * doc/glibc-functions/canonicalize_file_name.texi
40892         (canonicalize_file_name): Cygwin 1.7 now provides this.
40893         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40894         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40895         on AT_SYMLINK_NOFOLLOW.
40896
40897 2009-09-24  Eric Blake  <ebb9@byu.net>
40898
40899         test-linkat: make test more robust
40900         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40901
40902         getopt: fix inclusion guards for cygwin
40903         * modules/getopt-posix (Depends-on): Add include-next.
40904         (Makefile.am): Substitute more items in replacement header.
40905         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40906         <getopt.h>.
40907         * lib/getopt.in.h (includes): Use split inclusion guard, and
40908         prefer <getopt.h> over include <unistd.h> when one is present.
40909         (option): Also override name of 'struct option'.
40910
40911         same-inode: revert prior change; it is not yet ready
40912         * NEWS: Undo mention of this change.
40913         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40914         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40915         * lib/cycle-check.c (cycle_check): Likewise.
40916         * lib/same.c (same_name): Likewise.
40917         * lib/at-func2.c (at_func2): Likewise.
40918
40919 2009-09-23  Eric Blake  <ebb9@byu.net>
40920
40921         linkat: new module
40922         * modules/linkat: New file.
40923         * lib/at-func2.c (at_func2): Likewise.
40924         * lib/linkat.c (linkat): Likewise.
40925         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40926         * lib/openat-priv.h (at_func2): Add declaration.
40927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40928         * modules/unistd (Makefile.am): Substitute them.
40929         * lib/unistd.in.h (linkat): Declare it.
40930         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40931         * doc/posix-functions/linkat.texi (linkat): Likewise.
40932         * doc/posix-functions/link.texi (link): Tweak wording.
40933         * tests/test-link.c (main): Move guts...
40934         * tests/test-link.h (test_link): ...into new file.
40935         * modules/linkat-tests: New test.
40936         * tests/test-linkat.c: Likewise.
40937         * modules/link-tests (Files): Ship new file.
40938         (Depends-on): Add stdbool.
40939
40940         dirname: add library-safe mdir_name
40941         * lib/dirname.h (mdir_name): New prototype.
40942         * lib/dirname.c (dir_name): Move guts...
40943         (mdir_name): ...to new function that avoids xalloc_die.
40944
40945         fchdir: another mingw fix
40946         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40947         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40948         on mingw (where it has not yet been ported), and make it optional
40949         elsewhere.
40950         (_gl_register_fd): Use it.
40951
40952         same-inode: make SAME_INODE tri-state, to port to mingw
40953         * NEWS: Mention this change.
40954         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40955         st_ino always being 0.
40956         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40957         * lib/cycle-check.c (cycle_check): Likewise.
40958         * lib/same.c (same_name): Likewise.
40959
40960         lstat: avoid mingw compilation error
40961         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40962         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40963         lstat ourselves.
40964         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40965         was adequate.
40966         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40967         the checks for lstat.
40968         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40969
40970         link: fix test failure on Solaris 9
40971         * lib/link.c (rpl_link): Don't assume link will catch bogus
40972         trailing slash on source.
40973
40974         test-symlinkat: enhance test
40975         * tests/test-readlink.c (main): Move guts...
40976         * tests/test-readlink.h (test_readlink): ...into new file.
40977         * tests/test-symlink.c (main): Move guts...
40978         * tests/test-symlink.h (test_symlink): ...into new file.
40979         * tests/test-symlinkat.c (main): Use new files for further
40980         coverage.
40981         (do_symlink, do_readlink): New helper functions.
40982         * modules/symlink-tests (Files): Ship new file.
40983         (Depends-on): Add stdbool.
40984         * modules/readlink-tests (Files): Ship new file.
40985         (Depends-on): Add stdbool.
40986         * modules/symlinkat-tests (Files): Use new files.
40987
40988 2009-09-23  Eric Blake  <ebb9@byu.net>
40989
40990         readlink: document portability issue with symlink length
40991         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40992         systems have bogus st_size on symlinks, and mention the
40993         areadlink-with-size module.
40994         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40995         * doc/posix-functions/readlink.texi (readlink): Mention the
40996         areadlink module, and ERANGE failure.
40997         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40998         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40999
41000         readlink: fix Solaris 9 bug with trailing slash
41001         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
41002         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
41003         * doc/posix-functions/readlink.texi (readlink): Document this.
41004         * modules/readlink-tests: New test.
41005         * tests/test-readlink.c: Likewise.
41006
41007         readlink: fix cygwin 1.5.x bug with return type
41008         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41009         * lib/unistd.in.h (readlink): Use ssize_t.
41010         * lib/readlink.c (readlink): Likewise.
41011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41012         * modules/unistd (Makefile.am): Substitute it.
41013         * lib/unistd.in.h (readlink): Declare replacement.
41014         * doc/posix-functions/readlink.texi (readlink): Document this.
41015
41016         symlink: use throughout gnulib
41017         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41018         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41019         symlink is not used.
41020         * modules/symlinkat (Depends-on): Add symlink.
41021         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41022         * modules/canonicalize-tests (Depends-on): Likewise.
41023         * modules/lstat-tests (Depends-on): Likewise.
41024         * modules/openat-tests (Depends-on): Likewise.
41025         * modules/remove-tests (Depends-on): Likewise.
41026         * modules/rmdir-tests (Depends-on): Likewise.
41027         * modules/unlink-tests (Depends-on): Likewise.
41028         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41029         * tests/test-canonicalize.c (symlink): Likewise.
41030         * tests/test-fstatat.c (symlink): Likewise.
41031         * tests/test-lstat.c (symlink): Likewise.
41032         * tests/test-remove.c (symlink): Likewise.
41033         * tests/test-rmdir.c (symlink): Likewise.
41034         * tests/test-unlink.c (symlink): Likewise.
41035         * tests/test-unlinkat.c (symlink): Likewise.
41036
41037         symlink: new module, for Solaris 9 bug
41038         * modules/symlink: New file.
41039         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41040         * lib/symlink.c: Likewise.
41041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41042         * modules/unistd (Makefile.am): Substitute them.
41043         * lib/unistd.in.h (symlink): Declare replacement.
41044         * MODULES.html.sh (File system functions): Mention it.
41045         * doc/posix-functions/symlink.texi (symlink): Likewise.
41046         * modules/symlink-tests: New test.
41047         * tests/test-symlink.c: Likewise.
41048
41049 2009-09-23  Bruno Haible  <bruno@clisp.org>
41050
41051         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41052         when needed.
41053         Test case: gnulib-tool --import --with-tests atexit inttypes.
41054         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41055
41056 2009-09-23  Bruno Haible  <bruno@clisp.org>
41057
41058         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41059         subcommand, not in a subshell.
41060
41061 2009-09-22  Eric Blake  <ebb9@byu.net>
41062
41063         unistd: sort replacement declarations
41064         * lib/unistd.in.h: Sort declarations.
41065
41066         open, openat: minor optimization
41067         * lib/open.c (open): If open succeeded, len is non-zero.
41068         * lib/openat.c (rpl_openat): Likewise.
41069
41070         link-follow: ensure correct result
41071         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41072         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41073         distinguish between possible failures.
41074
41075 2009-09-21  Eric Blake  <ebb9@byu.net>
41076
41077         fts: avoid compiler warning
41078         * lib/fts.c (dirent_inode_sort_may_be_useful)
41079         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41080
41081 2009-09-19  Bruno Haible  <bruno@clisp.org>
41082
41083         * lib/progreloc.c (canonicalize_file_name): New declaration.
41084
41085 2009-09-19  Eric Blake  <ebb9@byu.net>
41086
41087         link: fix quoting
41088         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41089
41090         openat: fix openat bugs on Solaris 9
41091         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41092         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41093         * modules/openat (Depends-on): Add open.
41094         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41095         * modules/fcntl-h (Makefile.am): Substitute it.
41096         * lib/fcntl.in.h (openat): Declare replacement.
41097         * doc/posix-functions/openat.texi (openat): Document this.
41098
41099         openat: move fstatat and unlinkat into correct files
41100         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41101         compiled.
41102         * lib/openat.c (fstatat, unlinkat): Move...
41103         * lib/fstatat.c (fstatat): ...into correct files.
41104         * lib/unlinkat.c (unlinkat): Likewise.
41105
41106         openat: fix unlinkat bugs on Solaris 9
41107         * lib/unlinkat.c (unlinkat): New file.
41108         * modules/openat (Depends-on): Add unlink.
41109         (Files): Distribute it.
41110         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41111         trailing slash behavior is broken.
41112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41113         * modules/unistd (Makefile.am): Substitute it.
41114         * lib/unistd.in.h (unlinkat): Declare replacement.
41115         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41116
41117         openat: fix fstatat bugs on Solaris 9
41118         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41119         stat.
41120         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41121
41122         test-unlinkat: enhance test, to expose Solaris 9 bug
41123         * tests/test-unlink.c (main): Factor guts...
41124         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41125         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41126         * tests/test-rmdir.c (main): Adjust caller.
41127         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41128         (unlinker): New helper function.
41129         (rmdirat): Enhance check.
41130         * modules/rmdir-tests (Depends-on): Add stdbool.
41131         * modules/unlink-tests (Depends-on): Likewise.
41132         (Files): Add test-unlink.h.
41133         * modules/openat-tests (Files): Likewise.
41134         (Depends-on): Add unlinkdir.
41135
41136         test-fstatat: new test, to expose Solaris 9 bugs
41137         * tests/test-stat.c (main): Factor guts...
41138         * tests/test-stat.h (test_stat_func): ...into new file.
41139         * tests/test-lstat.c (main): Factor guts...
41140         * tests/test-lstat.h (test_lstat_func): ...into new file.
41141         * tests/test-fstatat.c: New file.
41142         * modules/stat-tests (Files): Add test-stat.h.
41143         * modules/lstat-tests (Files): Add test-lstat.h.
41144         (Depends-on): Add stdbool.
41145         * modules/openat-tests (Depends-on): Add pathmax.
41146         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
41147         (Makefile.am): Run new test.
41148
41149         remove: new module, for mingw and Solaris 9 bugs
41150         * modules/remove: New file.
41151         * lib/remove.c: Likewise.
41152         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
41153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41154         * modules/stdio (Makefile.am): Use them.
41155         * lib/stdio.in.h (remove): Declare replacement.
41156         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41157         * doc/posix-functions/remove.texi (remove): Likewise.
41158         * modules/remove-tests: New test.
41159         * tests/test-remove.c: Likewise.
41160
41161         unlink: new module, for Solaris 9 bug
41162         * modules/unlink: New file.
41163         * lib/unlink.c: Likewise.
41164         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41166         * modules/unistd (Makefile.am): Use them.
41167         * lib/unistd.in.h (stat): Declare replacement.
41168         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41169         * doc/posix-functions/unlink.texi (unlink): Likewise.
41170         * modules/unlink-tests: New test.
41171         * tests/test-unlink.c: Likewise.
41172
41173         lstat: fix Solaris 9 bug
41174         * lib/lstat.c (lstat): Also check for trailing slash on
41175         non-symlink, non-directories.  Use stat module to simplify logic.
41176         * doc/posix-functions/lstat.texi (lstat): Document it.
41177         * modules/lstat-tests (Depends-on): Add errno, same-inode.
41178         (configure.ac): Check for symlink.
41179         * tests/test-lstat.c (main): Add more tests.
41180
41181         stat: add as dependency to other modules
41182         * modules/chown (Depends-on): Add stat.
41183         * modules/euidaccess (Depends-on): Likewise.
41184         * modules/fchdir (Depends-on): Likewise.
41185         * modules/isdir (Depends-on): Likewise.
41186         * modules/link (Depends-on): Likewise.
41187         * modules/lstat (Depends-on): Likewise.
41188         * modules/mkdir-p (Depends-on): Likewise.
41189         * modules/modechange (Depends-on): Likewise.
41190         * modules/open (Depends-on): Likewise.
41191         * modules/readlink (Depends-on): Likewise.
41192         * modules/same (Depends-on): Likewise.
41193
41194         stat: fix Solaris 9 bug
41195         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41196         slash.
41197         * lib/stat.c (rpl_stat): Work around it.
41198         * doc/posix-functions/stat.texi (stat): Update documentation.
41199
41200         stat: new module, for mingw bug
41201         * modules/stat: New file.
41202         * lib/stat.c: Likewise.
41203         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41204         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41205         * modules/sys_stat (Makefile.am): Use them.
41206         * lib/sys_stat.in.h (stat): Declare replacement.
41207         * lib/openat.c (fstatat): Deal with lstat and stat being function
41208         macros.
41209         * modules/openat (Depends-on): Add inline.
41210         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41211         * doc/posix-functions/stat.texi (stat): Likewise.
41212         * modules/stat-tests: New test.
41213         * tests/test-stat.c: Likewise.
41214
41215 2009-09-19  Jim Meyering  <meyering@redhat.com>
41216
41217         syntax-check: detect unnecessary inclusion of canonicalize.h
41218         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41219
41220 2009-09-19  Eric Blake  <ebb9@byu.net>
41221
41222         canonicalize-lgpl: adjust clients to use correct header
41223         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41224         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41225         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41226         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41227         * lib/progreloc.c (includes): Likewise.
41228
41229 2009-09-19  Jim Meyering  <meyering@redhat.com>
41230
41231         test-posixtm.c: correct a comment
41232         * tests/test-posixtm.c: Correct first-line comment.
41233         Spotted by Eric Blake.
41234
41235 2009-09-16  Jim Meyering  <meyering@redhat.com>
41236
41237         posixtm-tests: make T const-correct; add a test case
41238         * tests/test-posixtm.c (T): Declare const.
41239         Add a test for -(2^31+1).
41240         Remove useless can-succeed-only-in-2002 test.
41241
41242         posixtm-tests: adjust the sole failing test
41243         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
41244         expected output matches what mktime now produces.  Cross-checked via
41245         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
41246
41247         posixtm: move #ifdef'd tests into a new module
41248         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
41249         * tests/test-posixtm.c: ... this new file.
41250         * modules/posixtm-tests: New module.
41251
41252 2009-09-19  Eric Blake  <ebb9@byu.net>
41253
41254         openat: simplify use of at-func.c
41255         * lib/at-func.c (includes): Include prerequisites here, to
41256         simplify requirements on client files.
41257         * lib/openat-priv.h: Add double-inclusion guard.
41258         * lib/faccessat.c (includes): Simplify.
41259         * lib/fchmodat.c (includes): Likewise.
41260         * lib/fchownat.c (includes): Likewise.
41261         * lib/mkdirat.c (includes): Likewise.
41262         * lib/mkfifoat.c (includes): Likewise.
41263         * lib/symlinkat.c (includes): Likewise.
41264
41265         openat: allow return of fd 0
41266         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41267         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41268         unistd-safer.
41269         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41270         <fcntl.h>; this module does not leak fds.
41271         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41272         must be allowed to return 0, leaving openat_safer to add the
41273         safety.
41274         (openat_permissive): Avoid writing to just-opened fd 2 if
41275         restoring the current directory fails.
41276         * lib/openat-die.c (openat_restore_fail): Add comment.
41277         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41278         (save_cwd): Guarantee safe fd, but without use of open_safer.
41279         * tests/test-openat.c: New test.
41280         * modules/openat-tests (Files, Makefile.am): Distribute and build
41281         new file.
41282
41283         relocatable-prog-wrapper: fix build
41284         * modules/relocatable-prog-wrapper (Files): Update name of
41285         canonicalize m4 file, broken on 2009-09-17.
41286         Reported by emad hajjar <aleppos@hotmail.com>.
41287
41288 2009-09-19  Bruno Haible  <bruno@clisp.org>
41289
41290         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41291         * lib/safe-alloc.c: Likewise.
41292         Reported by Ian Beckwith <ianb@erislabs.net>.
41293
41294 2009-09-18  Bruno Haible  <bruno@clisp.org>
41295
41296         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41297         Reported by <erobles@sensacd.com.mx>.
41298
41299 2009-09-17  Eric Blake  <ebb9@byu.net>
41300
41301         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41302         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41303         slashes when checking if last component is missing.
41304         * tests/test-canonicalize.c (main): Test this.
41305
41306         canonicalize, canonicalize-lgpl: honor // if distinct from /
41307         * modules/canonicalize (Files): Add double-slash-root.m4.
41308         * modules/canonicalize-lgpl (Files): Likewise.
41309         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41310         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41311         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41312         fallback definition.
41313         (canonicalize_filename_mode): Use it to protect //.
41314         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41315         (__realpath): Likewise.
41316         * tests/test-canonicalize.c (main): Test this.
41317         * tests/test-canonicalize-lgpl.c (main): Likewise.
41318         * modules/canonicalize-tests (Depends-on): Add same-inode.
41319         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41320
41321         canonicalize-lgpl: fix glibc bug with trailing slash
41322         * m4/canonicalize-lgpl.m4: Move contents...
41323         * m4/canonicalize.m4: ...here.
41324         (gl_CANONICALIZE_LGPL): Factor realpath check...
41325         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41326         glibc 2.3.5 bug, fixed 2005-04-27.
41327         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41328         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41329         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41330         * modules/canonicalize-lgpl (Files): Manage file rename.
41331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41332         * modules/stdlib (Makefile.am): Substitute witness.
41333         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41334         is needed.
41335         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41336         replacement is required.
41337         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41338         * doc/glibc-functions/canonicalize_file_name.texi
41339         (canonicalize_file_name): Document this.
41340         * doc/posix-functions/realpath.texi (realpath): Likewise.
41341
41342         canonicalize-lgpl: reject non-directory with trailing slash
41343         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41344         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41345         catches failures in glibc 2.3.5.
41346         * tests/test-canonicalize.c (main): Likewise.
41347
41348         canonicalize-lgpl: use native realpath if it works
41349         * lib/canonicalize-lgpl.c (realpath): Guard with
41350         FUNC_REALPATH_WORKS.
41351         * lib/stdlib.in.h (realpath): Make declaration optional based on
41352         HAVE_REALPATH.
41353         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41354         native realpath works.
41355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41356         * modules/stdlib (Makefile.am): Substitute witness.
41357
41358         canonicalize, canonicalize-lgpl: use <stdlib.h>
41359         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41360         (Include): Mention <stdlib.h>.
41361         (configure.ac): Mention functions we provide.
41362         * modules/canonicalize (configure.ac): Likewise.
41363         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41364         realpath if canonicalize_file_name is missing.
41365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41366         * modules/stdlib (Makefile.am): Substitute witnesses.
41367         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41368         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41369         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41370         * NEWS: Document this.
41371         * doc/glibc-functions/canonicalize_file_name.texi
41372         (canonicalize_file_name): Likewise.
41373         * doc/posix-functions/realpath.texi (realpath): Likewise.
41374         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41375
41376         test-canonicalize: consolidate into single C program
41377         * tests/test-canonicalize.sh: Delete; move setup into...
41378         * tests/test-canonicalize.c (main): ...the program, making it
41379         easier to run in debugger.  Add some tests.
41380         * modules/canonicalize-tests (Files): Remove unused file.
41381         (Depends-on): Add progname.
41382         (configure.ac, Makefile.am): Simplify.
41383
41384         test-canonicalize-lgpl: consolidate into single C program
41385         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41386         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41387         easier to run in debugger.  Add some tests.
41388         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41389         (configure.ac, Makefile.am): Simplify.
41390
41391         canonicalize: avoid resolvepath
41392         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41393         unnecessary checks.
41394         * lib/canonicalize.c (includes): Simplify.
41395         (canonicalize_file_name): Drop resolvepath implementation.
41396         * modules/canonicalize (Depends-on): Drop filenamecat.
41397
41398         canonicalize: don't lose errno
41399         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41400         over calls to free.
41401
41402         canonicalize: simplify errno handling
41403         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41404         assignment.
41405
41406         canonicalize, canonicalize-lgpl: update module dependencies
41407         * modules/canonicalize (Depends-on): Add extensions, lstat,
41408         pathmax, stdlib.
41409         (Files): Drop pathmax.h.
41410         (configure.ac): Adjust macro name.
41411         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41412         lstat, stdlib, sys_stat.
41413         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41414         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41415         extensions.
41416         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41417         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41418         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41419         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41420         declaration, if available.
41421         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41422         we can rely on the readlink module.
41423         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41424         (includes): Use <unistd.h> unconditionally.
41425
41426 2009-09-17  Eric Blake  <ebb9@byu.net>
41427
41428         maint: make Include sections of modules consistent
41429         * modules/alloca: Use only header name; no need to list #include.
41430         * modules/alloca-opt: Likewise.
41431         * modules/arpa_inet: Likewise.
41432         * modules/canon-host: Likewise.
41433         * modules/configmake: Likewise.
41434         * modules/dirent: Likewise.
41435         * modules/eealloc: Likewise.
41436         * modules/environ: Likewise.
41437         * modules/fchdir: Likewise.
41438         * modules/fcntl: Likewise.
41439         * modules/fcntl-h: Likewise.
41440         * modules/gethrxtime: Likewise.
41441         * modules/gettime: Likewise.
41442         * modules/ignore-value: Likewise.
41443         * modules/inet_ntop: Likewise.
41444         * modules/inet_pton: Likewise.
41445         * modules/inttypes: Likewise.
41446         * modules/isnand-nolibm: Likewise.
41447         * modules/isnanf-nolibm: Likewise.
41448         * modules/mbchar: Likewise.
41449         * modules/mbfile: Likewise.
41450         * modules/mbiter: Likewise.
41451         * modules/mbuiter: Likewise.
41452         * modules/netdb: Likewise.
41453         * modules/netinet_in: Likewise.
41454         * modules/nproc: Likewise.
41455         * modules/pagealign_alloc: Likewise.
41456         * modules/poll: Likewise.
41457         * modules/printf-frexp: Likewise.
41458         * modules/pthread: Likewise.
41459         * modules/putenv: Likewise.
41460         * modules/random_r: Likewise.
41461         * modules/relocatable-prog: Likewise.
41462         * modules/search: Likewise.
41463         * modules/select: Likewise.
41464         * modules/selinux-h: Likewise.
41465         * modules/settime: Likewise.
41466         * modules/signal: Likewise.
41467         * modules/size_max: Likewise.
41468         * modules/socklen: Likewise.
41469         * modules/ssize_t: Likewise.
41470         * modules/stdarg: Likewise.
41471         * modules/stdbool: Likewise.
41472         * modules/stddef: Likewise.
41473         * modules/stdint: Likewise.
41474         * modules/stdio: Likewise.
41475         * modules/stdlib: Likewise.
41476         * modules/string: Likewise.
41477         * modules/strings: Likewise.
41478         * modules/sys_file: Likewise.
41479         * modules/sys_ioctl: Likewise.
41480         * modules/sys_select: Likewise.
41481         * modules/sys_socket: Likewise.
41482         * modules/sys_stat: Likewise.
41483         * modules/sys_time: Likewise.
41484         * modules/sys_times: Likewise.
41485         * modules/sys_utsname: Likewise.
41486         * modules/sys_wait: Likewise.
41487         * modules/sysexits: Likewise.
41488         * modules/time: Likewise.
41489         * modules/times: Likewise.
41490         * modules/tmpfile: Likewise.
41491         * modules/trim: Likewise.
41492         * modules/unistd: Likewise.
41493         * modules/wchar: Likewise.
41494         * modules/wctype: Likewise.
41495
41496 2009-09-17  Bruno Haible  <bruno@clisp.org>
41497
41498         Make getdate.y compile on QNX and NetBSD 5 / i386.
41499         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41500         TIME_T_FITS_IN_LONG_INT.
41501         * lib/getdate.y (long_time_t): New type.
41502         (relative_time): Change type of 'seconds' field to long_time_t.
41503         (get_date): Update types of local variables. Check against overflow
41504         during conversion from long_time_t to time_t.
41505         Reported by Matt Kraai <kraai@ftbfs.org>
41506         and Hasso Tepper <hasso@netbsd.org>.
41507
41508 2009-09-17  Bruno Haible  <bruno@clisp.org>
41509
41510         * modules/COPYING: Update copyright years.
41511         * modules/README: Likeiwse.
41512         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41513         Reported by Ian Beckwith <ianb@erislabs.net>.
41514
41515 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41516
41517         * users.txt: Update references for gnuit package.
41518
41519 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41520
41521         * m4/getdelim.m4: Fix typo in copyright line.
41522
41523 2009-09-17  Bruno Haible  <bruno@clisp.org>
41524
41525         * lib/atoll.c: Use the standard header with GPL copyright.
41526         * lib/argz.in.h: Likewise.
41527         * lib/glob.c: Likewise.
41528         * lib/glob-libc.h: Likewise.
41529         * lib/random_r.c: Likewise.
41530         * lib/siglist.h: Likewise.
41531         * lib/strsignal.c: Likewise.
41532         Reported by Ian Beckwith <ianb@erislabs.net>.
41533
41534 2009-09-17  Eric Blake  <ebb9@byu.net>
41535
41536         rmdir: ensure correct dependency order
41537         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41538
41539 2009-09-17  Bruno Haible  <bruno@clisp.org>
41540
41541         Disable assertion that fails on NetBSD 5 / i386.
41542         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41543         Reported by Sam Steingold <sds@gnu.org>
41544         and Hasso Tepper <hasso@netbsd.org>.
41545
41546 2009-09-16  Eric Blake  <ebb9@byu.net>
41547
41548         unlinkdir: port to mingw
41549         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41550         on which no one can unlink a directory.
41551
41552         stdlib: sort witness names
41553         * modules/stdlib (Makefile.am): Sort replacements.
41554         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41555         * lib/stdlib.in.h: Likewise.
41556
41557         parse-duration-tests: avoid link failure
41558         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41559         LIBINTL.
41560         Reported by Tom G. Christensen.
41561
41562         openat-tests: ensure unlinkat behaves like rmdir
41563         * tests/test-rmdir.c (main): Factor guts...
41564         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41565         * modules/rmdir-tests (Files): Ship new file.
41566         * modules/openat-tests: New test.
41567         * tests/test-unlinkat.c: Likewise.
41568
41569         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41570         * modules/rmdir-errno (Status, Notice): Now obsolete.
41571
41572         rmdir: work around cygwin 1.5.x and mingw bugs
41573         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41574         * lib/rmdir.c (rmdir): Work around it.
41575         * modules/rmdir (Status, Notice): No longer obsolete.
41576         (Files): Add dos.m4.
41577         (Depends-on): Add unistd.
41578         (configure.ac): Set witnesses.
41579         (License): Relax to LGPLv2+.
41580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41581         * modules/unistd (Makefile.am): Substitute witnesses.
41582         * lib/unistd.in.h (rmdir): Declare replacement.
41583         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41584         * modules/rmdir-tests: New tests.
41585         * tests/test-rmdir.c: Likewise.
41586
41587 2009-09-15  Eric Blake  <ebb9@byu.net>
41588
41589         fchdir: improve use of replacement functions
41590         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41591         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41592         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41593         REPLACE_CLOSEDIR.
41594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41595         * modules/sys_stat (Makefile.am): Substitute correct witness.
41596         * modules/dirent (Makefile.am): Likewise.
41597         * modules/unistd (Makefile.am): Likewise.
41598         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41599         * lib/unistd.in.h (dup): Likewise.
41600         * lib/sys_stat.in.h (fstat): Likewise.
41601
41602         maint: ignore gnulib-tool temp files
41603         * .gitignore: Ignore files created during gnulib-tool --test.
41604
41605 2009-09-13  Jim Meyering  <meyering@redhat.com>
41606
41607         posixtm: don't reject a time that specify "60" as the number of seconds
41608         * lib/posixtm.c (posixtime): The code to reject invalid dates
41609         would also reject a time specified with the .60 suffix.
41610         But POSIX allows that, in order to accommodate leap seconds.
41611         So don't reject it.
41612         (main): Adjust tests accordingly.
41613         * modules/posixtm (Depends-on): Add stpcpy.
41614
41615 2009-09-11  Jim Meyering  <meyering@redhat.com>
41616
41617         announce-gen: include [$release_type] in emitted Subject:
41618         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41619         e.g., [stable] in the emitted Subject: line.
41620
41621 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41622
41623         Remove obsolete macros from several modules.
41624         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41625         obsolete Autoconf macros with their modern counterparts.
41626         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41627         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41628         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41629         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41630         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41631         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41633         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41634         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41635         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41636         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41637         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41638         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41639         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41640         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41641         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41642         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41643         * m4/time_r.m4 (gl_TIME_R): Likewise.
41644         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41645         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41646         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41647
41648         Fix copyright header in build-aux scripts.
41649         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41650         recommendation.
41651         * build-aux/ncftpput-ftp: Likewise.
41652         * build-aux/update-copyright: Likewise.
41653
41654 2009-09-09  Eric Blake  <ebb9@byu.net>
41655
41656         test-link: allow Linux choice of errno
41657         * tests/test-link.c (main): Relax test for alternate error.
41658
41659         strndup: fix improper m4 caching
41660         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41661         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41662         (gl_PREREQ_STRNDUP): Delete.
41663         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41664         * modules/string (Makefile.am): Substitute it.
41665         * lib/string.in.h (strndup): Modernize prototype.
41666
41667         getcwd: port to mingw
41668         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41669         different from the POSIX assumptions made throughout the getcwd
41670         module; fortunately, the mingw getcwd does not need replacement.
41671         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41672         * modules/getcwd-tests: New test.
41673         * tests/test-getcwd.c: Likewise.
41674
41675         link: fix platform bugs
41676         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41677         * lib/link.c (link): Work around them.  Fix related mingw bug.
41678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41679         * modules/unistd (Makefile.am): Substitute it.
41680         * lib/unistd.in.h (link): Declare replacement.
41681         * doc/posix-functions/link.texi (link): Document this.
41682         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41683
41684         test-link: consolidate into single C program, test more cases
41685         * tests/test-link.sh: Delete.
41686         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41687         at least Cygwin and Solaris.
41688         * modules/link-tests (Files): Remove unused file.
41689         (Depends-on): Add errno, sys_stat.
41690         (Makefile.am): Simplify.
41691
41692 2009-09-08  Bruno Haible  <bruno@clisp.org>
41693
41694         Work around towlower, towupper bug on mingw.
41695         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41696         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41697         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41698         * doc/posix-functions/towupper.texi: Likewise.
41699         Reported by Eric Blake.
41700
41701 2009-09-08  Jim Meyering  <meyering@redhat.com>
41702
41703         build: don't try to run autoheader if we don't use it
41704         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41705         is not used in configure.ac.
41706
41707 2009-09-08  Eric Blake  <ebb9@byu.net>
41708
41709         euidaccess: fix compilation error
41710         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41711
41712         rawmemchr: relax license
41713         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41714         okay.
41715         Reported by Jim Meyering.
41716
41717         mkfifoat: new module
41718         * modules/mkfifoat: New file.
41719         * lib/mkfifoat.c: Likewise.
41720         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41721         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41722         * modules/sys_stat (Makefile.am): Use them.
41723         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41724         * MODULES.html.sh (File system functions): Mention module.
41725         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41726         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41727         * modules/mkfifoat-tests: New test.
41728         * tests/test-mkfifoat.c: Likewise.
41729
41730         strchrnul: relax license
41731         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41732         okay.
41733         Reported by Jim Meyering.
41734
41735 2009-09-08  Eric Blake  <ebb9@byu.net>
41736
41737         fstatat: fix compilation on Solaris
41738         * lib/fstatat.c (includes): Add fcntl.h.
41739         Reported by Pádraig Brady.
41740
41741 2009-09-07  Eric Blake  <ebb9@byu.net>
41742
41743         rename: modernize replacement
41744         * modules/rename (Depends-on): Add stdio.
41745         (configure.ac): Declare witness.
41746         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41747         stdio take care of replacement.
41748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41749         * modules/stdio (Makefile.am): Substitute them.
41750         * lib/stdio.in.h (rename): Declare replacement.
41751         * lib/rename.c (includes): Allow cross-compilation to non-windows
41752         machines.
41753         * doc/posix-functions/rename.texi (rename): Improve
41754         documentation.
41755
41756         stdio: sort witness names
41757         * modules/stdio (Makefile.am): Sort replacements.
41758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41759         * lib/stdio.in.h: Likewise.
41760
41761         getcwd: minor cleanups
41762         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41763         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41764
41765         openat: provide more convenience names
41766         * modules/faccessat (configure.ac): Add C witness.
41767         * lib/unistd.in.h (readlinkat): Fix typo.
41768         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41769         convenience wrappers.
41770         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41771         wrappers in syntax checks.
41772
41773 2009-09-06  Eric Blake  <ebb9@byu.net>
41774
41775         doc: fix comments in recent patches
41776         * lib/faccessat.c: Mention correct function.
41777         * lib/fchmodat.c: Likewise.
41778         * lib/fchownat.c: Likewise.
41779         * lib/symlinkat.c: Likewise.
41780         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41781         constants.
41782
41783         faccessat, symlinkat: continue cleanup of previous patch
41784         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41785         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41786         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41788         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41789         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41790         set.
41791
41792 2009-09-06  Bruno Haible  <bruno@clisp.org>
41793
41794         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41795         (fstatat): Declare if GNULIB_FSTATAT is set.
41796         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41797         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41798         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41799         * modules/fcntl-h (Files): Remove m4/openat.m4.
41800         * modules/sys_stat (Files): Remove m4/openat.m4.
41801         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41802         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41803         * modules/unistd (Files): Remove m4/openat.m4.
41804         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41805         GNULIB_OPENAT.
41806         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41807         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41808         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41809         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41810         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41811         gl_OPENAT_DEFAULTS.
41812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41813         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41814         Don't require gl_OPENAT_DEFAULTS.
41815         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41816         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41817         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41818         (gl_OPENAT_DEFAULTS): Remove macro.
41819
41820 2009-09-06  Bruno Haible  <bruno@clisp.org>
41821
41822         * modules/openat (configure.ac): Remove unneeded witness.
41823
41824 2009-09-06  Bruno Haible  <bruno@clisp.org>
41825
41826         Set errno to ENOSYS when a function is entirely unsupported.
41827         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41828         EOPNOTSUPP.
41829         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41830         * modules/chown (Depends-on): Remove errno.
41831
41832 2009-09-06  Bruno Haible  <bruno@clisp.org>
41833
41834         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41835
41836 2009-09-06  Bruno Haible  <bruno@clisp.org>
41837
41838         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41839
41840 2009-09-06  Ben Pfaff  <blp@gnu.org>
41841             Bruno Haible  <bruno@clisp.org>
41842
41843         Work around a glibc bug in strtok_r.
41844         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41845         Undefine if UNDEFINE_STRTOK_R is set.
41846         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41847         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41848         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41849         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41850         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41851         UNDEFINE_STRTOK_R.
41852         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41853
41854 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41855
41856         exclude: minor fix
41857         * lib/exclude.c: Include wctype.h
41858
41859 2009-09-06  Akim Demaille  <demaille@gostai.com>
41860
41861         bootstrap: improve error message
41862         * build-aux/bootstrap (find_tool): Upon failure, report the list
41863         of candidates.
41864         Honor the initial value of the envvar.
41865
41866 2009-09-05  Eric Blake  <ebb9@byu.net>
41867
41868         symlinkat: new module
41869         * modules/symlinkat: New file.
41870         * lib/symlinkat.c: Likewise.
41871         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41873         * modules/unistd (Makefile.am): Use them.
41874         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41875         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41876         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41877         * MODULES.html.sh (File system functions): Mention module.
41878         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41879         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41880         * modules/symlinkat-tests: New test.
41881         * tests/test-symlinkat.c: Likewise.
41882
41883         test-openat-safer: add more checks
41884         * tests/test-openat-safer.c (main): Check more code paths.
41885
41886 2009-09-05  Jim Meyering  <meyering@redhat.com>
41887
41888         syntax-check: detect unnecessary inclusion of openat.h
41889         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41890
41891 2009-09-05  Bruno Haible  <bruno@clisp.org>
41892
41893         Support towlower, towupper.
41894         * doc/posix-functions/towlower.texi: Mention module wctype.
41895         * doc/posix-functions/towupper.texi: Likewise.
41896         * lib/wctype.in.h (towlower, towupper): New functions.
41897         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41898         (ASSERT): New macro.
41899         (e): New variable.
41900         (main): Test also towlower, towupper. Test WEOF argument.
41901         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41902
41903 2009-09-05  Bruno Haible  <bruno@clisp.org>
41904
41905         Fix conversion behaviour when the input is invalid.
41906         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41907         mark occurring in first pass of indirect conversion.
41908         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41909         input.
41910         Found by clang's static analyzer.
41911
41912 2009-09-05  Bruno Haible  <bruno@clisp.org>
41913
41914         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41915         where direct conversion is possible.
41916
41917 2009-09-04  Eric Blake  <ebb9@byu.net>
41918
41919         openat: fail with ENOENT on empty name
41920         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41921         buffer.
41922
41923         link-follow: fix logic bug in prior patch
41924         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41925         reversed sense of yes and no in prior patch.  Avoid confusing
41926         compilation failure with desired semantics.
41927
41928         link-follow: accommodate mingw and cross-compilation
41929         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41930         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41931         cross-compilation results to -1, to make linkat easier to
41932         implement when cross-compiling.  Trivially support mingw.
41933         * modules/link-follow (configure.ac): Call new name.
41934         * NEWS: Mention this.
41935
41936 2009-09-03  Eric Blake  <ebb9@byu.net>
41937
41938         faccessat: compile replacement
41939         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41940         needed.
41941
41942         fts: fix compilation error
41943         * lib/fts.c (includes): Re-add "openat.h", for
41944         openat_needs_fchdir.
41945
41946         faccessat: new module
41947         * modules/faccessat: New file.
41948         * lib/faccessat.c: Likewise.
41949         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41951         * modules/unistd (Makefile.am): Use it.
41952         * lib/unistd.in.h (faccessat): Declare it.
41953         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41954         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41955         * MODULES.html.sh (File system functions): Mention it.
41956         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41957         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41958
41959         euidaccess: prefer POSIX over non-standard implementation
41960         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41961         * lib/euidaccess.c (euidaccess): Use it if available.
41962
41963         openat: make template easier to use
41964         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41965         AT_FUNC_F2 to be undefined.
41966         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41967         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41968         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41969         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41970         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41971         Likewise.
41972         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41973         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41974         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41975         Likewise.
41976
41977         openat: declare in POSIX headers
41978         * NEWS: Mention this.
41979         * modules/openat (configure.ac): Declare witnesses.
41980         (Depends-on): Add fcntl-h, sys_stat, unistd.
41981         (Include): Mention correct headers.
41982         * modules/fcntl-h (Depends-on): Add link-warning.
41983         (Files): Add openat.m4.
41984         (Makefile.am): Substitute witnesses.
41985         * modules/sys_stat (Files, Makefile.am): Likewise.
41986         * modules/unistd (Files, Makefile.am): Likewise.
41987         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41988         (gl_OPENAT_DEFAULTS): New macro.
41989         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41991         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41992         (SYS_STAT_H): Remove unused variable.
41993         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41994         * lib/fcntl--.h (includes): Remove unneeded header.
41995         * lib/openat-safer.c (includes): Likewise.
41996         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41997         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41998         appropriate headers.
41999         (__OPENAT_PREFIX): Delete.
42000         * lib/fcntl.in.h (openat): Provide declaration.
42001         (AT_FDCWD): Fix Solaris bug.
42002         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
42003         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
42004         * lib/fchmodat.c (includes):  Adjust to find declaration.
42005         * lib/fchownat.c (includes): Likewise.
42006         * lib/mkdirat.c (includes): Likewise.
42007         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42008         still visible.
42009
42010 2009-09-02  Eric Blake  <ebb9@byu.net>
42011
42012         errno: use consistently
42013         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42014         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42015         * lib/canonicalize.c (ELOOP): Likewise.
42016         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42017         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42018         * lib/lchown.c (EOPNOTSUPP): Likewise.
42019         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42020         * lib/savewd.c (ESTALE): Likewise.
42021         * lib/settime.c (ENOSYS): Likewise.
42022         * lib/utimens.c (ENOSYS): Likewise.
42023         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42024         * lib/chdir-safer.c (ELOOP): Likewise.
42025         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42026         * modules/c-stack (Depends-on): Add errno.
42027         * modules/canonicalize (Depends-on): Likewise.
42028         * modules/chdir-safer (Depends-on): Likewise.
42029         * modules/fdopendir (Depends-on): Likewise.
42030         * modules/inet_ntop (Depends-on): Likewise.
42031         * modules/inet_pton (Depends-on): Likewise.
42032         * modules/lchown (Depends-on): Likewise.
42033         * modules/openat (Depends-on): Likewise.
42034         * modules/savewd (Depends-on): Likewise.
42035         * modules/settime (Depends-on): Likewise.
42036         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42037
42038         fts: avoid leaking fds
42039         * modules/fts (Depends-on): Add cloexec.
42040         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42041         flag.
42042
42043         fts: make directory fds more robust
42044         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42045         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42046
42047         backupfile, chdir-long, fts, savedir: make safer
42048         * lib/backupfile.c (includes): Use "dirent--.h", since
42049         numbered_backup can write to stderr during readdir.
42050         * lib/savedir.c (includes): Likewise.
42051         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42052         emulation can write to stderr on failure.
42053         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42054         * lib/getcwd.c: Document why opendir_safer is unused.
42055         * lib/glob.c: Likewise.
42056         * lib/scandir.c: Likewise.
42057         * lib/openat-proc.c: Likewise, for open_safer.
42058         * modules/backupfile (Depends-on): Add dirent-safer.
42059         * modules/savedir (Depends-on): Likewise.
42060         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42061         * modules/chdir-long (Depends-on): Add openat-safer.
42062
42063         openat-safer: new module
42064         * modules/openat-safer: New file.
42065         * lib/openat-safer.c: Likewise.
42066         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42067         * lib/fcntl-safer.h (openat_safer): Declare.
42068         * lib/fcntl--.h (openat): Override.
42069         * MODULES.html.sh (File descriptor based I/O): Mention it.
42070         * lib/openat.h: Add double-inclusion guards.
42071         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42072         "fcntl--.h", so we can implement openat.
42073         * modules/openat-safer-tests: New test.
42074         * tests/test-openat-safer.c: New file.
42075
42076         dirent-safer: new module
42077         * modules/dirent-safer: New file.
42078         * lib/dirent--.h: Likewise.
42079         * lib/dirent-safer.h: Likewise.
42080         * lib/opendir-safer.c: Likewise.
42081         * m4/dirent-safer.m4: Likewise.
42082         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42083         * modules/dirent-safer-tests: New test.
42084         * tests/test-dirent-safer.c: New file.
42085         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42086
42087         fdopendir: optimize on mingw
42088         * lib/unistd.in.h (_gl_directory_name): New prototype.
42089         * lib/fchdir.c (_gl_directory_name): Implement it.
42090         (fchdir): Use it to simplify implementation.
42091         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42092         fchdir, when available, to avoid calling [f]chdir().
42093
42094         fdopendir: split into its own module
42095         * lib/openat.c (fdopendir): Move...
42096         * lib/fdopendir.c: ...into new file.
42097         * modules/fdopendir: New module.
42098         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42099         * modules/openat (Depends-on): Add fdopendir.
42100         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42101         fdopendir here.
42102         * modules/savedir (Depends-on): Only need fdopendir, not full
42103         openat.
42104         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42105         * lib/openat.h (fdopendir): Drop prototype.
42106         * lib/dirent.in.h (fdopendir): Provide prototype.
42107         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42108         * modules/dirent (Makefile.am): Substitute them.
42109         * MODULES.html.sh (File system functions): Mention it.
42110         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42111         * modules/fdopendir-tests: New file.
42112         * tests/test-fdopendir.c: Likewise.
42113
42114         fchdir: use more consistent macro convention
42115         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42116         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42117         REPLACE_FCHDIR, rather than relying on config.h macros.
42118         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42119         inside a single make-time REPLACE_FCHDIR block, rather than using
42120         the config.h FCHDIR_REPLACEMENT.
42121         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42122         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42123         Manage fstat replacement.
42124         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42125         REPLACE_FCHDIR.
42126         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42127         (Makefile.am): Substitute REPLACE_FCHDIR.
42128         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42129         FCHDIR_REPLACEMENT.
42130         * lib/dup-safer.c (dup_safer): Likewise.
42131         * lib/dup2.c (rpl_dup2): Likewise.
42132         * lib/dup3.c (rpl_dup3): Likewise.
42133         * lib/open.c (rpl_open): Likewise.
42134
42135         fchdir: simplify error handling, and support dup3
42136         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42137         stdbool, malloc-posix, realloc-posix.
42138         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42139         (ensure_dirs_slot): Return false on allocation failure.
42140         (rpl_dup2): Delete.
42141         (_gl_register_dup): New function.
42142         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
42143         (_gl_register_fd): Close fd on allocation failure.
42144         * lib/fcntl.in.h (_gl_register_fd): Update signature.
42145         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
42146         prototype.
42147         (rpl_dup2_fchdir): Delete prototype.
42148         * lib/open.c (open): Update caller.
42149         * lib/dup2.c (dup2): Track fchdir metadata.
42150         * lib/dup3.c (dup3): Likewise.
42151         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
42152         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
42153
42154 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42155
42156         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
42157         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
42158         don't pass arguments to AC_OUTPUT.
42159
42160 2009-09-02  Bruno Haible  <bruno@clisp.org>
42161
42162         * modules/mkdtemp (License): Relicense under LGPLv2+.
42163         Reported by Paolo Bonzini.
42164
42165 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42166
42167         Replace uses of obsolete autoconf macros in Jim's modules.
42168         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
42169         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
42170         can evoke a warning from autoconf when run with -Wobsolete
42171         enabled.  They were declared obsolete for good reasons (see
42172         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
42173         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
42174         should not continue using the deprecated macros.
42175         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
42176         obsolete Autoconf macros with modern counterparts.
42177         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42178         * m4/dos.m4 (gl_AC_DOS): Likewise.
42179         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42180         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42181         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42182         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42183         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42184         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42185         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42186         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42187         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42188         Likewise.
42189         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42190         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42191         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42192         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42193         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42194         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42195
42196 2009-09-01  Eric Blake  <ebb9@byu.net>
42197
42198         fchdir: fix off-by-one bug in previous patch
42199         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42200         (_gl_unregister_fd): Delete useless if.
42201
42202 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42203
42204         maint.mk: sort the list of syntax-check rules
42205         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42206         easier to get a sense of progress when the rules are run sequentially
42207         and take a long time.
42208
42209 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42210
42211         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42212         * modules/netinet_in: Likewise.
42213         * modules/sys_file: Likewise.
42214         * modules/sys_ioctl: Likewise.
42215         * modules/sys_select: Likewise.
42216         * modules/sys_socket: Likewise.
42217         * modules/sys_stat: Likewise.
42218         * modules/sys_time: Likewise.
42219         * modules/sys_times: Likewise.
42220         * modules/sys_utsname: Likewise.
42221         * modules/sys_wait: Likewise.
42222
42223 2009-09-01  Jim Meyering  <meyering@redhat.com>
42224
42225         fts: help ensure that return values are not ignored
42226         * lib/fts_.h (__GNUC_PREREQ): Define.
42227         (__attribute_warn_unused_result__): Define.
42228         (fts_children, fts_close, fts_open, fts_read): Declare with
42229         __attribute_warn_unused_result__.
42230
42231         fts: fts_close now fails also when closing a dir file descriptor fails
42232         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42233         and propagate to caller, along with errno.
42234
42235         announce-gen: correct formatting in --help output
42236         * build-aux/announce-gen (usage): Move the one-line description in
42237         --help output "up", to where it belongs, just after Usage:.
42238
42239 2009-08-31  Eric Blake  <ebb9@byu.net>
42240
42241         fchdir: port to mingw
42242         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
42243         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
42244         opened, then use a substitute.
42245         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
42246         replacement.
42247         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
42248         (_gl_register_fd): No need to check stat if open already filters
42249         all directories.
42250         (fchdir): Fix error condition to match POSIX.
42251         * modules/fchdir (Depends-on): Add sys_stat.
42252         * doc/posix-functions/open.texi (open): Document the limitation.
42253         * modules/fchdir-tests: New file.
42254         * tests/test-fchdir.c: Likewise.
42255
42256         canonicalize: allow cross-testing from cygwin to mingw
42257         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42258         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42259         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42260         Likewise.
42261         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42262         target does not support symlinks.
42263         * tests/test-canonicalize-lgpl.sh: Likewise.
42264
42265         chown: avoid compilation warning on mingw
42266         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42267         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42268         mingw.
42269         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42270         * modules/chown (Depends-on): Add errno.
42271
42272 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42273
42274         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42275         command.
42276
42277 2009-08-31  Jim Meyering  <meyering@redhat.com>
42278
42279         canonicalize: remove useless initialization
42280         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42281         initialization of local, "end".
42282
42283 2009-08-30  Bruno Haible  <bruno@clisp.org>
42284
42285         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42286         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42287         ENOSYS.
42288
42289 2009-08-30  Bruno Haible  <bruno@clisp.org>
42290
42291         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42292         /usr/xpg4/bin/tr when it exists.
42293         * tests/test-pipe-filter-gi1.sh: Likewise.
42294
42295 2009-08-30  Bruno Haible  <bruno@clisp.org>
42296
42297         Work around deficient /usr/bin/id program on Solaris.
42298         * tests/test-file-has-acl.sh (ID): New variable.
42299         * tests/test-set-mode-acl.sh (ID): Likewise.
42300         * tests/test-copy-acl.sh (ID): Likewise.
42301         * tests/test-copy-file.sh (ID): Likewise.
42302
42303 2009-08-30  Bruno Haible  <bruno@clisp.org>
42304
42305         New module 'xstriconveh'.
42306         * lib/xstriconveh.h: New file.
42307         * lib/xstriconveh.c: New file.
42308         * modules/xstriconveh: New file.
42309
42310 2009-08-30  Bruno Haible  <bruno@clisp.org>
42311
42312         Make it easier to use mem_cd_iconveh.
42313         * lib/striconveh.h (iconveh_t): New type.
42314         (iconveh_open, iconveh_close): New declarations.
42315         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42316         with a single 'const iconveh_t *' argument.
42317         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42318         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42319         with a single 'const iconveh_t *' argument.
42320         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42321         * tests/test-striconveh.c (main): Update.
42322         * NEWS: Mention the change.
42323
42324 2009-08-30  Bruno Haible  <bruno@clisp.org>
42325
42326         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42327         problem.
42328
42329 2009-08-30  Bruno Haible  <bruno@clisp.org>
42330
42331         Work around iconv_open problem on Solaris.
42332         * lib/iconv_open-solaris.gperf: New file.
42333         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42334         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42335         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42336         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42337         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42338         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42339
42340 2009-08-29  Jim Meyering  <meyering@redhat.com>
42341
42342         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42343         * top/maint.mk (cvs-check): Remove target; it was just an alias
42344         to the better-named vc-diff-check.
42345         (maintainer-distcheck): Remove rule.  It was used only from
42346         the (alpha/beta/major) target, and all of its commands but one
42347         were coreutils-specific.
42348         (vc-dist): Remove rule.
42349         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42350         Run vc-diff-check, not vc-dist.
42351         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42352
42353 2009-08-27  Bruno Haible  <bruno@clisp.org>
42354
42355         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42356         of 0.
42357
42358 2009-08-27  Bruno Haible  <bruno@clisp.org>
42359
42360         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42361         compilers.
42362         * doc/func.texi: Document the SunPRO C bug.
42363
42364 2009-08-27  Bruno Haible  <bruno@clisp.org>
42365
42366         Fix link error on Solaris.
42367         * tests/test-parse-duration.c (xstrdup): Remove function.
42368
42369 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42370
42371         ignore-value: handle pointer types, too
42372         * lib/ignore-value.h (__attribute__): Remove definition.
42373         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42374         of a more concise and more-often effective "(void) i" statement.
42375         (ignore_ptr): New function to suppress warnings from functions that
42376         return pointers, and to make it explicit that one function doesn't
42377         handle all cases.
42378
42379 2009-08-25  Bruno Haible  <bruno@clisp.org>
42380
42381         dup2: work around a Linux bug.
42382         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42383         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42384         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42385         Reported by Simon Josefsson.
42386
42387 2009-08-25  Jim Meyering  <meyering@redhat.com>
42388
42389         libguestfs uses gnulib
42390         * users.txt: Add libguestfs.
42391
42392 2009-08-24  Eric Blake  <ebb9@byu.net>
42393
42394         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42395         * lib/pipe2.c (includes): Add binary-io.h.
42396         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42397
42398 2009-08-24  Bruno Haible  <bruno@clisp.org>
42399
42400         Tolerate declared but missing accept4 syscall.
42401         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42402         available.
42403         * lib/sys_socket.in.h (accept4): If the function is already present,
42404         override it.
42405         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42406         * modules/accept4 (Makefile.am): Compile accept4.c always.
42407         Reported by Paolo Bonzini and Eric Blake.
42408
42409 2009-08-23  Bruno Haible  <bruno@clisp.org>
42410
42411         New module 'accept4'.
42412         * lib/sys_socket.in.h (accept4): New declaration.
42413         * lib/accept4.c: New file.
42414         * m4/accept4.m4: New file.
42415         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42416         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42417         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42418         HAVE_ACCEPT4.
42419         * modules/accept4: New file.
42420         * doc/glibc-functions/accept4.texi: Mention the new module.
42421
42422 2009-08-24  Jim Meyering  <meyering@redhat.com>
42423
42424         progname: also set global program_invocation_name, when possible
42425         Before this change, a libtool-enabled program that calls glibc's
42426         error function would report the program name as
42427         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42428         * modules/progname (configure.ac): Check for a declaration of
42429         program_invocation_name.
42430         * lib/progname.c:  Include <errno.h>.
42431         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42432         Set program_invocation_name.
42433
42434 2009-08-23  Bruno Haible  <bruno@clisp.org>
42435
42436         * lib/dup3.c: Include <string.h>.
42437
42438 2009-08-23  Bruno Haible  <bruno@clisp.org>
42439
42440         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42441         * lib/pipe2.c (pipe2): Likewise.
42442         Suggested by Eric Blake.
42443
42444 2009-08-23  Bruno Haible  <bruno@clisp.org>
42445
42446         Tolerate declared but missing dup3 syscall.
42447         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42448         * lib/unistd.in.h (dup3): If the function is already present,
42449         override it.
42450         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42451         * modules/dup3 (Makefile.am): Compile dup3.c always.
42452         Reported by Paolo Bonzini.
42453
42454 2009-08-23  Bruno Haible  <bruno@clisp.org>
42455
42456         Tolerate declared but missing pipe2 syscall.
42457         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42458         available.
42459         * lib/unistd.in.h (pipe2): If the function is already present,
42460         override it.
42461         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42462         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42463         Reported by Paolo Bonzini.
42464
42465 2009-08-23  Bruno Haible  <bruno@clisp.org>
42466
42467         * lib/pipe2.c (pipe2): Move #ifs inside function.
42468
42469 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42470
42471         quotearg: document limitations of quote_these_too
42472         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42473         those limitations are created.
42474         * lib/quotearg.h (set_char_quoting): Document that digits and
42475         letters that are special after backslash are not permitted.
42476         (quotearg_char): Cross-reference set_char_quoting documentation.
42477
42478 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42479
42480         quotearg: implement custom_quoting_style
42481         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42482         right_quote fields.
42483         (set_custom_quoting): New public function.
42484         (quotearg_buffer_restyled): Add left_quote and right_quote
42485         arguments, handle them very much like locale quoting, and update
42486         all uses.
42487         (quotearg_n_custom): New public function.
42488         (quotearg_n_custom_mem): New public function.
42489         (quotearg_custom): New public function.
42490         (quotearg_custom_mem): New public function.
42491         * lib/quotearg.h: Prototype and document new public functions.
42492         (enum quoting_style): For escape_quoting_style and
42493         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42494         ignored even though they're otherwise like c_quoting_style.
42495         Add custom_quoting_style member and document with comparison to
42496         clocale_quoting_style.
42497         * tests/test-quotearg.c (custom_quotes): New array.
42498         (custom_results): New array.
42499         (main): Extend to test custom quoting.
42500
42501 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42502
42503         quotearg: fix right quote escaping when it's in quote_these_too
42504         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42505         quote, be sure to prepend only one backslash.
42506         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42507         (main): Test it.
42508
42509 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42510
42511         quotearg-tests: test escaping of embedded locale quotes
42512         * tests/test-quotearg.c (struct result_strings): Add member for
42513         new input.
42514         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42515         (inputs): Add new input.
42516         (results_g): Add expected results.
42517         (flag_results): Likewise.
42518         (locale_results): Likewise.
42519         (compare_strings): Check those.
42520
42521 2009-08-23  Bruno Haible  <bruno@clisp.org>
42522
42523         Tests for module 'dup3'.
42524         * modules/dup3-tests: New file.
42525         * tests/test-dup3.c: New file.
42526
42527         New module 'dup3'.
42528         * lib/unistd.in.h (dup3): New declaration.
42529         * lib/dup3.c: New file.
42530         * m4/dup3.m4: New file.
42531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42532         HAVE_DUP3.
42533         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42534         * modules/dup3: New file.
42535         * doc/glibc-functions/dup3.texi: Mention the new module.
42536
42537 2009-08-23  Bruno Haible  <bruno@clisp.org>
42538
42539         Tweak the dup2 test.
42540         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42541         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42542         the test file is still empty. Fix argument order of lseek.
42543
42544 2009-08-23  Bruno Haible  <bruno@clisp.org>
42545
42546         Avoid test link errors when the modules getopt-gnu, gettext are used.
42547         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42549
42550 2009-08-23  Bruno Haible  <bruno@clisp.org>
42551
42552         Fix getdtablesize() on mingw.
42553         * lib/getdtablesize.c (getdtablesize): Implement differently.
42554         * lib/unistd.in.h (getdtablesize): Improve comment.
42555
42556 2009-08-23  Bruno Haible  <bruno@clisp.org>
42557
42558         New module 'mkostemp'.
42559         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42560         * lib/stdlib.in.h (mksotemp): New declaration.
42561         * lib/mkostemp.c: New file, from glibc with modifications.
42562         * lib/tempname.h (GT_FILE): Remove outdated comment.
42563         (gen_tempname): Add flags argument.
42564         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42565         (__GT_FILE): Map to 1.
42566         (small_open, large_open): Remove macros.
42567         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42568         * lib/mkstemp.c (mkstemp): Update.
42569         * lib/mkdtemp.c (mkdtemp): Likewise.
42570         * m4/mkostemp.m4: New file.
42571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42572         HAVE_MKOSTEMP.
42573         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42574         HAVE_MKOSTEMP.
42575         * modules/mkostemp: New file, based on modules/mkstemp.
42576         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42577         * NEWS: Mention the change.
42578
42579 2009-08-23  Bruno Haible  <bruno@clisp.org>
42580
42581         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42582         Reported by Eric Blake.
42583
42584 2009-08-23  Bruno Haible  <bruno@clisp.org>
42585
42586         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42587         Reported by Eric Blake.
42588
42589 2009-08-23  Bruno Haible  <bruno@clisp.org>
42590
42591         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42592         * modules/pipe2 (Depends-on): Likewise.
42593
42594 2009-08-23  Eric Blake  <ebb9@byu.net>
42595
42596         fcntl-h: add O_TTY_INIT support
42597         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42598         * tests/test-fcntl-h.c (o): Test it.
42599         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42600
42601         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42602         * modules/fcntl: Move <fcntl.h> header replacement...
42603         * modules/fcntl-h: ...to new name, so as not to collide with
42604         like-named function.
42605         * tests/test-fcntl.c: Rename...
42606         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42607         * modules/fcntl-tests: Rename...
42608         * modules/fcntl-h-tests: ...to this.  Update test file name.
42609         * modules/chdir-long (Depends-on): Update clients.
42610         * modules/chdir-safer (Depends-on): Likewise.
42611         * modules/fcntl-safer (Depends-on): Likewise.
42612         * modules/fts (Depends-on): Likewise.
42613         * modules/mkancesdirs (Depends-on): Likewise.
42614         * modules/mkdir-p (Depends-on): Likewise.
42615         * modules/open (Depends-on): Likewise.
42616         * modules/savewd (Depends-on): Likewise.
42617         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42618         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42619
42620 2009-08-22  Bruno Haible  <bruno@clisp.org>
42621
42622         * modules/binary-io (License): Relicense under LGPL.
42623         * modules/pipe2 (License): Likewise.
42624
42625 2009-08-22  Bruno Haible  <bruno@clisp.org>
42626
42627         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42628         return value.
42629         * lib/pipe-filter-gi.c (filter_init): Likewise.
42630         Reported by Eric Blake.
42631
42632 2009-08-22  Bruno Haible  <bruno@clisp.org>
42633
42634         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42635         * modules/pipe (Depends-on): Add pipe2.
42636
42637 2009-08-22  Bruno Haible  <bruno@clisp.org>
42638
42639         Tests for module 'pipe2'.
42640         * modules/pipe2-tests: New file.
42641         * tests/test-pipe2.c: New file.
42642
42643         New module 'pipe2'.
42644         * lib/unistd.in.h (pipe2): New declaration.
42645         * lib/pipe2.c: New file.
42646         * m4/pipe2.m4: New file.
42647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42648         HAVE_PIPE2.
42649         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42650         * modules/pipe2: New file.
42651         * doc/glibc-functions/pipe2.texi: Mention the new module.
42652
42653 2009-08-22  Bruno Haible  <bruno@clisp.org>
42654
42655         Reference some new glibc functions.
42656         * doc/glibc-functions/accept4.texi: New file.
42657         * doc/glibc-functions/dup3.texi: New file.
42658         * doc/glibc-functions/mkostemp.texi: New file.
42659         * doc/glibc-functions/pipe2.texi: New file.
42660         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42661         (Glibc sys/socket.h): Refer to accept4.
42662         (Glibc unistd.h): Refer to dup3, pipe2.
42663         Reported by Eric Blake.
42664
42665 2009-08-22  Jim Meyering  <meyering@redhat.com>
42666             Bruno Haible  <bruno@clisp.org>
42667
42668         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42669         This makes it so packages using automake-1.11's silent-rules option
42670         can print e.g., a single "GEN    configmake.h" line, rather than
42671         the 30+ statements that perform the job.  If you want to see the
42672         actual commands, you can still run "make V=1".
42673         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42674         so that make output is abbreviated when those variables are defined
42675         appropriately.
42676         * modules/argz: Likewise.
42677         * modules/arpa_inet: Likewise.
42678         * modules/byteswap: Likewise.
42679         * modules/configmake: Likewise.
42680         * modules/dirent: Likewise.
42681         * modules/errno: Likewise.
42682         * modules/fcntl: Likewise.
42683         * modules/float: Likewise.
42684         * modules/fnmatch: Likewise.
42685         * modules/getopt-posix: Likewise.
42686         * modules/glob: Likewise.
42687         * modules/iconv_open: Likewise.
42688         * modules/inttypes: Likewise.
42689         * modules/localcharset: Likewise.
42690         * modules/locale: Likewise.
42691         * modules/math: Likewise.
42692         * modules/netdb: Likewise.
42693         * modules/netinet_in: Likewise.
42694         * modules/poll: Likewise.
42695         * modules/posix_spawnp-tests: Likewise.
42696         * modules/sched: Likewise.
42697         * modules/search: Likewise.
42698         * modules/selinux-h: Likewise.
42699         * modules/signal: Likewise.
42700         * modules/spawn: Likewise.
42701         * modules/stdarg: Likewise.
42702         * modules/stdbool: Likewise.
42703         * modules/stddef: Likewise.
42704         * modules/stdint: Likewise.
42705         * modules/stdio: Likewise.
42706         * modules/stdlib: Likewise.
42707         * modules/string: Likewise.
42708         * modules/strings: Likewise.
42709         * modules/sys_file: Likewise.
42710         * modules/sys_ioctl: Likewise.
42711         * modules/sys_select: Likewise.
42712         * modules/sys_socket: Likewise.
42713         * modules/sys_stat: Likewise.
42714         * modules/sys_time: Likewise.
42715         * modules/sys_times: Likewise.
42716         * modules/sys_utsname: Likewise.
42717         * modules/sys_wait: Likewise.
42718         * modules/sysexits: Likewise.
42719         * modules/time: Likewise.
42720         * modules/unistd: Likewise.
42721         * modules/wchar: Likewise.
42722         * modules/wctype: Likewise.
42723
42724 2009-08-22  Jim Meyering  <meyering@redhat.com>
42725
42726         announce-gen: detect write failure
42727         * build-aux/announce-gen: Add Coda at end.
42728         Remove equivalent-but-more-verbose block at top.
42729
42730 2009-08-19  Akim Demaille  <demaille@gostai.com>
42731
42732         bootstrap: --help to stdout.
42733         * bootstrap (usage): Don't send --help to stderr.
42734         Use a here doc instead of a long string.
42735
42736 2009-08-21  Eric Blake  <ebb9@byu.net>
42737
42738         test-popen-safer: split from test-popen
42739         * tests/test-popen.c (main): Move...
42740         * tests/test-popen.h: ...into new file.
42741         * tests/test-popen-safer2.c: New file.
42742         * modules/popen-tests (Files): Add test-popen.h.
42743         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42744         Suggested by Bruno Haible.
42745
42746         test-fcntl-safer: split from test-open
42747         * tests/test-open.c (main): Move...
42748         * tests/test-open.h: ...into new file.
42749         * tests/test-fcntl-safer.c: New file.
42750         * modules/open-tests (Files): Add test-open.h.
42751         * modules/fcntl-safer-tests: New file.
42752         Suggested by Bruno Haible.
42753
42754         test-fopen-safer: split from test-fopen
42755         * tests/test-fopen.c (main): Move...
42756         * tests/test-fopen.h: ...into new file.
42757         * tests/test-fopen-safer.c: New file.
42758         * modules/fopen-tests (Files): Add test-fopen.h.
42759         * modules/fopen-safer-tests: New file.
42760         Suggested by Bruno Haible.
42761
42762 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42763
42764         popen-safer: test O_CLOEXEC at run-time.
42765         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42766
42767 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42768
42769         fcntl: move more flags to the header
42770         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42771         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42772         * lib/fcntl.in.h: Do both things here.
42773
42774 2009-08-21  Jim Meyering  <meyering@redhat.com>
42775
42776         consistently remove $@-t before redirecting to it
42777         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42778         * modules/alloca-opt: Likewise.
42779         * modules/byteswap: Likewise.
42780         * modules/fnmatch: Likewise.
42781         * modules/getopt-posix: Likewise.
42782         * modules/glob: Likewise.
42783         * modules/poll: Likewise.
42784         * modules/posix_spawnp-tests: Likewise.
42785         * modules/sys_socket: Likewise.
42786         * modules/sysexits: Likewise.
42787
42788 2009-08-21  Eric Blake  <ebb9@byu.net>
42789
42790         popen: simplify access to original popen
42791         * lib/popen.c (rpl_popen): No need to worry about popen being a
42792         macro.
42793         Reported by Bruno Haible.
42794
42795 2009-08-20  Eric Blake  <ebb9@byu.net>
42796
42797         build: avoid some compiler warnings
42798         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42799         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42800         type.
42801         (new_exclude_segment, excluded_file_pattern_p)
42802         (excluded_file_name_p): Reduce scope.
42803         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42804         old-style declaration.
42805
42806 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42807
42808         * tests/test-exclude1.sh: Handle Windows EOL.
42809         * tests/test-exclude2.sh: Likewise.
42810         * tests/test-exclude3.sh: Likewise.
42811         * tests/test-exclude4.sh: Likewise.
42812         * tests/test-exclude5.sh: Likewise.
42813         * tests/test-exclude6.sh: Likewise.
42814         * tests/test-exclude7.sh: Likewise.
42815
42816 2009-08-19  Akim Demaille  <demaille@gostai.com>
42817
42818         bootstrap: find sha1sum when named gsha1sum.
42819         * bootstrap (find_tool): New.
42820         ($SHA1SUM): New.
42821         Use it.
42822
42823 2009-08-20  Jim Meyering  <meyering@redhat.com>
42824
42825         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42826         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42827         expression that converts "." in a file name to "\." in the resulting
42828         regexp.  Start with a dummy statement, so that prior shell variable
42829         definitions are expanded portably.  Reported by Simon Josefsson.
42830
42831 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42832
42833         Fix polling for writeability of a screen buffer.
42834         * lib/poll.c: Distinguish input and screen buffers for the
42835         Win32 implementation.
42836         * lib/select.c: Likewise.
42837
42838 2009-08-19  Eric Blake  <ebb9@byu.net>
42839
42840         popen-safer: prevent popen from clobbering std descriptors
42841         * modules/popen-safer: New file.
42842         * lib/popen-safer.c: Likewise.
42843         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42844         * lib/stdio--.h (popen): Provide override.
42845         * lib/stdio-safer.h (popen_safer): Provide declaration.
42846         * tests/test-popen.c (includes): Partially test this.
42847         * modules/popen-safer-tests: New file, for more tests.
42848         * tests/test-popen-safer.c: Likewise.
42849         * MODULES.html.sh (file stream based Input/Output): Mention it.
42850
42851         tests: test some of the *-safer modules
42852         * modules/fopen-safer (Depends-on): Add fopen.
42853         * modules/fcntl-safer (Depends-on): Add fcntl.
42854         * modules/stdlib-safer (Depends-on): Add stdlib.
42855         (configure.ac): Set indicator.
42856         * modules/unistd-safer (configure.ac): Likewise.
42857         * modules/tmpfile-safer (configure.ac): Likewise.
42858         (Depends-on): Add tmpfile.
42859         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42860         active.
42861         * tests/test-fopen.c (includes): Test safer versions when they are
42862         in use.
42863         * tests/test-open.c (includes): Likewise.
42864
42865         popen: fix cygwin 1.5 bug when stdin closed
42866         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42867         * modules/popen: New file.
42868         * modules/popen-tests: Likewise.
42869         * tests/test-popen.c: Likewise.
42870         * m4/popen.m4: Likewise.
42871         * lib/popen.c: Likewise.
42872         * lib/stdio.in.h (popen): New declaration.
42873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42874         * modules/stdio (Makefile.am): Likewise.
42875         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42876
42877 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42878
42879         maint.mk: give full control over update-copyright exclusions
42880         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42881         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42882         (update-copyright): Don't force inclusion of top-level
42883         ChangeLog.  Don't force exclusion of all COPYING files, but make
42884         them the default exclusion instead.
42885
42886 2009-08-16  Bruno Haible  <bruno@clisp.org>
42887
42888         Fix test failures on Solaris 10.
42889         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42890         tests when Solaris iconv() is used.
42891         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42892         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42893         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42894         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42895         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42896
42897 2009-08-16  Bruno Haible  <bruno@clisp.org>
42898
42899         Fix test failures on Solaris 10.
42900         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42901         'tr' program and pass it as first argument.
42902         * tests/test-pipe-filter-gi1.sh: Likewise.
42903         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42904         program as first argument.
42905         * tests/test-pipe-filter-gi1.c (main): Likewise.
42906
42907 2009-08-16  Eric Blake  <ebb9@byu.net>
42908
42909         fpurge: fix previous commits
42910         * modules/fpurge (Makefile.am): Make replacement conditional,
42911         partially reverting 2007-04-29 change; missed in previous
42912         attempt.
42913         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42914         is missing.
42915
42916 2009-08-16  Bruno Haible  <bruno@clisp.org>
42917
42918         Clarify fpurge's effect on the file position.
42919         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42920         * tests/test-fpurge.c (main): Make a second pass for checking the file
42921         position.
42922
42923 2009-08-16  Bruno Haible  <bruno@clisp.org>
42924
42925         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42926         declaration of fpurge is missing.
42927         * tests/test-fpurge.c (main): Check that the file has not more contents
42928         than expected. Close the file before removing it.
42929
42930 2009-08-15  Eric Blake  <ebb9@byu.net>
42931
42932         fpurge: don't wrap working cygwin implementation
42933         * lib/fpurge.c (fpurge): Fix comment typo.
42934         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42935         1.7 to avoid replacement.
42936         * tests/test-fpurge.c (main): Enhance test.
42937
42938 2009-08-15  Eric Blake  <ebb9@byu.net>
42939         and Jim Meyering  <meyering@redhat.com>
42940
42941         test-update-copyright: skip if perl is insufficient
42942         * tests/test-update-copyright.sh: Failure to run maintainer tool
42943         should not cause testsuite failure on cygwin 1.5.
42944
42945 2009-08-14  Eric Blake  <ebb9@byu.net>
42946
42947         doc: mention more functions added in cygwin 1.7.0
42948         * doc/posix-headers/limits.texi (limits.h): Update for recent
42949         cygwin additions.
42950         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42951         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42952         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42953         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42954         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42955
42956 2009-08-14  Eric Blake  <ebb9@byu.net>
42957
42958         maint.mk: simplify update-copyright rule
42959         * top/maint.mk (update-copyright-local): Delete, and document how
42960         to do it in cfg.mk instead.
42961         (update-copyright-exclude-regexp): Delete, and document how to do
42962         it in .x-update-copyright instead.
42963         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42964         exclude ChangeLog.
42965
42966 2009-08-14  Bruno Haible  <bruno@clisp.org>
42967
42968         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42969
42970 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42971
42972         maint.mk: support update-copyright-env
42973         * top/maint.mk (update-copyright-env): Define place-holder.
42974         (update-copyright): Expand $(update-copyright-env) before
42975         invoking update-copyright.
42976
42977 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42978
42979         update-copyright: implement forced reformatting
42980         * build-aux/update-copyright: Implement and document
42981         UPDATE_COPYRIGHT_FORCE.
42982         * tests/test-update-copyright.sh: Test it.
42983
42984 2009-08-14  Eric Blake  <ebb9@byu.net>
42985         and Bruno Haible  <bruno@clisp.org>
42986
42987         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42988         * tests/test-locale.c: Revert previous patch related to NULL.
42989         * tests/test-stdio.c: Likewise.
42990         * tests/test-stdlib.c: Likewise.
42991         * tests/test-string.c: Likewise.
42992         * tests/test-unistd.c: Likewise.
42993         * modules/time-tests (Depends-on): Add verify.
42994         * modules/wchar-tests (Depends-on): Likewise.
42995         * tests/test-time.c: Test for NULL compliance.
42996         * tests/test-wchar.c: Likewise.
42997         * modules/locale (Depends-on): Add stddef.
42998         * modules/stdio (Depends-on): Likewise.
42999         * modules/stdlib (Depends-on): Likewise.
43000         * modules/string (Depends-on): Likewise.
43001         * modules/time (Depends-on): Likewise.
43002         * modules/unistd (Depends-on): Likewise.
43003         * modules/wchar (Depends-on): Likewise.
43004         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
43005         * lib/stdlib.in.h (includes): Likewise.
43006         * lib/string.in.h (includes): Likewise.
43007         * lib/time.in.h (includes): Likewise.
43008         * lib/unistd.in.h (includes): Likewise.
43009         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43010         replaced.
43011         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43012         * m4/stddef_h.m4: New file.
43013         * modules/stddef: Likewise.
43014         * lib/stddef.in.h: Likewise.
43015         * modules/stddef-tests: Likewise.
43016         * tests/test-stddef.c: Likewise.
43017         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43018         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43019         * doc/posix-headers/locale.texi (locale.h): Likewise.
43020         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43021         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43022         * doc/posix-headers/string.texi (string.h): Likewise.
43023         * doc/posix-headers/time.texi (time.h): Likewise.
43024         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43025         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43026
43027 2009-08-14  Eric Blake  <ebb9@byu.net>
43028
43029         doc: improve git diff of texinfo files
43030         * .gitattributes: Add rule for *.texi files, with hint on how to
43031         use it.
43032         Copied from m4, and based on a report by Bruno Haible.
43033
43034 2009-08-14  Bruno Haible  <bruno@clisp.org>
43035
43036         Disable multithread support by default on Cygwin 1.5.x for real.
43037         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43038
43039 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43040
43041         update-copyright: much ado about intervals
43042         * build-aux/update-copyright: Implement and document
43043         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43044         of copyright year intervals.
43045         Also, document UPDATE_COPYRIGHT_YEAR.
43046         * tests/test-update-copyright.sh: Test it.
43047
43048         update-copyright: convert 2-digit to 4-digit years
43049         * build-aux/update-copyright: Implement and document.
43050         * tests/test-update-copyright.sh: Update.
43051
43052 2009-08-14  Jim Meyering  <meyering@redhat.com>
43053
43054         test-exclude: avoid coreutils "make check" failure
43055         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43056         just as in test-argmatch.c.
43057
43058 2009-08-13  Eric Blake  <ebb9@byu.net>
43059
43060         test-dup2: fix bad assumption
43061         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43062         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43063
43064         test-version-etc: fix CRLF portability issue
43065         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43066         recognize \r.
43067         * tests/test-argp-version-etc-1.sh: Likewise.
43068
43069         getopt: update client modules
43070         * modules/argp (Depends-on): Use getopt-gnu.
43071         * modules/git-merge-changelog (Depends-on): Likewise.
43072         * modules/long-options (Depends-on): Likewise.
43073         * modules/xstrtol (Depends-on): Likewise.
43074
43075 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43076
43077         * tests/test-version-etc.sh: Don't fail on different
43078         project/version.  Don't fail on CRLF differences.  Rewrite to use
43079         multiple -e instead of multiple sed forks, suggested by Eric Blake
43080         <ebb9@byu.net>.
43081         * tests/test-argp-version-etc-1.sh: Likewise.
43082
43083 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43084
43085         * tests/test-version-etc.sh: Don't fail on different
43086         project/version.
43087
43088 2009-08-12  Bruno Haible  <bruno@clisp.org>
43089
43090         Tests for modules 'getopt-posix', 'getopt-gnu'.
43091         * modules/getopt-posix-tests: New file.
43092         * tests/test-getopt.c: New file.
43093         * tests/test-getopt.h: New file.
43094         * tests/test-getopt_long.h: New file.
43095
43096         New modules 'getopt-posix', 'getopt-gnu'.
43097         * modules/getopt-gnu: New file, renamed from modules/getopt.
43098         * modules/getopt-posix: New file.
43099         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43100         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43101         (gl_GETOPT): Remove macro.
43102         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43103         Disable the test against BSD systems that declare optreset. Test
43104         against mingw bug. Test against lack of support of optional arguments
43105         on many platforms.
43106         * doc/glibc-headers/getopt.texi: Update module name and list of
43107         relevant platforms.
43108         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43109         'getopt-gnu' and more portability problems.
43110         * NEWS: Mention the changes.
43111
43112 2009-08-12  Bruno Haible  <bruno@clisp.org>
43113
43114         Ensure that optarg etc. get declared by <unistd.h>.
43115         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43116         AC_USE_SYSTEM_EXTENSIONS.
43117         * modules/getopt (Depends-on): Add 'extensions'.
43118
43119 2009-08-12  Bruno Haible  <bruno@clisp.org>
43120
43121         Avoid test link errors.
43122         * modules/pipe-filter-ii-tests (Makefile.am): Define
43123         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43124         * modules/pipe-filter-gi-tests (Makefile.am): Define
43125         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43126         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43127
43128 2009-08-12  Bruno Haible  <bruno@clisp.org>
43129
43130         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43131         gl_GETOPT_SUBSTITUTE before.
43132         (gl_GETOPT): Use it.
43133         * m4/argp.m4 (gl_ARGP): Update.
43134         Reported by Sergey Poznyakoff.
43135
43136         * m4/getopt.m4: Reorder macros.
43137         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43138         (gl_GETOPT_SUBSTITUTE): Remove macro.
43139
43140 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43141
43142         Minor improvement in gitlog-to-changelog
43143
43144         * build-aux/gitlog-to-changelog: New option `--format' makes
43145         output format string configurable.
43146
43147 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43148
43149         Optimize exclude: use hash tables for non-wildcard patterns.
43150
43151         * lib/exclude.c: Include hash.h and mbuiter.h
43152         (struct exclude_pattern, exclude_segment): New data types.
43153         (struct exclude): Rewrite.
43154         (fnmatch_pattern_has_wildcards): New function.
43155         (new_exclude_segment, free_exclude_segment): New functions.
43156         (excluded_file_pattern_p, excluded_file_name_p): New functions.
43157         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
43158         * lib/exclude.h (is_fnmatch_pattern): New prototype.
43159         * modules/exclude: Depend on hash and mbuiter.
43160
43161         * modules/exclude-tests: New file.
43162         * tests/test-exclude.c: New file.
43163         * tests/test-exclude1.sh: New file.
43164         * tests/test-exclude2.sh: New file.
43165         * tests/test-exclude3.sh: New file.
43166         * tests/test-exclude4.sh: New file.
43167         * tests/test-exclude5.sh: New file.
43168         * tests/test-exclude6.sh: New file.
43169         * tests/test-exclude7.sh: New file.
43170
43171 2009-08-12  Bruno Haible  <bruno@clisp.org>
43172
43173         Ensure that getopt() gets declared by <unistd.h>.
43174         * lib/unistd.in.h: Conditionally include getopt.h.
43175         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
43176         Set GNULIB_UNISTD_H_GETOPT.
43177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43178         GNULIB_UNISTD_H_GETOPT.
43179         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43180
43181 2009-08-12  Bruno Haible  <bruno@clisp.org>
43182
43183         Clarify logic.
43184         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43185         gl_replace_getopt instead of GETOPT_H.
43186
43187 2009-08-12  Bruno Haible  <bruno@clisp.org>
43188
43189         * m4/getopt.m4: Add comments.
43190
43191 2009-08-12  Bruno Haible  <bruno@clisp.org>
43192
43193         Disable multithread support by default on Cygwin 1.5.x.
43194         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43195         set gl_use_threads=no if not specified otherwise.
43196
43197 2009-08-11  Bruno Haible  <bruno@clisp.org>
43198
43199         Avoid compilation error on NetBSD 5.0.
43200         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43201         * tests/test-stdio.c: Likewise.
43202         * tests/test-stdlib.c: Likewise.
43203         * tests/test-string.c: Likewise.
43204         * tests/test-unistd.c: Likewise.
43205         Reported by Greg Troxel <gdt@ir.bbn.com>
43206         at <https://savannah.gnu.org/support/?106973>.
43207
43208 2009-08-11  Bruno Haible  <bruno@clisp.org>
43209
43210         * modules/dup2-tests (Depends-on): Remove close.
43211
43212         Undo 2009-07-19 commit.
43213         * modules/acl-tests (Depends-on): Remove close.
43214         * modules/binary-io-tests (Depends-on): Likewise.
43215         * modules/closein-tests (Depends-on): Likewise.
43216         * modules/flock-tests (Depends-on): Likewise.
43217         * modules/fsync-tests (Depends-on): Likewise.
43218         * modules/lseek-tests (Depends-on): Likewise.
43219         * modules/pipe-tests (Depends-on): Likewise.
43220         * modules/posix_spawn-tests (Depends-on): Likewise.
43221         * modules/posix_spawnp-tests (Depends-on): Likewise.
43222         * modules/stat-time-tests (Depends-on): Likewise.
43223         * modules/yesno-tests (Depends-on): Likewise.
43224
43225 2009-08-10  Bruno Haible  <bruno@clisp.org>
43226
43227         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43228
43229 2009-08-10  Bruno Haible  <bruno@clisp.org>
43230
43231         Fix a gcc warning.
43232         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43233
43234 2009-08-10  Bruno Haible  <bruno@clisp.org>
43235
43236         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43237         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43238         not only the first time.
43239         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
43240         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
43241         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
43242         is 1, not only the the first time.
43243
43244 2009-08-10  Bruno Haible  <bruno@clisp.org>
43245
43246         Make it possible to use module 'gethostname' without module 'close'.
43247         * lib/unistd.in.h (close): Evoke a link error only if
43248         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43250         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43251         * modules/unistd (Makefile.am): Substitute
43252         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43253         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43254         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43255         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43256         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43257         * modules/sys_ioctl (Makefile.am): Substitute
43258         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43259         * modules/socket (configure.ac): On native Windows, set
43260         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43261         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43262         Reported by Sam Steingold <sds@gnu.org>.
43263
43264 2009-08-10  Bruno Haible  <bruno@clisp.org>
43265
43266         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43267         * modules/ioctl (configure.ac): Likewise.
43268
43269 2009-08-10  Bruno Haible  <bruno@clisp.org>
43270
43271         Avoid collision between gnulib wrapper and libintl wrapper.
43272         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43273         already defined in intl/printf.c.
43274         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43275         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43276
43277 2009-08-09  Bruno Haible  <bruno@clisp.org>
43278
43279         Make <sys/select.h> really self-contained, also on Solaris 10.
43280         * lib/sys_select.in.h: Include <string.h>.
43281         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43282         Solaris 10 problem.
43283         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43284         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43285         Reported by Jim Meyering.
43286
43287 2009-08-09  Bruno Haible  <bruno@clisp.org>
43288
43289         Avoid warnings from 'aclocal' that are due to a use of macro name
43290         AM_XGETTEXT_OPTION that is not defined in automake.
43291         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43292         automake.
43293         * modules/error (configure.ac): Likewise.
43294         * modules/propername (configure.ac): Likewise.
43295         * modules/vasprintf (configure.ac): Likewise.
43296         * modules/verror (configure.ac): Likewise.
43297         * modules/xprintf (configure.ac): Likewise.
43298         * modules/xvasprintf (configure.ac): Likewise.
43299
43300 2009-08-08  Bruno Haible  <bruno@clisp.org>
43301
43302         Avoid compilation error in C++ mode.
43303         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43304         Reported by Sam Steingold <sds@gnu.org>.
43305
43306 2009-08-08  Bruno Haible  <bruno@clisp.org>
43307
43308         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43309         for the various Unix platforms.
43310         * doc/posix-headers/limits.texi: Update platforms list regarding
43311         HOST_NAME_MAX.
43312         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43313
43314 2009-08-07  Jim Meyering  <meyering@redhat.com>
43315
43316         selinux-at: fix typo in a comment
43317         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43318         Spotted by Paolo Bonzini.
43319
43320         selinux-at: remove redundant m4 code, add documentation
43321         * modules/selinux-at (configure.ac): Remove redundant code.
43322         LIB_SELINUX is already set via the dependent module, selinux-h.
43323         (Include): Add quotes around selinux-at.h.
43324         * lib/selinux-at.h: Add documentation.
43325         Reported by Bruno Haible in
43326         http://marc.info/?l=gnulib-bug&m=124958988300749
43327
43328 2009-08-07  Bruno Haible  <bruno@clisp.org>
43329
43330         Avoid link error on MacOS X 10.3 and 10.4.
43331         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43332         on non-ELF systems.
43333         * lib/argp-pv.c (argp_program_version): Likewise.
43334         Reported by Simon Josefsson.
43335
43336 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43337
43338         * tests/test-version-etc.sh: Use $EXEEXT.
43339
43340 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43341
43342         update-copyright: update documentation to point to maint.mk
43343         * build-aux/update-copyright: Here.
43344
43345 2009-08-06  Jim Meyering  <meyering@redhat.com>
43346
43347         maint.mk: support update-copyright-local
43348         * top/maint.mk (update-copyright-local): Define place-holder.
43349         (update-copyright): Depend on $(update-copyright-local).
43350
43351 2009-08-06  Jim Meyering  <meyering@redhat.com>
43352
43353         selinux-at: new module
43354         Initially written for coreutils, this module will soon be
43355         used by findutils, too.
43356         * MODULES.html.sh [Misc]: Add selinux-at.
43357         * lib/selinux-at.h: New file, from coreutils.
43358         * lib/selinux-at.c: Likewise.
43359         * modules/selinux-at: Likewise.
43360         (License): Change from LGPL to GPL, since it depends
43361         on the GPL'd openat module.
43362
43363         doc: update README
43364         * README: Remove references to cogito.
43365         Remove cvs-repo-updating instructions from 2007.
43366         Don't imply that CVS is better if you have limited disk space.
43367
43368 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43369
43370         update-copyright: support C-style comments
43371         * build-aux/update-copyright: Implement and document.
43372         * tests/test-update-copyright.sh: Test.
43373
43374 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43375
43376         update-copyright: support omitted "(C)"
43377         * build-aux/update-copyright: Implement and document.  Also,
43378         allow variable whitespace before "(C)".
43379         * tests/test-update-copyright.sh: Test.
43380
43381 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43382
43383         update-copyright: don't trip on non-FSF copyright statements
43384         * build-aux/update-copyright: Fix so that the first correctly
43385         formatted FSF copyright statement is recognized no matter what
43386         appears before it.  Update documentation.
43387         * tests/test-update-copyright.sh: Test that.
43388
43389 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43390
43391         update-copyright: clean up code a little
43392         * build-aux/update-copyright: Append "_re" to the name of any
43393         variable holding a regular expression.
43394         Replace "old" and "new" with "stmt" in variable names.
43395         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43396         handled correctly.
43397         Format code more consistently.
43398
43399 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43400
43401         update-copyright-tests: improve portability
43402         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43403         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43404
43405 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43406
43407         update-copyright: support @copyright{} and &copy;
43408         * build-aux/update-copyright: Implement and document.
43409         * tests/test-update-copyright.sh: Test.
43410
43411 2009-08-04  Jim Meyering  <meyering@redhat.com>
43412
43413         update-copyright-tests: correctly test EOL=\r\n handling
43414         * tests/test-update-copyright.sh: Put \r at the end of some lines
43415         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43416
43417         maint.mk: make update-copyright exclusion list more configurable
43418         * top/maint.mk (update-copyright): Default to excluding COPYING,
43419         but allow an override, in case someone does want to update that file.
43420
43421         maint.mk: don't update copyright date in COPYING
43422         * top/maint.mk (update-copyright): Exclude COPYING.
43423
43424         maint.mk: add a copyright-updating rule
43425         * top/maint.mk (update-copyright): New rule.
43426         Derived from coreutils/Makefile.am.
43427
43428         update-copyright: rename some variables
43429         * build-aux/update-copyright: Rename a few variables for clarity.
43430         Tweak syntax.  List Joel E. Denny as coauthor.
43431
43432 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43433
43434         update-copyright: fix bug for 2-digit last year and add tests
43435         * build-aux/update-copyright: Fix bug.
43436         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43437         specified.
43438         * modules/update-copyright-tests: New
43439         * tests/test-update-copyright.sh: New.
43440
43441 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43442
43443         update-copyright: handle leading tabs in line prefix
43444         * build-aux/update-copyright: Count leading tabs as 8 spaces
43445         when computing margin.  This helps with the formatting of
43446         ChangeLogs, for example.
43447         Fix documentation a little.
43448
43449 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43450
43451         update-copyright: support EOL=\r\n
43452         * build-aux/update-copyright: Implement that.
43453
43454 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43455
43456         update-copyright: automatically format copyright statements
43457         * build-aux/update-copyright: Implement that.
43458         Also, be a little more predictable and safer by always failing
43459         when the full copyright format is not perfectly recognized as an
43460         unbroken whole.  Discussed at
43461         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43462         Rewrite documentation.
43463
43464 2009-08-03  Bruno Haible  <bruno@clisp.org>
43465
43466         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43467
43468 2009-08-02  Bruno Haible  <bruno@clisp.org>
43469
43470         Tests for module 'uname'.
43471         * modules/uname-tests: New file.
43472         * tests/test-uname.c: New file.
43473
43474         New module 'uname'.
43475         * lib/uname.c: New file.
43476         * m4/uname.m4: New file.
43477         * modules/uname: New file.
43478         * doc/posix-functions/uname.texi: Mention the new module.
43479
43480 2009-08-02  Bruno Haible  <bruno@clisp.org>
43481
43482         Tests for module 'sys_utsname'.
43483         * modules/sys_utsname-tests: New file.
43484         * tests/test-sys_utsname.c: New file.
43485
43486         New module 'sys_utsname'.
43487         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43488         * m4/sys_utsname_h.m4: New file.
43489         * modules/sys_utsname: New file.
43490         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43491
43492 2009-08-02  Bruno Haible  <bruno@clisp.org>
43493
43494         Implicitly initialize the sockets library.
43495         * lib/gethostname.c: Include sockets.h.
43496         (rpl_gethostname): Invoke gl_sockets_startup.
43497         * lib/socket.c: Include sockets.h.
43498         (rpl_socket): Invoke gl_sockets_startup.
43499         * modules/gethostname (Depends-on): Add sockets.
43500         * modules/socket (Depends-on): Likewise.
43501         * tests/test-poll.c: Don't include sockets.h.
43502         (main): Don't invoke gl_sockets_startup.
43503         * tests/test-select.c: Don't include sockets.h.
43504         (main): Don't invoke gl_sockets_startup.
43505
43506 2009-08-02  Bruno Haible  <bruno@clisp.org>
43507
43508         Allow multiple calls to gl_sockets_startup.
43509         * lib/sockets.c (initialized_sockets_version): New variable.
43510         (gl_sockets_startup): Do nothing if already called for this or a higher
43511         version.
43512         (gl_sockets_cleanup): Reset initialized_sockets_version.
43513
43514 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43515
43516         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43517         different project/version.
43518
43519 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43520             Bruno Haible  <bruno@clisp.org>
43521
43522         Tests for module 'pipe-filter-gi'.
43523         * modules/pipe-filter-gi-tests: New file.
43524         * tests/test-pipe-filter-gi1.sh: New file.
43525         * tests/test-pipe-filter-gi1.c: New file.
43526         * tests/test-pipe-filter-gi2.sh: New file.
43527         * tests/test-pipe-filter-gi2-main.c: New file.
43528         * tests/test-pipe-filter-gi2-child.c: New file.
43529
43530         New module 'pipe-filter-gi'.
43531         * lib/pipe-filter-gi.c: New file.
43532         * modules/pipe-filter-gi: New file.
43533
43534 2009-08-02  Bruno Haible  <bruno@clisp.org>
43535             Paolo Bonzini  <bonzini@gnu.org>
43536
43537         Tests for module 'pipe-filter-ii'.
43538         * modules/pipe-filter-ii-tests: New file.
43539         * tests/test-pipe-filter-ii1.sh: New file.
43540         * tests/test-pipe-filter-ii1.c: New file.
43541         * tests/test-pipe-filter-ii2.sh: New file.
43542         * tests/test-pipe-filter-ii2-main.c: New file.
43543         * tests/test-pipe-filter-ii2-child.c: New file.
43544
43545         New module 'pipe-filter-ii'.
43546         * lib/pipe-filter.h: New file.
43547         * lib/pipe-filter-ii.c: New file.
43548         * lib/pipe-filter-aux.h: New file.
43549         * modules/pipe-filter-ii: New file.
43550
43551 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43552
43553         * lib/gc-libgcrypt.c: Change copyright to FSF.
43554         * lib/gc-gnulib.c: Likewise.
43555
43556 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43557
43558         * lib/gethostname.c: Include limits.h.
43559
43560 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43561             Bruno Haible  <bruno@clisp.org>
43562
43563         Ensure HOST_NAME_MAX as part of the gethostname module.
43564         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43565         define also HOST_NAME_MAX.
43566         * tests/test-gethostname.c: Include <limits.h>.
43567         (main): Check also HOST_NAME_MAX.
43568         * doc/posix-headers/limits.texi: Document the mingw problem.
43569
43570 2009-08-02  Bruno Haible  <bruno@clisp.org>
43571
43572         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43573         Add comments.
43574
43575 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43576
43577         * lib/gethostname.c: Add Windows wrapper.
43578         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43579         * modules/gethostname: Depend on sys_socket & errno, for also
43580         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43581         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43582
43583 2009-07-31  Jim Meyering  <meyering@redhat.com>
43584
43585         getloadavg: fix symbol name in comment
43586         * lib/getloadavg.c: Correct a typo I introduced when adding
43587         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43588         Matt Kraai spotted the problem.
43589
43590 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43591
43592         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43593         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43594         code also if ! defined N_NAME_POINTER.
43595         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43596         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43597         but the n_name member is a 12-byte array.
43598
43599 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43600
43601         update-copyright: generalize comment handling
43602         * build-aux/update-copyright: Handle copyright statements
43603         within more comment styles.
43604         Document usage.
43605         Report any file with an external copyright holder or parse failure.
43606
43607 2009-07-29  Jim Meyering  <meyering@redhat.com>
43608
43609         mktime: correct setting of REPLACE_MKTIME
43610         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43611
43612         update-copyright: new module
43613         * modules/update-copyright: New file.
43614         * build-aux/update-copyright: New file.
43615         * MODULES.html.sh (maint+release support): Add update-copyright.
43616
43617 2009-07-27  Bruno Haible  <bruno@clisp.org>
43618
43619         Fix compilation error when <ctime> is used and mktime is replaced.
43620         * lib/time.in.h (mktime): New declaration.
43621         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43622         REPLACE_MKTIME instead of defining mktime in config.h.
43623         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43624         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43625         Reported by Ross McFarland <rwmcfa1@neces.com>.
43626
43627 2009-07-27  Bruno Haible  <bruno@clisp.org>
43628
43629         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43630         Reported by Matt Kraai <mkraai@beckman.com>.
43631
43632 2009-07-25  Jim Meyering  <meyering@redhat.com>
43633
43634         maint.mk: avoid warnings about missing files
43635         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43636         diagnostic when .prev-version does not exist.
43637         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43638         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43639         nonexistent cfg.mk.
43640         Suggestions from Simon Josefsson.
43641
43642 2009-07-25  Bruno Haible  <bruno@clisp.org>
43643
43644         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43645         defined as macros. Needed on QNX 6.4.1.
43646         Reported by Matt Kraai <mkraai@beckman.com>.
43647
43648 2009-07-23  Jim Meyering  <meyering@redhat.com>
43649
43650         maint.mk: invoke "make dist" with a working value of XZ_OPT
43651         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43652
43653 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43654
43655         Make fseeko.c compile on QNX.
43656         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43657
43658 2009-07-22  Peter Simons  <simons@cryp.to>
43659
43660         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43661         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43662         * lib/md4.h: Likewise.
43663         * lib/md5.h: Likewise.
43664         * lib/sha1.h: Likewise.
43665         * lib/sha256.h: Likewise.
43666         * lib/sha512.h: Likewise.
43667
43668         tests-sha1: don't assign literal string to 'char *' variable
43669         * tests/test-sha1.c (main): Declare locals with "const" to match
43670         attributes of the right hand side.
43671
43672 2009-07-21  Eric Blake  <ebb9@byu.net>
43673
43674         dup2: fix more mingw problems
43675         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43676         fd to itself.
43677         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43678         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43679         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43680         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43681         care of mingw bugs.
43682
43683 2009-07-21  Jim Meyering  <meyering@redhat.com>
43684
43685         vc-list-files: avoid failure when /bin/sh is dash
43686         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43687         On some Debian based systems, /bin/sh is a symlink to dash, and running
43688         this command would omit the "/" following each 'tests' prefix:
43689           dash -x build-aux/vc-list-files -C . tests
43690         That is because bash and dash work differently:
43691           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43692           bash ok
43693           dash odd
43694
43695 2009-07-21  Eric Blake  <ebb9@byu.net>
43696
43697         dup2-tests: test previous patch
43698         * modules/dup2-tests: New file.
43699         * tests/test-dup2.c: Likewise.
43700         * tests/test-open.c (main): Avoid unspecified behavior.
43701         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43702         test.
43703
43704         dup2: work around mingw and cygwin 1.5 bug
43705         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43707         * modules/unistd (Makefile.am): Substitute it.
43708         * lib/unistd.in.h (dup2): Declare the replacement.
43709         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43710         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43711         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43712         * modules/execute (Depends-on): Add dup2.
43713         * modules/fseterr (Depends-on): Likewise.
43714         * modules/pipe (Depends-on): Likewise.
43715         * modules/posix_spawn-internal (Depends-on): Likewise.
43716
43717 2009-07-21  Bruno Haible  <bruno@clisp.org>
43718
43719         * modules/.gitattributes: New file.
43720
43721 2009-07-20  Bruno Haible  <bruno@clisp.org>
43722
43723         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43724         (main): Use it.
43725
43726 2009-07-20  Eric Blake  <ebb9@byu.net>
43727
43728         test-pipe: make a bit more robust.
43729         * tests/test-pipe.c (myerr): Allow error messages regardless of
43730         what we do to stderr.
43731         (test_pipe): Rearrange to avoid deadlock.
43732         (child_main): Try a larger read, to ensure we avoided deadlock.
43733         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43734         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43735         if misused.
43736
43737 2009-07-19  Jim Meyering  <meyering@redhat.com>
43738
43739         fts: avoid false-positive cycle-detection
43740         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43741         for each new command line argument.
43742
43743 2009-07-19  Bruno Haible  <bruno@clisp.org>
43744
43745         Fix build error on mingw with the modules sys_select and unistd.
43746         * modules/acl-tests (Depends-on): Add close.
43747         * modules/binary-io-tests (Depends-on): Likewise.
43748         * modules/closein-tests (Depends-on): Likewise.
43749         * modules/flock-tests (Depends-on): Likewise.
43750         * modules/fsync-tests (Depends-on): Likewise.
43751         * modules/lseek-tests (Depends-on): Likewise.
43752         * modules/pipe-tests (Depends-on): Likewise.
43753         * modules/posix_spawn-tests (Depends-on): Likewise.
43754         * modules/posix_spawnp-tests (Depends-on): Likewise.
43755         * modules/stat-time-tests (Depends-on): Likewise.
43756         * modules/yesno-tests (Depends-on): Likewise.
43757
43758 2009-07-19  Bruno Haible  <bruno@clisp.org>
43759
43760         Unify conditionals.
43761         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43762         macros, not at the compiler macros.
43763         * lib/pipe.c: Likewise.
43764         * lib/execute.c: Likewise.
43765         * lib/spawni.c: Likewise.
43766
43767 2009-07-19  Bruno Haible  <bruno@clisp.org>
43768
43769         Fix handling of closed stdin/stdout/stderr on mingw.
43770         * lib/w32spawn.h: Include unistd.h.
43771         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43772         file descriptor with O_NOINHERIT flag.
43773         (fd_safer_noinherit): New function, based on fd-safer.c.
43774         (dup_safer_noinherit): New function, based on dup-safer.c.
43775         (undup_safer_noinherit): New function.
43776         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43777         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43778         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43779         instead of fd_safer.
43780         * tests/test-pipe.c: Include <windows.h>.
43781         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43782         result.
43783
43784         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43785         from main.
43786         (test_pipe): Pass an extra argument for disambiguation.
43787         (main): Invoke parent_main or child_main.
43788
43789         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43790         consistently.
43791
43792 2009-07-18  Eric Blake  <ebb9@byu.net>
43793
43794         test-pipe: fix mingw build
43795         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43796
43797 2009-07-18  Bruno Haible  <bruno@clisp.org>
43798
43799         * modules/pipe-tests (Makefile.am): Fix typo.
43800
43801 2009-07-18  Eric Blake  <ebb9@byu.net>
43802
43803         error: fix mingw build
43804         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43805         Reported by Bruno Haible.
43806
43807         error: avoid undefined use of stdout
43808         * lib/error.c (error, error_at_line): Check that fd 1 is open
43809         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43810         is handling faults and the close_stdout module wants to report the
43811         detection of closed stdout as an error.
43812
43813 2009-07-17  Eric Blake  <ebb9@byu.net>
43814
43815         pipe: be robust in face of closed fds
43816         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43817         should cause child to misbehave.
43818         * modules/pipe-tests: New module.
43819         * tests/test-pipe.c: New file.
43820         * tests/test-pipe.sh: New file.
43821         Reported by Akim Demaille.
43822
43823 2009-07-14  Bruno Haible  <bruno@clisp.org>
43824
43825         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43826         Reported by anonymous kc.
43827
43828 2009-07-07  Jim Meyering  <meyering@redhat.com>
43829
43830         maint.mk: don't look for translatable strings in *.m4 or *.mk
43831         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43832         when searching for translatable strings.
43833
43834 2009-07-05  Jim Meyering  <meyering@redhat.com>
43835
43836         remove superfluous parentheses in STREQ definition
43837         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43838         * lib/getugroups.c (STREQ): Likewise.
43839         * lib/fnmatch.c (STREQ): Likewise.
43840         Spotted by Bruno Haible.
43841
43842 2009-07-04  Jim Meyering  <meyering@redhat.com>
43843
43844         argv-iter: new module
43845         * MODULES.html.sh: Add argv-iter.
43846         * lib/argv-iter.c, lib/argv-iter.h: New files.
43847         * modules/argv-iter: New file.
43848         * modules/argv-iter-tests: New file.
43849         * tests/test-argv-iter.c: Test it.
43850
43851 2009-07-04  Bruno Haible  <bruno@clisp.org>
43852
43853         Fix assertion.
43854         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43855         contains more exact copies of a given entry than file2, leave the extra
43856         copies unpaired rather than aborting.
43857         Reported by Eric Blake.
43858
43859 2009-07-02  Bruno Haible  <bruno@clisp.org>
43860
43861         Speedup git-merge-changelog for git cherry-pick.
43862         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43863         (entries_mapping_get): New function, extracted from compute_mapping.
43864         (entries_mapping_reverse_get): New function.
43865         (compute_mapping): Add a 'full' argument. Return the result in a
43866         'struct entries_mapping'.
43867         (main): Update. Access the mappings through entries_mapping_get.
43868         Reported by Eric Blake.
43869
43870 2009-07-02  Bruno Haible  <bruno@clisp.org>
43871
43872         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43873         best_i.
43874
43875 2009-07-02  Bruno Haible  <bruno@clisp.org>
43876
43877         Speed up approximate search for matching ChangeLog entries.
43878         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43879         argument. Call fstrcmp_bounded instead of fstrcmp.
43880         (compute_mapping, try_split_merged_entry, main): Update callers.
43881
43882 2009-07-02  Bruno Haible  <bruno@clisp.org>
43883
43884         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43885
43886 2009-06-30  Bruno Haible  <bruno@clisp.org>
43887
43888         Reduce the number of uc_is_cased calls.
43889         * lib/unicase.h (casing_suffix_context_t): Add
43890         'first_char_except_ignorable' field.
43891         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43892         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43893         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43894         Update initializer.
43895         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43896         case-ignorable characters.
43897         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43898         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43899         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43900         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43901         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43902
43903 2009-06-30  Bruno Haible  <bruno@clisp.org>
43904
43905         Tests for module 'unicase/ignorable'.
43906         * modules/unicase/ignorable-tests: New file.
43907         * tests/unicase/test-ignorable.c: New file, generated by
43908         gen-uni-tables.
43909
43910         Tests for module 'unicase/cased'.
43911         * modules/unicase/cased-tests: New file.
43912         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43913         * tests/unicase/test-predicate-part1.h: New file, derived from
43914         tests/unictype/test-predicate-part1.h.
43915         * tests/unicase/test-predicate-part2.h: New file, same as
43916         tests/unictype/test-predicate-part2.h.
43917
43918         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43919         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43920         (output_casing_properties): New function.
43921         (main): Call it.
43922         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43923         * lib/unicase/cased.c: Include unictype/bitmap.h.
43924         (uc_is_cased): Define through a bitmap lookup.
43925         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43926         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43927         (uc_is_case_ignorable): Define through a bitmap lookup.
43928         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43929         lib/unictype/bitmap.h.
43930         (Depends-on): Add inline. Clean up.
43931         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43932         lib/unictype/bitmap.h.
43933         (Depends-on): Add inline. Clean up.
43934         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43935         recognition.
43936         * tests/unicase/test-u16-tolower.c (main): Likewise.
43937         * tests/unicase/test-u32-tolower.c (main): Likewise.
43938
43939 2009-06-30  Bruno Haible  <bruno@clisp.org>
43940
43941         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43942         * lib/unicase/u16-casemap.c: Likewise.
43943         * lib/unicase/u32-casemap.c: Likewise.
43944
43945 2009-06-29  Bruno Haible  <bruno@clisp.org>
43946
43947         Define u32_casefold as a wrapper around u32_ct_casefold.
43948         * lib/unicase/u32-casefold.c: Update.
43949         * modules/unicase/u32-casefold (Depends-on): Add
43950         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43951         unicase/empty-suffix-context. Clean up.
43952
43953         Define u16_casefold as a wrapper around u16_ct_casefold.
43954         * lib/unicase/u16-casefold.c: Update.
43955         * modules/unicase/u16-casefold (Depends-on): Add
43956         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43957         unicase/empty-suffix-context. Clean up.
43958
43959         Define u8_casefold as a wrapper around u8_ct_casefold.
43960         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43961         * lib/unicase/u8-casefold.c: Update.
43962         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43963         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43964
43965         Define u32_totitle as a wrapper around u32_ct_totitle.
43966         * lib/unicase/u32-totitle.c: Update.
43967         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43968         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43969
43970         Define u16_totitle as a wrapper around u16_ct_totitle.
43971         * lib/unicase/u16-totitle.c: Update.
43972         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43973         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43974
43975         Define u8_totitle as a wrapper around u8_ct_totitle.
43976         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43977         functions.
43978         (FUNC): Delegate to U_CT_TOTITLE.
43979         * lib/unicase/u8-totitle.c: Update.
43980         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43981         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43982
43983         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43984         invocation.
43985         * modules/unicase/u32-tolower (Depends-on): Add
43986         unicase/empty-prefix-context, unicase/empty-suffix-context.
43987
43988         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43989         invocation.
43990         * modules/unicase/u16-tolower (Depends-on): Add
43991         unicase/empty-prefix-context, unicase/empty-suffix-context.
43992
43993         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43994         * modules/unicase/u8-tolower (Depends-on): Add
43995         unicase/empty-prefix-context, unicase/empty-suffix-context.
43996
43997         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43998         invocation.
43999         * modules/unicase/u32-toupper (Depends-on): Add
44000         unicase/empty-prefix-context, unicase/empty-suffix-context.
44001
44002         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
44003         invocation.
44004         * modules/unicase/u16-toupper (Depends-on): Add
44005         unicase/empty-prefix-context, unicase/empty-suffix-context.
44006
44007         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44008         * modules/unicase/u8-toupper (Depends-on): Add
44009         unicase/empty-prefix-context, unicase/empty-suffix-context.
44010
44011         New module 'unicase/u32-ct-casefold'.
44012         * lib/unicase/u32-ct-casefold.c: New file.
44013         * modules/unicase/u32-ct-casefold: New file.
44014
44015         New module 'unicase/u16-ct-casefold'.
44016         * lib/unicase/u16-ct-casefold.c: New file.
44017         * modules/unicase/u16-ct-casefold: New file.
44018
44019         New module 'unicase/u8-ct-casefold'.
44020         * lib/unicase/u8-ct-casefold.c: New file.
44021         * lib/unicase/u-ct-casefold.h: New file, derived from
44022         lib/unicase/u-casefold.h.
44023         * modules/unicase/u8-ct-casefold: New file.
44024
44025         New module 'unicase/u32-ct-totitle'.
44026         * lib/unicase/u32-ct-totitle.c: New file.
44027         * modules/unicase/u32-ct-totitle: New file.
44028
44029         New module 'unicase/u16-ct-totitle'.
44030         * lib/unicase/u16-ct-totitle.c: New file.
44031         * modules/unicase/u16-ct-totitle: New file.
44032
44033         New module 'unicase/u8-ct-totitle'.
44034         * lib/unicase/u8-ct-totitle.c: New file.
44035         * lib/unicase/u-ct-totitle.h: New file, derived from
44036         lib/unicase/u-totitle.h.
44037         * modules/unicase/u8-ct-totitle: New file.
44038
44039         New module 'unicase/u32-ct-tolower'.
44040         * lib/unicase/u32-ct-tolower.c: New file.
44041         * modules/unicase/u32-ct-tolower: New file.
44042
44043         New module 'unicase/u16-ct-tolower'.
44044         * lib/unicase/u16-ct-tolower.c: New file.
44045         * modules/unicase/u16-ct-tolower: New file.
44046
44047         New module 'unicase/u8-ct-tolower'.
44048         * lib/unicase/u8-ct-tolower.c: New file.
44049         * modules/unicase/u8-ct-tolower: New file.
44050
44051         New module 'unicase/u32-ct-toupper'.
44052         * lib/unicase/u32-ct-toupper.c: New file.
44053         * modules/unicase/u32-ct-toupper: New file.
44054
44055         New module 'unicase/u16-ct-toupper'.
44056         * lib/unicase/u16-ct-toupper.c: New file.
44057         * modules/unicase/u16-ct-toupper: New file.
44058
44059         New module 'unicase/u8-ct-toupper'.
44060         * lib/unicase/u8-ct-toupper.c: New file.
44061         * modules/unicase/u8-ct-toupper: New file.
44062
44063         Add context arguments to u*_casemap functions.
44064         * lib/unicase/unicasemap.h: Include unicase.h.
44065         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44066         suffix_context arguments.
44067         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44068         functions.
44069         (FUNC): Add prefix_context and suffix_context arguments. Use
44070         uc_is_cased and uc_is_case_ignorable.
44071         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44072         * lib/unicase/u16-casemap.c: Likewise.
44073         * lib/unicase/u32-casemap.c: Likewise.
44074         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44075         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44076         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44077         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44078         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44079         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44080
44081         New module 'unicase/u32-suffix-context'.
44082         * lib/unicase/u32-suffix-context.c: New file.
44083         * modules/unicase/u32-suffix-context: New file.
44084
44085         New module 'unicase/u16-suffix-context'.
44086         * lib/unicase/u16-suffix-context.c: New file.
44087         * modules/unicase/u16-suffix-context: New file.
44088
44089         New module 'unicase/u8-suffix-context'.
44090         * lib/unicase/u8-suffix-context.c: New file.
44091         * lib/unicase/u-suffix-context.h: New file.
44092         * modules/unicase/u8-suffix-context: New file.
44093
44094         New module 'unicase/empty-suffix-context'.
44095         * lib/unicase/empty-suffix-context.c: New file.
44096         * modules/unicase/empty-suffix-context: New file.
44097
44098         New module 'unicase/u32-prefix-context'.
44099         * lib/unicase/u32-prefix-context.c: New file.
44100         * modules/unicase/u32-prefix-context: New file.
44101
44102         New module 'unicase/u16-prefix-context'.
44103         * lib/unicase/u16-prefix-context.c: New file.
44104         * modules/unicase/u16-prefix-context: New file.
44105
44106         New module 'unicase/u8-prefix-context'.
44107         * lib/unicase/u8-prefix-context.c: New file.
44108         * lib/unicase/u-prefix-context.h: New file.
44109         * lib/unicase/context.h: New file.
44110         * modules/unicase/u8-prefix-context: New file.
44111
44112         New module 'unicase/empty-prefix-context'.
44113         * lib/unicase/empty-prefix-context.c: New file.
44114         * modules/unicase/empty-prefix-context: New file.
44115
44116         New module 'unicase/ignorable'.
44117         * lib/unicase/ignorable.c: New file.
44118         * modules/unicase/ignorable: New file.
44119
44120         New module 'unicase/cased'.
44121         * lib/unicase/caseprop.h: New file.
44122         * lib/unicase/cased.c: New file.
44123         * modules/unicase/cased: New file.
44124
44125         New functions for case mapping of substrings.
44126         * lib/unicase.h (casing_prefix_context_t): New type.
44127         (unicase_empty_prefix_context): New variable.
44128         (u8_casing_prefix_context, u16_casing_prefix_context,
44129         u32_casing_prefix_context, u8_casing_prefixes_context,
44130         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44131         declarations.
44132         (casing_suffix_context_t): New type.
44133         (unicase_empty_suffix_context): New variable.
44134         (u8_casing_suffix_context, u16_casing_suffix_context,
44135         u32_casing_suffix_context, u8_casing_suffixes_context,
44136         u16_casing_suffixes_context, u32_casing_suffixes_context,
44137         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44138         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44139         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44140         declarations.
44141
44142 2009-06-28  Jim Meyering  <meyering@redhat.com>
44143
44144         boostrap: indent only with spaces
44145         * build-aux/bootstrap: Indent only with spaces, never TABs.
44146
44147         bootstrap: split long lines
44148         * build-aux/bootstrap: Keep line length < 80.
44149
44150         bootstrap: sync from coreutils
44151         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
44152         just as autoreconf does.  Verify a list of prerequisite
44153         package-name,version-number pairs if defined in bootstrap.conf.
44154         Refer to README-prereq, if prerequisites are not satisfied.
44155
44156 2009-06-27  Eric Blake  <ebb9@byu.net>
44157
44158         tests: add test for bogus NULL definition
44159         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
44160         * tests/test-stdlib.c: Likewise.
44161         * tests/test-string.c: Likewise.
44162         * tests/test-locale.c: Likewise.
44163         * tests/test-unistd.c: Likewise.
44164         * modules/stdio-tests (Depends-on): Add verify.
44165         * modules/stdlib-tests (Depends-on): Likewise.
44166         * modules/string-tests (Depends-on): Likewise.
44167         * modules/locale-tests (Depends-on): Likewise.
44168         * modules/unistd-tests (Depends-on): Likewise.
44169
44170 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
44171
44172         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
44173         self-explaining comment.
44174         * m4/selinux-selinux-h: Update serial.
44175         (gl_LIBSELINUX): New macro, adding a warning for missing development
44176         packages to code extracted from...
44177         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
44178         Add warning for missing development packages here, too.
44179
44180 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44181
44182         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44183
44184 2009-06-25  Eric Blake  <ebb9@byu.net>
44185
44186         version-etc: fix regression
44187         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44188         gcc.
44189         (version_etc): Use it, to catch bugs with trailing NULL.
44190         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44191         (version_etc_va): Fix logic bug.
44192         * modules/version-etc-tests: Add test.
44193         * tests/test-version-etc.c: New file.
44194         * tests/test-version-etc.sh: Likewise.
44195
44196 2009-06-25  Sam Steingold  <sds@gnu.org>
44197
44198         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44199         mbtowc declaration.
44200
44201 2009-06-25  Eric Blake  <ebb9@byu.net>
44202
44203         fpurge: migrate into <stdio.h>
44204         * lib/fpurge.h: Delete...
44205         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44206         * lib/fpurge.c (fpurge): Change declaring header.
44207         * modules/fpurge (Files): Drop deleted file.
44208         (Depends-on): Add stdio.
44209         (configure.ac): Set witness.
44210         * modules/stdio (Makefile.am): Support fpurge macros.
44211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44212         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44213         * lib/fflush.c: Update client.
44214         * tests/test-fpurge.c: Likewise.
44215         * NEWS: Mention the change.
44216
44217 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44218
44219         * lib/argp-version-etc.c (program_authors): Add const
44220         qualifier.
44221         * lib/version-etc.c: Fix typos in the comments.
44222         * modules/argp-version-etc: Depends on version-etc.
44223
44224 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44225
44226         argp-version-etc: new module.
44227
44228         * lib/argp-version-etc.c: New file.
44229         * lib/argp-version-etc.h: New file.
44230         * modules/argp-version-etc: New file.
44231         * modules/argp-version-etc-tests: New file.
44232         * tests/test-argp-version-etc.c: New test.
44233         * tests/test-argp-version-etc-1.sh: New test.
44234
44235 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44236
44237         Provide additional interfaces and documentation for version-etc
44238         module.
44239
44240         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
44241         interfaces.
44242         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
44243         prototypes.
44244
44245 2009-06-24  Bruno Haible  <bruno@clisp.org>
44246
44247         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
44248         HAVE_LIB${NAME} macro.
44249         Reported by Sam Steingold <sds@gnu.org>.
44250
44251 2009-06-23  Simon Josefsson  <simon@josefsson.org>
44252
44253         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44254         needed.
44255
44256 2009-06-21  Bruno Haible  <bruno@clisp.org>
44257
44258         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44259         work.
44260         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44261         together with LIB${NAME}, LTLIB${NAME}.
44262         Reported by Sam Steingold <sds@gnu.org>.
44263
44264 2009-06-20  Jim Meyering  <meyering@redhat.com>
44265
44266         tests: make sc_require_test_exit_idiom more generic
44267         * top/maint.mk (Exit_witness_file): New overridable variable.
44268         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44269         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44270
44271 2009-06-19  Jim Meyering  <meyering@redhat.com>
44272
44273         hash: reverse order of src/dst parameters in an internal interface
44274         * lib/hash.c (transfer_entries): Reverse order of parameters to
44275         put DST before SRC.  Adjust callers.
44276
44277         tests: test-hash: avoid wholesale duplication
44278         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44279         Instead, use a loop and add a single conditional.
44280
44281         tests: test-hash: allow seed selection via a command line argument
44282         * tests/test-hash.c (get_seed): New function.
44283         (main): Use it.
44284
44285 2009-06-19  Eric Blake  <ebb9@byu.net>
44286
44287         hash: avoid memory leak on allocation failure
44288         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44289         failure.  Factor repeated algorithm...
44290         (transfer_entries): ...into new helper routine.
44291         (hash_delete): React to hash_rehash return value.
44292
44293         hash: reduce memory pressure in hash_rehash no-op case
44294         * lib/hash.c (next_prime): Avoid overflow.
44295         (hash_initialize): Factor bucket size computation...
44296         (compute_bucket_size): ...into new helper function.
44297         (hash_rehash): Use new function and open coding to reduce memory
44298         pressure, and avoid a memory leak in USE_OBSTACK code.
44299         Reported by Jim Meyering.
44300
44301 2009-06-18  Eric Blake  <ebb9@byu.net>
44302
44303         hash: make rotation more obvious
44304         * modules/hash (Depends-on): Add bitrotate and stdint.
44305         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44306         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44307         (SIZE_MAX): Rely on headers for definition.
44308         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44309         (raw_hasher): Use rotr_sz.
44310         Suggested by Jim Meyering.
44311
44312         hash: fix memory leak in last patch
44313         * lib/hash.c (hash_rehash): Avoid memory leak.
44314
44315         hash: avoid no-op rehashing
44316         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44317
44318         hash: provide default callback functions
44319         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44320         (hash_initialize): Use them as defaults.
44321         * tests/test-hash.c (main): Test this.
44322
44323         hash: minor optimization
44324         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44325         when possible.
44326         (hash_initialize): Document this promise.
44327         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44328         * tests/test-hash.c (hash_compare_strings): Test this.
44329
44330 2009-06-18  Bruno Haible  <bruno@clisp.org>
44331
44332         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44333         going to be replaced anyway.
44334
44335 2009-06-18  Bruno Haible  <bruno@clisp.org>
44336
44337         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44338         in one place.
44339         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44340         be replaced anyway.
44341
44342 2009-06-18  Eric Blake  <ebb9@byu.net>
44343
44344         hash: check for resize before insertion
44345         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44346         threshold before insertion, so that a pathological hash_rehash
44347         that fills every bucket can still trigger another rehash.
44348
44349 2009-06-18  Jim Meyering  <meyering@redhat.com>
44350
44351         hash-tests: add a loop around the small tests
44352         * tests/test-hash.c (main): Repeat small tests with selected
44353         small initial table sizes.
44354
44355 2009-06-17  Eric Blake  <ebb9@byu.net>
44356
44357         hash: minor cleanups
44358         * lib/hash.h (hash_entry): Make opaque, by moving...
44359         * lib/hash.c (hash_entry): ...here.
44360         (hash_insert): Clarify restrictions on what can be inserted.
44361         (hash_get_next): Clarify when it is safe to remove an element
44362         during traversal.
44363         (check_tuning): Skip verification when tuning is known safe.
44364         (hash_initialize): Clarify restrictions on tuning.
44365
44366 2009-06-17  Jim Meyering  <jim@meyering.net>
44367         and Eric Blake  <ebb9@byu.net>
44368
44369         hash-tests: new module
44370         * modules/hash-tests: New file.
44371         * tests/test-hash.c: New file.
44372
44373 2009-06-17  Eric Blake  <ebb9@byu.net>
44374
44375         strstr-simple: document new module
44376         * MODULES.html.sh: Document new module.
44377
44378         strstr, strcasestr: replace on platforms with broken memchr
44379         * modules/strstr: Split into...
44380         * modules/strstr-simple: ...new module that does not care about
44381         performance, but does care about glibc bug.
44382         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44383         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44384         if platform memchr is broken, per Debian bug 521737.
44385         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44386         memchr.
44387         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44388         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44389         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44390         * modules/mountlist (Depends-on): Add strstr-simple.
44391         * modules/gen-uni-tables (Depends-on): Likewise.
44392         * modules/argz (Depends-on): Add strstr.
44393
44394 2009-06-17  Bruno Haible  <bruno@clisp.org>
44395
44396         * modules/posix_spawn-internal (Depends-on): Add errno.
44397
44398 2009-06-17  Bruno Haible  <bruno@clisp.org>
44399
44400         Define missing ESTALE on Interix 3.5.
44401         * lib/errno.in.h (ESTALE): Assign a value if missing.
44402         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44403         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44404         missing.
44405         * doc/posix-headers/errno.texi: Mention the Interix bug.
44406         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44407
44408 2009-06-15  Eric Blake  <ebb9@byu.net>
44409
44410         memchr, memchr2: add valgrind exception
44411         * lib/memchr.valgrind: New file.
44412         * lib/memchr2.valgrind: New file.
44413         * modules/memchr (Files): Distribute valgrind file.
44414         * modules/memchr2 (Files): Likewise.
44415
44416         docs: memchr is no longer obsolete
44417         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44418         * lib/string.in.h (memchr): Simplify logic.
44419
44420 2009-06-14  Jim Meyering  <meyering@redhat.com>
44421
44422         link-follow: fix the "checking..." message to not mention trailing slash
44423         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44424         never considered trailing slashes.
44425
44426 2009-06-14  Bruno Haible  <bruno@clisp.org>
44427
44428         * m4/memchr.m4: Mention also the bug on IA-64.
44429         * doc/posix-functions/memchr.texi: Likewise.
44430
44431 2009-06-12  Eric Blake  <ebb9@byu.net>
44432
44433         memchr: detect broken x86_64 and alpha implementations
44434         * modules/memchr-tests (Depends-on): Move mmap detection...
44435         * modules/memchr (Depends-on): ...here.
44436         (configure.ac): Set indicator.
44437         * lib/string.in.h (memchr): Declare replacement.
44438         * modules/string (Makefile.am): Trigger replacement.
44439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44440         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44441         bugs.
44442         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44443         * modules/getpagesize (License): Relax license.
44444
44445 2009-06-11  Bruno Haible  <bruno@clisp.org>
44446
44447         * lib/idpriv.h: Add more references.
44448
44449 2009-06-08  Bruno Haible  <bruno@clisp.org>
44450
44451         Tests for module 'idpriv-droptemp'.
44452         * modules/idpriv-droptemp-tests: New file.
44453         * tests/test-idpriv-droptemp.sh: New file.
44454         * tests/test-idpriv-droptemp.su.sh: New file.
44455         * tests/test-idpriv-droptemp.c: New file.
44456
44457         New module 'idpriv-droptemp'.
44458         * lib/idpriv-droptemp.c: New file.
44459         * modules/idpriv-droptemp: New file.
44460
44461 2009-06-08  Bruno Haible  <bruno@clisp.org>
44462
44463         Tests for module 'idpriv-drop'.
44464         * modules/idpriv-drop-tests: New file.
44465         * tests/test-idpriv-drop.sh: New file.
44466         * tests/test-idpriv-drop.su.sh: New file.
44467         * tests/test-idpriv-drop.c: New file.
44468
44469         New module 'idpriv-drop'.
44470         * lib/idpriv.h: New file.
44471         * lib-idpriv-drop.c: New file.
44472         * m4/idpriv.m4: New file.
44473         * modules/idpriv-drop: New file.
44474
44475 2009-06-08  Bruno Haible  <bruno@clisp.org>
44476
44477         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44478         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44479         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44480         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44481         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44482         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44483         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44484
44485 2009-06-08  Eric Blake  <ebb9@byu.net>
44486
44487         test-strstr: use memory fence, when possible
44488         * tests/test-strstr.c (main): Use memory fence, in order to be
44489         more likely to trigger Debian bug 521737.
44490         * modules/strstr-tests (Files): Pull in additional files.
44491
44492         memchr: no longer obsolete, for wider field testing
44493         * modules/memchr (Status, Notice): Delete, this module is no
44494         longer obsolete.
44495         * modules/vasnprintf (Depends-on): Add memchr.
44496
44497 2009-06-07  Jim Meyering  <meyering@redhat.com>
44498
44499         hash: declare some functions with the warn_unused_result attribute
44500         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44501
44502 2009-06-07  Bruno Haible  <bruno@clisp.org>
44503
44504         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44505         Reported by Eric Blake.
44506
44507 2009-06-06  Eric Blake  <ebb9@byu.net>
44508
44509         test-alignof: fix typo with long double
44510         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44511         compiler error.
44512
44513 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44514
44515         Escape non-texinfo { and }s.
44516         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44517         markup error.
44518
44519 2009-06-04  Jim Meyering  <meyering@redhat.com>
44520
44521         gitlog-to-changelog: don't infloop on an empty commit log
44522         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44523         Reported by Boris Petersen <transacid@centerim.org>.
44524
44525 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44526
44527         version-etc: extend for packagers
44528         Add three new configure options, intended for packagers:
44529           --with-packager="packager name"
44530           --with-packager-version="packager-specific version"
44531           --with-packager-bug-reports="packager bug reporting"
44532         An example with coreutils:
44533           $ ./configure \
44534             --with-packager=Gentoo \
44535             --with-packager-bug-report=http://bugs.gentoo.org/ \
44536             --with-packager-version="patchset 1.6"
44537           $ ./src/ls --version | head -n2
44538           ls (GNU coreutils) 7.1-dirty
44539           Packaged by Gentoo (patchset 1.6)
44540         Note that the bug reporting info via --help doesn't show up because
44541         coreutils uses its own custom emit_bug_reporting_address() implementation
44542         in src/system.h.  If it didn't, it'd look like:
44543           $ ./src/ls --help | tail -n4
44544           Report bugs to <bug-coreutils@gnu.org>.
44545           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44546           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44547           General help using GNU software: <http://www.gnu.org/gethelp/>.
44548         * lib/version-etc.c: Print new information, if provided.
44549         * m4/version-etc.m4: New file.
44550         * modules/version-etc (Files): Add m4/version-etc.m4.
44551         (configure.ac): Add gl_VERSION_ETC.
44552
44553 2009-05-31  Bruno Haible  <bruno@clisp.org>
44554
44555         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44556         and 'int64_t'.
44557         * modules/alignof-tests (Dependencies): Add stdint.
44558         Reported by Eric Blake.
44559
44560 2009-05-31  Bruno Haible  <bruno@clisp.org>
44561
44562         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44563         restriction due to compiler bugs.
44564         Reported by Eric Blake.
44565
44566 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44567             Bruno Haible  <bruno@clisp.org>
44568
44569         Fix test-alignof failure.
44570         * lib/alignof.h (alignof_slot): New macro.
44571         (alignof_type): New macro, with the same semantics as the previous
44572         'alignof'.
44573         (alignof): Alias to alignof_slot.
44574         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44575         check that the results are usable as constant expressions.
44576
44577 2009-05-31  Bruno Haible  <bruno@clisp.org>
44578
44579         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44580         * tests/test-memchr.c (main): Check that memchr does not read past the
44581         first occurrence of the byte.
44582         * tests/test-strstr.c (main): Update comment.
44583         Suggested by Eric Blake.
44584
44585 2009-05-30  Bruno Haible  <bruno@clisp.org>
44586
44587         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44588         detail how to use dumpbin.
44589         Reported by David Byron <dbyron@dbyron.com>.
44590
44591 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44592
44593         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44594
44595 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44596
44597         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44598
44599 2009-05-28  Bruno Haible  <bruno@clisp.org>
44600
44601         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44602         build-aux/ files.
44603
44604 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44605
44606         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44607
44608 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44609
44610         * gnulib-tool (sed_transform_main_lib_file)
44611         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44612         regexps.
44613
44614 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44615
44616         * tests/test-strstr.c: Add another self-test.
44617         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44618         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44619
44620 2009-05-23  Bruno Haible  <bruno@clisp.org>
44621
44622         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44623         change.
44624
44625 2009-05-21  Bruno Haible  <bruno@clisp.org>
44626
44627         Simplify use of mode_t varargs.
44628         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44629         uses 'mode_t' or 'int'.
44630         * lib/openat.c (openat): Likewise.
44631         * lib/open-safer.c (open_safer): Likewise.
44632         * m4/mode_t.m4: New file.
44633         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44634         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44635         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44636         * modules/open (Files): Add m4/mode_t.m4.
44637         * modules/openat (Files): Likewise.
44638         * modules/fcntl-safer (Files): Likewise.
44639         Suggested by Eric Blake.
44640
44641 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44642
44643         * doc/glibc-functions/fallocate.texi: New file.
44644         * doc/gnulib.texi: Include it.
44645
44646 2009-05-21  Eric Blake  <ebb9@byu.net>
44647             Bruno Haible  <bruno@clisp.org>
44648
44649         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44650         invocations.
44651         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44652
44653 2009-05-21  Eric Blake  <ebb9@byu.net>
44654             Bruno Haible  <bruno@clisp.org>
44655
44656         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44657         include_next. Fix of 2008-11-20 commit.
44658         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44659         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44660         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44661         NEXT_MATH_H.
44662         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44663         instead of NEXT_MATH_H.
44664
44665 2009-05-21  Bruno Haible  <bruno@clisp.org>
44666
44667         Avoid redefinition warnings for SIZE_MAX.
44668         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44669         Reported by Simon Josefsson.
44670
44671 2009-05-21  Bruno Haible  <bruno@clisp.org>
44672
44673         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44674         AC_CACHE_VAL.
44675
44676 2009-05-20  Bruno Haible  <bruno@clisp.org>
44677
44678         Make zeroptr.h work on mingw.
44679         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44680         mprotect.
44681         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44682         * modules/memchr2-tests (configure.ac): Likewise.
44683         * modules/memcmp-tests (configure.ac): Likewise.
44684         * modules/memmem-tests (configure.ac): Likewise.
44685         * modules/memrchr-tests (configure.ac): Likewise.
44686         Reported by Simon Josefsson.
44687
44688 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44689
44690         * tests/test-glob.c: Include string.h for strcmp prototype.
44691
44692 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44693
44694         * modules/getdelim (Depends-on): Add explicit stdint, although it
44695         was implicitly already pulled in via realloc-posix.
44696         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44697
44698 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44699
44700         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44701         G. Christensen" <tgc@jupiterrise.com>.
44702         * m4/sys_socket_h.m4: Check for sa_family_t.
44703         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44704         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44705         * tests/test-sys_socket.c: Check that sa_family_t works.
44706
44707 2009-05-18  Eric Blake  <ebb9@byu.net>
44708
44709         maint.mk: allow gnulib_dir in VPATH build
44710         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44711
44712 2009-05-15  Jim Meyering  <meyering@redhat.com>
44713
44714         maint.mk: Give gnulib_dir a default definition.
44715         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44716         Thus, most packages no longer need to specify this variable in cfg.mk
44717
44718 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44719
44720         rename.m4: fix typos that would make non-mingw cross-configure fail
44721         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44722
44723 2009-05-13  Eric Blake  <ebb9@byu.net>
44724
44725         mmap-anon: avoid out-of-order autoconf expansion
44726         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44727         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44728         * modules/memchr-tests (Depends-on): Add extensions.
44729         * modules/memchr2-tests (Depends-on): Add extensions.
44730         * modules/memcmp-tests (Depends-on): Add extensions.
44731         * modules/memmem-tests (Depends-on): Add extensions.
44732         * modules/memrchr-tests (Depends-on): Add extensions.
44733
44734 2009-05-13  Bruno Haible  <bruno@clisp.org>
44735
44736         Make some tests ISO C 99 compliant.
44737         * tests/zerosize-ptr.h: New file.
44738         * tests/test-memchr.c: Include zerosize-ptr.h.
44739         (main): Use a zero-size object pointer instead of NULL.
44740         * tests/test-memchr2.c: Include zerosize-ptr.h.
44741         (main): Use a zero-size object pointer instead of NULL.
44742         * tests/test-memcmp.c: Include zerosize-ptr.h.
44743         (main): Use a zero-size object pointer instead of NULL.
44744         * tests/test-memmem.c: Include zerosize-ptr.h.
44745         (main): Use a zero-size object pointer instead of NULL.
44746         * tests/test-memrchr.c: Include zerosize-ptr.h.
44747         (main): Use a zero-size object pointer instead of NULL.
44748         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44749         m4/mmap-anon.m4.
44750         (Depends-on): Add getpagesize.
44751         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44752         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44753         m4/mmap-anon.m4.
44754         (Depends-on): Add getpagesize.
44755         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44756         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44757         m4/mmap-anon.m4.
44758         (Depends-on): Add getpagesize.
44759         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44760         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44761         m4/mmap-anon.m4.
44762         (Depends-on): Add getpagesize.
44763         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44764         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44765         m4/mmap-anon.m4.
44766         (Depends-on): Add getpagesize.
44767         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44768
44769 2009-05-12  Bruno Haible  <bruno@clisp.org>
44770
44771         Tests for module 'alignof'.
44772         * modules/alignof-tests: New file.
44773         * tests/test-alignof.c: New file.
44774
44775 2009-05-12  Bruno Haible  <bruno@clisp.org>
44776
44777         Fix alignof macro.
44778         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44779         vendor compilers that are always correct.
44780
44781 2009-05-12  Bruno Haible  <bruno@clisp.org>
44782
44783         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44784         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44785         not whether its fully works.
44786
44787 2009-05-12  Bruno Haible  <bruno@clisp.org>
44788
44789         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44790
44791 2009-05-12  Jim Meyering  <meyering@redhat.com>
44792
44793         * top/maint.mk: Adjust backslash alignment.
44794
44795 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44796
44797         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44798
44799 2009-05-11  Eric Blake  <ebb9@byu.net>
44800
44801         argp: avoid undefined behavior
44802         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44803         macros.
44804
44805 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44806
44807         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44808         user.name to prevent git commit from complaining.
44809
44810 2009-05-10  Bruno Haible  <bruno@clisp.org>
44811
44812         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44813         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44814         it rewrites every file name only once.
44815         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44816
44817 2009-05-08  Bruno Haible  <bruno@clisp.org>
44818
44819         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44820         instead of 'max'.
44821
44822 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44823
44824         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44825         sockaddr_storage test.
44826
44827 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44828
44829         * modules/sys_socket (Makefile.am): Substitute
44830         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44831         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44832         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44833         * tests/test-sys_socket.c: Check sockaddr_storage.
44834
44835 2009-05-08  Bruno Haible  <bruno@clisp.org>
44836
44837         New module 'alignof'.
44838         * lib/alignof.h: New file.
44839         * modules/alignof: New file.
44840
44841 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44842             Bruno Haible  <bruno@clisp.org>
44843
44844         Fix test-file-has-acl on FreeBSD.
44845         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44846         mask is implicitly added.
44847         * tests/test-file-has-acl.c: Include <signal.h>.
44848         (main): Terminate the test after 5 seconds.
44849         * modules/acl-tests (configure.ac): Check for alarm function.
44850
44851 2009-05-04  Bruno Haible  <bruno@clisp.org>
44852
44853         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44854         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44855         * modules/errno (configure.ac): Drop AC_REQUIRE.
44856         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44857         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44858
44859 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44860
44861         * modules/glob-tests: New module.
44862         * tests/test-glob.c: Add.
44863
44864 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44865
44866         * modules/fnmatch-tests: New module.
44867         * tests/test-fnmatch.c: Add.
44868
44869 2009-05-04  Eric Blake  <ebb9@byu.net>
44870
44871         maint: make the new no-submodule-changes rule VPATH-safe
44872         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44873
44874 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44875             Bruno Haible  <bruno@clisp.org>
44876
44877         acl: Fix infinite loop on FreeBSD.
44878         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44879         of return value from acl_get_entry.
44880         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44881         Likewise.
44882
44883 2009-05-03  Bruno Haible  <bruno@clisp.org>
44884
44885         * lib/acl-internal.h (acl_entries): Clarify return value.
44886         * lib/acl_entries.c (acl_entries): Likewise.
44887
44888 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44889
44890         Bug fix in acl module.
44891         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44892
44893 2009-05-03  Bruno Haible  <bruno@clisp.org>
44894
44895         Create gperf-generated file in the source dir, not in the build dir.
44896         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44897         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44898         * modules/unicase/locale-language (unicase/locale-languages.h):
44899         Likewise.
44900         * modules/unicase/special-casing (unicase/special-casing-table.h):
44901         Likewise.
44902         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44903         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44904         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44905         Reported by Ralf Wildenhues.
44906
44907 2009-05-03  Bruno Haible  <bruno@clisp.org>
44908
44909         * modules/fnmatch (Description, configure.ac): Taken from
44910         fnmatch-posix.
44911         * modules/fnmatch-posix: Turn into a symbolic reference to the
44912         'fnmatch' module, and deprecate.
44913         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44914
44915 2009-05-03  Bruno Haible  <bruno@clisp.org>
44916
44917         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44918         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44919         Reported by Ralf Wildenhues.
44920
44921 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44922
44923         * m4/fnmatch.m4: Fix fnmatch re-define.
44924
44925 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44926
44927         priv-set: new module and tests; adapt write-any-file
44928         * lib/priv-set.c: New file.
44929         * lib/priv-set.h: New file.
44930         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44931         * lib/write-any-file.c: Simplify by using priv-set module.
44932         * m4/priv-set.m4: New file.
44933         * modules/priv-set: New file.
44934         * modules/unlinkdir: Add dependency on priv-set module.
44935         * modules/write-any-file: Likewise.
44936
44937         Tests for module 'priv-set'.
44938         * modules/priv-set-tests: New file.
44939         * tests/test-priv-set.c: New file.
44940
44941 2009-05-03  Jim Meyering  <meyering@redhat.com>
44942             Bruno Haible  <bruno@clisp.org>
44943
44944         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44945         use the converted UTF-8 variant of the name instead.
44946
44947 2009-05-03  Jim Meyering  <meyering@redhat.com>
44948
44949         tests: tighten some getdate tests
44950         * tests/test-getdate.c (main): Tighten tests: require equality,
44951         not just greater than.  Set TZ envvar to UTC0.
44952
44953 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44954
44955         getdate: correctly interpret "next monday" when run on a Monday
44956         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44957         that e.g., "next tues" (when run on a tuesday) results in a date
44958         that is one week in the future, and not today's date.
44959         I.e., add a week when the wday is the same as the current one.
44960         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44961         and earlier by Martin Bernreuther and Jan Minář.
44962         * tests/test-getdate.c (main): Check that "next DAY" is always in
44963         the future and that "last DAY" is always in the past.
44964
44965 2009-05-02  Jim Meyering  <meyering@redhat.com>
44966
44967         build: ensure that a release build fails when a submodule is unclean
44968         * top/maint.mk (no-submodule-changes): New rule.
44969         (alpha beta major): Depend on it.
44970
44971 2009-05-02  Bruno Haible  <bruno@clisp.org>
44972
44973         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44974         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44975         shell variable gl_fnmatch_required to detect which variant is
44976         requested.
44977         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44978         gl_FUNC_FNMATCH_POSIX.
44979         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44980         exclude fnmatch-posix.
44981
44982 2009-05-02  Bruno Haible  <bruno@clisp.org>
44983
44984         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44985         * modules/mbsrtowcs (License): Change to LGPLv2+.
44986         * modules/strnlen1 (License): Likewise.
44987         Reported by Simon Josefsson.
44988
44989 2009-05-02  Bruno Haible  <bruno@clisp.org>
44990
44991         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44992         "cross".
44993         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44994         gnulib-tool was called with option --source-base=lib.
44995
44996 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44997
44998         Use automake *-local hooks without commands, for extensibility.
44999         * modules/localcharset (Makefile.am): Rename install-exec-local
45000         rule to install-exec-localcharset, and make it a prerequisite of
45001         install-exec-local.  Likewise, rename the uninstall-local rule to
45002         uninstall-localcharset, and make it a prerequisite of the former.
45003
45004 2009-05-01  Bruno Haible  <bruno@clisp.org>
45005
45006         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45007         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45008         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45010         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45011         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45012         m4/locale-zh.m4, m4/codeset.m4.
45013
45014         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45015         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45016         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45017         m4/locale-zh.m4.
45018
45019         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45020         REPLACE_WCRTOMB if mbstate_t must be replaced.
45021         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45022         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45023
45024 2009-05-01  Bruno Haible  <bruno@clisp.org>
45025
45026         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45027         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45028         dngettext, dcngettext, textdomain, bindtextdomain,
45029         bind_textdomain_codeset): Undefine before redefining.
45030
45031 2009-04-30  Bruno Haible  <bruno@clisp.org>
45032
45033         Fix bug introduced on 2009-04-25.
45034         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45035         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45036         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45037         is defined.
45038         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45039         is defined.
45040         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45041         is defined.
45042         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45043
45044 2009-04-28  Bruno Haible  <bruno@clisp.org>
45045
45046         Comment tweaks.
45047         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45048         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45049         * lib/unicase.h (u*_casexfrm): Likewise.
45050         Reported by Paolo Bonzini.
45051
45052 2009-04-28  Bruno Haible  <bruno@clisp.org>
45053
45054         Fix a compilation error.
45055         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45056         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45057         Reported by Jim Meyering.
45058
45059 2009-04-27  Bruno Haible  <bruno@clisp.org>
45060
45061         New module 'libunistring'.
45062         * modules/libunistring: New file.
45063         * m4/libunistring.m4: New file.
45064         * MODULES.html.sh (Unicode string functions): Add it.
45065
45066 2009-04-27  Eric Blake  <ebb9@byu.net>
45067
45068         maint.mk: allow package-specific header to provide <config.h>
45069         * top/maint.mk (sc_require_config_h): New variable.
45070         (sc_require_config_h, sc_require_config_h_first): Use it.
45071
45072 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45073
45074         * top/maint.mk (sc_avoid_if_before_free): Except
45075         useless-if-before-free script.
45076
45077 2009-04-27  Eric Blake  <ebb9@byu.net>
45078
45079         maintainer-makefile: depend on all required helper scripts
45080         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45081         useless-if-before-free.
45082         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45083         version, rather than assuming gnulib checkout is available.
45084         Reported by Simen Josefsson.
45085
45086 2009-04-26  Bruno Haible  <bruno@clisp.org>
45087
45088         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45089         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45090         "../" or "..".
45091
45092 2009-04-26  Bruno Haible  <bruno@clisp.org>
45093
45094         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45095         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45096         AC_LIB_HAVE_LINKFLAGS.
45097
45098 2009-04-26  Bruno Haible  <bruno@clisp.org>
45099
45100         Simplify calling convention of u*_conv_from_encoding.
45101         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45102         u32_conv_from_encoding): Expect a resultbuf argument and return the
45103         result directly as a pointer.
45104         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45105         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45106         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45107         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45108         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45109         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45110         Update.
45111         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45112         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45113         * lib/vasnprintf.c (VASNPRINTF): Update.
45114         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45115         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45116         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45117         * NEWS: Mention the change.
45118
45119 2009-04-26  Bruno Haible  <bruno@clisp.org>
45120
45121         Simplify calling convention of u*_conv_to_encoding.
45122         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45123         u32_conv_to_encoding): Expect a resultbuf argument and return the
45124         result directly as a pointer.
45125         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45126         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45127         freeing scaled_offsets if mem_iconveha failed.
45128         * lib/unicase/u-casexfrm.h (FUNC): Update.
45129         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45130         * lib/vasnprintf.c (VASNPRINTF): Update.
45131         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45132         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45133         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45134         * NEWS: Mention the change.
45135
45136 2009-04-26  Bruno Haible  <bruno@clisp.org>
45137
45138         Avoid test failures on AIX and OSF/1.
45139         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45140         malloc(0).
45141         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45142         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45143         Likewise.
45144         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
45145         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
45146         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
45147         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
45148         * doc/posix-functions/malloc.texi: Document the portability problem
45149         related to malloc(0).
45150
45151 2009-04-26  Bruno Haible  <bruno@clisp.org>
45152
45153         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
45154         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
45155         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
45156
45157 2009-04-25  Bruno Haible  <bruno@clisp.org>
45158
45159         Avoid link error when creating a namespace clean library.
45160         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
45161         as macro with arguments if already defined as an alias.
45162         * lib/signbitf.c (gl_signbitf): Don't undefine.
45163         * lib/signbitd.c (gl_signbitd): Don't undefine.
45164         * lib/signbitl.c (gl_signbitl): Don't undefine.
45165
45166 2009-04-25  Jim Meyering  <meyering@redhat.com>
45167
45168         vc-list-files: fix another quoting bug
45169         * build-aux/vc-list-files: Avoid sed backslash expansion
45170         of pathological directory names.
45171
45172 2009-04-25  Eric Blake  <ebb9@byu.net>
45173
45174         vc-list-files: fix shell quoting error
45175         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
45176         timestamp.
45177
45178 2009-04-25  Jim Meyering  <meyering@redhat.com>
45179
45180         vc-list-files: restore lost functionality with subdir argument
45181         * build-aux/vc-list-files: When given a non-"." sub-directory
45182         argument, substitute the $dir/ prefix back onto each resulting name.
45183         Otherwise, coreutils' root_tests check would fail.
45184
45185 2009-04-24  Eric Blake  <ebb9@byu.net>
45186
45187         vc-list-files: ignore git symlinks
45188         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45189         than ls-files, to ignore git symlinks.
45190
45191         maint.mk: import improvements from m4
45192         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45193         (move_if_change): Delete unused macro.
45194         (news-date-check, vc-diff-check): Support VPATH builds.
45195         (announcement): Likewise.  Split --bootstrap-tools list...
45196         (boostrap-tools): ...into separate list, which can be overridden
45197         in cfg.mk.
45198         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45199         requiring dependency on useless-if-before-free module.
45200         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45201         Support VPATH builds.
45202
45203 2009-04-24  Jim Meyering  <meyering@redhat.com>
45204
45205         maint.mk: remove coreutils-specific rules and variables
45206         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45207         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45208         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45209
45210         maint.mk: remove obsolete rule
45211         * top/maint.mk (rel-check): Remove rule.
45212         (WGET, WGETFLAGS): Remove now-unused variables.
45213
45214 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45215
45216         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45217         consistency.
45218
45219         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45220         '$(PATH_SEPARATOR)' instead of ':'.
45221
45222 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45223
45224         * lib/getopt1.c (main): Use 'const' for static array.
45225
45226 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45227
45228         * top/maint.mk: Sync with coreutils.
45229         * NEWS: Explain incompatibilities.
45230
45231 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45232             Bruno Haible  <bruno@clisp.org>
45233
45234         Fix cross-compilation results.
45235         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45236         statement, as third argument of AC_TRY_RUN.
45237         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45238         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45239         Likewise.
45240         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45241         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45242         Likewise.
45243         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45244         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
45245         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
45246
45247 2009-04-20  Bruno Haible  <bruno@clisp.org>
45248
45249         Avoid test failure on mingw.
45250         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
45251
45252 2009-04-20  Bruno Haible  <bruno@clisp.org>
45253
45254         Avoid compilation error on mingw.
45255         * modules/localename-tests (Depends-on): Add locale.
45256
45257 2009-04-19  Bruno Haible  <bruno@clisp.org>
45258
45259         Support for building a shared library on Windows platforms.
45260         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45261         (main): Test the presence of UNINORM_NFC here.
45262         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45263         (main): Test the presence of UNINORM_NFD here.
45264         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45265         (main): Test the presence of UNINORM_NFKC here.
45266         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45267         (main): Test the presence of UNINORM_NFKD here.
45268
45269 2009-04-19  Bruno Haible  <bruno@clisp.org>
45270
45271         Avoid a compiler warning.
45272         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45273         Change type of variable 'sequence'.
45274
45275 2009-04-19  Bruno Haible  <bruno@clisp.org>
45276
45277         * modules/configmake (Makefile.am): When the contents of configmake.h
45278         does not change, arrange to preserve its modification time.
45279
45280 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45281
45282         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45283         gettext domain.
45284
45285 2009-04-16  Jim Meyering  <meyering@redhat.com>
45286
45287         useless-if-before-free: improve conversion code
45288         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45289         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45290
45291 2009-04-14  Bruno Haible  <bruno@clisp.org>
45292
45293         * modules/fcntl (Depends-on): Add extensions.
45294         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45295
45296 2009-04-12  Ben Pfaff  <blp@gnu.org>
45297
45298         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45299         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45300
45301 2009-03-20  Ben Pfaff  <blp@gnu.org>
45302
45303         Make rename replace existing destinations on Windows.
45304         * m4/rename.m4: Add test for Mingw.
45305         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45306         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45307         * doc/posix-functions/rename.texi: Document.
45308
45309 2009-04-10  Bruno Haible  <bruno@clisp.org>
45310
45311         New include file "iconveh.h".
45312         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45313         * lib/striconveh.h: Include it.
45314         (enum iconv_ilseq_handler): Remove definition.
45315         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45316         striconveh.h.
45317         * lib/striconveha.c: Include striconveh.h.
45318         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45319         * modules/striconveh (Files): Add lib/iconveh.h.
45320         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45321         lib/striconveh.h.
45322
45323 2009-04-10  Bruno Haible  <bruno@clisp.org>
45324
45325         * lib/uniconv.h: Update comment.
45326
45327 2009-04-10  Bruno Haible  <bruno@clisp.org>
45328
45329         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45330         always.
45331         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45332         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45333         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45334         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45335         "unistring-notinline.h", so that the function gets defined always.
45336         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45337         * lib/unistr/u8-uctomb.c: Likewise.
45338         * lib/unistr/u16-mbtouc.c: Likewise.
45339         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45340         * lib/unistr/u16-uctomb.c: Likewise.
45341         * lib/unistr/u32-mbtouc.c: Likewise.
45342         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45343         * lib/unistr/u32-uctomb.c: Likewise.
45344
45345 2009-04-10  Bruno Haible  <bruno@clisp.org>
45346
45347         Mark 'utime' obsolete.
45348         * modules/utime (Status, Notice): New sections.
45349         Suggested by Jim Meyering.
45350
45351         Fix cross-compile guess for utime test.
45352         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45353         autoconf.
45354         * doc/posix-functions/utime.texi: Give more precisions.
45355         Reported by Jan <ipif@ymail.com>.
45356
45357 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45358
45359         filevercmp: correct today's change
45360         * lib/filevercmp.c: Also handle coreutils' test inputs.
45361         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45362
45363         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45364         for reporting it.
45365         * lib/filevercmp.c: Special handle for "", "." and "..".
45366         * tests/test-filevercmp.c: Enlarge the set suite.
45367
45368 2009-04-07  Jim Meyering  <meyering@redhat.com>
45369
45370         useless-if-before-free: show how to remove braced useless free, too
45371         * build-aux/useless-if-before-free: still only in a comment, though.
45372
45373 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45374
45375         maint.mk: import changes to syntax-check macros from coreutils
45376         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45377         Use them in the relevant macros.
45378
45379 2009-04-06  Bruno Haible  <bruno@clisp.org>
45380
45381         Fix unportable use of bit-fields.
45382         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45383         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45384         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45385
45386 2009-04-06  Bruno Haible  <bruno@clisp.org>
45387
45388         Avoid test failures on AIX and OSF/1.
45389         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45390         that malloc(0) = NULL.
45391         * tests/unicase/test-u8-tolower.c (check): Likewise.
45392         * tests/unicase/test-u8-totitle.c (check): Likewise.
45393         * tests/unicase/test-u8-toupper.c (check): Likewise.
45394         * tests/unicase/test-u16-casefold.c (check): Likewise.
45395         * tests/unicase/test-u16-tolower.c (check): Likewise.
45396         * tests/unicase/test-u16-totitle.c (check): Likewise.
45397         * tests/unicase/test-u16-toupper.c (check): Likewise.
45398         * tests/unicase/test-u32-casefold.c (check): Likewise.
45399         * tests/unicase/test-u32-tolower.c (check): Likewise.
45400         * tests/unicase/test-u32-totitle.c (check): Likewise.
45401         * tests/unicase/test-u32-toupper.c (check): Likewise.
45402         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45403         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45404         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45405         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45406         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45407         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45408         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45409         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45410         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45411         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45412         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45413         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45414
45415 2009-04-05  Bruno Haible  <bruno@clisp.org>
45416
45417         Work around an autoconf limitation.
45418         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45419         comment line if it would be longer than 3 KB.
45420
45421 2009-04-05  Bruno Haible  <bruno@clisp.org>
45422
45423         Avoid test failure with libiconv-1.13.
45424         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45425         of the expected test results.
45426
45427 2009-04-05  Bruno Haible  <bruno@clisp.org>
45428
45429         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45430         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45431         that it should be installed.
45432
45433 2009-04-05  Bruno Haible  <bruno@clisp.org>
45434
45435         * gnulib-tool: New option --copy-file.
45436         (func_usage): Document it.
45437         (func_dest_tmpfilename): Moved out of func_import.
45438         (func_add_file, func_update_file): New functions, extracted from
45439         func_import.
45440         (func_import): Update.
45441
45442 2009-04-05  Karl Berry  <karl@gnu.org>
45443
45444         * README: prominently mention gnulib-tool.
45445         Rearrange sections so getting the code is near the top.
45446
45447 2009-04-05  Bruno Haible  <bruno@clisp.org>
45448
45449         * lib/unicase.h: Mention u*_cmp2.
45450         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45451         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45452         * lib/unicase/ulc-casecmp.c: Likewise.
45453         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45454         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45455         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45456         unistr/u8-cmp.
45457         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45458         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45459         unistr/u16-cmp.
45460         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45461         unistr/u32-cmp.
45462
45463         * lib/uninorm.h: Mention u*_cmp2.
45464         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45465         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45466         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45467         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45468         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45469         unistr/u8-cmp.
45470         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45471         unistr/u16-cmp.
45472         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45473         unistr/u32-cmp.
45474
45475         New module 'unistr/u32-cmp2'.
45476         * lib/unistr/u32-cmp2.c: New file.
45477         * modules/unistr/u32-cmp2: New file.
45478
45479         New module 'unistr/u16-cmp2'.
45480         * lib/unistr/u16-cmp2.c: New file.
45481         * modules/unistr/u16-cmp2: New file.
45482
45483         New module 'unistr/u8-cmp2'.
45484         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45485         * lib/unistr/u8-cmp2.c: New file.
45486         * lib/unistr/u-cmp2.h: New file.
45487         * modules/unistr/u8-cmp2: New file.
45488
45489 2009-04-05  Bruno Haible  <bruno@clisp.org>
45490
45491         * lib/unictype.h (uc_property_is_valid): New macro.
45492         * tests/unictype/test-pr_byname.c (main): Use it.
45493
45494         * lib/unistr.h: Doc fixes.
45495         * lib/uniconv.h: Doc fixes.
45496         * lib/unictype.h: Doc fixes.
45497
45498 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45499
45500         Port coreutils 7.2 to Solaris 8.
45501
45502         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45503         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45504         for Solaris 8.  This is a bit of a hack, as it means it's the
45505         caller's responsibility to add -lnsl if needed, but most likely it
45506         won't be needed since only getaddrinfo uses this and getaddrinfo
45507         isn't needed on Solaris 8.
45508
45509         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45510         problem to Solaris 8 encountered with coreutils 7.2, which
45511         resulted in a message "fnmatch.c:292: warning: passing argument 4
45512         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45513         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45514
45515 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45516
45517         * m4/ld-version-script.m4: Add FIXME comment.
45518
45519 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45520
45521         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45522         SOVERSION variable.
45523
45524 2009-04-02  Bruno Haible  <bruno@clisp.org>
45525
45526         * Makefile (info, html, dvi, pdf): Combine the rules.
45527         Suggested by Jim Meyering.
45528
45529 2009-04-01  Bruno Haible  <bruno@clisp.org>
45530
45531         * Makefile (info, html, dvi, pdf): New targets.
45532         Reported by Reuben Thomas <rrt@sc3d.org>.
45533
45534 2009-04-01  Bruno Haible  <bruno@clisp.org>
45535
45536         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45537         can be put into PATH.
45538         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45539
45540 2009-04-01  Bruno Haible  <bruno@clisp.org>
45541
45542         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45543
45544 2009-04-01  Bruno Haible  <bruno@clisp.org>
45545
45546         Rename module 'visibility'.
45547         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45548         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45549         * doc/gnulib.texi: Update.
45550         * MODULES.html.sh (Misc): Update.
45551         * NEWS: Mention the change.
45552
45553 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45554
45555         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45556         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45557         Eric Blake <ebb9@byu.net> for review.
45558         * MODULES.html.sh: Add lib-msvc-compat.
45559         * doc/gnulib.texi: Link to new section.
45560         * m4/ld-output-def.m4: New file.
45561         * doc/ld-output-def.texi: New file.
45562
45563 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45564
45565         Rename ld-version-script to lib-symbol-versions.  Suggested by
45566         Bruno Haible <bruno@clisp.org>.
45567         * modules/ld-version-script: Renamed to lib-symbol-versions.
45568         * doc/ld-version-script.texi: Fix module name.
45569         * MODULES.html.sh: Add lib-symbol-versions.
45570
45571 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45572
45573         * modules/u64-tests: New file.
45574         * tests/test-u64.c: New file.
45575
45576 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45577
45578         * MODULES.html.sh: Mention u64.
45579         * modules/u64: New module.
45580         * modules/crypto/sha512: Depend on u64 module instead of providing
45581         u64.h.
45582
45583 2009-03-27  Eric Blake  <ebb9@byu.net>
45584
45585         test-strerror: make debugging EAI_SYSTEM easier
45586         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45587         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45588         failure was EAI_SYSTEM.
45589
45590 2009-03-25  Bruno Haible  <bruno@clisp.org>
45591
45592         Fix a problem with --enable-relocatable on Solaris 7.
45593         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45594         since 2008-02-24.
45595
45596 2009-03-25  Eric Blake  <ebb9@byu.net>
45597
45598         test-sockets: avoid gcc warning
45599         * tests/test-sockets.c (main): Silence compiler warning.
45600
45601 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45602
45603         New modules nproc, pthread, contributed by Glen Lenker.
45604
45605         * MODULES.html.sh: Add pthread, nproc.
45606         * lib/nproc.c: New file.
45607         * lib/nproc.h: New file.
45608         * lib/pthread.in.h: New file.
45609         * m4/pthread.m4: New file.
45610         * modules/nproc: New file.
45611         * modules/pthread: New file.
45612
45613 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45614
45615         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45616         New variable.
45617
45618 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45619
45620         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45621         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45622         * tests/test-filevercmp.c: Add tests for backup suffixes.
45623
45624 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45625
45626         * modules/stdlib (Depends-on): Add stdint, needed when defining
45627         struct random_data on, for example, HP-UX 10.20.  Reported by
45628         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45629
45630 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45631
45632         * lib/readline.c (readline): Call fflush on stdout after printing
45633         prompt.
45634
45635 2009-03-20  Bruno Haible  <bruno@clisp.org>
45636
45637         Remove dependency from 'close' module to -lws2_32 on native Windows.
45638         * lib/close-hook.h: New file.
45639         * lib/close-hook.c: New file.
45640         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45641         w32sock.h.
45642         (_gl_close_fd_maybe_socket): Remove function.
45643         (rpl_close): Invoke execute_all_close_hooks instead of
45644         _gl_close_fd_maybe_socket.
45645         * lib/sockets.c: Include close-hook.h, w32sock.h.
45646         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45647         (close_sockets_hook): New variable.
45648         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45649         (gl_sockets_cleanup): Unregister it.
45650         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45651         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45652         * modules/close-hook: New file.
45653         * modules/close (Files): Remove lib/w32sock.h.
45654         (Depends-on): Add close-hook.
45655         (Link): Remove section.
45656         * modules/sockets (Files): Add lib/w32sock.h.
45657         (Depends-on): Add close-hook.
45658         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45659         invocation.
45660         * NEWS: Mention that LIB_CLOSE is gone.
45661
45662 2009-03-23  Eric Blake  <ebb9@byu.net>
45663
45664         signal-tests: test previous patch
45665         * tests/test-signal.c: New file.
45666         * modules/signal-tests: Likewise.
45667
45668         signal.h: always support 'volatile sig_atomic_t'
45669         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45670         (gl_SIGNAL_H_DEFAULTS): Add a default.
45671         * modules/signal (Makefile.am): Substitute if needed.
45672         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45673         users can blindly add volatile.
45674         * doc/posix-headers/signal.texi (signal.h): Document it.
45675         Reported by Matthew Woehlke.
45676
45677 2009-03-23  Jim Meyering  <meyering@redhat.com>
45678
45679         pathmax: PATH_MAX: use pathconf only when available
45680         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45681         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45682         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45683         This avoids a link failure in a PSP cross-compilation environment
45684         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45685
45686         * lib/vasnprintf.c (divide): Fix typo in comment.
45687
45688 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45689
45690         * gnulib-tool (func_filter_filelist): Fix comment.
45691
45692 2009-03-20  Bruno Haible  <bruno@clisp.org>
45693
45694         Make sockets.h self-contained.
45695         * lib/sockets.c: Include sockets.h first.
45696         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45697
45698 2009-03-19  Eric Blake  <ebb9@byu.net>
45699
45700         doc: mention more functions added in cygwin 1.7.0
45701         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45702         addition.
45703         * doc/posix-functions/log2f.texi: Likewise.
45704
45705 2009-03-19  Jim Meyering  <meyering@redhat.com>
45706
45707         fsusage: avoid syntax error due to statement-before-declaration
45708         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45709         after all declarations.  Reported by Matthew Woehlke in
45710         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45711
45712 2009-03-18  Eric Blake  <ebb9@byu.net>
45713
45714         build-aux/compile: sync from automake
45715         * build-aux/compile: New file, from automake.
45716         * config/srclist.txt: Mention build-aux/compile.
45717
45718 2009-03-17  Bruno Haible  <bruno@clisp.org>
45719
45720         * lib/git-merge-changelog.c: Fix typo in comment.
45721         Reported by Reuben Thomas <rrt@sc3d.org>.
45722
45723 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45724
45725         * m4/regex.m4: update and improve help for
45726         --without-included-regex.
45727
45728 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45729
45730         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45731         failure on missing include files.
45732
45733 2009-03-17  Eric Blake  <ebb9@byu.net>
45734
45735         doc: mention more functions added in cygwin 1.7.0
45736         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45737         addition.
45738         * doc/posix-functions/fwscanf.texi: Likewise.
45739         * doc/posix-functions/swprintf.texi: Likewise.
45740         * doc/posix-functions/swscanf.texi: Likewise.
45741         * doc/posix-functions/vfwprintf.texi: Likewise.
45742         * doc/posix-functions/vfwscanf.texi: Likewise.
45743         * doc/posix-functions/vswprintf.texi: Likewise.
45744         * doc/posix-functions/vswscanf.texi: Likewise.
45745         * doc/posix-functions/vwprintf.texi: Likewise.
45746         * doc/posix-functions/vwscanf.texi: Likewise.
45747         * doc/posix-functions/wcscasecmp.texi: Likewise.
45748         * doc/posix-functions/wcsdup.texi: Likewise.
45749         * doc/posix-functions/wcsftime.texi: Likewise.
45750         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45751         * doc/posix-functions/wprintf.texi: Likewise.
45752         * doc/posix-functions/wscanf.texi: Likewise.
45753         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45754
45755 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45756
45757         maint.mk: really add $(AM_MAKEFLAGS)
45758         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45759         was inadvertently omitted in the last commit.
45760         Spotted by Bruno Haible.
45761
45762         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45763         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45764         $(AM_MAKEFLAGS)' rather than plain `make'.
45765
45766         gnulib-tool: execute $MAKE not make
45767         * gnulib-tool: Default $MAKE to 'make'.
45768         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45769         than make.  Initialize $MAKE in the do-autobuild script.
45770
45771         gnulib-tool: use $MAKE not make in generated files
45772         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45773         make, in generated files.  Initialize $MAKE in the do-autobuild
45774         script.
45775
45776         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45777
45778         GNUmakefile: disable parallelism only for multiple, recursive targets
45779         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45780         additions in the Makefile.
45781         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45782         by Automake.
45783         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45784         are listed on the command line and at least one of them is
45785         listed in $(ALL_RECURSIVE_TARGETS).
45786
45787 2009-03-14  Bruno Haible  <bruno@clisp.org>
45788
45789         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45790         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45791         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45792         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45793         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45794         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45795         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45796         unistr/u8-uctomb.
45797         * modules/unistr/u8-strchr (Depends-on): Likewise.
45798         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45799         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45800         unistr/u16-uctomb.
45801         * modules/unistr/u16-strchr (Depends-on): Likewise.
45802         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45803
45804 2009-03-12  Bruno Haible  <bruno@clisp.org>
45805
45806         Work around select() bug on Interix 3.5.
45807         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45808         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45809         * m4/select.m4: New file.
45810         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45811         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45812         * modules/select (Files): Add m4/select.m4.
45813         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45814         * modules/nanosleep (Depends-on): Add select.
45815         * modules/poll (Depends-on): Likewise.
45816         * doc/posix-functions/select.texi: Mention the Interix bug.
45817         Reported by Markus Duft <mduft@gentoo.org>.
45818
45819         * lib/select.c: Renamed from lib/winsock-select.c.
45820         * modules/select (Files): Add lib/select.c, remove
45821         lib/winsock-select.c.
45822         (configure.ac): Update.
45823
45824 2009-03-12  Jim Meyering  <meyering@redhat.com>
45825
45826         avoid gcc warnings about unused macro definitions
45827         * lib/readtokens.c (STREQ): Remove unused definition.
45828         * lib/xmalloc.c (SIZE_MAX): Likewise.
45829         * lib/openat-die.c (N_): Likewise.
45830         * lib/mountlist.c (SIZE_MAX): Remove definition.
45831         Instead, include <stdint.h>.
45832         * lib/readutmp.c: Likewise.
45833         * modules/readutmp (Depends-on): Add stdint.
45834         * modules/mountlist (Depends-on): Add stdint.
45835         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45836
45837 2009-03-10  Bruno Haible  <bruno@clisp.org>
45838
45839         Tests for module 'mbmemcasecoll'.
45840         * modules/mbmemcasecoll-tests: New file.
45841         * tests/test-mbmemcasecoll1.sh: New file.
45842         * tests/test-mbmemcasecoll2.sh: New file.
45843         * tests/test-mbmemcasecoll3.sh: New file.
45844         * tests/test-mbmemcasecoll.c: New file.
45845
45846         New module 'mbmemcasecoll'.
45847         * lib/mbmemcasecoll.h: New file.
45848         * lib/mbmemcasecoll.c: New file.
45849         * modules/mbmemcasecoll: New file.
45850
45851         * tests/test-mbmemcasecmp.h: New file, extracted from
45852         tests/test-mbmemcasecmp.c.
45853         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45854         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45855         (main): Update.
45856         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45857
45858 2009-03-09  Bruno Haible  <bruno@clisp.org>
45859
45860         Tests for module 'mbmemcasecmp'.
45861         * modules/mbmemcasecmp-tests: New file.
45862         * tests/test-mbmemcasecmp1.sh: New file.
45863         * tests/test-mbmemcasecmp2.sh: New file.
45864         * tests/test-mbmemcasecmp3.sh: New file.
45865         * tests/test-mbmemcasecmp.c: New file.
45866
45867         New module 'mbmemcasecmp'.
45868         * lib/mbmemcasecmp.h: New file.
45869         * lib/mbmemcasecmp.c: New file.
45870         * modules/mbmemcasecmp: New file.
45871
45872 2009-03-09  Bruno Haible  <bruno@clisp.org>
45873
45874         Tests for module 'unicase/ulc-casecoll'.
45875         * modules/unicase/ulc-casecoll-tests: New file.
45876         * tests/unicase/test-ulc-casecoll1.sh: New file.
45877         * tests/unicase/test-ulc-casecoll2.sh: New file.
45878         * tests/unicase/test-ulc-casecoll.c: New file.
45879
45880         New module 'unicase/ulc-casecoll'.
45881         * lib/unicase.h (ulc_casecoll): New declaration.
45882         * lib/unicase/ulc-casecoll.c: New file.
45883         * modules/unicase/ulc-casecoll: New file.
45884
45885         New module 'unicase/ulc-casexfrm'.
45886         * lib/unicase.h (ulc_casexfrm): New declaration.
45887         * lib/unicase/ulc-casexfrm.c: New file.
45888         * modules/unicase/ulc-casexfrm: New file.
45889
45890 2009-03-09  Bruno Haible  <bruno@clisp.org>
45891
45892         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45893         invocations.
45894
45895         * m4/mbscasecmp.m4: Remove file.
45896         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45897         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45898
45899         * m4/mbscasestr.m4: Remove file.
45900         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45901         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45902
45903         * m4/mbschr.m4: Remove file.
45904         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45905         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45906
45907         * m4/mbscspn.m4: Remove file.
45908         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45909         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45910
45911         * m4/mbslen.m4: Remove file.
45912         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45913         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45914
45915         * m4/mbsncasecmp.m4: Remove file.
45916         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45917         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45918
45919         * m4/mbsnlen.m4: Remove file.
45920         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45921         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45922
45923         * m4/mbspbrk.m4: Remove file.
45924         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45925         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45926
45927         * m4/mbspcasecmp.m4: Remove file.
45928         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45929         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45930
45931         * m4/mbsrchr.m4: Remove file.
45932         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45933         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45934
45935         * m4/mbssep.m4: Remove file.
45936         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45937         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45938
45939         * m4/mbsspn.m4: Remove file.
45940         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45941         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45942
45943         * m4/mbsstr.m4: Remove file.
45944         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45945         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45946
45947         * m4/mbstok_r.m4: Remove file.
45948         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45949         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45950
45951         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45952
45953         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45954         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45955
45956         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45957
45958 2009-03-08  Bruno Haible  <bruno@clisp.org>
45959
45960         Tests for module 'unicase/ulc-casecmp'.
45961         * modules/unicase/ulc-casecmp-tests: New file.
45962         * tests/unicase/test-ulc-casecmp1.sh: New file.
45963         * tests/unicase/test-ulc-casecmp2.sh: New file.
45964         * tests/unicase/test-ulc-casecmp.c: New file.
45965
45966         New module 'unicase/ulc-casecmp'.
45967         * lib/unicase.h (ulc_casecmp): New declaration.
45968         * lib/unicase/ulc-casecmp.c: New file.
45969         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45970         'const SRC_UNIT *'.
45971         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45972         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45973         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45974         * modules/unicase/ulc-casecmp: New file.
45975
45976         Tests for module 'unicase/u32-is-cased'.
45977         * modules/unicase/u32-is-cased-tests: New file.
45978         * tests/unicase/test-u32-is-cased.c: New file.
45979
45980         Tests for module 'unicase/u16-is-cased'.
45981         * modules/unicase/u16-is-cased-tests: New file.
45982         * tests/unicase/test-u16-is-cased.c: New file.
45983
45984         Tests for module 'unicase/u8-is-cased'.
45985         * modules/unicase/u8-is-cased-tests: New file.
45986         * tests/unicase/test-u8-is-cased.c: New file.
45987         * tests/unicase/test-is-cased.h: New file.
45988
45989         New module 'unicase/u32-is-cased'.
45990         * lib/unicase/u32-is-cased.c: New file.
45991         * modules/unicase/u32-is-cased: New file.
45992
45993         New module 'unicase/u16-is-cased'.
45994         * lib/unicase/u16-is-cased.c: New file.
45995         * modules/unicase/u16-is-cased: New file.
45996
45997         New module 'unicase/u8-is-cased'.
45998         * lib/unicase/u8-is-cased.c: New file.
45999         * lib/unicase/u-is-cased.h: New file.
46000         * modules/unicase/u8-is-cased: New file.
46001
46002         Tests for module 'unicase/u32-is-casefolded'.
46003         * modules/unicase/u32-is-casefolded-tests: New file.
46004         * tests/unicase/test-u32-is-casefolded.c: New file.
46005
46006         Tests for module 'unicase/u16-is-casefolded'.
46007         * modules/unicase/u16-is-casefolded-tests: New file.
46008         * tests/unicase/test-u16-is-casefolded.c: New file.
46009
46010         Tests for module 'unicase/u8-is-casefolded'.
46011         * modules/unicase/u8-is-casefolded-tests: New file.
46012         * tests/unicase/test-u8-is-casefolded.c: New file.
46013         * tests/unicase/test-is-casefolded.h: New file.
46014
46015         New module 'unicase/u32-is-casefolded'.
46016         * lib/unicase/u32-is-casefolded.c: New file.
46017         * modules/unicase/u32-is-casefolded: New file.
46018
46019         New module 'unicase/u16-is-casefolded'.
46020         * lib/unicase/u16-is-casefolded.c: New file.
46021         * modules/unicase/u16-is-casefolded: New file.
46022
46023         New module 'unicase/u8-is-casefolded'.
46024         * lib/unicase/u8-is-casefolded.c: New file.
46025         * modules/unicase/u8-is-casefolded: New file.
46026
46027         Tests for module 'unicase/u32-is-titlecase'.
46028         * modules/unicase/u32-is-titlecase-tests: New file.
46029         * tests/unicase/test-u32-is-titlecase.c: New file.
46030
46031         Tests for module 'unicase/u16-is-titlecase'.
46032         * modules/unicase/u16-is-titlecase-tests: New file.
46033         * tests/unicase/test-u16-is-titlecase.c: New file.
46034
46035         Tests for module 'unicase/u8-is-titlecase'.
46036         * modules/unicase/u8-is-titlecase-tests: New file.
46037         * tests/unicase/test-u8-is-titlecase.c: New file.
46038         * tests/unicase/test-is-titlecase.h: New file.
46039
46040         New module 'unicase/u32-is-titlecase'.
46041         * lib/unicase/u32-is-titlecase.c: New file.
46042         * modules/unicase/u32-is-titlecase: New file.
46043
46044         New module 'unicase/u16-is-titlecase'.
46045         * lib/unicase/u16-is-titlecase.c: New file.
46046         * modules/unicase/u16-is-titlecase: New file.
46047
46048         New module 'unicase/u8-is-titlecase'.
46049         * lib/unicase/u8-is-titlecase.c: New file.
46050         * modules/unicase/u8-is-titlecase: New file.
46051
46052         Tests for module 'unicase/u32-is-lowercase'.
46053         * modules/unicase/u32-is-lowercase-tests: New file.
46054         * tests/unicase/test-u32-is-lowercase.c: New file.
46055
46056         Tests for module 'unicase/u16-is-lowercase'.
46057         * modules/unicase/u16-is-lowercase-tests: New file.
46058         * tests/unicase/test-u16-is-lowercase.c: New file.
46059
46060         Tests for module 'unicase/u8-is-lowercase'.
46061         * modules/unicase/u8-is-lowercase-tests: New file.
46062         * tests/unicase/test-u8-is-lowercase.c: New file.
46063         * tests/unicase/test-is-lowercase.h: New file.
46064
46065         New module 'unicase/u32-is-lowercase'.
46066         * lib/unicase/u32-is-lowercase.c: New file.
46067         * modules/unicase/u32-is-lowercase: New file.
46068
46069         New module 'unicase/u16-is-lowercase'.
46070         * lib/unicase/u16-is-lowercase.c: New file.
46071         * modules/unicase/u16-is-lowercase: New file.
46072
46073         New module 'unicase/u8-is-lowercase'.
46074         * lib/unicase/u8-is-lowercase.c: New file.
46075         * modules/unicase/u8-is-lowercase: New file.
46076
46077         Tests for module 'unicase/u32-is-uppercase'.
46078         * modules/unicase/u32-is-uppercase-tests: New file.
46079         * tests/unicase/test-u32-is-uppercase.c: New file.
46080
46081         Tests for module 'unicase/u16-is-uppercase'.
46082         * modules/unicase/u16-is-uppercase-tests: New file.
46083         * tests/unicase/test-u16-is-uppercase.c: New file.
46084
46085         Tests for module 'unicase/u8-is-uppercase'.
46086         * modules/unicase/u8-is-uppercase-tests: New file.
46087         * tests/unicase/test-u8-is-uppercase.c: New file.
46088         * tests/unicase/test-is-uppercase.h: New file.
46089
46090         New module 'unicase/u32-is-uppercase'.
46091         * lib/unicase/u32-is-uppercase.c: New file.
46092         * modules/unicase/u32-is-uppercase: New file.
46093
46094         New module 'unicase/u16-is-uppercase'.
46095         * lib/unicase/u16-is-uppercase.c: New file.
46096         * modules/unicase/u16-is-uppercase: New file.
46097
46098         New module 'unicase/u8-is-uppercase'.
46099         * lib/unicase/u8-is-uppercase.c: New file.
46100         * modules/unicase/u8-is-uppercase: New file.
46101
46102         New module 'unicase/u32-is-invariant'.
46103         * lib/unicase/u32-is-invariant.c: New file.
46104         * modules/unicase/u32-is-invariant: New file.
46105
46106         New module 'unicase/u16-is-invariant'.
46107         * lib/unicase/u16-is-invariant.c: New file.
46108         * modules/unicase/u16-is-invariant: New file.
46109
46110         New module 'unicase/u8-is-invariant'.
46111         * lib/unicase/u8-is-invariant.c: New file.
46112         * lib/unicase/invariant.h: New file.
46113         * lib/unicase/u-is-invariant.h: New file.
46114         * modules/unicase/u8-is-invariant: New file.
46115
46116         Tests for module 'unicase/u32-casecoll'.
46117         * modules/unicase/u32-casecoll-tests: New file.
46118         * tests/unicase/test-u32-casecoll.c: New file.
46119
46120         Tests for module 'unicase/u16-casecoll'.
46121         * modules/unicase/u16-casecoll-tests: New file.
46122         * tests/unicase/test-u16-casecoll.c: New file.
46123
46124         Tests for module 'unicase/u8-casecoll'.
46125         * modules/unicase/u8-casecoll-tests: New file.
46126         * tests/unicase/test-u8-casecoll.c: New file.
46127
46128         New module 'unicase/u32-casecoll'.
46129         * lib/unicase/u32-casecoll.c: New file.
46130         * modules/unicase/u32-casecoll: New file.
46131
46132         New module 'unicase/u16-casecoll'.
46133         * lib/unicase/u16-casecoll.c: New file.
46134         * modules/unicase/u16-casecoll: New file.
46135
46136         New module 'unicase/u8-casecoll'.
46137         * lib/unicase/u8-casecoll.c: New file.
46138         * lib/unicase/u-casecoll.h: New file.
46139         * modules/unicase/u8-casecoll: New file.
46140
46141         New module 'unicase/u32-casexfrm'.
46142         * lib/unicase/u32-casexfrm.c: New file.
46143         * modules/unicase/u32-casexfrm: New file.
46144
46145         New module 'unicase/u16-casexfrm'.
46146         * lib/unicase/u16-casexfrm.c: New file.
46147         * modules/unicase/u16-casexfrm: New file.
46148
46149         New module 'unicase/u8-casexfrm'.
46150         * lib/unicase/u8-casexfrm.c: New file.
46151         * lib/unicase/u-casexfrm.h: New file.
46152         * modules/unicase/u8-casexfrm: New file.
46153
46154         Tests for module 'unicase/u32-casecmp'.
46155         * modules/unicase/u32-casecmp-tests: New file.
46156         * tests/unicase/test-u32-casecmp.c: New file.
46157
46158         Tests for module 'unicase/u16-casecmp'.
46159         * modules/unicase/u16-casecmp-tests: New file.
46160         * tests/unicase/test-u16-casecmp.c: New file.
46161
46162         Tests for module 'unicase/u8-casecmp'.
46163         * modules/unicase/u8-casecmp-tests: New file.
46164         * tests/unicase/test-u8-casecmp.c: New file.
46165         * tests/unicase/test-casecmp.h: New file.
46166
46167         New module 'unicase/u32-casecmp'.
46168         * lib/unicase/u32-casecmp.c: New file.
46169         * modules/unicase/u32-casecmp: New file.
46170
46171         New module 'unicase/u16-casecmp'.
46172         * lib/unicase/u16-casecmp.c: New file.
46173         * modules/unicase/u16-casecmp: New file.
46174
46175         New module 'unicase/u8-casecmp'.
46176         * lib/unicase/u8-casecmp.c: New file.
46177         * lib/unicase/u-casecmp.h: New file.
46178         * modules/unicase/u8-casecmp: New file.
46179
46180         Tests for module 'unicase/u32-casefold'.
46181         * modules/unicase/u32-casefold-tests: New file.
46182         * tests/unicase/test-u32-casefold.c: New file.
46183
46184         Tests for module 'unicase/u16-casefold'.
46185         * modules/unicase/u16-casefold-tests: New file.
46186         * tests/unicase/test-u16-casefold.c: New file.
46187
46188         Tests for module 'unicase/u8-casefold'.
46189         * modules/unicase/u8-casefold-tests: New file.
46190         * tests/unicase/test-u8-casefold.c: New file.
46191
46192         New module 'unicase/u32-casefold'.
46193         * lib/unicase/u32-casefold.c: New file.
46194         * modules/unicase/u32-casefold: New file.
46195
46196         New module 'unicase/u16-casefold'.
46197         * lib/unicase/u16-casefold.c: New file.
46198         * modules/unicase/u16-casefold: New file.
46199
46200         New module 'unicase/u8-casefold'.
46201         * lib/unicase/u8-casefold.c: New file.
46202         * lib/unicase/u-casefold.h: New file.
46203         * modules/unicase/u8-casefold: New file.
46204
46205         New module 'unicase/tocasefold'.
46206         * lib/unicase/casefold.h: New file.
46207         * lib/unicase/tocasefold.c: New file.
46208         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46209         * modules/unicase/tocasefold: New file.
46210
46211         Tests for module 'unicase/u32-totitle'.
46212         * modules/unicase/u32-totitle-tests: New file.
46213         * tests/unicase/test-u32-totitle.c: New file.
46214
46215         Tests for module 'unicase/u16-totitle'.
46216         * modules/unicase/u16-totitle-tests: New file.
46217         * tests/unicase/test-u16-totitle.c: New file.
46218
46219         Tests for module 'unicase/u8-totitle'.
46220         * modules/unicase/u8-totitle-tests: New file.
46221         * tests/unicase/test-u8-totitle.c: New file.
46222
46223         New module 'unicase/u32-totitle'.
46224         * lib/unicase/u32-totitle.c: New file.
46225         * modules/unicase/u32-totitle: New file.
46226
46227         New module 'unicase/u16-totitle'.
46228         * lib/unicase/u16-totitle.c: New file.
46229         * modules/unicase/u16-totitle: New file.
46230
46231         New module 'unicase/u8-totitle'.
46232         * lib/unicase/u8-totitle.c: New file.
46233         * lib/unicase/u-totitle.h: New file.
46234         * modules/unicase/u8-totitle: New file.
46235
46236         Tests for module 'unicase/u32-tolower'.
46237         * modules/unicase/u32-tolower-tests: New file.
46238         * tests/unicase/test-u32-tolower.c: New file.
46239
46240         Tests for module 'unicase/u16-tolower'.
46241         * modules/unicase/u16-tolower-tests: New file.
46242         * tests/unicase/test-u16-tolower.c: New file.
46243
46244         Tests for module 'unicase/u8-tolower'.
46245         * modules/unicase/u8-tolower-tests: New file.
46246         * tests/unicase/test-u8-tolower.c: New file.
46247
46248         New module 'unicase/u32-tolower'.
46249         * lib/unicase/u32-tolower.c: New file.
46250         * modules/unicase/u32-tolower: New file.
46251
46252         New module 'unicase/u16-tolower'.
46253         * lib/unicase/u16-tolower.c: New file.
46254         * modules/unicase/u16-tolower: New file.
46255
46256         New module 'unicase/u8-tolower'.
46257         * lib/unicase/u8-tolower.c: New file.
46258         * modules/unicase/u8-tolower: New file.
46259
46260         Tests for module 'unicase/u32-toupper'.
46261         * modules/unicase/u32-toupper-tests: New file.
46262         * tests/unicase/test-u32-toupper.c: New file.
46263
46264         Tests for module 'unicase/u16-toupper'.
46265         * modules/unicase/u16-toupper-tests: New file.
46266         * tests/unicase/test-u16-toupper.c: New file.
46267
46268         Tests for module 'unicase/u8-toupper'.
46269         * modules/unicase/u8-toupper-tests: New file.
46270         * tests/unicase/test-u8-toupper.c: New file.
46271
46272         New module 'unicase/u32-toupper'.
46273         * lib/unicase/u32-toupper.c: New file.
46274         * modules/unicase/u32-toupper: New file.
46275
46276         New module 'unicase/u16-toupper'.
46277         * lib/unicase/u16-toupper.c: New file.
46278         * modules/unicase/u16-toupper: New file.
46279
46280         New module 'unicase/u8-toupper'.
46281         * lib/unicase/u8-toupper.c: New file.
46282         * modules/unicase/u8-toupper: New file.
46283
46284         New module 'unicase/u32-casemap'.
46285         * lib/unicase/u32-casemap.c: New file.
46286         * modules/unicase/u32-casemap: New file.
46287
46288         New module 'unicase/u16-casemap'.
46289         * lib/unicase/u16-casemap.c: New file.
46290         * modules/unicase/u16-casemap: New file.
46291
46292         New module 'unicase/u8-casemap'.
46293         * lib/unicase/unicasemap.h: New file.
46294         * lib/unicase/u8-casemap.c: New file.
46295         * lib/unicase/u-casemap.h: New file.
46296         * modules/unicase/u8-casemap: New file.
46297
46298         New module 'unicase/special-casing'.
46299         * lib/unicase/special-casing.h: New file.
46300         * lib/unicase/special-casing.c: New file.
46301         * lib/unicase/special-casing-table.gperf: New file, generated by
46302         gen-uni-tables.c.
46303         * modules/unicase/special-casing: New file.
46304
46305         Tests for module 'unicase/locale-language'.
46306         * modules/unicase/locale-language-tests: New file.
46307         * tests/unicase/test-locale-language.sh: New file.
46308         * tests/unicase/test-locale-language.c: New file.
46309
46310         New module 'unicase/locale-language'.
46311         * lib/unicase/locale-language.c: New file.
46312         * lib/unicase/locale-languages.gperf: New file.
46313         * modules/unicase/locale-language: New file.
46314
46315         Generate more tables for case conversion and case folding.
46316         * lib/gen-uni-tables.c (SCC_*): New enum items.
46317         (struct special_casing_rule): New type.
46318         (casing_rules, num_casing_rules, allocated_casing_rules): New
46319         variables.
46320         (add_casing_rule, fill_casing_rules): New functions.
46321         (struct casefold_rule): New type.
46322         (casefolding_rules, num_casefolding_rules,
46323         allocated_casefolding_rules): New variables.
46324         (fill_casefolding_rules): New function.
46325         (unicode_casefold): New variable.
46326         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46327         sort_casing_rules, output_casing_rules): New functions.
46328         (main): Accept to more arguments: SpecialCasing.txt and
46329         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46330         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46331         Output mapping for casefolding.
46332
46333         * lib/unicase.h: Include stdbool.h, uninorm.h.
46334         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46335         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46336         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46337         arguments.
46338         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46339         resultp arguments.
46340         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46341         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46342         resultp arguments.
46343         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46344         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46345         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46346         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46347         declarations.
46348         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46349
46350 2009-03-08  Bruno Haible  <bruno@clisp.org>
46351
46352         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46353         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46354         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46355         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46356
46357 2009-03-07  Bruno Haible  <bruno@clisp.org>
46358
46359         Adjust u*_normcmp, u*_normcoll API.
46360         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46361         u16_normcoll, u32_normcoll): Change failure conventions.
46362         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46363         errno and return -1.
46364         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46365
46366 2009-03-07  Bruno Haible  <bruno@clisp.org>
46367
46368         Tests for module 'uninorm/u32-normcoll'.
46369         * modules/uninorm/u32-normcoll-tests: New file.
46370         * tests/uninorm/test-u32-normcoll.c: New file.
46371
46372         Tests for module 'uninorm/u16-normcoll'.
46373         * modules/uninorm/u16-normcoll-tests: New file.
46374         * tests/uninorm/test-u16-normcoll.c: New file.
46375
46376         Tests for module 'uninorm/u8-normcoll'.
46377         * modules/uninorm/u8-normcoll-tests: New file.
46378         * tests/uninorm/test-u8-normcoll.c: New file.
46379
46380 2009-03-07  Bruno Haible  <bruno@clisp.org>
46381
46382         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46383         tests/uninorm/test-u32-normcmp.c.
46384         * tests/uninorm/test-u32-normcmp.c: Include it.
46385         (test_nonascii): New function, extracted from main. Add some more
46386         tests.
46387         (main): Invoke test_ascii and test_nonascii.
46388         * modules/uninorm/u32-normcmp-tests (Files): Add
46389         tests/uninorm/test-u32-normcmp.h.
46390         (Depends-on): Remove uninorm/u32-normcmp.
46391
46392         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46393         tests/uninorm/test-u16-normcmp.c.
46394         * tests/uninorm/test-u16-normcmp.c: Include it.
46395         (test_nonascii): New function, extracted from main. Add some more
46396         tests.
46397         (main): Invoke test_ascii and test_nonascii.
46398         * modules/uninorm/u16-normcmp-tests (Files): Add
46399         tests/uninorm/test-u16-normcmp.h.
46400         (Depends-on): Remove uninorm/u16-normcmp.
46401
46402         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46403         tests/uninorm/test-u8-normcmp.c.
46404         * tests/uninorm/test-u8-normcmp.c: Include it.
46405         (test_nonascii): New function, extracted from main. Add some more
46406         tests.
46407         (main): Invoke test_ascii and test_nonascii.
46408         * modules/uninorm/u8-normcmp-tests (Files): Add
46409         tests/uninorm/test-u8-normcmp.h.
46410         (Depends-on): Remove uninorm/u8-normcmp.
46411
46412 2009-03-07  Bruno Haible  <bruno@clisp.org>
46413
46414         New module 'uninorm/u32-normcoll'.
46415         * lib/uninorm/u32-normcoll.c: New file.
46416         * modules/uninorm/u32-normcoll: New file.
46417
46418         New module 'uninorm/u16-normcoll'.
46419         * lib/uninorm/u16-normcoll.c: New file.
46420         * modules/uninorm/u16-normcoll: New file.
46421
46422         New module 'uninorm/u8-normcoll'.
46423         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46424         declarations.
46425         * lib/uninorm/u8-normcoll.c: New file.
46426         * lib/uninorm/u-normcoll.h: New file.
46427         * modules/uninorm/u8-normcoll: New file.
46428
46429         New module 'uninorm/u32-normxfrm'.
46430         * lib/uninorm/u32-normxfrm.c: New file.
46431         * modules/uninorm/u32-normxfrm: New file.
46432
46433         New module 'uninorm/u16-normxfrm'.
46434         * lib/uninorm/u16-normxfrm.c: New file.
46435         * modules/uninorm/u16-normxfrm: New file.
46436
46437         New module 'uninorm/u8-normxfrm'.
46438         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46439         declarations.
46440         * lib/uninorm/u8-normxfrm.c: New file.
46441         * lib/uninorm/u-normxfrm.h: New file.
46442         * modules/uninorm/u8-normxfrm: New file.
46443
46444 2009-03-07  Bruno Haible  <bruno@clisp.org>
46445
46446         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46447         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46448         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46449
46450 2009-03-07  Bruno Haible  <bruno@clisp.org>
46451
46452         New module 'memxfrm'.
46453         * lib/memxfrm.h: New file.
46454         * lib/memxfrm.c: New file.
46455         * modules/memxfrm: New file.
46456
46457 2009-03-07  Bruno Haible  <bruno@clisp.org>
46458
46459         New module 'memcmp2'.
46460         * lib/memcmp2.h: New file.
46461         * lib/memcmp2.c: New file.
46462         * modules/memcmp2: New file.
46463
46464 2009-03-07  Bruno Haible  <bruno@clisp.org>
46465
46466         Tests for module 'uninorm/decomposing-form'.
46467         * modules/uninorm/decomposing-form-tests: New file.
46468         * tests/uninorm/test-decomposing-form.c: New file.
46469
46470         New module 'uninorm/decomposing-form'.
46471         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46472         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46473         Add 'decomposing_variant' field.
46474         * lib/uninorm/decomposing-form.c: New file.
46475         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46476         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46477         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46478         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46479         * modules/uninorm/decomposing-form: New file.
46480         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46481         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46482
46483 2009-03-07  Bruno Haible  <bruno@clisp.org>
46484
46485         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46486         strings.
46487
46488 2009-03-06  Bruno Haible  <bruno@clisp.org>
46489
46490         Tests for module 'uninorm/u32-normcmp'.
46491         * tests/uninorm/test-u32-normcmp.c: New file.
46492         * modules/uninorm/u32-normcmp-tests: New file.
46493
46494         Tests for module 'uninorm/u16-normcmp'.
46495         * tests/uninorm/test-u16-normcmp.c: New file.
46496         * modules/uninorm/u16-normcmp-tests: New file.
46497
46498         Tests for module 'uninorm/u8-normcmp'.
46499         * tests/uninorm/test-u8-normcmp.c: New file.
46500         * modules/uninorm/u8-normcmp-tests: New file.
46501
46502         New module 'uninorm/u32-normcmp'.
46503         * lib/uninorm/u32-normcmp.c: New file.
46504         * modules/uninorm/u32-normcmp: New file.
46505
46506         New module 'uninorm/u16-normcmp'.
46507         * lib/uninorm/u16-normcmp.c: New file.
46508         * modules/uninorm/u16-normcmp: New file.
46509
46510         New module 'uninorm/u8-normcmp'.
46511         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46512         declarations.
46513         * lib/uninorm/u8-normcmp.c: New file.
46514         * lib/uninorm/u-normcmp.h: New file.
46515         * modules/uninorm/u8-normcmp: New file.
46516
46517 2009-03-06  Bruno Haible  <bruno@clisp.org>
46518
46519         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46520         Reported by Eric Blake.
46521
46522 2009-03-06  Eric Blake  <ebb9@byu.net>
46523             Bruno Haible  <bruno@clisp.org>
46524
46525         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46526         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46527         condition.
46528         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46529         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46530         condition.
46531         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46532
46533 2009-03-06  Eric Blake  <ebb9@byu.net>
46534
46535         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46536         to avoid compiler warnings.
46537         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46538
46539 2009-03-05  Bruno Haible  <bruno@clisp.org>
46540
46541         * tests/test-ftell.c (main): Disable test beyond end of file on
46542         FreeMiNT.
46543         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46544
46545 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46546
46547         * lib/filevercmp.c: Move hidden files up in ordering.
46548         * tests/test-filevercmp.c: Add tests for hidden files.
46549
46550 2009-03-04  Bruno Haible  <bruno@clisp.org>
46551
46552         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46553         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46554         AM_CFLAGS.
46555         Reported by Simon Josefsson.
46556
46557 2009-03-03  Bruno Haible  <bruno@clisp.org>
46558
46559         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46560         Reported by Simon Josefsson.
46561
46562         * doc/ld-version-script.texi: Update node reference.
46563
46564 2009-03-03  Bruno Haible  <bruno@clisp.org>
46565
46566         * modules/visibility (License): Change to 'unlimited'.
46567         Suggested by Simon Josefsson.
46568
46569 2009-03-03  Jim Meyering  <meyering@redhat.com>
46570
46571         unlinkdir: cannot_unlink_dir may modify process state
46572         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46573         it's neither thread-safe nor appropriate for use in a library.
46574
46575 2009-03-03  Eric Blake  <ebb9@byu.net>
46576
46577         test-closein: silence test under Darwin
46578         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46579         care if it dies from EPIPE or EBADF.
46580
46581 2009-03-03  Bruno Haible  <bruno@clisp.org>
46582
46583         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46584         earlier.
46585         * doc/visibility.texi: Fix @node and @section.
46586
46587 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46588
46589         * doc/gnulib.texi: Link to sections for ld version script and
46590         visibility.
46591         * doc/visibility.texi: Add @node and @section.
46592         * modules/ld-version-script: New module.
46593         * m4/ld-version-script.m4: New file.
46594         * doc/ld-version-script.texi: New file.
46595
46596 2009-03-02  David Lutterkort  <lutter@redhat.com>
46597
46598         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46599         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46600
46601 2009-03-02  Bruno Haible  <bruno@clisp.org>
46602
46603         * doc/visibility.texi: Mention libtool's -export-symbols option.
46604
46605 2009-03-02  Jim Meyering  <meyering@redhat.com>
46606
46607         announce-gen: new option: --no-print-checksums
46608         * build-aux/announce-gen (usage): Describe it.
46609         (print_checksums): Print a newline here, not in the [*] footnote.
46610         (main): Honor it.
46611
46612 2009-03-01  Bruno Haible  <bruno@clisp.org>
46613
46614         Use socklen_t in the native Windows replacements prototypes.
46615         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46616         instead of 'int'.
46617         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46618         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46619         * modules/getsockopt (Depends-on): Add socklen.
46620         * modules/setsockopt (Depends-on): Add socklen.
46621
46622 2009-03-01  Bruno Haible  <bruno@clisp.org>
46623
46624         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46625         least 4.2.
46626
46627 2009-03-01  Eric Blake  <ebb9@byu.net>
46628             Bruno Haible  <bruno@clisp.org>
46629
46630         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46631         error messages.
46632         * lib/wait-process.c (wait_subprocess): Omit error message about
46633         deadly signal sent to the child of termsigp != NULL.
46634
46635 2009-03-01  Eric Blake  <ebb9@byu.net>
46636
46637         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46638
46639 2009-03-01  Bruno Haible  <bruno@clisp.org>
46640
46641         Avoid a gcc warning.
46642         * tests/test-sched.c (b): Make global.
46643         Reported by Eric Blake.
46644
46645 2009-01-19  Martin Lambers  <marlam@marlam.de>
46646
46647         Provide POSIX semantics for socket timeout options on W32.
46648         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46649         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46650         * modules/setsockopt: Depend on sys_time module for struct timeval.
46651         * modules/getsockopt: Depend on sys_time module for struct timeval.
46652
46653 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46654
46655         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46656         __USE_GNU, for consistency with netdb.in.h.
46657         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46658
46659 2009-03-01  Bruno Haible  <bruno@clisp.org>
46660
46661         More support for FreeMiNT.
46662         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46663         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46664
46665 2009-03-01  Bruno Haible  <bruno@clisp.org>
46666
46667         More support for FreeMiNT.
46668         * lib/fpurge.c (fpurge): Correct last commit.
46669         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46670
46671 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46672
46673         Fix unportable awk script in vc-list-files.
46674         * build-aux/vc-list-files: In the replacement awk script, use
46675         substr with a second argument of 1, not zero.
46676         Report by Simon Josefsson.
46677
46678 2009-02-28  Bruno Haible  <bruno@clisp.org>
46679
46680         More support for FreeMiNT.
46681         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46682         to FreeMiNT today.
46683         * lib/fwriting.c (fwriting): Likewise.
46684         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46685
46686 2009-02-28  Bruno Haible  <bruno@clisp.org>
46687
46688         * tests/test-freadseek.c (main): Disable test beyond end of file on
46689         FreeMiNT.
46690         * tests/test-ftello.c (main): Likewise.
46691         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46692
46693 2009-02-28  Bruno Haible  <bruno@clisp.org>
46694
46695         Add tentative support for FreeMiNT.
46696         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46697         * lib/fpurge.c (fpurge): Likewise.
46698         * lib/freadable.c (freadable): Likewise.
46699         * lib/freading.c (freading): Likewise.
46700         * lib/freadptr.c (freadptr): Likewise.
46701         * lib/freadseek.c (freadptrinc): Likewise.
46702         * lib/fseeko.c (rpl_fseeko): Likewise.
46703         * lib/fseterr.c (fseterr): Likewise.
46704         * lib/fwritable.c (fwritable): Likewise.
46705         * lib/fwriting.c (fwriting): Likewise.
46706         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46707         Hourihane.
46708         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46709
46710 2009-02-28  Bruno Haible  <bruno@clisp.org>
46711
46712         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46713         SIGCHLD.
46714         Reported by Jim Meyering.
46715
46716 2009-02-28  Bruno Haible  <bruno@clisp.org>
46717
46718         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46719         Mention the results of these tests on various platforms.
46720         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46721         order.
46722         * doc/posix-functions/printf.texi: Likewise.
46723         * doc/posix-functions/snprintf.texi: Likewise.
46724         * doc/posix-functions/sprintf.texi: Likewise.
46725         * doc/posix-functions/vfprintf.texi: Likewise.
46726         * doc/posix-functions/vprintf.texi: Likewise.
46727         * doc/posix-functions/vsnprintf.texi: Likewise.
46728         * doc/posix-functions/vsprintf.texi: Likewise.
46729         * doc/glibc-functions/obstack_printf.texi: Likewise.
46730         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46731
46732 2009-02-28  Bruno Haible  <bruno@clisp.org>
46733
46734         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46735         Reported by Loïc Minier <lool@dooz.org>.
46736
46737 2009-02-27  Bruno Haible  <bruno@clisp.org>
46738
46739         * gnulib-tool (func_import): Make the sed expression used to create the
46740         sed script for updating the .gitignore file POSIX compliant.
46741         Reported by Eric Blake.
46742
46743 2009-02-27  Bruno Haible  <bruno@clisp.org>
46744
46745         * gnulib-tool (sed): Don't alias as "sed --posix".
46746         Reported by Eric Blake.
46747
46748 2009-02-27  Bruno Haible  <bruno@clisp.org>
46749
46750         Avoid test link errors.
46751         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46752         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46753         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46754         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46755         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46756
46757 2009-02-27  Bruno Haible  <bruno@clisp.org>
46758
46759         Avoid spurious "(cached)" in configure output.
46760         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46761         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46762         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46763         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46764         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46765         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46766         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46767         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46768         Reported by Eric Blake.
46769
46770 2009-02-27  Eric Blake  <ebb9@byu.net>
46771
46772         printf: fix regression in previous patch
46773         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46774
46775 2009-02-27  Bruno Haible  <bruno@clisp.org>
46776
46777         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46778         value.
46779         * lib/stdint.in.h: Likewise.
46780         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46781
46782 2009-02-27  Eric Blake  <ebb9@byu.net>
46783
46784         doc: mention more functions added in cygwin 1.7.0
46785         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46786         addition.
46787         * doc/posix-functions/open_wmemstream.texi: Likewise.
46788         * doc/posix-functions/wcsnlen.texi: Likewise.
46789         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46790         * doc/posix-functions/wcstod.texi: Likewise.
46791         * doc/posix-functions/wcstof.texi: Likewise.
46792         * doc/posix-functions/wcstoimax.texi: Likewise.
46793         * doc/posix-functions/wcstok.texi: Likewise.
46794         * doc/posix-functions/wcstoumax.texi: Likewise.
46795
46796         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46797         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46798         * doc/posix-functions/fprintf.texi: Update.
46799         * doc/posix-functions/printf.texi: Update.
46800         * doc/posix-functions/snprintf.texi: Update.
46801         * doc/posix-functions/sprintf.texi: Update.
46802         * doc/posix-functions/vfprintf.texi: Update.
46803         * doc/posix-functions/vprintf.texi: Update.
46804         * doc/posix-functions/vsnprintf.texi: Update.
46805         * doc/posix-functions/vsprintf.texi: Update.
46806         * doc/glibc-functions/obstack_printf.texi: Update.
46807         * doc/glibc-functions/obstack_vprintf.texi: Update.
46808
46809 2009-02-26  Eric Blake  <ebb9@byu.net>
46810
46811         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46812         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46813         compilation bug by using runtime conversion.
46814         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46815         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46816         * modules/ceill-tests (Files): Use nan.h.
46817         * modules/floorl-tests (Files): Likewise.
46818         * modules/frexpl-tests (Files): Likewise.
46819         * modules/isnanl-tests (Files): Likewise.
46820         * modules/ldexpl-tests (Files): Likewise.
46821         * modules/roundl-tests (Files): Likewise.
46822         * modules/truncl-tests (Files): Likewise.
46823         * tests/test-ceill.c (main): Use a working NaN.
46824         * tests/test-floorl.c (main): Likewise.
46825         * tests/test-frexpl.c (main): Likewise.
46826         * tests/test-isnan.c (test_long_double): Likewise.
46827         * tests/test-isnanl.h (main): Likewise.
46828         * tests/test-ldexpl.h (main): Likewise.
46829         * tests/test-roundl.h (main): Likewise.
46830         * tests/test-truncl.h (main): Likewise.
46831         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46832
46833 2009-02-26  Eric Blake  <ebb9@byu.net>
46834             Bruno Haible  <bruno@clisp.org>
46835
46836         Work around a *printf bug with %ls on Solaris.
46837         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46838         precision is specified, sprintf stops converting the wide string
46839         argument when the number of bytes that have been produced by this
46840         conversion equals or exceeds the precision.
46841         * doc/posix-functions/fprintf.texi: Update.
46842         * doc/posix-functions/printf.texi: Update.
46843         * doc/posix-functions/snprintf.texi: Update.
46844         * doc/posix-functions/sprintf.texi: Update.
46845         * doc/posix-functions/vfprintf.texi: Update.
46846         * doc/posix-functions/vprintf.texi: Update.
46847         * doc/posix-functions/vsnprintf.texi: Update.
46848         * doc/posix-functions/vsprintf.texi: Update.
46849         * doc/glibc-functions/obstack_printf.texi: Update.
46850         * doc/glibc-functions/obstack_vprintf.texi: Update.
46851
46852 2009-02-26  Eric Blake  <ebb9@byu.net>
46853
46854         stdlib: favor compiler check of random.h
46855         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46856         to avoid an ObjC random.h installed by Swarm.
46857
46858 2009-02-26  Bruno Haible  <bruno@clisp.org>
46859
46860         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46861         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46862         Reported by Gary V. Vaughan <gary@gnu.org>.
46863
46864 2009-02-26  Bruno Haible  <bruno@clisp.org>
46865
46866         Fix *printf behaviour regarding the %ls directive.
46867         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46868         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46869         NEED_PRINTF_DIRECTIVE_LS.
46870         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46871         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46872         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46873         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46874         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46875         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46876         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46877         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46878         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46879         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46880         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46881         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46882         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46883         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46884         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46885         * doc/posix-functions/fprintf.texi: Update.
46886         * doc/posix-functions/printf.texi: Update.
46887         * doc/posix-functions/snprintf.texi: Update.
46888         * doc/posix-functions/sprintf.texi: Update.
46889         * doc/posix-functions/vfprintf.texi: Update.
46890         * doc/posix-functions/vprintf.texi: Update.
46891         * doc/posix-functions/vsnprintf.texi: Update.
46892         * doc/posix-functions/vsprintf.texi: Update.
46893         * doc/glibc-functions/obstack_printf.texi: Update.
46894         * doc/glibc-functions/obstack_vprintf.texi: Update.
46895         Reported by Eric Blake.
46896
46897 2009-02-25  Bruno Haible  <bruno@clisp.org>
46898
46899         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46900         with known value.
46901         Reported by Gary V. Vaughan <gary@gnu.org>.
46902
46903 2009-02-25  Bruno Haible  <bruno@clisp.org>
46904
46905         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46906         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46907         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46908         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46909         Reported by Gary V. Vaughan <gary@gnu.org>.
46910
46911 2009-02-25  Bruno Haible  <bruno@clisp.org>
46912
46913         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46914         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46915         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46916         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46917         Reported by Gary V. Vaughan <gary@gnu.org>.
46918
46919 2009-02-25  Eric Blake  <ebb9@byu.net>
46920
46921         tests: skip fseek/ftell tests if ungetc is broken
46922         * m4/ungetc.m4: New file.
46923         * modules/fseek-tests: Split test, so ungetc dependency is
46924         separate from rest of test.
46925         * modules/fseeko-tests: Likewise.
46926         * modules/ftell-tests: Likewise.
46927         * modules/ftello-tests: Likewise.
46928         * tests/test-fseek.c (main): Isolate ungetc dependency.
46929         * tests/test-fseeko.c (main): Likewise.
46930         * tests/test-ftell.c (main): Likewise.
46931         * tests/test-ftello.c (main): Likewise.
46932         * tests/test-fseek2.sh: New file.
46933         * tests/test-fseeko2.sh: Likewise.
46934         * tests/test-ftell2.sh: Likewise.
46935         * tests/test-ftello2.sh: Likewise.
46936
46937 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
46938
46939         test-getaddrinfo: fix usage of skip return code 77
46940         * tests/test-gettaddrinfo.c: Return skip code 77 only
46941         for first occurrence of skip (4x77 is not 77)
46942
46943 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46944
46945         strtod: avoid C99 decl-after-statement
46946         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46947
46948 2009-02-24  Eric Blake  <ebb9@byu.net>
46949
46950         strtod: detect HP-UX 11.31 bug
46951         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46952         Reported by Gary V. Vaughan.
46953
46954 2009-02-23  Bruno Haible  <bruno@clisp.org>
46955
46956         Fix invalid read past end of memory block.
46957         * lib/vasnprintf.c (DCHAR_SET): Define.
46958         (local_wcslen): Define only when needed.
46959         (local_strnlen, local_wcsnlen): New functions.
46960         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46961         directives that involve a conversion ourselves.
46962         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46963         wcsnlen, mbrtowc, wcrtomb.
46964         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46965         * tests/test-vasprintf-posix.c (test_function): Likewise.
46966         * tests/test-snprintf-posix.h (test_function): Likewise.
46967         * tests/test-sprintf-posix.h (test_function): Likewise.
46968         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46969
46970 2009-02-22  Bruno Haible  <bruno@clisp.org>
46971
46972         Implement new clarified decomposition of Hangul syllables.
46973         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46974         of type LTV, return only a pairwise decomposition.
46975         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46976         Likewise.
46977         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46978         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46979         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46980
46981 2009-02-22  Bruno Haible  <bruno@clisp.org>
46982
46983         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46984         zero-length results and shrink excess allocated memory.
46985         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46986         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46987         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46988         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46989         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46990         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46991         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46992         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46993         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46994         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46995         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46996         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46997
46998 2009-02-21  Bruno Haible  <bruno@clisp.org>
46999
47000         * doc/gnulib.texi: Include safe-alloc.texi earlier.
47001         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
47002         spaces after a period. Put a space between a macro name and its
47003         argument list. Trivial rewordings.
47004         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
47005         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
47006         (main): Return 0 explicitly.
47007
47008 2009-02-21  Bruno Haible  <bruno@clisp.org>
47009
47010         Tests for module 'uninorm/filter'.
47011         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47012         * modules/uninorm/filter-tests: New file.
47013
47014         New module 'uninorm/filter'.
47015         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47016         uninorm_filter_flush, uninorm_filter_free): New declarations.
47017         * lib/uninorm/uninorm-filter.c: New file.
47018         * modules/uninorm/filter: New file.
47019
47020 2009-02-21  Bruno Haible  <bruno@clisp.org>
47021
47022         Tests for module 'uninorm/nfkc'.
47023         * tests/uninorm/test-nfkc.c: New file.
47024         * tests/uninorm/test-u8-nfkc.c: New file.
47025         * tests/uninorm/test-u16-nfkc.c: New file.
47026         * tests/uninorm/test-u32-nfkc.c: New file.
47027         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47028         * tests/uninorm/test-u32-nfkc-big.c: New file.
47029         * modules/uninorm/nfkc-tests: New file.
47030
47031         New module 'uninorm/nfkc'.
47032         * lib/uninorm/nfkc.c: New file.
47033         * modules/uninorm/nfkc: New file.
47034
47035         Tests for module 'uninorm/nfkd'.
47036         * tests/uninorm/test-nfkd.c: New file.
47037         * tests/uninorm/test-u8-nfkd.c: New file.
47038         * tests/uninorm/test-u16-nfkd.c: New file.
47039         * tests/uninorm/test-u32-nfkd.c: New file.
47040         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47041         * tests/uninorm/test-u32-nfkd-big.c: New file.
47042         * modules/uninorm/nfkd-tests: New file.
47043
47044         New module 'uninorm/nfkd'.
47045         * lib/uninorm/nfkd.c: New file.
47046         * modules/uninorm/nfkd: New file.
47047
47048         Tests for module 'uninorm/nfc'.
47049         * tests/uninorm/test-nfc.c: New file.
47050         * tests/uninorm/test-u8-nfc.c: New file.
47051         * tests/uninorm/test-u16-nfc.c: New file.
47052         * tests/uninorm/test-u32-nfc.c: New file.
47053         * tests/uninorm/test-u32-nfc-big.sh: New file.
47054         * tests/uninorm/test-u32-nfc-big.c: New file.
47055         * modules/uninorm/nfc-tests: New file.
47056
47057         New module 'uninorm/nfc'.
47058         * lib/uninorm/nfc.c: New file.
47059         * modules/uninorm/nfc: New file.
47060
47061         Tests for module 'uninorm/nfd'.
47062         * tests/uninorm/test-nfd.c: New file.
47063         * tests/uninorm/test-u8-nfd.c: New file.
47064         * tests/uninorm/test-u16-nfd.c: New file.
47065         * tests/uninorm/test-u32-nfd.c: New file.
47066         * tests/uninorm/test-u32-nfd-big.sh: New file.
47067         * tests/uninorm/test-u32-nfd-big.c: New file.
47068         * tests/uninorm/test-u32-normalize-big.h: New file.
47069         * tests/uninorm/test-u32-normalize-big.c: New file.
47070         * tests/uninorm/NormalizationTest.txt: New file, created from
47071         Unicode 5.1.0 NormalizationTest.txt.
47072         * modules/uninorm/nfd-tests: New file.
47073
47074         New module 'uninorm/nfd'.
47075         * lib/uninorm/nfd.c: New file.
47076         * modules/uninorm/nfd: New file.
47077
47078         New module 'uninorm/u32-normalize'.
47079         * lib/uninorm/u32-normalize.c: New file.
47080         * modules/uninorm/u32-normalize: New file.
47081
47082         New module 'uninorm/u16-normalize'.
47083         * lib/uninorm/u16-normalize.c: New file.
47084         * modules/uninorm/u16-normalize: New file.
47085
47086         New module 'uninorm/u8-normalize'.
47087         * lib/uninorm/u8-normalize.c: New file.
47088         * lib/uninorm/normalize-internal.h: New file.
47089         * lib/uninorm/u-normalize-internal.h: New file.
47090         * modules/uninorm/u8-normalize: New file.
47091
47092         New module 'uninorm/decompose-internal'.
47093         * lib/uninorm/decompose-internal.c: New file.
47094         * modules/uninorm/decompose-internal: New file.
47095
47096         Tests for module 'uninorm/composition'.
47097         * tests/uninorm/test-composition.c: New file.
47098         * modules/uninorm/composition-tests: New file.
47099
47100         New module 'uninorm/composition'.
47101         * lib/uninorm/composition.c: New file.
47102         * lib/uninorm/composition-table.gperf: New file, generated by
47103         gen-uni-tables.
47104         * modules/uninorm/composition: New file.
47105
47106         Tests for module 'uninorm/compat-decomposition'.
47107         * tests/uninorm/test-compat-decomposition.c: New file.
47108         * modules/uninorm/compat-decomposition-tests: New file.
47109
47110         New module 'uninorm/compat-decomposition'.
47111         * lib/uninorm/decompose-internal.h: New file.
47112         * lib/uninorm/compat-decomposition.c: New file.
47113         * modules/uninorm/compat-decomposition: New file.
47114
47115         Tests for module 'uninorm/canonical-decomposition'.
47116         * tests/uninorm/test-canonical-decomposition.c: New file.
47117         * modules/uninorm/canonical-decomposition-tests: New file.
47118
47119         New module 'uninorm/canonical-decomposition'.
47120         * lib/uninorm/canonical-decomposition.c: New file.
47121         * modules/uninorm/canonical-decomposition: New file.
47122
47123         Tests for module 'uninorm/decomposition'.
47124         * tests/uninorm/test-decomposition.c: New file.
47125         * modules/uninorm/decomposition-tests: New file.
47126
47127         New module 'uninorm/decomposition'.
47128         * lib/uninorm/decomposition.c: New file.
47129         * modules/uninorm/decomposition: New file.
47130
47131         New module 'uninorm/decomposition-table'.
47132         * lib/uninorm/decomposition-table.h: New file.
47133         * lib/uninorm/decomposition-table.c: New file.
47134         * lib/uninorm/decomposition-table1.h: New file, generated by
47135         gen-uni-tables.
47136         * lib/uninorm/decomposition-table2.h: New file, generated by
47137         gen-uni-tables.
47138         * modules/uninorm/decomposition-table: New file.
47139
47140         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47141         (UC_DECOMP_*): New enumeration items.
47142         (get_decomposition): New function.
47143         (struct decomp_table): New type.
47144         (output_decomposition, output_decomposition_tables): New functions.
47145         (unicode_composition_exclusions): New variable.
47146         (fill_composition_exclusions, debug_output_composition_tables): New
47147         functions.
47148         (main): Accept one more argument. Invoke fill_composition_exclusions.
47149         Output decomposition and composition tables.
47150
47151         New module 'uninorm/base'.
47152         * lib/uninorm.h: New file.
47153         * lib/unictype.h: Update comment.
47154         * modules/uninorm/base: New file.
47155
47156 2009-02-21  David Lutterkort  <lutter@redhat.com>
47157
47158         Tests for module 'safe-alloc'.
47159         * tests/test-safe-alloc.c: New file.
47160         * modules/safe-alloc-tests: New file.
47161
47162         New module 'safe-alloc'.
47163         * lib/safe-alloc.h: New file.
47164         * lib/safe-alloc.c: New file.
47165         * m4/safe-alloc.m4: New file.
47166         * modules/safe-alloc: New file.
47167         * doc/safe-alloc.texi: New file.
47168         * doc/gnulib.texi: Include it.
47169         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47170         safe-alloc.
47171
47172 2009-02-18  Bruno Haible  <bruno@clisp.org>
47173
47174         Fix link error on non-glibc systems.
47175         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
47176         variable.
47177         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47178
47179 2009-02-18  Jim Meyering  <meyering@redhat.com>
47180
47181         fts: avoid used-uninitialized error due to recent change
47182         * lib/fts.c (fts_read): Guard uses of the new member,
47183         parent->fts_n_dirs_remaining, since it's not relevant for
47184         the parent of a directory specified on the command-line.
47185
47186 2009-02-17  James Youngman  <jay@gnu.org>
47187             Bruno Haible  <bruno@clisp.org>
47188
47189         * m4/include_next.m4: Reformulate comment.
47190
47191 2009-02-16  Jim Meyering  <meyering@redhat.com>
47192
47193         fts: add #if guards so that the fts_lgpl module still builds
47194         * lib/fts.c: Guard just-added hash-table-using parts with
47195         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47196         Reported by Simon Josefsson.
47197
47198 2009-02-15  Bruno Haible  <bruno@clisp.org>
47199
47200         * modules/array-mergesort-tests: New file.
47201         * tests/test-array-mergesort.c: New file.
47202
47203         New module 'array-mergesort'.
47204         * modules/array-mergesort: New file.
47205         * lib/array-mergesort.h: New file.
47206
47207 2009-02-15  Bruno Haible  <bruno@clisp.org>
47208
47209         Fix 2009-02-07 commit.
47210         * lib/gen-uni-tables.c (output_predicate, output_category,
47211         output_combclass, output_bidi_category, output_decimal_digit,
47212         output_digit, output_numeric, output_mirror, output_scripts,
47213         output_ident_category, output_simple_mapping): Fix format directives.
47214         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47215
47216 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47217
47218         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47219         fixes are available from IBM.
47220
47221 2009-02-13  Jim Meyering  <meyering@redhat.com>
47222
47223         fts: arrange not to stat non-directories in more cases
47224         This makes GNU find (when it doesn't need to stat each file)
47225         *much* more efficient at traversing reiserfs file systems.
47226         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47227         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47228         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47229         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47230         (leaf_optimization_applies): New function.
47231         (LCO_hash, LCO_compare): New helper functions.
47232         (link_count_optimize_ok): New function.
47233         (fts_stat): Initialize new member (if dir).
47234         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47235         we've just stat'ed a directory.  Skip the stat call when possible.
47236         ---
47237         Note this AFS-related exchange:
47238         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47239         and note find's pioctl call in find/fstype.c.
47240         But that is necessary only if you want to enable the
47241         optimization for AFS, and for now, I don't.
47242
47243         fts: move a function definition "up" (no semantic change)
47244         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
47245         "up" to precede upcoming use of a related function.
47246
47247 2009-02-11  Jim Meyering  <meyering@redhat.com>
47248
47249         fts: correct internal computation of nlinks (optimization-related)
47250         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
47251         whether the current entry is a directory, so don't test it.
47252
47253 2009-02-10  Bruno Haible  <bruno@clisp.org>
47254
47255         Tests for module 'uniwbrk/ulc-wordbreaks'.
47256         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47257         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47258         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47259
47260         Tests for module 'uniwbrk/u32-wordbreaks'.
47261         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47262         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47263
47264         Tests for module 'uniwbrk/u16-wordbreaks'.
47265         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47266         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47267
47268         Tests for module 'uniwbrk/u8-wordbreaks'.
47269         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47270         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47271
47272 2009-02-10  Bruno Haible  <bruno@clisp.org>
47273
47274         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47275         property.
47276         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47277         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47278         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47279
47280 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47281
47282         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47283         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47284
47285 2009-02-10  Bruno Haible  <bruno@clisp.org>
47286
47287         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47288         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47289         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47290         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47291         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47292         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47293
47294 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47295
47296         * lib/sockets.h (gl_fd_to_handle): New function.
47297
47298         * tests/test-sockets.c: Call gl_fd_to_handle.
47299
47300 2009-02-09  Bruno Haible  <bruno@clisp.org>
47301
47302         * doc/havelib.texi: Document the conventions on bi-arch systems.
47303
47304 2009-02-08  Bruno Haible  <bruno@clisp.org>
47305
47306         Document the AC_LIB_LINKFLAGS macro.
47307         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47308         * doc/gnulib.texi: Include it.
47309
47310 2009-02-08  Bruno Haible  <bruno@clisp.org>
47311
47312         Fix wrong order of sections, compared to TOC.
47313         * doc/gnulib.texi: Include relocatable-maint.texi after the
47314         "Regular expressions" node, not before.
47315
47316 2009-02-08  Bruno Haible  <bruno@clisp.org>
47317
47318         Tests for module 'unicase/totitle'.
47319         * modules/unicase/totitle-tests: New file.
47320
47321         Tests for module 'unicase/tolower'.
47322         * modules/unicase/tolower-tests: New file.
47323
47324         Tests for module 'unicase/toupper'.
47325         * modules/unicase/toupper-tests: New file.
47326         * tests/unicase/test-mapping-part1.h: New file.
47327         * tests/unicase/test-mapping-part2.h: New file.
47328
47329         New module 'unicase/totitle'.
47330         * modules/unicase/totitle: New file.
47331         * lib/unicase/totitle.c: New file.
47332
47333         New module 'unicase/tolower'.
47334         * modules/unicase/tolower: New file.
47335         * lib/unicase/tolower.c: New file.
47336
47337         New module 'unicase/toupper'.
47338         * modules/unicase/toupper: New file.
47339         * lib/unicase/toupper.c: New file.
47340         * lib/unicase/simple-mapping.h: New file.
47341
47342         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47343         (mapping_table): New structure.
47344         (output_simple_mapping): New function.
47345         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47346         * modules/gen-uni-tables (Description): Update.
47347         * lib/unicase/toupper.h: New file, automatically generated by
47348         gen-uni-tables.
47349         * lib/unicase/tolower.h: New file, automatically generated by
47350         gen-uni-tables.
47351         * lib/unicase/totitle.h: New file, automatically generated by
47352         gen-uni-tables.
47353         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47354         gen-uni-tables.
47355         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47356         gen-uni-tables.
47357         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47358         gen-uni-tables.
47359
47360         New module 'unicase/base'.
47361         * modules/unicase/base: New file.
47362         * lib/unicase.h: New file.
47363
47364 2009-02-08  Bruno Haible  <bruno@clisp.org>
47365
47366         New module 'uniwbrk/ulc-wordbreaks'.
47367         * modules/uniwbrk/ulc-wordbreaks: New file.
47368         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47369
47370         New module 'uniwbrk/u32-wordbreaks'.
47371         * modules/uniwbrk/u32-wordbreaks: New file.
47372         * lib/uniwbrk/u32-wordbreaks.c: New file.
47373
47374         New module 'uniwbrk/u16-wordbreaks'.
47375         * modules/uniwbrk/u16-wordbreaks: New file.
47376         * lib/uniwbrk/u16-wordbreaks.c: New file.
47377
47378         New module 'uniwbrk/u8-wordbreaks'.
47379         * modules/uniwbrk/u8-wordbreaks: New file.
47380         * lib/uniwbrk/u8-wordbreaks.c: New file.
47381         * lib/uniwbrk/u-wordbreaks.h: New file.
47382
47383         New module 'uniwbrk/table'.
47384         * modules/uniwbrk/table: New file.
47385         * lib/uniwbrk/wbrktable.h: New file.
47386         * lib/uniwbrk/wbrktable.c: New file.
47387
47388         New module 'uniwbrk/wordbreak-property'.
47389         * modules/uniwbrk/wordbreak-property: New file.
47390         * lib/uniwbrk/wordbreak-property.c: New file.
47391
47392         * lib/gen-uni-tables.c (WBP_*): New enum items.
47393         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47394         (unicode_org_wbp): New variable.
47395         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47396         New functions.
47397         (wbp_table): New structure.
47398         (output_wbp, output_wbrk_tables): New functions.
47399         (main): Accept additional argument. Invoke fill_org_wbp,
47400         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47401         output_wbrk_tables.
47402         * modules/gen-uni-tables (Description): Update.
47403         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47404         gen-uni-tables.
47405
47406         New module 'uniwbrk/base'.
47407         * modules/uniwbrk/base: New file.
47408         * lib/uniwbrk.h: New file.
47409
47410 2009-02-08  Bruno Haible  <bruno@clisp.org>
47411
47412         Update to Unicode 5.1.0.
47413         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47414         U+2185..U+2188.
47415         (is_property_default_ignorable_code_point): Don't include characters
47416         of category Cc or Cs and not-a-characters.
47417         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47418         U+0D79, U+109E, U+109F, U+A60C.
47419         * lib/unictype/bidi_of.h: Regenerated.
47420         * lib/unictype/blocks.h: Regenerated.
47421         * lib/unictype/categ_C.h: Regenerated.
47422         * lib/unictype/categ_Cf.h: Regenerated.
47423         * lib/unictype/categ_Cn.h: Regenerated.
47424         * lib/unictype/categ_L.h: Regenerated.
47425         * lib/unictype/categ_Ll.h: Regenerated.
47426         * lib/unictype/categ_Lm.h: Regenerated.
47427         * lib/unictype/categ_Lo.h: Regenerated.
47428         * lib/unictype/categ_Lu.h: Regenerated.
47429         * lib/unictype/categ_M.h: Regenerated.
47430         * lib/unictype/categ_Mc.h: Regenerated.
47431         * lib/unictype/categ_Me.h: Regenerated.
47432         * lib/unictype/categ_Mn.h: Regenerated.
47433         * lib/unictype/categ_N.h: Regenerated.
47434         * lib/unictype/categ_Nd.h: Regenerated.
47435         * lib/unictype/categ_Nl.h: Regenerated.
47436         * lib/unictype/categ_No.h: Regenerated.
47437         * lib/unictype/categ_P.h: Regenerated.
47438         * lib/unictype/categ_Pd.h: Regenerated.
47439         * lib/unictype/categ_Pe.h: Regenerated.
47440         * lib/unictype/categ_Pf.h: Regenerated.
47441         * lib/unictype/categ_Pi.h: Regenerated.
47442         * lib/unictype/categ_Po.h: Regenerated.
47443         * lib/unictype/categ_Ps.h: Regenerated.
47444         * lib/unictype/categ_S.h: Regenerated.
47445         * lib/unictype/categ_Sk.h: Regenerated.
47446         * lib/unictype/categ_Sm.h: Regenerated.
47447         * lib/unictype/categ_So.h: Regenerated.
47448         * lib/unictype/categ_of.h: Regenerated.
47449         * lib/unictype/combining.h: Regenerated.
47450         * lib/unictype/ctype_alnum.h: Regenerated.
47451         * lib/unictype/ctype_alpha.h: Regenerated.
47452         * lib/unictype/ctype_graph.h: Regenerated.
47453         * lib/unictype/ctype_lower.h: Regenerated.
47454         * lib/unictype/ctype_print.h: Regenerated.
47455         * lib/unictype/ctype_punct.h: Regenerated.
47456         * lib/unictype/ctype_upper.h: Regenerated.
47457         * lib/unictype/decdigit.h: Regenerated.
47458         * lib/unictype/digit.h: Regenerated.
47459         * lib/unictype/mirror.h: Regenerated.
47460         * lib/unictype/numeric.h: Regenerated.
47461         * lib/unictype/pr_alphabetic.h: Regenerated.
47462         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47463         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47464         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47465         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47466         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47467         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47468         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47469         * lib/unictype/pr_combining.h: Regenerated.
47470         * lib/unictype/pr_dash.h: Regenerated.
47471         * lib/unictype/pr_decimal_digit.h: Regenerated.
47472         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47473         * lib/unictype/pr_deprecated.h: Regenerated.
47474         * lib/unictype/pr_diacritic.h: Regenerated.
47475         * lib/unictype/pr_extender.h: Regenerated.
47476         * lib/unictype/pr_format_control.h: Regenerated.
47477         * lib/unictype/pr_grapheme_base.h: Regenerated.
47478         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47479         * lib/unictype/pr_grapheme_link.h: Regenerated.
47480         * lib/unictype/pr_id_continue.h: Regenerated.
47481         * lib/unictype/pr_id_start.h: Regenerated.
47482         * lib/unictype/pr_ideographic.h: Regenerated.
47483         * lib/unictype/pr_ignorable_control.h: Regenerated.
47484         * lib/unictype/pr_lowercase.h: Regenerated.
47485         * lib/unictype/pr_math.h: Regenerated.
47486         * lib/unictype/pr_numeric.h: Regenerated.
47487         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47488         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47489         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47490         * lib/unictype/pr_other_id_continue.h: Regenerated.
47491         * lib/unictype/pr_other_lowercase.h: Regenerated.
47492         * lib/unictype/pr_other_math.h: Regenerated.
47493         * lib/unictype/pr_punctuation.h: Regenerated.
47494         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47495         * lib/unictype/pr_soft_dotted.h: Regenerated.
47496         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47497         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47498         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47499         * lib/unictype/pr_uppercase.h: Regenerated.
47500         * lib/unictype/pr_xid_continue.h: Regenerated.
47501         * lib/unictype/pr_xid_start.h: Regenerated.
47502         * lib/unictype/pr_zero_width.h: Regenerated.
47503         * lib/unictype/scripts.h: Regenerated.
47504         * lib/unictype/scripts_byname.gperf: Regenerated.
47505         * lib/unictype/sy_java_ident.h: Regenerated.
47506         * lib/unilbrk/lbrkprop1.h: Regenerated.
47507         * lib/unilbrk/lbrkprop2.h: Regenerated.
47508         * tests/unictype/test-categ_C.c: Regenerated.
47509         * tests/unictype/test-categ_Cf.c: Regenerated.
47510         * tests/unictype/test-categ_Cn.c: Regenerated.
47511         * tests/unictype/test-categ_L.c: Regenerated.
47512         * tests/unictype/test-categ_Ll.c: Regenerated.
47513         * tests/unictype/test-categ_Lm.c: Regenerated.
47514         * tests/unictype/test-categ_Lo.c: Regenerated.
47515         * tests/unictype/test-categ_Lu.c: Regenerated.
47516         * tests/unictype/test-categ_M.c: Regenerated.
47517         * tests/unictype/test-categ_Mc.c: Regenerated.
47518         * tests/unictype/test-categ_Me.c: Regenerated.
47519         * tests/unictype/test-categ_Mn.c: Regenerated.
47520         * tests/unictype/test-categ_N.c: Regenerated.
47521         * tests/unictype/test-categ_Nd.c: Regenerated.
47522         * tests/unictype/test-categ_Nl.c: Regenerated.
47523         * tests/unictype/test-categ_No.c: Regenerated.
47524         * tests/unictype/test-categ_P.c: Regenerated.
47525         * tests/unictype/test-categ_Pd.c: Regenerated.
47526         * tests/unictype/test-categ_Pe.c: Regenerated.
47527         * tests/unictype/test-categ_Pf.c: Regenerated.
47528         * tests/unictype/test-categ_Pi.c: Regenerated.
47529         * tests/unictype/test-categ_Po.c: Regenerated.
47530         * tests/unictype/test-categ_Ps.c: Regenerated.
47531         * tests/unictype/test-categ_S.c: Regenerated.
47532         * tests/unictype/test-categ_Sk.c: Regenerated.
47533         * tests/unictype/test-categ_Sm.c: Regenerated.
47534         * tests/unictype/test-categ_So.c: Regenerated.
47535         * tests/unictype/test-ctype_alnum.c: Regenerated.
47536         * tests/unictype/test-ctype_alpha.c: Regenerated.
47537         * tests/unictype/test-ctype_graph.c: Regenerated.
47538         * tests/unictype/test-ctype_lower.c: Regenerated.
47539         * tests/unictype/test-ctype_print.c: Regenerated.
47540         * tests/unictype/test-ctype_punct.c: Regenerated.
47541         * tests/unictype/test-ctype_upper.c: Regenerated.
47542         * tests/unictype/test-decdigit.h: Regenerated.
47543         * tests/unictype/test-digit.h: Regenerated.
47544         * tests/unictype/test-numeric.h: Regenerated.
47545         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47546         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47547         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47548         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47549         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47550         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47551         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47552         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47553         * tests/unictype/test-pr_combining.c: Regenerated.
47554         * tests/unictype/test-pr_dash.c: Regenerated.
47555         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47556         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47557         * tests/unictype/test-pr_deprecated.c: Regenerated.
47558         * tests/unictype/test-pr_diacritic.c: Regenerated.
47559         * tests/unictype/test-pr_extender.c: Regenerated.
47560         * tests/unictype/test-pr_format_control.c: Regenerated.
47561         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47562         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47563         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47564         * tests/unictype/test-pr_id_continue.c: Regenerated.
47565         * tests/unictype/test-pr_id_start.c: Regenerated.
47566         * tests/unictype/test-pr_ideographic.c: Regenerated.
47567         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47568         * tests/unictype/test-pr_lowercase.c: Regenerated.
47569         * tests/unictype/test-pr_math.c: Regenerated.
47570         * tests/unictype/test-pr_numeric.c: Regenerated.
47571         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47572         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47573         Regenerated.
47574         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47575         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47576         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47577         * tests/unictype/test-pr_other_math.c: Regenerated.
47578         * tests/unictype/test-pr_punctuation.c: Regenerated.
47579         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47580         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47581         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47582         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47583         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47584         * tests/unictype/test-pr_uppercase.c: Regenerated.
47585         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47586         * tests/unictype/test-pr_xid_start.c: Regenerated.
47587         * tests/unictype/test-pr_zero_width.c: Regenerated.
47588
47589         Update to Unicode 5.1.0.
47590         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47591         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47592         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47593         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47594         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47595         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47596         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47597         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47598         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47599         (nonspacing_table_ind): Update.
47600         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47601
47602         Update to Unicode 5.1.0.
47603         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47604         code transform.
47605         * lib/uniname/uniname.c (unicode_character_name,
47606         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47607         * lib/uniname/uninames.h: Regenerated.
47608         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47609
47610 2009-02-07  Bruno Haible  <bruno@clisp.org>
47611
47612         Merge gen-ctype and gen-lbrk into a single program.
47613         * lib/gen-uni-tables.c: New file, incorporating
47614         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47615         Add directory prefixes to the names of the generated files.
47616         * lib/unictype/gen-ctype.c: Remove file.
47617         * lib/unilbrk/gen-lbrk.c: Remove file.
47618         * modules/gen-uni-tables: New file.
47619         * modules/unictype/gen-ctype: Remove file.
47620         * modules/unilbrk/gen-lbrk: Remove file.
47621
47622 2009-02-07  Bruno Haible  <bruno@clisp.org>
47623
47624         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47625
47626         New module 'unistr/u32-strcoll'.
47627         * modules/unistr/u32-strcoll: New file.
47628         * lib/unistr/u32-strcoll.c: New file.
47629
47630         New module 'unistr/u16-strcoll'.
47631         * modules/unistr/u16-strcoll: New file.
47632         * lib/unistr/u16-strcoll.c: New file.
47633
47634         New module 'unistr/u8-strcoll'.
47635         * modules/unistr/u8-strcoll: New file.
47636         * lib/unistr/u8-strcoll.c: New file.
47637         * lib/unistr/u-strcoll.h: New file.
47638
47639 2009-02-07  Bruno Haible  <bruno@clisp.org>
47640
47641         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47642         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47643         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47644         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47645         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47646         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47647
47648 2009-02-07  Bruno Haible  <bruno@clisp.org>
47649
47650         Make 64-bit clean.
47651         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47652         output_combclass, output_bidi_category, output_decimal_digit,
47653         output_digit, output_numeric, output_mirror, output_scripts,
47654         output_ident_category): Use proper width specifier in format strings.
47655
47656 2009-02-07  Bruno Haible  <bruno@clisp.org>
47657
47658         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47659         failure behaviour.
47660
47661 2009-02-07  Jim Meyering  <meyering@redhat.com>
47662
47663         regex: avoid compilation failure with upcoming gcc-4.4
47664         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47665         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47666         "... error: integer overflow in preprocessor expression".
47667
47668 2009-02-05  Ben Pfaff  <blp@gnu.org>
47669
47670         Fix link errors on Windows when close module is used.
47671         * modules/close: Add $(LIB_CLOSE) to Link section.
47672         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47673         $(LIB_CLOSE) on Windows.
47674
47675 2009-02-05  Jim Meyering  <meyering@redhat.com>
47676
47677         still avoid unused-parameter warnings, but do it cleanly
47678         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47679         (get_fs_usage): Cast to void instead.
47680         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47681         (dev_from_mount_options, read_file_system_list): Cast to void.
47682         Prompted by Bruno Haible.
47683
47684 2009-02-04  Jim Meyering  <meyering@redhat.com>
47685
47686         fsusage.c: correct copyright year
47687         * lib/fsusage.c: Reflect year in which the change is pushed into
47688
47689         avoid misc. warnings
47690         * lib/fsusage.c (UNUSED_PARAM): Define.
47691         (get_fs_usage): Mark parameter "disk" as unused.
47692         * lib/getugroups.c (getgrent): Use "void" in prototype.
47693         * lib/mountlist.c: Mark unused parameters.
47694         (read_file_system_list): Declare a local with "const".
47695         * lib/nanosleep.c (getnow): Declare static.
47696         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47697
47698         dirfd: set errno upon failure
47699         * lib/dirfd.c: Include <errno.h>.
47700         Set errno to ENOTSUP when returning -1.
47701         * modules/dirfd (Depends-on): Add errno.
47702         Suggested by John Kodis <kodis@comcast.net>.
47703
47704 2009-02-01  Bruno Haible  <bruno@clisp.org>
47705
47706         Don't assume sizeof (long) >= sizeof (void *).
47707         * lib/memcmp.c: Include stdint.h.
47708         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47709         srcp2 to 'const byte *'.
47710         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47711         types to uintptr_t.
47712         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47713         * modules/memcmp (Depends-on): Add stdint.
47714         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47715
47716 2009-01-30  Eric Blake  <ebb9@byu.net>
47717
47718         fix more require-before-expand issues
47719         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47720         expand, AC_PROG_AWK.
47721         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47722
47723 2009-01-28  Eric Blake  <ebb9@byu.net>
47724
47725         version-etc: use consistent URL formatting
47726         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47727         Improve formatting.  Use fputs for string without %.
47728
47729 2009-01-28  Jim Meyering  <meyering@redhat.com>
47730
47731         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47732         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47733         "underquoted definition of NAME" from autoconf-2.59.
47734
47735 2009-01-28  Bruno Haible  <bruno@clisp.org>
47736
47737         * doc/gnulib.texi: Add "Obsolete modules" to index.
47738
47739 2009-01-28  Jim Meyering  <meyering@redhat.com>
47740
47741         useless-if-before-free: recognize more variants
47742         * build-aux/useless-if-before-free: Also recognize e.g.,
47743         if (NULL != p) free (p);
47744
47745 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47746
47747         test-getaddrinfo: skip (don't fail) this test when there's no network
47748         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47749         on the presumption that it means you lack network access.
47750
47751 2009-01-26  Jim Meyering  <meyering@redhat.com>
47752
47753         fflush: avoid warnings on modern systems
47754         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47755         pos and result, into scopes where they're used.
47756
47757 2009-01-26  Eric Blake  <ebb9@byu.net>
47758
47759         Silence warning reintroduced by recent extensions patch.
47760         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47761         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47762         autoconf.
47763
47764         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47765         * m4/00gnulib.m4: New file.
47766         * gnulib-tool (func_get_filelist): Always use it.
47767         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47768         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47769
47770 2009-01-25  Bruno Haible  <bruno@clisp.org>
47771
47772         Make test-quotearg work on MacOS X and AIX.
47773         * tests/test-quotearg.sh: New file.
47774         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47775         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47776         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47777         include <libintl.h>.
47778         (fake_locale): Remove variable.
47779         (gettext, dgettext, dcgettext): Remove functions.
47780         (main): Instead of setting a fake locale, set a real locale. Call
47781         textdomain and bindtextdomain.
47782         * modules/quotearg-tests (Files): Add the new files.
47783         (Depends-on): Add gettext, setenv, unsetenv.
47784         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47785         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47786         Augment TESTS_ENVIRONMENT.
47787
47788 2009-01-25  Bruno Haible  <bruno@clisp.org>
47789
47790         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47791         fr_FR.ISO8859-1 locale on MacOS X.
47792         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47793         ja_JP.eucJP locale on MacOS X.
47794         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47795         zh_CN.GB18030 locale on MacOS X.
47796
47797 2009-01-25  Bruno Haible  <bruno@clisp.org>
47798
47799         Avoid link errors on MacOS X 10.3.
47800         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47801         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47802
47803 2009-01-25  Bruno Haible  <bruno@clisp.org>
47804
47805         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47806         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47807         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47808         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47809         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47810         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47811         posix_spawnattr_init, posix_spawnattr_setsigmask,
47812         posix_spawnattr_setflags, posix_spawnattr_destroy.
47813
47814         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47815         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47816         * modules/execute (Files): Remove m4/posix_spawn.m4.
47817         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47818         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47819         posix_spawnattr_init, posix_spawnattr_setsigmask,
47820         posix_spawnattr_setflags, posix_spawnattr_destroy.
47821
47822 2009-01-25  Bruno Haible  <bruno@clisp.org>
47823
47824         * lib/glthread/threadlib.c: Include <stdlib.h>.
47825
47826 2009-01-25  Bruno Haible  <bruno@clisp.org>
47827
47828         * lib/glthread/threadlib.c (dummy): New declaration.
47829
47830 2009-01-25  Bruno Haible  <bruno@clisp.org>
47831
47832         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47833         multibyte characters also for the GB18030 encoding. Don't crash when
47834         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47835
47836 2009-01-25  Bruno Haible  <bruno@clisp.org>
47837
47838         Avoid redefining 'struct random_data' on OSF/1 5.1.
47839         * lib/stdlib.in.h: Include <random.h> if it exists.
47840         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47841         HAVE_RANDOM_H. Include <random.h> when testing whether
47842         'struct random_data' exists.
47843         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47844
47845 2009-01-25  Bruno Haible  <bruno@clisp.org>
47846
47847         Don't install charset.alias on MacOS X >= 10.3.
47848         * lib/localcharset.c (DARWIN7): New macro.
47849         (get_charset_aliases): Hardcode the result for Darwin7.
47850         * modules/localcharset (install-exec-local): Don't install
47851         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47852
47853 2009-01-25  Bruno Haible  <bruno@clisp.org>
47854
47855         Don't install charset.alias on mingw and Cygwin.
47856         * modules/localcharset (install-exec-local): Don't install
47857         charset.alias on mingw and Cygwin, if the file does not yet exist.
47858         The result for these platforms is hardcoded in localcharset.c.
47859
47860 2009-01-25  Bruno Haible  <bruno@clisp.org>
47861
47862         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47863         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47864         before requiring AC_USE_SYSTEM_EXTENSIONS.
47865
47866 2009-01-25  Jim Meyering  <meyering@redhat.com>
47867
47868         c-strtod: avoid warnings
47869         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47870         "assignment discards qualifiers from pointer target type" warnings.
47871
47872 2009-01-24  Bruno Haible  <bruno@clisp.org>
47873
47874         Add support for non-UTF-8 locales on MacOS X.
47875         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47876         canonical encodings. For Darwin 7 and newer, don't map traditional
47877         encodings to UTF-8.
47878         Reported by Vincent Lefevre <vincent@vinc17.org>
47879         at <http://savannah.gnu.org/bugs/?25235>.
47880
47881 2009-01-24  Bruno Haible  <bruno@clisp.org>
47882
47883         * doc/gnulib.texi (Obsolete modules): New section.
47884         Reported by Mike Frysinger <vapier@gentoo.org>.
47885
47886 2009-01-24  Bruno Haible  <bruno@clisp.org>
47887
47888         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47889         (%.dvi): New rule.
47890
47891 2009-01-24  Bruno Haible  <bruno@clisp.org>
47892
47893         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47894         Reported by Eric Blake.
47895
47896 2009-01-24  Bruno Haible  <bruno@clisp.org>
47897
47898         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47899         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47900         Reported by Gary V. Vaughan <gary@gnu.org>.
47901
47902 2009-01-24  Bruno Haible  <bruno@clisp.org>
47903
47904         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47905
47906 2009-01-23  Bruno Haible  <bruno@clisp.org>
47907
47908         Make c-strtod, c-strtold usable in libraries.
47909         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47910         (C_STRTOD): Call strdup instead of xstrdup.
47911         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47912         * modules/c-strtold (Depends-on): Likewise.
47913         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47914         * NEWS: Mention the change.
47915         Reported by Michael Gold <mgold@ncf.ca>.
47916
47917 2009-01-23  Jim Meyering  <meyering@redhat.com>
47918
47919         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47920         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47921         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47922
47923 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47924
47925         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47926         GNU CoreUtils.
47927         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47928         * modules/version-etc (Description): Update.
47929
47930 2009-01-22  Bruno Haible  <bruno@clisp.org>
47931
47932         Cache the C locale object.
47933         * lib/c-strtod.c (c_locale_cache): New variable.
47934         (c_locale): New function.
47935         (C_STRTOD): Use it, and don't call freelocale.
47936         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47937         Suggested by Paolo Bonzini.
47938
47939 2009-01-21  Bruno Haible  <bruno@clisp.org>
47940
47941         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47942         conditions other than overflow.
47943
47944 2009-01-21  Bruno Haible  <bruno@clisp.org>
47945
47946         * lib/c-strtod.c: Include errno.h.
47947         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47948         value from STRTOD_L and STRTOD.
47949
47950 2009-01-21  Bruno Haible  <bruno@clisp.org>
47951         and Jim Meyering  <meyering@redhat.com>
47952
47953         nanosleep: skip configure test (fail it) for apple universal builds
47954         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47955         universal builds, assume that nanosleep does not work.
47956         * modules/nanosleep (Depends-on): Add multiarch.
47957
47958         mktime: skip configure test (fail it) for apple universal builds
47959         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47960         universal builds, assume that mktime does not work.
47961         * modules/mktime (Depends-on): Add multiarch.
47962
47963 2009-01-21  Eric Blake  <ebb9@byu.net>
47964
47965         multiarch: avoid expand-before-require warning
47966         * modules/multiarch (configure.ac): Require, rather than expand,
47967         gl_MULTIARCH.
47968         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47969         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47970         enforce that all clients require it.  Partial reversion of
47971         2008-12-29 patch.
47972
47973         error: avoid expand-before-require warning
47974         * modules/errno (configure.ac): Require, rather than expand,
47975         gl_HEADER_ERRNO_H.
47976         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47977         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47978         enforce that all clients require it.
47979
47980         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47981         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47982         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47983         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47984
47985 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47986
47987         Revert:
47988         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47989
47990         regex: do not depend on obsolete modules.
47991         * modules/regex: Remove memcmp and memmove.
47992
47993 2009-01-20  Bruno Haible  <bruno@clisp.org>
47994
47995         Make the 'link' module link on Windows NT 4.
47996         * lib/link.c (_WIN32_WINNT): Don't define.
47997         (CreateHardLinkFuncType): New type.
47998         (CreateHardLinkFunc, initialized): New variables.
47999         (initialize): New function.
48000         (link): Invoke CreateHardLink indirectly through the function pointer.
48001
48002 2009-01-20  Bruno Haible  <bruno@clisp.org>
48003
48004         Fix compilation failure on mingw.
48005         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
48006
48007 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48008
48009         * doc/c-strtod.texi: Mention a couple of restrictions.
48010
48011 2009-01-20  Jim Meyering  <meyering@redhat.com>
48012
48013         gettimeofday: move more declarations out of functions
48014         * lib/gettimeofday.c: Move extern declarations of tzset and
48015         gmtime out of containing functions.  Prompted by Bruno Haible.
48016
48017 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48018
48019         regex: do not depend on obsolete modules.
48020         * modules/regex: Remove memcmp and memmove.
48021
48022 2009-01-19  Bruno Haible  <bruno@clisp.org>
48023
48024         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48025         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48026         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48027         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48028         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48029
48030 2009-01-19  Bruno Haible  <bruno@clisp.org>
48031
48032         * tests/test-link.c: Include <errno.h>.
48033         (main): Exit with code 77 when a hard link cannot be created due to
48034         the file system.
48035         * tests/test-link.sh: Skip test when a hard link cannot be created due
48036         to the file system.
48037         Suggested by Eric Blake.
48038
48039 2009-01-19  Martin Lambers  <marlam@marlam.de>
48040
48041         * modules/link-tests: New file.
48042         * tests/test-link.sh: New file.
48043         * tests/test-link.c: New file.
48044
48045 2009-01-19  Eric Blake  <ebb9@byu.net>
48046
48047         doc: mention another function added in cygwin 1.7.0
48048         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48049         Another new function in cygwin 1.7.
48050
48051 2009-01-19  Bruno Haible  <bruno@clisp.org>
48052
48053         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48054         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48055         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48056         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48057         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48058         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48059         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48060         * m4/md4.m4 (gl_MD4): Likewise.
48061         * m4/md5.m4 (gl_MD5): Likewise.
48062         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48063         * m4/sha1.m4 (gl_SHA1): Likewise.
48064         * m4/sha256.m4 (gl_SHA256): Likewise.
48065         * m4/sha512.m4 (gl_SHA512): Likewise.
48066
48067 2009-01-19  Bruno Haible  <bruno@clisp.org>
48068
48069         * modules/uniname/uniname-tests (Depends-on): Add progname.
48070         * tests/uniname/test-uninames.c: Include progname.h.
48071         (main): Call set_program_name.
48072
48073         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48074         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48075         (main): Call set_program_name.
48076
48077         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48078         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48079         (main): Call set_program_name.
48080
48081         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48082         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48083         (main): Call set_program_name.
48084
48085         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48086         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48087         (main): Call set_program_name.
48088
48089         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48090         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48091         (main): Call set_program_name.
48092
48093         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48094         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48095         (main): Call set_program_name.
48096
48097         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48098         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48099         (main): Call set_program_name.
48100
48101         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48102         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48103         (main): Call set_program_name.
48104
48105 2009-01-19  Eric Blake  <ebb9@byu.net>
48106
48107         test-unistd: test previous patch
48108         * tests/test-unistd.c: Test *_FILENO macros.
48109
48110         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48111         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48112         Guarantee a definition.
48113         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48114         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48115         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48116         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48117         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48118         Likewise.
48119         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48120         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48121         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48122         Likewise.
48123         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48124         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48125         (STDERR_FILENO): Likewise.
48126         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48127         (STDERR_FILENO): Likewise.
48128         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48129         (STDERR_FILENO): Likewise.
48130         Reported by Elbert Pol.
48131
48132 2009-01-19  Eric Blake  <ebb9@byu.net>
48133
48134         doc: mention more functions added in cygwin 1.7.0
48135         * doc/posix-functions/abort.texi (abort): Update wording related
48136         to cygwin.
48137         * doc/posix-functions/daylight.texi (daylight): Likewise.
48138         * doc/posix-functions/optarg.texi (optarg): Likewise.
48139         * doc/posix-functions/optarg.texi (opterr): Likewise.
48140         * doc/posix-functions/optarg.texi (optind): Likewise.
48141         * doc/posix-functions/optarg.texi (optopt): Likewise.
48142         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
48143         worked in 1.5.x, and was withdrawn in 1.7.
48144         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48145         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
48146         cygwin versions.
48147         * doc/posix-functions/perror.texi (perror): Likewise.
48148         * doc/posix-functions/printf.texi (printf): Likewise.
48149         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
48150         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
48151         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48152         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48153         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48154         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
48155         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48156         Likewise.
48157         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48158         Likewise.
48159         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
48160         this function.
48161         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
48162         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
48163         Likewise.
48164         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
48165         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
48166         * doc/posix-functions/confstr.texi (confstr): Likewise.
48167         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
48168         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
48169         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
48170         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
48171         * doc/posix-functions/fputws.texi (fputws): Likewise.
48172         * doc/posix-functions/fwide.texi (fwide): Likewise.
48173         * doc/posix-functions/getwc.texi (getwc): Likewise.
48174         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
48175         * doc/posix-functions/putwc.texi (putwc): Likewise.
48176         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48177         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
48178         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
48179         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48180         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48181         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48182         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48183         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48184         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48185         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48186         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48187
48188 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48189
48190         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48191         * lib/ioctl.c: Include <sys/ioctl.h>.
48192
48193 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48194
48195         * modules/getdate-tests (Depends-on): Add progname.
48196         * tests/test-getdate.c: Use progname module, to avoid link errors
48197         on non-glibc systems.
48198
48199 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48200
48201         * modules/filenamecat-tests (Depends-on): Add progname.
48202         * modules/fstrcmp-tests (Depends-on): Likewise.
48203
48204         * tests/test-filenamecat.c: Use progname module, to avoid link
48205         errors on non-glibc systems.
48206         * tests/test-fstrcmp.c: Likewise.
48207
48208 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48209
48210         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48211         * lib/gettimeofday.c: Move extern declaration out of function.
48212
48213 2009-01-18  Bruno Haible  <bruno@clisp.org>
48214
48215         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48216         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48217         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48218
48219 2009-01-18  Bruno Haible  <bruno@clisp.org>
48220
48221         * lib/strftime.c (MEMPCPY): Remove unused macro.
48222         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48223
48224 2009-01-18  Martin Lambers  <marlam@marlam.de>
48225
48226         New module 'link'.
48227         * lib/unistd.in.h (link): New declaration.
48228         * lib/link.c: New file.
48229         * m4/link.m4: New file.
48230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48231         HAVE_LINK.
48232         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48233         * modules/link: New file.
48234         * doc/posix-functions/link.texi: Mention the new module.
48235
48236 2009-01-18  Bruno Haible  <bruno@clisp.org>
48237
48238         * tests/test-avltree_list.c (main): Call set_program_name.
48239         * tests/test-avltree_oset.c (main): Likewise.
48240         * tests/test-obstack-printf.c: Include progname.h.
48241         (main): Call set_program_name.
48242         * tests/test-quotearg.c: Include progname.h.
48243         (main): Call set_program_name.
48244         * tests/test-xmemdup0.c: Include progname.h.
48245         (main): Call set_program_name.
48246
48247 2009-01-18  Bruno Haible  <bruno@clisp.org>
48248
48249         New module 'alphasort'.
48250         * lib/dirent.in.h (alphasort): New declaration.
48251         * lib/alphasort.c: New file, from glibc with modifications.
48252         * m4/alphasort.m4: New file.
48253         * modules/alphasort: New file.
48254         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48255         HAVE_ALPHASORT.
48256         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48257         HAVE_ALPHASORT.
48258         * doc/posix-functions/alphasort.texi: Mention the new module and the
48259         portability problems.
48260
48261 2009-01-18  Bruno Haible  <bruno@clisp.org>
48262
48263         New module 'scandir'.
48264         * lib/dirent.in.h (scandir): New declaration.
48265         * lib/scandir.c: New file, from glibc with modifications.
48266         * m4/scandir.m4: New file.
48267         * modules/scandir: New file.
48268         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48269         HAVE_SCANDIR.
48270         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48271         HAVE_SCANDIR.
48272         * doc/posix-functions/scandir.texi: Mention the new module and the
48273         portability problems.
48274
48275 2009-01-17  Bruno Haible  <bruno@clisp.org>
48276
48277         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48278         Update documentation.
48279         (func_remove_suffix): Escape all dots in the suffix. Update
48280         documentation.
48281         (func_filter_filelist): Update documentation.
48282         Reported by Ralf Wildenhues.
48283
48284 2009-01-17  Bruno Haible  <bruno@clisp.org>
48285
48286         * modules/dprintf-posix-tests: New file.
48287         * tests/test-dprintf-posix.sh: New file.
48288         * tests/test-dprintf-posix.c: New file.
48289
48290         New modules 'dprintf', 'dprintf-posix'.
48291         * lib/stdio.in.h (dprintf): New declaration.
48292         * lib/dprintf.c: New file.
48293         * m4/dprintf.m4: New file.
48294         * m4/dprintf-posix.m4: New file.
48295         * modules/dprintf: New file.
48296         * modules/dprintf-posix: New file.
48297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48298         HAVE_DPRINTF, REPLACE_DPRINTF.
48299         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48300         HAVE_DPRINTF, REPLACE_DPRINTF.
48301         * doc/posix-functions/dprintf.texi: Mention the new modules.
48302
48303 2009-01-17  Bruno Haible  <bruno@clisp.org>
48304
48305         * modules/vdprintf-posix-tests: New file.
48306         * tests/test-vdprintf-posix.sh: New file.
48307         * tests/test-vdprintf-posix.c: New file.
48308
48309         New modules 'vdprintf', 'vdprintf-posix'.
48310         * lib/stdio.in.h (vdprintf): New declaration.
48311         * lib/vdprintf.c: New file.
48312         * m4/vdprintf.m4: New file.
48313         * m4/vdprintf-posix.m4: New file.
48314         * modules/vdprintf: New file.
48315         * modules/vdprintf-posix: New file.
48316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48317         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48318         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48319         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48320         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48321
48322 2009-01-17  Bruno Haible  <bruno@clisp.org>
48323
48324         Fix replacement of fopen on mingw.
48325         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48326         mingw.
48327
48328 2009-01-17  Bruno Haible  <bruno@clisp.org>
48329
48330         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48331         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48332
48333 2009-01-17  Bruno Haible  <bruno@clisp.org>
48334
48335         Avoid test-fflush2.sh failure on mingw.
48336         * tests/test-fflush2.c: Include binary-io.h.
48337         (main): Put standard input into binary mode.
48338         * modules/fflush-tests (Depends-on): Add binary-io.
48339
48340 2009-01-17  Bruno Haible  <bruno@clisp.org>
48341
48342         * lib/wchar.in.h: In another particular situation, include only the
48343         system's <wchar.h> file.
48344         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48345         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48346         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48347
48348 2009-01-17  Bruno Haible  <bruno@clisp.org>
48349
48350         Support for stripping executables in --enable-relocatable.
48351         * build-aux/install-reloc: Expect one more argument, or an environment
48352         variable RELOC_STRIP_PROG. If set, strip the destination program and
48353         its wrapper.
48354         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48355         RELOC_STRIP_PROG.
48356         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48357         to set RELOCATABLE_STRIP.
48358         * NEWS: Mention the new Makefile requirement.
48359
48360 2009-01-17  Bruno Haible  <bruno@clisp.org>
48361
48362         * build-aux/install-reloc: Remove debugging information left over by
48363         C compiler on MacOS X.
48364
48365 2009-01-17  Bruno Haible  <bruno@clisp.org>
48366
48367         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48368         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48369         _NSGetExecutablePath.
48370
48371 2009-01-16  Jim Meyering  <meyering@redhat.com>
48372
48373         strerror: avoid warnings about discarding "const"
48374         * lib/strerror.c (rpl_strerror): Instead of returning a const
48375         string from each and every "case", use a variable, and add a single
48376         cast after the switch.
48377
48378 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48379
48380         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48381
48382 2009-01-16  Bruno Haible  <bruno@clisp.org>
48383
48384         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48385         array initializer syntax that also works in C++ mode.
48386         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48387
48388 2009-01-16  Jim Meyering  <meyering@redhat.com>
48389
48390         poll: suppress a warning
48391         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48392         to ignore "...unsigned expression < 0 is always false" warnings.
48393
48394 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48395
48396         poll: remove declarations of unused variables
48397         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48398         sockbuf and optlen.
48399
48400 2009-01-15  Bruno Haible  <bruno@clisp.org>
48401
48402         Make fflush-after-ungetc POSIX compliant on BSD systems.
48403         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48404         (clear_ungetc_buffer): Implement also for other systems.
48405         (rpl_fflush): On glibc systems, invoke
48406         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48407         clear_ungetc_buffer after fetching the stream's position, not before.
48408
48409 2009-01-15  Bruno Haible  <bruno@clisp.org>
48410
48411         Make fflush-after-ungetc POSIX compliant on glibc systems.
48412         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48413         after ungetc.
48414         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48415         (rpl_fflush): On glibc systems, simply call the system's fflush
48416         function after clearing the ungetc buffer.
48417         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48418         Instead, lseek only to the end of file, then use the system's fseeko
48419         for the rest. On glibc systems, reset the EOF indicator bit.
48420
48421 2009-01-15  Jim Meyering  <meyering@redhat.com>
48422
48423         openmp.m4: revert quote-adding change, for portability to older autoconf
48424         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48425         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48426         Simon Josefsson noticed the problem when using autoconf-2.61.
48427
48428 2009-01-15  Bruno Haible  <bruno@clisp.org>
48429
48430         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48431         * tests/test-fflush2.c (ASSERT): Always fail.
48432         (main): Add two tests for fflush() after ungetc(), taking into account
48433         the Austin Group's clarification.
48434         Suggested by Eric Blake.
48435
48436 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48437
48438         mktime.m4: remove K&R-style function prototypes
48439         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48440         for the Sun C++ compiler.
48441
48442 2009-01-14  Bruno Haible  <bruno@clisp.org>
48443
48444         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48445         while including <wchar.h>.
48446         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48447         the system's <wchar.h> file.
48448         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48449
48450 2009-01-14  Bruno Haible  <bruno@clisp.org>
48451
48452         * m4/csharp.m4: Don't mention gettext on the serial number line.
48453         * m4/csharpexec.m4: Likewise.
48454         * m4/eaccess.m4: Likewise.
48455         * m4/javaexec.m4: Likewise.
48456         * m4/sig_atomic_t.m4: Likewise.
48457         * m4/tmpdir.m4: Likewise.
48458         * m4/intldir.m4: Bump gettext version.
48459         * m4/lib-ld.m4: Likewise.
48460
48461 2009-01-14  Bruno Haible  <bruno@clisp.org>
48462
48463         * lib/progname.c (set_program_name): Add more comments.
48464         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48465
48466 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48467
48468         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48469         were sys/stat.h does not define it.
48470
48471 2009-01-14  Jim Meyering  <meyering@redhat.com>
48472
48473         many *.m4 files: improve m4 quoting
48474         99% of this change was performed by running the following commands:
48475         git ls-files | grep '\.m4$' | xargs perl -pi \
48476           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48477           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48478           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48479           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48480         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48481         The remainder were to add Copyright dates, increment serial numbers,
48482         undo some changes in comments, exclude m4/intl.m4, and add quotes
48483         around the "1" in ",1" where the unusual spacing prohibited the
48484         above regexps from doing the job.  For more details, see
48485         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48486         * m4/acl.m4: Modified.
48487         * m4/afs.m4: Likewise.
48488         * m4/alloca.m4: Likewise.
48489         * m4/argp.m4: Likewise.
48490         * m4/argz.m4: Likewise.
48491         * m4/atexit.m4: Likewise.
48492         * m4/bison-i18n.m4: Likewise.
48493         * m4/bison.m4: Likewise.
48494         * m4/byteswap.m4: Likewise.
48495         * m4/c-stack.m4: Likewise.
48496         * m4/c-strtod.m4: Likewise.
48497         * m4/calloc.m4: Likewise.
48498         * m4/canonicalize-lgpl.m4: Likewise.
48499         * m4/chown.m4: Likewise.
48500         * m4/clock_time.m4: Likewise.
48501         * m4/codeset.m4: Likewise.
48502         * m4/copy-file.m4: Likewise.
48503         * m4/csharp.m4: Likewise.
48504         * m4/csharpcomp.m4: Likewise.
48505         * m4/csharpexec.m4: Likewise.
48506         * m4/d-ino.m4: Likewise.
48507         * m4/d-type.m4: Likewise.
48508         * m4/dirfd.m4: Likewise.
48509         * m4/double-slash-root.m4: Likewise.
48510         * m4/eaccess.m4: Likewise.
48511         * m4/eealloc.m4: Likewise.
48512         * m4/environ.m4: Likewise.
48513         * m4/errno_h.m4: Likewise.
48514         * m4/euidaccess.m4: Likewise.
48515         * m4/execute.m4: Likewise.
48516         * m4/fatal-signal.m4: Likewise.
48517         * m4/fchdir.m4: Likewise.
48518         * m4/fcntl_h.m4: Likewise.
48519         * m4/fileblocks.m4: Likewise.
48520         * m4/filenamecat.m4: Likewise.
48521         * m4/findprog.m4: Likewise.
48522         * m4/flexmember.m4: Likewise.
48523         * m4/fnmatch.m4: Likewise.
48524         * m4/fopen.m4: Likewise.
48525         * m4/fpending.m4: Likewise.
48526         * m4/fprintf-posix.m4: Likewise.
48527         * m4/free.m4: Likewise.
48528         * m4/frexp.m4: Likewise.
48529         * m4/frexpl.m4: Likewise.
48530         * m4/fsusage.m4: Likewise.
48531         * m4/ftruncate.m4: Likewise.
48532         * m4/gc-camellia.m4: Likewise.
48533         * m4/gc-random.m4: Likewise.
48534         * m4/gc.m4: Likewise.
48535         * m4/getaddrinfo.m4: Likewise.
48536         * m4/getcwd-abort-bug.m4: Likewise.
48537         * m4/getcwd-path-max.m4: Likewise.
48538         * m4/getdate.m4: Likewise.
48539         * m4/getdomainname.m4: Likewise.
48540         * m4/getgroups.m4: Likewise.
48541         * m4/gethostname.m4: Likewise.
48542         * m4/gethrxtime.m4: Likewise.
48543         * m4/getline.m4: Likewise.
48544         * m4/getloadavg.m4: Likewise.
48545         * m4/getndelim2.m4: Likewise.
48546         * m4/getpass.m4: Likewise.
48547         * m4/gettext.m4: Likewise.
48548         * m4/gettime.m4: Likewise.
48549         * m4/gettimeofday.m4: Likewise.
48550         * m4/gnulib-common.m4: Likewise.
48551         * m4/group-member.m4: Likewise.
48552         * m4/host-os.m4: Likewise.
48553         * m4/iconv.m4: Likewise.
48554         * m4/iconv_open.m4: Likewise.
48555         * m4/inet_ntop.m4: Likewise.
48556         * m4/inet_pton.m4: Likewise.
48557         * m4/inline.m4: Likewise.
48558         * m4/intldir.m4: Likewise.
48559         * m4/intlmacosx.m4: Likewise.
48560         * m4/intmax.m4: Likewise.
48561         * m4/intmax_t.m4: Likewise.
48562         * m4/inttypes.m4: Likewise.
48563         * m4/inttypes_h.m4: Likewise.
48564         * m4/inttypes-pri.m4: Likewise.
48565         * m4/isapipe.m4: Likewise.
48566         * m4/isnand.m4: Likewise.
48567         * m4/isnanf.m4: Likewise.
48568         * m4/isnanl.m4: Likewise.
48569         * m4/javacomp.m4: Likewise.
48570         * m4/javaexec.m4: Likewise.
48571         * m4/jm-winsz1.m4: Likewise.
48572         * m4/jm-winsz2.m4: Likewise.
48573         * m4/lchown.m4: Likewise.
48574         * m4/lcmessage.m4: Likewise.
48575         * m4/ldexpl.m4: Likewise.
48576         * m4/lib-ld.m4: Likewise.
48577         * m4/lib-link.m4: Likewise.
48578         * m4/libsigsegv.m4: Likewise.
48579         * m4/link-follow.m4: Likewise.
48580         * m4/localcharset.m4: Likewise.
48581         * m4/locale-fr.m4: Likewise.
48582         * m4/locale-ja.m4: Likewise.
48583         * m4/locale-tr.m4: Likewise.
48584         * m4/locale-zh.m4: Likewise.
48585         * m4/lock.m4: Likewise.
48586         * m4/longlong.m4: Likewise.
48587         * m4/ls-mntd-fs.m4: Likewise.
48588         * m4/lstat.m4: Likewise.
48589         * m4/malloc.m4: Likewise.
48590         * m4/mathl.m4: Likewise.
48591         * m4/mbrtowc.m4: Likewise.
48592         * m4/mbstate_t.m4: Likewise.
48593         * m4/mbswidth.m4: Likewise.
48594         * m4/memchr.m4: Likewise.
48595         * m4/memcmp.m4: Likewise.
48596         * m4/memcpy.m4: Likewise.
48597         * m4/memmem.m4: Likewise.
48598         * m4/memmove.m4: Likewise.
48599         * m4/mempcpy.m4: Likewise.
48600         * m4/memrchr.m4: Likewise.
48601         * m4/memset.m4: Likewise.
48602         * m4/minmax.m4: Likewise.
48603         * m4/mkdir-slash.m4: Likewise.
48604         * m4/mkdtemp.m4: Likewise.
48605         * m4/mktime.m4: Likewise.
48606         * m4/mmap-anon.m4: Likewise.
48607         * m4/mountlist.m4: Likewise.
48608         * m4/nanosleep.m4: Likewise.
48609         * m4/nls.m4: Likewise.
48610         * m4/nocrash.m4: Likewise.
48611         * m4/open.m4: Likewise.
48612         * m4/openat.m4: Likewise.
48613         * m4/openmp.m4: Likewise.
48614         * m4/pathmax.m4: Likewise.
48615         * m4/perl.m4: Likewise.
48616         * m4/physmem.m4: Likewise.
48617         * m4/pipe.m4: Likewise.
48618         * m4/po.m4: Likewise.
48619         * m4/poll.m4: Likewise.
48620         * m4/posixtm.m4: Likewise.
48621         * m4/posixver.m4: Likewise.
48622         * m4/printf-frexp.m4: Likewise.
48623         * m4/printf-frexpl.m4: Likewise.
48624         * m4/printf-posix.m4: Likewise.
48625         * m4/printf-posix-rpl.m4: Likewise.
48626         * m4/printf.m4: Likewise.
48627         * m4/progtest.m4: Likewise.
48628         * m4/putenv.m4: Likewise.
48629         * m4/readline.m4: Likewise.
48630         * m4/readlink.m4: Likewise.
48631         * m4/readutmp.m4: Likewise.
48632         * m4/realloc.m4: Likewise.
48633         * m4/regex.m4: Likewise.
48634         * m4/relocatable.m4: Likewise.
48635         * m4/relocatable-lib.m4: Likewise.
48636         * m4/rename-dest-slash.m4: Likewise.
48637         * m4/rename.m4: Likewise.
48638         * m4/rmdir-errno.m4: Likewise.
48639         * m4/rmdir.m4: Likewise.
48640         * m4/roundf.m4: Likewise.
48641         * m4/roundl.m4: Likewise.
48642         * m4/rpmatch.m4: Likewise.
48643         * m4/save-cwd.m4: Likewise.
48644         * m4/selinux-selinux-h.m4: Likewise.
48645         * m4/setenv.m4: Likewise.
48646         * m4/settime.m4: Likewise.
48647         * m4/sig2str.m4: Likewise.
48648         * m4/sig_atomic_t.m4: Likewise.
48649         * m4/signalblocking.m4: Likewise.
48650         * m4/signbit.m4: Likewise.
48651         * m4/sigpipe.m4: Likewise.
48652         * m4/sockets.m4: Likewise.
48653         * m4/sockpfaf.m4: Likewise.
48654         * m4/st_dm_mode.m4: Likewise.
48655         * m4/stat-time.m4: Likewise.
48656         * m4/stdbool.m4: Likewise.
48657         * m4/stdint.m4: Likewise.
48658         * m4/stdint_h.m4: Likewise.
48659         * m4/stpcpy.m4: Likewise.
48660         * m4/stpncpy.m4: Likewise.
48661         * m4/strcase.m4: Likewise.
48662         * m4/strchrnul.m4: Likewise.
48663         * m4/strcspn.m4: Likewise.
48664         * m4/strdup.m4: Likewise.
48665         * m4/strftime.m4: Likewise.
48666         * m4/strndup.m4: Likewise.
48667         * m4/strnlen.m4: Likewise.
48668         * m4/strpbrk.m4: Likewise.
48669         * m4/strptime.m4: Likewise.
48670         * m4/strsep.m4: Likewise.
48671         * m4/strtod.m4: Likewise.
48672         * m4/strtoimax.m4: Likewise.
48673         * m4/strtok_r.m4: Likewise.
48674         * m4/strtol.m4: Likewise.
48675         * m4/strtoll.m4: Likewise.
48676         * m4/strtoul.m4: Likewise.
48677         * m4/strtoull.m4: Likewise.
48678         * m4/strtoumax.m4: Likewise.
48679         * m4/strverscmp.m4: Likewise.
48680         * m4/threadlib.m4: Likewise.
48681         * m4/timegm.m4: Likewise.
48682         * m4/tm_gmtoff.m4: Likewise.
48683         * m4/tmpdir.m4: Likewise.
48684         * m4/tmpfile.m4: Likewise.
48685         * m4/tzset.m4: Likewise.
48686         * m4/uintmax_t.m4: Likewise.
48687         * m4/unlinkdir.m4: Likewise.
48688         * m4/unlocked-io.m4: Likewise.
48689         * m4/uptime.m4: Likewise.
48690         * m4/userspec.m4: Likewise.
48691         * m4/utimbuf.m4: Likewise.
48692         * m4/utime.m4: Likewise.
48693         * m4/utimes-null.m4: Likewise.
48694         * m4/utimes.m4: Likewise.
48695         * m4/vararrays.m4: Likewise.
48696         * m4/vasnprintf.m4: Likewise.
48697         * m4/vfprintf-posix.m4: Likewise.
48698         * m4/vprintf-posix.m4: Likewise.
48699         * m4/wait-process.m4: Likewise.
48700         * m4/wchar_t.m4: Likewise.
48701         * m4/wint_t.m4: Likewise.
48702         * m4/write-any-file.m4: Likewise.
48703         * m4/yield.m4: Likewise.
48704
48705 2009-01-13  Bruno Haible  <bruno@clisp.org>
48706
48707         Avoid test-copy-file.sh failures when ACL support insufficient.
48708         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48709         TESTS_ENVIRONMENT.
48710         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48711         Reported by Jim Meyering.
48712
48713 2009-01-13  Bruno Haible  <bruno@clisp.org>
48714
48715         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48716         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48717         * modules/unistdio/u8-printf-parse (Files): Likewise.
48718         * modules/unistdio/u32-printf-parse (Files): Likewise.
48719         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48720
48721 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48722
48723         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48724         and m4/inttypes_h.m4 too.
48725
48726 2009-01-12  Eric Blake  <ebb9@byu.net>
48727
48728         tests: IRIX 6.2 cc can't compile -0.0 into .data
48729         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48730         rather than at compile-time.
48731         * tests/test-floorl.c (minus_zero): Likewise.
48732         * tests/test-frexpl.c (minus_zero): Likewise.
48733         * tests/test-isnan.c (minus_zerol): Likewise.
48734         * tests/test-isnanl.h (minus_zero): Likewise.
48735         * tests/test-ldexpl.c (minus_zero): Likewise.
48736         * tests/test-roundl.c (minus_zero): Likewise.
48737         * tests/test-signbit.c (minus_zerol): Likewise.
48738         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48739         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48740         * tests/test-truncl.c (minus_zero): Likewise.
48741         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48742         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48743         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48744
48745 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48746
48747         regex: fix glibc bug 9697
48748         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48749         handling.
48750
48751 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48752
48753         regex: fix glibc bug 697
48754         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48755         being NULL also if there are no backreferences.
48756
48757 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48758
48759         regex: merge glibc changes
48760         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48761         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48762         re_string_skip_chars, re_string_reconstruct): Likewise.
48763         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48764
48765 2009-01-07  Jim Meyering  <meyering@redhat.com>
48766
48767         poll: filter through cppi
48768         * lib/poll.c: Indent cpp directives to reflect nesting.
48769
48770 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48771
48772         poll: don't return uninitialized
48773         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48774
48775 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48776
48777         avoid compile failure on AIX 6.1
48778         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48779         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48780
48781 2009-01-04  Jim Meyering  <meyering@redhat.com>
48782
48783         remove duplicate inclusion of <stdio.h>
48784         * tests/test-fprintf-posix.c: Likewise.
48785         * tests/test-printf-posix.c: Likewise.
48786         * tests/test-snprintf-posix.c: Likewise.
48787         * tests/test-sprintf-posix.c: Likewise.
48788         * tests/test-vasprintf-posix.c: Likewise.
48789         * tests/test-vfprintf-posix.c: Likewise.
48790         * tests/test-vprintf-posix.c: Likewise.
48791         * tests/test-vsnprintf-posix.c: Likewise.
48792         * tests/test-vsprintf-posix.c: Likewise.
48793
48794 2009-01-03  Jim Meyering  <meyering@redhat.com>
48795
48796         gnulib-tool: fix sed-based filtering
48797         * gnulib-tool (func_filter_filelist): Remove extra backslash
48798         in sed_fff_filter definition.
48799
48800 2009-01-02  Jim Meyering  <meyering@redhat.com>
48801
48802         strftime: avoid compilation failure on Solaris 2.6
48803         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48804         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48805         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48806         be available.  Reported by Tom G. Christensen.  Details in
48807         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48808
48809 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48810             Bruno Haible  <bruno@clisp.org>
48811
48812         Speed up gnulib-tool by doing more string processing through shell
48813         built-ins.
48814         * gnulib-tool (fast_func_append): New variable.
48815         (func_remove_prefix, func_remove_suffix): New functions.
48816         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48817         (func_filter_filelist): New function.
48818         (func_get_dependencies): Use func_remove_suffix instead of sed.
48819         (func_get_automake_snippet): Use func_filter_filelist instead of a
48820         subshell and sed invocation.
48821
48822 2009-01-01  Bruno Haible  <bruno@clisp.org>
48823
48824         Fix a security bug.
48825         * gnulib-tool (func_import, import, update): Don't allow the characters
48826         '"', '$', '`', '\' in macro arguments that become part of commands that
48827         are evaluated.
48828
48829 2009-01-01  Bruno Haible  <bruno@clisp.org>
48830
48831         * gnulib-tool (func_reset_sigpipe): Add more comments.
48832
48833 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48834
48835         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48836         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48837         already know the answer.
48838
48839 2009-01-01  Jim Meyering  <meyering@redhat.com>
48840
48841         * lib/version-etc.c (version_etc_va): Update copyright year.
48842
48843 2008-12-30  Bruno Haible  <bruno@clisp.org>
48844
48845         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48846         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48847         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48848
48849 2008-12-29  Eric Blake  <ebb9@byu.net>
48850
48851         multiarch: avoid autoconf AC_REQUIRE bug
48852         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48853         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48854         2.63 and older.
48855         Reported by Bruno Haible, and analyzed in
48856         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48857
48858 2008-12-29  Bruno Haible  <bruno@clisp.org>
48859
48860         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48861         files in subdirectories correctly.
48862         Reported by Ralf Wildenhues.
48863
48864 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48865
48866         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48867         rather than 'join FILE -', for Solaris join.
48868
48869 2008-12-29  Bruno Haible  <bruno@clisp.org>
48870
48871         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48872         quoting.
48873         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48874         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48875         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48876         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48877         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48878         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48879         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48880         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48881         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48882         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48883         * m4/nls.m4 (AM_NLS): Likewise.
48884         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48885         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48886         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48887         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48888         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48889         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48890         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48891         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48892         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48893         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48894         * m4/xsize.m4 (gl_XSIZE): Likewise.
48895         Suggested by Jim Meyering.
48896
48897 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48898
48899         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48900         * lib/parse-duration.c: use a switch instead of cascading if's.
48901
48902 2008-12-29  Eric Blake  <ebb9@byu.net>
48903
48904         wchar.h: supply WEOF on Irix 5.3
48905         * lib/wchar.in.h (wint_t): Also supply WEOF.
48906         * lib/wctype.in.h (wint_t): Likewise.
48907         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48908         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48909         Reported by Tom G. Christensen.
48910
48911 2008-12-26  Bruno Haible  <bruno@clisp.org>
48912
48913         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48914         i486, i586, i686.
48915
48916 2008-12-26  Bruno Haible  <bruno@clisp.org>
48917
48918         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48919
48920 2008-12-26  Bruno Haible  <bruno@clisp.org>
48921
48922         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48923         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48924         not __STDC_CONSTANT_MACROS.
48925         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48926
48927 2008-12-25  Bruno Haible  <bruno@clisp.org>
48928
48929         Add support for universal builds to vasnprintf.
48930         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48931         universal builds, guess no.
48932         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48933         * modules/vasprintf-posix (Depends-on): Likewise.
48934         * modules/fprintf-posix (Depends-on): Likewise.
48935         * modules/vfprintf-posix (Depends-on): Likewise.
48936         * modules/snprintf-posix (Depends-on): Likewise.
48937         * modules/vsnprintf-posix (Depends-on): Likewise.
48938         * modules/sprintf-posix (Depends-on): Likewise.
48939         * modules/vsprintf-posix (Depends-on): Likewise.
48940         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48941         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48942         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48943         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48944         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48945         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48946         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48947
48948         Add support for universal builds to <inttypes.h>.
48949         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48950         _SCNu64_PREFIX): In Apple
48951         universal builds, define directly, using _LP64.
48952         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48953         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48954         * modules/inttypes (Depends-on): Add multiarch.
48955         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48956
48957         Add support for universal builds to <stdint.h>.
48958         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48959         universal builds, define directly, using _LP64.
48960         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48961         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48962         and size_t.
48963         * modules/stdint (Depends-on): Add multiarch.
48964         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48965
48966         New module 'multiarch'.
48967         * modules/multiarch: New file.
48968         * m4/multiarch.m4: New file.
48969
48970 2008-12-25  Bruno Haible  <bruno@clisp.org>
48971
48972         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48973
48974 2008-12-25  Bruno Haible  <bruno@clisp.org>
48975
48976         * modules/btowc (License): Relicense under LGPLv2+.
48977         * modules/mbsinit (License): Likewise.
48978         * modules/mbrtowc (License): Likewise.
48979         * modules/wcrtomb (License): Likewise.
48980         * modules/streq (License): Likewise.
48981         Reported by David Lutterkort <lutter@redhat.com>.
48982
48983 2008-12-23  Bruno Haible  <bruno@clisp.org>
48984
48985         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48986
48987 2008-12-23  Bruno Haible  <bruno@clisp.org>
48988
48989         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48990         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48991         GETADDRINFO_LIB, not in LIBS.
48992         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48993         * modules/canon-host (Link): Likewise.
48994         * NEWS: Mention the change.
48995         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48996         GETADDRINFO_LIB.
48997
48998 2008-12-22  Bruno Haible  <bruno@clisp.org>
48999
49000         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
49001         * doc/posix-functions/iswalpha_l.texi: Likewise.
49002         * doc/posix-functions/iswblank_l.texi: Likewise.
49003         * doc/posix-functions/iswcntrl_l.texi: Likewise.
49004         * doc/posix-functions/iswctype_l.texi: Likewise.
49005         * doc/posix-functions/iswdigit_l.texi: Likewise.
49006         * doc/posix-functions/iswgraph_l.texi: Likewise.
49007         * doc/posix-functions/iswlower_l.texi: Likewise.
49008         * doc/posix-functions/iswprint_l.texi: Likewise.
49009         * doc/posix-functions/iswpunct_l.texi: Likewise.
49010         * doc/posix-functions/iswspace_l.texi: Likewise.
49011         * doc/posix-functions/iswupper_l.texi: Likewise.
49012         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49013         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49014         * doc/posix-functions/open_wmemstream.texi: Likewise.
49015         * doc/posix-functions/swscanf.texi: Likewise.
49016         * doc/posix-functions/towctrans_l.texi: Likewise.
49017         * doc/posix-functions/towlower.texi: Likewise.
49018         * doc/posix-functions/towlower_l.texi: Likewise.
49019         * doc/posix-functions/towupper.texi: Likewise.
49020         * doc/posix-functions/towupper_l.texi: Likewise.
49021         * doc/posix-functions/vfwprintf.texi: Likewise.
49022         * doc/posix-functions/vfwscanf.texi: Likewise.
49023         * doc/posix-functions/vswscanf.texi: Likewise.
49024         * doc/posix-functions/vwprintf.texi: Likewise.
49025         * doc/posix-functions/vwscanf.texi: Likewise.
49026         * doc/posix-functions/wcpcpy.texi: Likewise.
49027         * doc/posix-functions/wcpncpy.texi: Likewise.
49028         * doc/posix-functions/wcscasecmp.texi: Likewise.
49029         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49030         * doc/posix-functions/wcscoll_l.texi: Likewise.
49031         * doc/posix-functions/wcsdup.texi: Likewise.
49032         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49033         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49034         * doc/posix-functions/wcsnlen.texi: Likewise.
49035         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49036         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49037         * doc/posix-functions/wctrans_l.texi: Likewise.
49038         * doc/posix-functions/wctype_l.texi: Likewise.
49039         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49040         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49041         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49042         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49043         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49044         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49045         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49046         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49047         * doc/glibc-functions/wcschrnul.texi: Likewise.
49048         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49049         * doc/glibc-functions/wcstod_l.texi: Likewise.
49050         * doc/glibc-functions/wcstof_l.texi: Likewise.
49051         * doc/glibc-functions/wcstol_l.texi: Likewise.
49052         * doc/glibc-functions/wcstold_l.texi: Likewise.
49053         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49054         * doc/glibc-functions/wcstoq.texi: Likewise.
49055         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49056         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49057         * doc/glibc-functions/wcstouq.texi: Likewise.
49058         * doc/glibc-functions/wmempcpy.texi: Likewise.
49059
49060 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49061             Eric Blake  <ebb9@byu.net>
49062             Paolo Bonzini  <bonzini@gnu.org>
49063             Bruno Haible  <bruno@clisp.org>
49064
49065         Make c-stack work on Haiku.
49066         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49067         (c_stack_action): Use SA_ONSTACK flag.
49068
49069 2008-12-22  Bruno Haible  <bruno@clisp.org>
49070
49071         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49072
49073 2008-12-22  Bruno Haible  <bruno@clisp.org>
49074
49075         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49076         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49077         being overridden.
49078         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49079         New macros.
49080         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49081         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49082         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49083         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49084
49085 2008-12-22  Bruno Haible  <bruno@clisp.org>
49086
49087         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49088         from test code.
49089
49090 2008-12-22  Eric Blake  <ebb9@byu.net>
49091
49092         Avoid gcc warnings on cygwin.
49093         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49094         Avoid unused variable.
49095         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49096         Likewise.
49097
49098 2008-12-22  Bruno Haible  <bruno@clisp.org>
49099
49100         Remove HAVE_MBRTOWC conditionals.
49101         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49102         (mbscasecmp): Assume mbrtowc function.
49103         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49104         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49105         * lib/mbschr.c: Include mbuiter.h unconditionally.
49106         (mbschr): Assume mbrtowc function.
49107         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49108         (mbscspn): Assume mbrtowc function.
49109         * lib/mbslen.c: Include mbuiter.h unconditionally.
49110         (mbslen): Assume mbrtowc function.
49111         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49112         (mbsncasecmp): Assume mbrtowc function.
49113         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49114         (mbsnlen): Assume mbrtowc function.
49115         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49116         (mbspbrk): Assume mbrtowc function.
49117         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49118         (mbspcasecmp): Assume mbrtowc function.
49119         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49120         (mbsrchr): Assume mbrtowc function.
49121         * lib/mbssep.c: Include mbuiter.h unconditionally.
49122         (mbssep): Assume mbrtowc function.
49123         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49124         (mbsspn): Assume mbrtowc function.
49125         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49126         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49127         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49128         (mbstok_r): Assume mbrtowc function.
49129         * lib/propername.c: Include mbuiter.h unconditionally.
49130         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49131         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49132         (trim2): Assume mbrtowc function.
49133         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49134         (mbsnwidth): Assume mbrtowc function.
49135         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49136         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49137         fallback definitions.
49138         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49139
49140 2008-12-22  Bruno Haible  <bruno@clisp.org>
49141
49142         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
49143
49144 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
49145
49146         * modules/regex: Request emulations for the mb*/wc* functions we need.
49147         * m4/regex.m4: Don't look for those functions here.
49148         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
49149
49150 2008-12-22  Bruno Haible  <bruno@clisp.org>
49151
49152         * modules/fnmatch (Depends-on): Remove duplicated dependency.
49153
49154 2008-12-21  Bruno Haible  <bruno@clisp.org>
49155
49156         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
49157         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
49158         (Include): Remove conditionalization.
49159         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
49160         (Include): Remove conditionalization.
49161         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
49162         (Include): Remove conditionalization.
49163         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
49164         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49165         * NEWS: Mention the change.
49166         Reported by Alan Hourihane <alanh@fairlite.co.uk>
49167         via Sergey Poznyakoff <gray@gnu.org.ua>.
49168
49169 2008-12-21  Bruno Haible  <bruno@clisp.org>
49170
49171         * MODULES.html.sh (Extended multibyte and wide character utilities
49172         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
49173         wcrtomb, wcsrtombs.
49174         (Support for systems lacking POSIX:2008): Add accept, bind, close,
49175         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
49176         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
49177         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
49178
49179 2008-12-21  Bruno Haible  <bruno@clisp.org>
49180
49181         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49182
49183 2008-12-21  Bruno Haible  <bruno@clisp.org>
49184
49185         * modules/wcsnrtombs-tests: New file.
49186         * tests/test-wcsnrtombs1.sh: New file.
49187         * tests/test-wcsnrtombs2.sh: New file.
49188         * tests/test-wcsnrtombs3.sh: New file.
49189         * tests/test-wcsnrtombs4.sh: New file.
49190         * tests/test-wcsnrtombs.c: New file.
49191
49192         New module 'wcsnrtombs'.
49193         * lib/wchar.in.h (wcsnrtombs): New declaration.
49194         * lib/wcsnrtombs.c: New file.
49195         * lib/wcsrtombs-state.c: New file.
49196         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49197         (internal_state): Remove variable.
49198         * m4/wcsnrtombs.m4: New file.
49199         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49200         compilation units.
49201         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49202         HAVE_WCSNRTOMBS.
49203         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49204         HAVE_WCSNRTOMBS.
49205         * modules/wcsnrtombs: New file.
49206         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49207         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49208
49209 2008-12-21  Bruno Haible  <bruno@clisp.org>
49210
49211         * modules/wcsrtombs-tests: New file.
49212         * tests/test-wcsrtombs1.sh: New file.
49213         * tests/test-wcsrtombs2.sh: New file.
49214         * tests/test-wcsrtombs3.sh: New file.
49215         * tests/test-wcsrtombs4.sh: New file.
49216         * tests/test-wcsrtombs.c: New file.
49217
49218         New module 'wcsrtombs'.
49219         * lib/wchar.in.h (wcsrtombs): New declaration.
49220         * lib/wcsrtombs.c: New file.
49221         * m4/wcsrtombs.m4: New file.
49222         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49223         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49224         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49225         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49226         * modules/wcsrtombs: New file.
49227         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49228         bugs.
49229
49230 2008-12-21  Bruno Haible  <bruno@clisp.org>
49231
49232         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49233         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49234         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49235         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49236         if not correct.
49237         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49238         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49239         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49240         m4/locale-zh.m4, m4/codeset.m4.
49241         * doc/posix-functions/wcrtomb.texi: Document the bug.
49242
49243 2008-12-21  Bruno Haible  <bruno@clisp.org>
49244
49245         Work around a btowc() bug on IRIX 6.5.
49246         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
49247         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
49248         REPLACE_WTOBC if not.
49249         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
49250         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
49251         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
49252
49253 2008-12-21  Bruno Haible  <bruno@clisp.org>
49254
49255         * modules/wcrtomb-tests: New file.
49256         * tests/test-wcrtomb.sh: New file.
49257         * tests/test-wcrtomb.c: New file.
49258
49259         New module 'wcrtomb'.
49260         * lib/wchar.in.h (wcrtomb): New declaration.
49261         * lib/wcrtomb.c: New file.
49262         * m4/wcrtomb.m4: New file.
49263         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49264         HAVE_WCRTOMB.
49265         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49266         HAVE_WCRTOMB.
49267         * modules/wcrtomb: New file.
49268         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49269
49270 2008-12-21  Bruno Haible  <bruno@clisp.org>
49271
49272         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49273         * modules/mbsrtowcs (Files): Likewise.
49274         * modules/wctob (Files): Likewise.
49275         * modules/c-strcase-tests (Files): Likewise.
49276         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49277         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49278         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49279         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49280         * modules/vasnprintf-posix-tests (Files): Likewise.
49281
49282 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49283
49284         gitlog-to-changelog: pass all command-line arguments to git-log
49285         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49286         it is sometimes convenient to filter the commits in various ways.
49287         gitlog-to-changelog only allows --since to specify a start date,
49288         but git-log itself supports many other filtering mechanisms.
49289         At the moment, I want to filter by branch name.  Rather than
49290         adding a --branch option to gitlog-to-changelog, it seems more
49291         flexible to simply pass all options directly to git-log and let
49292         git do the work.  Notice that this effectively makes --since a
49293         redundant option for gitlog-to-changelog, but removing it would
49294         require current usage to change since calls would then require
49295         an additional '--'.
49296
49297 2008-12-21  Bruno Haible  <bruno@clisp.org>
49298
49299         * modules/mbsnrtowcs-tests: New file.
49300         * tests/test-mbsnrtowcs1.sh: New file.
49301         * tests/test-mbsnrtowcs2.sh: New file.
49302         * tests/test-mbsnrtowcs3.sh: New file.
49303         * tests/test-mbsnrtowcs4.sh: New file.
49304         * tests/test-mbsnrtowcs.c: New file.
49305
49306         New module 'mbsnrtowcs'.
49307         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49308         * lib/mbsnrtowcs.c: New file.
49309         * lib/mbsrtowcs-state.c: New file.
49310         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49311         (internal_state): Remove variable.
49312         * m4/mbsnrtowcs.m4: New file.
49313         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49314         compilation units.
49315         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49316         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49317         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49318         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49319         * modules/mbsnrtowcs: New file.
49320         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49321         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49322         portability problem.
49323
49324 2008-12-21  Bruno Haible  <bruno@clisp.org>
49325
49326         Work around mbsrtowcs bug.
49327         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49328         (gl_FUNC_MBSRTOWCS): Invoke it.
49329         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49330         m4/locale-zh.m4.
49331         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49332
49333 2008-12-21  Bruno Haible  <bruno@clisp.org>
49334
49335         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49336
49337 2008-12-21  Bruno Haible  <bruno@clisp.org>
49338
49339         Update doc for AIX.
49340         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49341         16-bit wchar_t type.
49342         * doc/posix-functions/btowc.texi: Likewise.
49343         * doc/posix-functions/fgetwc.texi: Likewise.
49344         * doc/posix-functions/fgetws.texi: Likewise.
49345         * doc/posix-functions/fputwc.texi: Likewise.
49346         * doc/posix-functions/fputws.texi: Likewise.
49347         * doc/posix-functions/fwide.texi: Likewise.
49348         * doc/posix-functions/fwprintf.texi: Likewise.
49349         * doc/posix-functions/fwscanf.texi: Likewise.
49350         * doc/posix-functions/getwchar.texi: Likewise.
49351         * doc/posix-functions/getwc.texi: Likewise.
49352         * doc/posix-functions/iswalnum.texi: Likewise.
49353         * doc/posix-functions/iswalpha.texi: Likewise.
49354         * doc/posix-functions/iswblank.texi: Likewise.
49355         * doc/posix-functions/iswcntrl.texi: Likewise.
49356         * doc/posix-functions/iswctype.texi: Likewise.
49357         * doc/posix-functions/iswdigit.texi: Likewise.
49358         * doc/posix-functions/iswgraph.texi: Likewise.
49359         * doc/posix-functions/iswlower.texi: Likewise.
49360         * doc/posix-functions/iswprint.texi: Likewise.
49361         * doc/posix-functions/iswpunct.texi: Likewise.
49362         * doc/posix-functions/iswspace.texi: Likewise.
49363         * doc/posix-functions/iswupper.texi: Likewise.
49364         * doc/posix-functions/iswxdigit.texi: Likewise.
49365         * doc/posix-functions/mbrtowc.texi: Likewise.
49366         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49367         * doc/posix-functions/mbstowcs.texi: Likewise.
49368         * doc/posix-functions/mbtowc.texi: Likewise.
49369         * doc/posix-functions/putwchar.texi: Likewise.
49370         * doc/posix-functions/putwc.texi: Likewise.
49371         * doc/posix-functions/swprintf.texi: Likewise.
49372         * doc/posix-functions/tolower.texi: Likewise.
49373         * doc/posix-functions/toupper.texi: Likewise.
49374         * doc/posix-functions/towctrans.texi: Likewise.
49375         * doc/posix-functions/ungetwc.texi: Likewise.
49376         * doc/posix-functions/vswprintf.texi: Likewise.
49377         * doc/posix-functions/wcrtomb.texi: Likewise.
49378         * doc/posix-functions/wcscat.texi: Likewise.
49379         * doc/posix-functions/wcschr.texi: Likewise.
49380         * doc/posix-functions/wcscmp.texi: Likewise.
49381         * doc/posix-functions/wcscoll.texi: Likewise.
49382         * doc/posix-functions/wcscpy.texi: Likewise.
49383         * doc/posix-functions/wcscspn.texi: Likewise.
49384         * doc/posix-functions/wcsftime.texi: Likewise.
49385         * doc/posix-functions/wcslen.texi: Likewise.
49386         * doc/posix-functions/wcsncat.texi: Likewise.
49387         * doc/posix-functions/wcsncmp.texi: Likewise.
49388         * doc/posix-functions/wcsncpy.texi: Likewise.
49389         * doc/posix-functions/wcspbrk.texi: Likewise.
49390         * doc/posix-functions/wcsrchr.texi: Likewise.
49391         * doc/posix-functions/wcsrtombs.texi: Likewise.
49392         * doc/posix-functions/wcsspn.texi: Likewise.
49393         * doc/posix-functions/wcsstr.texi: Likewise.
49394         * doc/posix-functions/wcstod.texi: Likewise.
49395         * doc/posix-functions/wcstof.texi: Likewise.
49396         * doc/posix-functions/wcstoimax.texi: Likewise.
49397         * doc/posix-functions/wcstok.texi: Likewise.
49398         * doc/posix-functions/wcstold.texi: Likewise.
49399         * doc/posix-functions/wcstoll.texi: Likewise.
49400         * doc/posix-functions/wcstol.texi: Likewise.
49401         * doc/posix-functions/wcstombs.texi: Likewise.
49402         * doc/posix-functions/wcstoull.texi: Likewise.
49403         * doc/posix-functions/wcstoul.texi: Likewise.
49404         * doc/posix-functions/wcstoumax.texi: Likewise.
49405         * doc/posix-functions/wcswidth.texi: Likewise.
49406         * doc/posix-functions/wcsxfrm.texi: Likewise.
49407         * doc/posix-functions/wctob.texi: Likewise.
49408         * doc/posix-functions/wctomb.texi: Likewise.
49409         * doc/posix-functions/wctrans.texi: Likewise.
49410         * doc/posix-functions/wctype.texi: Likewise.
49411         * doc/posix-functions/wcwidth.texi: Likewise.
49412         * doc/posix-functions/wmemchr.texi: Likewise.
49413         * doc/posix-functions/wmemcmp.texi: Likewise.
49414         * doc/posix-functions/wmemcpy.texi: Likewise.
49415         * doc/posix-functions/wmemmove.texi: Likewise.
49416         * doc/posix-functions/wmemset.texi: Likewise.
49417         * doc/posix-functions/wprintf.texi: Likewise.
49418         * doc/posix-functions/wscanf.texi: Likewise.
49419
49420 2008-12-21  Bruno Haible  <bruno@clisp.org>
49421
49422         Update doc for HP-UX 11.11.
49423         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49424         in HP-UX version 11.00, not in all versions of HP-UX 11.
49425         * doc/posix-functions/fwide.texi: Likewise.
49426         * doc/posix-functions/fwprintf.texi: Likewise.
49427         * doc/posix-functions/fwscanf.texi: Likewise.
49428         * doc/posix-functions/inet_ntop.texi: Likewise.
49429         * doc/posix-functions/inet_pton.texi: Likewise.
49430         * doc/posix-functions/mbrlen.texi: Likewise.
49431         * doc/posix-functions/mbrtowc.texi: Likewise.
49432         * doc/posix-functions/mbsinit.texi: Likewise.
49433         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49434         * doc/posix-functions/swprintf.texi: Likewise.
49435         * doc/posix-functions/swscanf.texi: Likewise.
49436         * doc/posix-functions/towctrans.texi: Likewise.
49437         * doc/posix-functions/vfwprintf.texi: Likewise.
49438         * doc/posix-functions/vswprintf.texi: Likewise.
49439         * doc/posix-functions/vwprintf.texi: Likewise.
49440         * doc/posix-functions/wcrtomb.texi: Likewise.
49441         * doc/posix-functions/wcsrtombs.texi: Likewise.
49442         * doc/posix-functions/wcsstr.texi: Likewise.
49443         * doc/posix-functions/wctob.texi: Likewise.
49444         * doc/posix-functions/wctrans.texi: Likewise.
49445         * doc/posix-functions/wmemchr.texi: Likewise.
49446         * doc/posix-functions/wmemcmp.texi: Likewise.
49447         * doc/posix-functions/wmemcpy.texi: Likewise.
49448         * doc/posix-functions/wmemmove.texi: Likewise.
49449         * doc/posix-functions/wmemset.texi: Likewise.
49450         * doc/posix-functions/wprintf.texi: Likewise.
49451         * doc/posix-functions/wscanf.texi: Likewise.
49452
49453 2008-12-21  Bruno Haible  <bruno@clisp.org>
49454
49455         Work around a portability problem.
49456         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49457         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49458
49459 2008-12-20  Bruno Haible  <bruno@clisp.org>
49460
49461         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49462         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49463         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49464         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49465         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49466
49467         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49468         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49469         set.
49470         (GNULIB_defined_mbstate_t): New macro.
49471         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49472         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49473         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49474         reuses the system's mbrtowc function but works around the bugs.
49475         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49476         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49477         macros.
49478         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49479         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49480         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49481         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49482         REPLACE_MBSINIT if mbsinit needs to be overridden.
49483         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49484         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49485         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49486         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49487         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49488         m4/locale-zh.m4.
49489         (Depends): Add mbsinit.
49490         * modules/mbsinit (Depends): Add mbrtowc.
49491         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49492
49493 2008-12-20  Bruno Haible  <bruno@clisp.org>
49494
49495         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49496         so that there are no conversion errors on AIX.
49497         * tests/test-mbsrtowcs.c (main): LIkewise.
49498
49499 2008-12-20  Bruno Haible  <bruno@clisp.org>
49500
49501         Work around wctob bug on Solaris <= 9.
49502         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49503         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49504         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49505         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49506         * modules/wctob (Files): Add m4/locale-fr.m4.
49507         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49508
49509 2008-12-20  Bruno Haible  <bruno@clisp.org>
49510
49511         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49512         /dev/null.
49513         * tests/test-select-in.sh: Likewise.
49514         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49515
49516 2008-12-20  Bruno Haible  <bruno@clisp.org>
49517
49518         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49519         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49520         Cygwin 1.5.x.
49521
49522 2008-12-20  Bruno Haible  <bruno@clisp.org>
49523
49524         Ensure mbstate_t is defined on HP-UX 11.11.
49525         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49526         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49527         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49528         AC_USE_SYSTEM_EXTENSIONS.
49529         * modules/fnmatch (Depends-on): Add extensions.
49530         * modules/mbrlen (Depends-on): Likewise.
49531         * modules/mbrtowc (Depends-on): Likewise.
49532         * modules/mbsinit (Depends-on): Likewise.
49533         * modules/mbsrtowcs (Depends-on): Likewise.
49534         * modules/mbswidth (Depends-on): Likewise.
49535         * modules/quotearg (Depends-on): Likewise.
49536         * modules/strftime (Depends-on): Likewise.
49537
49538 2008-12-20  Bruno Haible  <bruno@clisp.org>
49539
49540         Ensure wctob is declared on IRIX 6.5.
49541         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49542         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49543         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49544         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49545         of HAVE_WCTOB.
49546         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49547         HAVE_WCTOB.
49548         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49549
49550 2008-12-19  Bruno Haible  <bruno@clisp.org>
49551
49552         * modules/mbsrtowcs-tests: New file.
49553         * tests/test-mbsrtowcs1.sh: New file.
49554         * tests/test-mbsrtowcs2.sh: New file.
49555         * tests/test-mbsrtowcs3.sh: New file.
49556         * tests/test-mbsrtowcs4.sh: New file.
49557         * tests/test-mbsrtowcs.c: New file.
49558
49559         New module 'mbsrtowcs'.
49560         * lib/wchar.in.h (mbsrtowcs): New declaration.
49561         * lib/mbsrtowcs.c: New file.
49562         * m4/mbsrtowcs.m4: New file.
49563         * modules/mbsrtowcs: New file.
49564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49565         HAVE_MBSRTOWCS.
49566         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49567         HAVE_MBSRTOWCS.
49568         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49569
49570 2008-12-19  Bruno Haible  <bruno@clisp.org>
49571
49572         New module 'mbrlen'.
49573         * lib/wchar.in.h (mbrlen): New declaration.
49574         * lib/mbrlen.c: New file.
49575         * m4/mbrlen.m4: New file.
49576         * modules/mbrlen: New file.
49577         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49578         HAVE_MBRLEN.
49579         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49580         HAVE_MBRLEN.
49581         * doc/posix-functions/mbrlen.texi: Document the new module.
49582
49583 2008-12-19  Bruno Haible  <bruno@clisp.org>
49584
49585         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49586         * modules/mbrtowc (Depends-on): Add verify.
49587         Suggested by Paul Eggert.
49588
49589 2008-12-18  Bruno Haible  <bruno@clisp.org>
49590
49591         * modules/mbsinit-tests: New file.
49592         * tests/test-mbsinit.sh: New file.
49593         * tests/test-mbsinit.c: New file.
49594
49595 2008-12-18  Bruno Haible  <bruno@clisp.org>
49596
49597         * modules/mbrtowc-tests: New file.
49598         * tests/test-mbrtowc1.sh: New file.
49599         * tests/test-mbrtowc2.sh: New file.
49600         * tests/test-mbrtowc3.sh: New file.
49601         * tests/test-mbrtowc4.sh: New file.
49602         * tests/test-mbrtowc.c: New file.
49603
49604         New module 'mbrtowc'.
49605         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49606         mbsinit and mbrtowc.
49607         (mbrtowc): New declaration.
49608         * lib/mbrtowc.c: New file.
49609         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49610         * modules/mbrtowc: New file.
49611         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49612         HAVE_MBRTOWC.
49613         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49614         HAVE_MBRTOWC.
49615         * doc/posix-functions/mbrtowc.texi: Document the new module.
49616
49617 2008-12-18  Bruno Haible  <bruno@clisp.org>
49618
49619         New module 'wctob'.
49620         * lib/wchar.in.h (wctob): New declaration.
49621         * lib/wctob.c: New file.
49622         * m4/wctob.m4: New file.
49623         * modules/wctob: New file.
49624         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49625         HAVE_WCTOB.
49626         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49627         * doc/posix-functions/wctob.texi: Document the new module.
49628
49629 2008-12-18  Bruno Haible  <bruno@clisp.org>
49630
49631         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49632         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49633
49634 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49635
49636         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49637         G. Christensen" <tgc@jupiterrise.com>.
49638
49639         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49640         G. Christensen" <tgc@jupiterrise.com>.
49641
49642         * lib/flock.c: Need to include string.h.  Reported by "Tom
49643         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49644         <ebb9@byu.net>.
49645
49646 2008-12-18  Bruno Haible  <bruno@clisp.org>
49647
49648         * m4/locale-ja.m4: New file, from GNU gettext.
49649
49650 2008-12-17  Bruno Haible  <bruno@clisp.org>
49651
49652         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49653         Suggested by Eric Blake.
49654
49655 2008-12-17  Bruno Haible  <bruno@clisp.org>
49656
49657         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49658
49659 2008-12-17  Bruno Haible  <bruno@clisp.org>
49660
49661         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49662         * modules/mbsinit (Depends-on): Add verify.
49663         Suggested by Paul Eggert.
49664
49665 2008-12-17  Bruno Haible  <bruno@clisp.org>
49666
49667         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49668         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49669         gl_FUNC_MBRTOWC.
49670         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49671         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49672         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49673         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49674         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49675         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49676         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49677         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49678         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49679         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49680         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49681         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49682         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49683         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49684         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49685         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49686         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49687         * modules/trim (configure.ac): Likewise.
49688
49689 2008-12-17  Bruno Haible  <bruno@clisp.org>
49690
49691         * modules/btowc-tests: New file.
49692         * tests/test-btowc1.sh: New file.
49693         * tests/test-btowc2.sh: New file.
49694         * tests/test-btowc.c: New file.
49695
49696         New module 'btowc'.
49697         * lib/wchar.in.h (btowc): New declaration.
49698         * lib/btowc.c: New file.
49699         * m4/btowc.m4: New file.
49700         * modules/btowc: New file.
49701         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49702         HAVE_BTOWC.
49703         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49704         * doc/posix-functions/btowc.texi: Document the new module.
49705
49706 2008-12-17  Bruno Haible  <bruno@clisp.org>
49707
49708         New module 'mbsinit'.
49709         * lib/wchar.in.h (mbsinit): New declaration.
49710         * lib/mbsinit.c: New file.
49711         * m4/mbsinit.m4: New file.
49712         * modules/mbsinit: New file.
49713         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49714         HAVE_MBSINIT.
49715         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49716         HAVE_MBSINIT.
49717         * doc/posix-functions/mbsinit.texi: Document the new module.
49718
49719 2008-12-16  Bruno Haible  <bruno@clisp.org>
49720
49721         * lib/unistd.in.h: Add comment.
49722         * tests/test-environ.c: Don't include <stdlib.h>.
49723
49724 2008-12-16  Bruno Haible  <bruno@clisp.org>
49725
49726         * lib/parse-duration.h (parse_duration): Document return value
49727         convention.
49728         * lib/parse-duration.c: Include specification header first. Add
49729         comments.
49730         (_): Remove macro.
49731         (parse_year_month_day, parse_hour_minute_second): Move side effects
49732         outside of strchr call.
49733         (parse_non_iso8601): Move side effects outside of isspace call.
49734         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49735         call.
49736
49737 2008-12-16  Bruno Haible  <bruno@clisp.org>
49738
49739         * tests/test-parse-duration.sh: Produce no output when the test
49740         succeeds.
49741
49742 2008-12-16  Bruno Haible  <bruno@clisp.org>
49743
49744         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49745         expressions.
49746
49747 2008-12-15  Bruno Haible  <bruno@clisp.org>
49748
49749         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49750         * doc/glibc-functions/flistxattr.texi: Likewise.
49751         * doc/glibc-functions/fopencookie.texi: Likewise.
49752         * doc/glibc-functions/fremovexattr.texi: Likewise.
49753         * doc/glibc-functions/fsetxattr.texi: Likewise.
49754         * doc/glibc-functions/getxattr.texi: Likewise.
49755         * doc/glibc-functions/lgetxattr.texi: Likewise.
49756         * doc/glibc-functions/listxattr.texi: Likewise.
49757         * doc/glibc-functions/llistxattr.texi: Likewise.
49758         * doc/glibc-functions/lremovexattr.texi: Likewise.
49759         * doc/glibc-functions/lsetxattr.texi: Likewise.
49760         * doc/glibc-functions/removexattr.texi: Likewise.
49761         * doc/glibc-functions/setxattr.texi: Likewise.
49762         * doc/posix-functions/open_memstream.texi: Likewise.
49763
49764 2008-12-15  Eric Blake  <ebb9@byu.net>
49765
49766         Update doc for cygwin 1.7.
49767         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49768         functions.
49769         * doc/posix-functions/fchmodat.texi: Likewise.
49770         * doc/posix-functions/fchownat.texi: Likewise.
49771         * doc/posix-functions/fdopendir.texi: Likewise.
49772         * doc/posix-functions/fmemopen.texi: Likewise.
49773         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49774         * doc/posix-functions/fstatat.texi: Likewise.
49775         * doc/posix-functions/futimens.texi: Likewise.
49776         * doc/posix-functions/gai_strerror.texi: Likewise.
49777         * doc/posix-functions/getaddrinfo.texi: Likewise.
49778         * doc/posix-functions/getnameinfo.texi: Likewise.
49779         * doc/posix-functions/if_freenameindex.texi: Likewise.
49780         * doc/posix-functions/if_indextoname.texi: Likewise.
49781         * doc/posix-functions/if_nameindex.texi: Likewise.
49782         * doc/posix-functions/if_nametoindex.texi: Likewise.
49783         * doc/posix-functions/insque.texi: Likewise.
49784         * doc/posix-functions/linkat.texi: Likewise.
49785         * doc/posix-functions/llrint.texi: Likewise.
49786         * doc/posix-functions/llrintf.texi: Likewise.
49787         * doc/posix-functions/llrintl.texi: Likewise.
49788         * doc/posix-functions/lockf.texi: Likewise.
49789         * doc/posix-functions/lrintl.texi: Likewise.
49790         * doc/posix-functions/mkdirat.texi: Likewise.
49791         * doc/posix-functions/mkfifoat.texi: Likewise.
49792         * doc/posix-functions/mknodat.texi: Likewise.
49793         * doc/posix-functions/mq_close.texi: Likewise.
49794         * doc/posix-functions/mq_getattr.texi: Likewise.
49795         * doc/posix-functions/mq_notify.texi: Likewise.
49796         * doc/posix-functions/mq_open.texi: Likewise.
49797         * doc/posix-functions/mq_receive.texi: Likewise.
49798         * doc/posix-functions/mq_send.texi: Likewise.
49799         * doc/posix-functions/mq_setattr.texi: Likewise.
49800         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49801         * doc/posix-functions/mq_timedsend.texi: Likewise.
49802         * doc/posix-functions/mq_unlink.texi: Likewise.
49803         * doc/posix-functions/open_memstream.texi: Likewise.
49804         * doc/posix-functions/openat.texi: Likewise.
49805         * doc/posix-functions/posix_fadvise.texi: Likewise.
49806         * doc/posix-functions/posix_fallocate.texi: Likewise.
49807         * doc/posix-functions/posix_madvise.texi: Likewise.
49808         * doc/posix-functions/posix_memalign.texi: Likewise.
49809         * doc/posix-functions/posix_openpt.texi: Likewise.
49810         * doc/posix-functions/readlinkat.texi: Likewise.
49811         * doc/posix-functions/remque.texi: Likewise.
49812         * doc/posix-functions/renameat.texi: Likewise.
49813         * doc/posix-functions/rintl.texi: Likewise.
49814         * doc/posix-functions/sem_unlink.texi: Likewise.
49815         * doc/posix-functions/shm_open.texi: Likewise.
49816         * doc/posix-functions/shm_unlink.texi: Likewise.
49817         * doc/posix-functions/signgam.texi: Likewise.
49818         * doc/posix-functions/sigset.texi: Likewise.
49819         * doc/posix-functions/stpcpy.texi: Likewise.
49820         * doc/posix-functions/stpncpy.texi: Likewise.
49821         * doc/posix-functions/strerror.texi: Likewise.
49822         * doc/posix-functions/strtod.texi: Likewise.
49823         * doc/posix-functions/symlinkat.texi: Likewise.
49824         * doc/posix-functions/unlinkat.texi: Likewise.
49825         * doc/posix-functions/utimensat.texi: Likewise.
49826         * doc/glibc-functions/bindresvport.texi: Likewise.
49827         * doc/glibc-functions/dn_expand.texi: Likewise.
49828         * doc/glibc-functions/exp10.texi: Likewise.
49829         * doc/glibc-functions/exp10f.texi: Likewise.
49830         * doc/glibc-functions/fgetxattr.texi: Likewise.
49831         * doc/glibc-functions/flistxattr.texi: Likewise.
49832         * doc/glibc-functions/fopencookie.texi: Likewise.
49833         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49834         * doc/glibc-functions/fremovexattr.texi: Likewise.
49835         * doc/glibc-functions/fsetxattr.texi: Likewise.
49836         * doc/glibc-functions/getifaddrs.texi: Likewise.
49837         * doc/glibc-functions/getxattr.texi: Likewise.
49838         * doc/glibc-functions/lgetxattr.texi: Likewise.
49839         * doc/glibc-functions/listxattr.texi: Likewise.
49840         * doc/glibc-functions/llistxattr.texi: Likewise.
49841         * doc/glibc-functions/lremovexattr.texi: Likewise.
49842         * doc/glibc-functions/lsetxattr.texi: Likewise.
49843         * doc/glibc-functions/pow10.texi: Likewise.
49844         * doc/glibc-functions/pow10f.texi: Likewise.
49845         * doc/glibc-functions/rcmd_af.texi: Likewise.
49846         * doc/glibc-functions/removexattr.texi: Likewise.
49847         * doc/glibc-functions/res_init.texi: Likewise.
49848         * doc/glibc-functions/res_mkquery.texi: Likewise.
49849         * doc/glibc-functions/res_query.texi: Likewise.
49850         * doc/glibc-functions/res_querydomain.texi: Likewise.
49851         * doc/glibc-functions/res_send.texi: Likewise.
49852         * doc/glibc-functions/rresvport_af.texi: Likewise.
49853         * doc/glibc-functions/setxattr.texi: Likewise.
49854         * doc/glibc-functions/strcasestr.texi: Likewise.
49855
49856 2008-12-15  Bruno Haible  <bruno@clisp.org>
49857
49858         Fix compilation error on OSF/1 4.0.
49859         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49860         <sys/time.h>, simply delegate to the system header.
49861         Reported by Daniel Richard G. <oss@teragram.com>.
49862
49863 2008-12-15  Bruno Haible  <bruno@clisp.org>
49864
49865         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49866         * doc/posix-functions/fchmodat.texi: Likewise.
49867         * doc/posix-functions/fchownat.texi: Likewise.
49868         * doc/posix-functions/fdopendir.texi: Likewise.
49869         * doc/posix-functions/fstatat.texi: Likewise.
49870         * doc/posix-functions/mkdirat.texi: Likewise.
49871         * doc/posix-functions/unlinkat.texi: Likewise.
49872
49873 2008-12-14  Bruno Haible  <bruno@clisp.org>
49874
49875         Update doc for POSIX:2008.
49876         * doc/posix-functions/faccessat.texi: New file.
49877         * doc/posix-functions/fchmodat.texi: New file.
49878         * doc/posix-functions/fchownat.texi: New file.
49879         * doc/posix-functions/fdopendir.texi: New file.
49880         * doc/posix-functions/fstatat.texi: New file.
49881         * doc/posix-functions/futimens.texi: New file.
49882         * doc/posix-functions/linkat.texi: New file.
49883         * doc/posix-functions/mkdirat.texi: New file.
49884         * doc/posix-functions/mkfifoat.texi: New file.
49885         * doc/posix-functions/mknodat.texi: New file.
49886         * doc/posix-functions/open_wmemstream.texi: New file.
49887         * doc/posix-functions/openat.texi: New file.
49888         * doc/posix-functions/psiginfo.texi: New file.
49889         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49890         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49891         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49892         * doc/posix-functions/readlinkat.texi: New file.
49893         * doc/posix-functions/renameat.texi: New file.
49894         * doc/posix-functions/strerror_l.texi: New file.
49895         * doc/posix-functions/symlinkat.texi: New file.
49896         * doc/posix-functions/unlinkat.texi: New file.
49897         * doc/posix-functions/utimensat.texi: New file.
49898         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49899
49900 2008-12-14  Bruno Haible  <bruno@clisp.org>
49901
49902         Update doc for POSIX:2008.
49903         * doc/posix-functions/alphasort.texi: Renamed from
49904         doc/glibc-functions/alphasort.texi.
49905         * doc/posix-functions/dirfd.texi: Renamed from
49906         doc/glibc-functions/dirfd.texi.
49907         * doc/posix-functions/dprintf.texi: Renamed from
49908         doc/glibc-functions/dprintf.texi.
49909         * doc/posix-functions/duplocale.texi: Renamed from
49910         doc/glibc-functions/duplocale.texi.
49911         * doc/posix-functions/fexecve.texi: Renamed from
49912         doc/glibc-functions/fexecve.texi.
49913         * doc/posix-functions/fmemopen.texi: Renamed from
49914         doc/glibc-functions/fmemopen.texi.
49915         * doc/posix-functions/freelocale.texi: Renamed from
49916         doc/glibc-functions/freelocale.texi.
49917         * doc/posix-functions/getdate_err.texi: Renamed from
49918         doc/glibc-functions/getdate_err.texi.
49919         * doc/posix-functions/isalnum_l.texi: Renamed from
49920         doc/glibc-functions/isalnum_l.texi.
49921         * doc/posix-functions/isalpha_l.texi: Renamed from
49922         doc/glibc-functions/isalpha_l.texi.
49923         * doc/posix-functions/isblank_l.texi: Renamed from
49924         doc/glibc-functions/isblank_l.texi.
49925         * doc/posix-functions/iscntrl_l.texi: Renamed from
49926         doc/glibc-functions/iscntrl_l.texi.
49927         * doc/posix-functions/isdigit_l.texi: Renamed from
49928         doc/glibc-functions/isdigit_l.texi.
49929         * doc/posix-functions/isgraph_l.texi: Renamed from
49930         doc/glibc-functions/isgraph_l.texi.
49931         * doc/posix-functions/islower_l.texi: Renamed from
49932         doc/glibc-functions/islower_l.texi.
49933         * doc/posix-functions/isprint_l.texi: Renamed from
49934         doc/glibc-functions/isprint_l.texi.
49935         * doc/posix-functions/ispunct_l.texi: Renamed from
49936         doc/glibc-functions/ispunct_l.texi.
49937         * doc/posix-functions/isspace_l.texi: Renamed from
49938         doc/glibc-functions/isspace_l.texi.
49939         * doc/posix-functions/isupper_l.texi: Renamed from
49940         doc/glibc-functions/isupper_l.texi.
49941         * doc/posix-functions/iswalnum_l.texi: Renamed from
49942         doc/glibc-functions/iswalnum_l.texi.
49943         * doc/posix-functions/iswalpha_l.texi: Renamed from
49944         doc/glibc-functions/iswalpha_l.texi.
49945         * doc/posix-functions/iswblank_l.texi: Renamed from
49946         doc/glibc-functions/iswblank_l.texi.
49947         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49948         doc/glibc-functions/iswcntrl_l.texi.
49949         * doc/posix-functions/iswctype_l.texi: Renamed from
49950         doc/glibc-functions/iswctype_l.texi.
49951         * doc/posix-functions/iswdigit_l.texi: Renamed from
49952         doc/glibc-functions/iswdigit_l.texi.
49953         * doc/posix-functions/iswgraph_l.texi: Renamed from
49954         doc/glibc-functions/iswgraph_l.texi.
49955         * doc/posix-functions/iswlower_l.texi: Renamed from
49956         doc/glibc-functions/iswlower_l.texi.
49957         * doc/posix-functions/iswprint_l.texi: Renamed from
49958         doc/glibc-functions/iswprint_l.texi.
49959         * doc/posix-functions/iswpunct_l.texi: Renamed from
49960         doc/glibc-functions/iswpunct_l.texi.
49961         * doc/posix-functions/iswspace_l.texi: Renamed from
49962         doc/glibc-functions/iswspace_l.texi.
49963         * doc/posix-functions/iswupper_l.texi: Renamed from
49964         doc/glibc-functions/iswupper_l.texi.
49965         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49966         doc/glibc-functions/iswxdigit_l.texi.
49967         * doc/posix-functions/isxdigit_l.texi: Renamed from
49968         doc/glibc-functions/isxdigit_l.texi.
49969         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49970         doc/glibc-functions/mbsnrtowcs.texi.
49971         * doc/posix-functions/mkdtemp.texi: Renamed from
49972         doc/glibc-functions/mkdtemp.texi.
49973         * doc/posix-functions/newlocale.texi: Renamed from
49974         doc/glibc-functions/newlocale.texi.
49975         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49976         doc/glibc-functions/nl_langinfo_l.texi.
49977         * doc/posix-functions/open_memstream.texi: Renamed from
49978         doc/glibc-functions/open_memstream.texi.
49979         * doc/posix-functions/opterr.texi: Renamed from
49980         doc/glibc-functions/opterr.texi.
49981         * doc/posix-functions/optind.texi: Renamed from
49982         doc/glibc-functions/optind.texi.
49983         * doc/posix-functions/optopt.texi: Renamed from
49984         doc/glibc-functions/optopt.texi.
49985         * doc/posix-functions/psignal.texi: Renamed from
49986         doc/glibc-functions/psignal.texi.
49987         * doc/posix-functions/scandir.texi: Renamed from
49988         doc/glibc-functions/scandir.texi.
49989         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49990         doc/glibc-functions/sched_get_priority_min.texi.
49991         * doc/posix-functions/signgam.texi: Renamed from
49992         doc/glibc-functions/signgam.texi.
49993         * doc/posix-functions/stpcpy.texi: Renamed from
49994         doc/glibc-functions/stpcpy.texi.
49995         * doc/posix-functions/stpncpy.texi: Renamed from
49996         doc/glibc-functions/stpncpy.texi.
49997         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49998         doc/glibc-functions/strcasecmp_l.texi.
49999         * doc/posix-functions/strcoll_l.texi: Renamed from
50000         doc/glibc-functions/strcoll_l.texi.
50001         * doc/posix-functions/strfmon_l.texi: Renamed from
50002         doc/glibc-functions/strfmon_l.texi.
50003         * doc/posix-functions/strftime_l.texi: Renamed from
50004         doc/glibc-functions/strftime_l.texi.
50005         * doc/posix-functions/strncasecmp_l.texi: Renamed from
50006         doc/glibc-functions/strncasecmp_l.texi.
50007         * doc/posix-functions/strndup.texi: Renamed from
50008         doc/glibc-functions/strndup.texi.
50009         * doc/posix-functions/strnlen.texi: Renamed from
50010         doc/glibc-functions/strnlen.texi.
50011         * doc/posix-functions/strsignal.texi: Renamed from
50012         doc/glibc-functions/strsignal.texi.
50013         * doc/posix-functions/strxfrm_l.texi: Renamed from
50014         doc/glibc-functions/strxfrm_l.texi.
50015         * doc/posix-functions/timer_gettime.texi: Renamed from
50016         doc/glibc-functions/timer_gettime.texi.
50017         * doc/posix-functions/tolower_l.texi: Renamed from
50018         doc/glibc-functions/tolower_l.texi.
50019         * doc/posix-functions/toupper_l.texi: Renamed from
50020         doc/glibc-functions/toupper_l.texi.
50021         * doc/posix-functions/towctrans_l.texi: Renamed from
50022         doc/glibc-functions/towctrans_l.texi.
50023         * doc/posix-functions/towlower_l.texi: Renamed from
50024         doc/glibc-functions/towlower_l.texi.
50025         * doc/posix-functions/towupper_l.texi: Renamed from
50026         doc/glibc-functions/towupper_l.texi.
50027         * doc/posix-functions/uselocale.texi: Renamed from
50028         doc/glibc-functions/uselocale.texi.
50029         * doc/posix-functions/vdprintf.texi: Renamed from
50030         doc/glibc-functions/vdprintf.texi.
50031         * doc/posix-functions/wcpcpy.texi:
50032         Renamed from doc/glibc-functions/wcpcpy.texi.
50033         * doc/posix-functions/wcpncpy.texi: Renamed from
50034         doc/glibc-functions/wcpncpy.texi.
50035         * doc/posix-functions/wcscasecmp.texi: Renamed from
50036         doc/glibc-functions/wcscasecmp.texi.
50037         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50038         doc/glibc-functions/wcscasecmp_l.texi.
50039         * doc/posix-functions/wcscoll_l.texi: Renamed from
50040         doc/glibc-functions/wcscoll_l.texi.
50041         * doc/posix-functions/wcsdup.texi: Renamed from
50042         doc/glibc-functions/wcsdup.texi.
50043         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50044         doc/glibc-functions/wcsncasecmp.texi.
50045         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50046         doc/glibc-functions/wcsncasecmp_l.texi.
50047         * doc/posix-functions/wcsnlen.texi: Renamed from
50048         doc/glibc-functions/wcsnlen.texi.
50049         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50050         doc/glibc-functions/wcsnrtombs.texi.
50051         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50052         doc/glibc-functions/wcsxfrm_l.texi.
50053         * doc/posix-functions/wctrans_l.texi: Renamed from
50054         doc/glibc-functions/wctrans_l.texi.
50055         * doc/posix-functions/wctype_l.texi: Renamed from
50056         doc/glibc-functions/wctype_l.texi.
50057         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50058         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50059         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50060         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50061         these subsections.
50062         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50063         Remove sections.
50064
50065 2008-12-14  Bruno Haible  <bruno@clisp.org>
50066
50067         Update doc for POSIX:2008.
50068         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50069
50070 2008-12-14  Bruno Haible  <bruno@clisp.org>
50071
50072         Update doc for POSIX:2008.
50073         * doc/pastposix-functions/bcmp.texi: Renamed from
50074         doc/posix-functions/bcmp.texi.
50075         * doc/pastposix-functions/bcopy.texi: Renamed from
50076         doc/posix-functions/bcopy.texi.
50077         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50078         doc/posix-functions/bsd_signal.texi.
50079         * doc/pastposix-functions/bzero.texi: Renamed from
50080         doc/posix-functions/bzero.texi.
50081         * doc/pastposix-functions/ecvt.texi: Renamed from
50082         doc/posix-functions/ecvt.texi.
50083         * doc/pastposix-functions/fcvt.texi: Renamed from
50084         doc/posix-functions/fcvt.texi.
50085         * doc/pastposix-functions/ftime.texi: Renamed from
50086         doc/posix-functions/ftime.texi.
50087         * doc/pastposix-functions/gcvt.texi: Renamed from
50088         doc/posix-functions/gcvt.texi.
50089         * doc/pastposix-functions/getcontext.texi: Renamed from
50090         doc/posix-functions/getcontext.texi.
50091         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50092         doc/posix-functions/gethostbyaddr.texi.
50093         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50094         doc/posix-functions/gethostbyname.texi.
50095         * doc/pastposix-functions/getwd.texi: Renamed from
50096         doc/posix-functions/getwd.texi.
50097         * doc/pastposix-functions/h_errno.texi: Renamed from
50098         doc/posix-functions/h_errno.texi.
50099         * doc/pastposix-functions/index.texi: Renamed from
50100         doc/posix-functions/index.texi.
50101         * doc/pastposix-functions/makecontext.texi: Renamed from
50102         doc/posix-functions/makecontext.texi.
50103         * doc/pastposix-functions/mktemp.texi: Renamed from
50104         doc/posix-functions/mktemp.texi.
50105         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50106         doc/posix-functions/pthread_attr_getstackaddr.texi.
50107         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50108         doc/posix-functions/pthread_attr_setstackaddr.texi.
50109         * doc/pastposix-functions/rindex.texi: Renamed from
50110         doc/posix-functions/rindex.texi.
50111         * doc/pastposix-functions/scalb.texi: Renamed from
50112         doc/posix-functions/scalb.texi.
50113         * doc/pastposix-functions/setcontext.texi: Renamed from
50114         doc/posix-functions/setcontext.texi.
50115         * doc/pastposix-functions/swapcontext.texi: Renamed from
50116         doc/posix-functions/swapcontext.texi.
50117         * doc/pastposix-functions/ualarm.texi: Renamed from
50118         doc/posix-functions/ualarm.texi.
50119         * doc/pastposix-functions/usleep.texi: Renamed from
50120         doc/posix-functions/usleep.texi.
50121         * doc/pastposix-functions/vfork.texi: Renamed from
50122         doc/posix-functions/vfork.texi.
50123         * doc/pastposix-functions/wcswcs.texi: Renamed from
50124         doc/posix-functions/wcswcs.texi.
50125         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50126         (Function Substitutes): Update.
50127
50128 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50129
50130         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50131         m4/strerror.m4.
50132
50133 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50134             Bruno Haible  <bruno@clisp.org>
50135
50136         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50137
50138 2008-12-13  Bruno Haible  <bruno@clisp.org>
50139
50140         * modules/strtoull (Depends-on): Remove unistd.
50141
50142 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50143
50144         * modules/strtoull (Depends-on): Add stdlib.
50145
50146 2008-12-11  Simon Josefsson  <simon@josefsson.org>
50147
50148         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
50149
50150 2008-12-10  Jim Meyering  <meyering@redhat.com>
50151
50152         gl_ASSERT: don't say assertions are disabled when they're not
50153         * m4/assert.m4 (gl_ASSERT): Do not make configure report
50154         "checking whether to enable assertions... no", when they are in
50155         fact enabled.  This is solely a bug in the output of configure.
50156         In spite of saying "no", NDEBUG was not defined in that case.
50157         Also, as noted by Eric Blake, leave assertions enabled upon
50158         --enable-assert=INVALID.
50159
50160 2008-12-10  Bruno Haible  <bruno@clisp.org>
50161
50162         Change MODULES.html to refer to POSIX:2008 where possible.
50163         * MODULES.html.sh (POSIX2008_URL): New variable.
50164         (posix_headers): Remove sys/timeb, ucontext.
50165         (posix2001_headers): New variable.
50166         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
50167         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
50168         index, makecontext, mktemp, pthread_attr_getstackaddr,
50169         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
50170         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
50171         (posix2001_functions): New variable.
50172         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
50173         otherwise.
50174
50175 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50176
50177         add missing include to parse-duration.c
50178         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
50179         * modules/parse-duration (Depends-on): Add xalloc.
50180
50181         fix sed script reading maint.mk
50182         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50183         (syntax-check-rules): Use it.
50184
50185 2008-12-09  Bruno Haible  <bruno@clisp.org>
50186
50187         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50188         MacOS X 10.4/PowerPC.
50189         Reported by Simon Josefsson.
50190
50191 2008-12-08  Jim Meyering  <meyering@redhat.com>
50192
50193         work around mingw's lack of some S_IF definitions
50194         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50195         Reported by Simon Josefsson.
50196
50197 2008-12-08  Bruno Haible  <bruno@clisp.org>
50198
50199         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50200         applied to variables. Needed on MacOS X 10.4/PowerPC.
50201         Reported by Simon Josefsson.
50202
50203 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50204         and Eric Blake  <ebb9@byu.net>
50205
50206         assert: honor --enable-assert
50207         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50208         order to honor --enable-assert, rather than treating it as a
50209         synonym for --disable-assert.
50210
50211 2008-12-08  Jim Meyering  <meyering@redhat.com>
50212
50213         * lib/posixtm.c: Remove now-useless declaration of mktime.
50214
50215         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50216
50217 2008-12-07  Bruno Haible  <bruno@clisp.org>
50218
50219         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50220         test_once): Mark functions as static.
50221         * tests/test-tls.c (test_tls): Likewise.
50222
50223 2008-12-07  Bruno Haible  <bruno@clisp.org>
50224
50225         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50226         iconv_register_autodetect.
50227
50228 2008-12-07  Jim Meyering  <meyering@redhat.com>
50229
50230         posixtm.c: avoid a warning
50231         * lib/posixtm.c (posixtime): Don't initialize tm0.
50232         It's no longer needed to placate gcc4's -Wuninitialized,
50233         and the attempt to placate would elicit a new warning.
50234
50235         unicodeio.c: mark unused parameters
50236         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50237         (fallback_failure_callback): Likewise.
50238
50239 2008-12-07  Bruno Haible  <bruno@clisp.org>
50240
50241         * gnulib-tool (func_create_testdir): When building the tests
50242         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
50243         Reported by Simon Josefsson.
50244
50245 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50246
50247         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
50248
50249 2008-12-06  Bruno Haible  <bruno@clisp.org>
50250
50251         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
50252         Suggested by Eric Blake.
50253
50254 2008-12-06  Bruno Haible  <bruno@clisp.org>
50255
50256         Fix a c-stack test failure on MacOS X.
50257         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50258         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50259         handler for SIGBUS as well.
50260         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50261         install a signal handler for SIGBUS as well.
50262         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50263
50264 2008-12-06  Bruno Haible  <bruno@clisp.org>
50265
50266         Advocacy documentation.
50267         * doc/gnulib-intro.texi (Benefits): New section.
50268         * doc/gnulib.texi: Update.
50269
50270 2008-12-06  Bruno Haible  <bruno@clisp.org>
50271
50272         Document the 'manywarnings' module.
50273         * doc/manywarnings.texi: New file.
50274         * doc/gnulib.texi: Include it.
50275
50276 2008-12-05  Eric Blake  <ebb9@byu.net>
50277
50278         tests: silence some gcc warnings
50279         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50280         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50281         type mismatches.
50282
50283 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50284             Bruno Haible  <bruno@clisp.org>
50285
50286         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50287
50288 2008-11-29  Jim Meyering  <meyering@redhat.com>
50289
50290         unicodeio.c: mark unused parameters
50291         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50292         (fallback_failure_callback): Likewise.
50293
50294         fts: fix a thinko
50295         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50296         (set_stat_type): Return S_IF*-valued "type" directly.
50297         Prompted by James Youngman's spotting a related bug.
50298         Confirmed by further testing through find.
50299
50300         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50301         * lib/fts.c (D_TYPE): Define.
50302         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50303         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50304         (s_ifmt_shift_bits): New function.
50305         (set_stat_type): New function.
50306         (fts_build): When not calling fts_stat, call set_stat_type
50307         to propagate dirent.d_type info to fts_read caller.
50308         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50309         fts_statp->st_mode type information may be valid.
50310
50311 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50312
50313         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50314         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50315         <sds@gnu.org>.
50316
50317 2008-11-20  Bruno Haible  <bruno@clisp.org>
50318
50319         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50320         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50321         INCLUDE_NEXT.
50322         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50323         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50324         * modules/math (Makefile.am): Substitute
50325         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50326         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50327
50328 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50329             Bruno Haible  <bruno@clisp.org>
50330
50331         * lib/stdint.in.h: Define all type macros so that their expansion is
50332         a single typedef'ed token. Fixes a compilation failure in Boost which
50333         does "using ::int8_t;".
50334
50335 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50336
50337         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50338         gl_MANYWARN_ALL_GCC.
50339         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50340         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50341         * modules/manywarnings: New file.
50342         * MODULES.html.sh: Mention manywarnings module.
50343
50344 2008-11-18  Bruno Haible  <bruno@clisp.org>
50345
50346         * doc/gnulib-tool.texi (Unit tests): New section.
50347
50348 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50349
50350         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50351         paths like 'lib/po/foo.po'.
50352
50353 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50354
50355         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50356         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50357
50358 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50359
50360         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50361         parameter works.
50362
50363 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50364
50365         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50366
50367 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50368
50369         * modules/parse-duration-tests: New file.
50370         * tests/test-parse-duration.sh: New file.
50371         * tests/test-parse-duration.c: New file.
50372
50373         New module 'parse-duration'.
50374         * lib/parse-duration.h: New file.
50375         * lib/parse-duration.c: New file.
50376         * modules/parse-duration: New file.
50377
50378 2008-11-17  Bruno Haible  <bruno@clisp.org>
50379
50380         * tests/test-select-out.sh: Comment out the first pipe test.
50381         Reported by Simon Josefsson.
50382
50383 2008-11-17  Bruno Haible  <bruno@clisp.org>
50384
50385         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50386         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50387         gl_HOSTENT.
50388
50389 2008-11-17  Bruno Haible  <bruno@clisp.org>
50390
50391         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50392         -lnetwork and -lnet. Needed for Haiku and BeOS.
50393
50394 2008-11-16  Bruno Haible  <bruno@clisp.org>
50395
50396         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50397
50398 2008-11-16  Bruno Haible  <bruno@clisp.org>
50399
50400         Avoid test failure on Haiku.
50401         * tests/test-fsync.c: Include <errno.h>.
50402         (main): Don't require that fsync (0) fails.
50403
50404 2008-11-15  Bruno Haible  <bruno@clisp.org>
50405
50406         New module 'hostent'.
50407         * modules/hostent: New file.
50408         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50409
50410 2008-11-15  Bruno Haible  <bruno@clisp.org>
50411
50412         New module 'servent'.
50413         * modules/servent: New file.
50414         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50415
50416 2008-11-15  Bruno Haible  <bruno@clisp.org>
50417
50418         Avoid generating same test program with two different rules.
50419         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50420         test-frexp to test-frexp-nolibm.
50421         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50422         test-frexpl to test-frexpl-nolibm.
50423
50424 2008-11-15  Bruno Haible  <bruno@clisp.org>
50425
50426         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50427         $(FREXPL_LIBM).
50428
50429 2008-11-15  Bruno Haible  <bruno@clisp.org>
50430
50431         * lib/netdb.in.h: Activate the definitions also when the system's
50432         <netdb.h> has 'struct addrinfo'.
50433         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50434         EAI_OVERFLOW or AI_NUMERICSERV.
50435         * doc/posix-headers/netdb.texi: Document the problem.
50436
50437 2008-11-15  Bruno Haible  <bruno@clisp.org>
50438
50439         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50440
50441         Make the 'sched' module work on platforms where <sched.h> exists but
50442         is incomplete (such as Haiku).
50443         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50444         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50445         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50446         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50447         HAVE_STRUCT_SCHED_PARAM.
50448         * modules/sched (Depends-on): Add include_next.
50449         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50450         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50451         * doc/posix-headers/sched.texi: Document the issue.
50452
50453 2008-11-13  Jim Meyering  <meyering@redhat.com>
50454
50455         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50456         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50457         test would fail due to the difference in the Report bugs to ...
50458         line.  The expected address is empty, "<>", while the actual
50459         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50460
50461 2008-11-12  Bruno Haible  <bruno@clisp.org>
50462
50463         lstat: don't compile lstat.c on systems lacking lstat
50464         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50465         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50466         Reported by Daniel P. Berrange via Jim Meyering.
50467
50468 2008-11-12  Jim Meyering  <meyering@redhat.com>
50469
50470         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50471
50472 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50473
50474         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50475         instead.
50476
50477 2008-11-12  Bruno Haible  <bruno@clisp.org>
50478
50479         * lib/unicodeio.c: Include unistr.h.
50480         (utf8_wctomb): Remove function.
50481         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50482
50483 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50484
50485         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50486         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50487         <bruno@clisp.org>.
50488         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50489
50490 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50491
50492         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50493         * doc/gnulib.texi: Add section for warnings.
50494
50495 2008-11-11  Bruno Haible  <bruno@clisp.org>
50496
50497         * lib/sockets.h: Add a comment.
50498
50499 2008-11-11  Karl Berry  <karl@gnu.org>
50500
50501         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50502
50503 2008-11-11  Eric Blake  <ebb9@byu.net>
50504
50505         fdl.texi: avoid git symlinks
50506         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50507
50508 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50509
50510         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50511
50512 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50513
50514         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50515         (gl_WARN_ADD): Substitute $2 if literal.
50516
50517 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50518
50519         * m4/warning.m4: Remove.
50520
50521 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50522
50523         * m4/warnings.m4: Almost complete rewrite. :-)
50524
50525 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50526
50527         * modules/warnings: New module.
50528         * m4/warnings.m4: New file.
50529         * MODULES.html.sh: Mention warnings module.
50530         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50531         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50532
50533 2008-11-10  Eric Blake  <ebb9@byu.net>
50534
50535         fdl.texi: make a symlink to the latest version
50536         * doc/standards.texi: Revert today's earlier change.
50537         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50538         * doc/fdl.texi: ...and replace this with a symlink to the newer
50539         fdl-1.3.texi.
50540
50541 2008-11-10  Bruno Haible  <bruno@clisp.org>
50542
50543         * tests/test-select-fd.c (main): Accept the result file name as fourth
50544         argument.
50545         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50546         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50547
50548 2008-11-10  Bruno Haible  <bruno@clisp.org>
50549
50550         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50551         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50552         as autoconf-substituted macros.
50553         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50554         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50555         gl_NETDB_H_DEFAULTS. Set these variables.
50556         * modules/netdb (Makefile.am): Substitute these variables.
50557
50558 2008-11-10  Eric Blake  <ebb9@byu.net>
50559
50560         standards.texi: include correct file for FDL 1.3
50561         * doc/standards.texi (GNU Free Documentation License): Change
50562         include file to pull in FDL 1.3, not 1.2.
50563
50564         fdl.texi: revert accidental change to license
50565         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50566
50567 2008-11-10  Bruno Haible  <bruno@clisp.org>
50568
50569         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50570         cross-compiling guesses also when the native compile gives no result.
50571
50572 2008-11-10  Bruno Haible  <bruno@clisp.org>
50573
50574         * lib/spawni.c (__spawni): Force variable into the stack.
50575
50576 2008-11-10  Bruno Haible  <bruno@clisp.org>
50577
50578         Add support for Haiku.
50579         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50580         glibc and BeOS, but also on Haiku.
50581         * lib/fpurge.c (fpurge): Likewise.
50582         * lib/freadable.c (freadable): Likewise.
50583         * lib/freadahead.c (freadahead): Likewise.
50584         * lib/freading.c (freading): Likewise.
50585         * lib/freadptr.c (freadptr): Likewise.
50586         * lib/freadseek.c (freadptrinc): Likewise.
50587         * lib/fseeko.c (rpl_fseeko): Likewise.
50588         * lib/fseterr.c (fseterr): Likewise.
50589         * lib/fwritable.c (fwritable): Likewise.
50590         * lib/fwriting.c (fwriting): Likewise.
50591         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50592
50593 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50594
50595         * lib/config.charset: Treat Haiku like BeOS.
50596
50597 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50598
50599         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50600         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50601
50602 2008-11-08  Bruno Haible  <bruno@clisp.org>
50603
50604         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50605         AC_CACHE_CHECK.
50606
50607 2008-11-08  Bruno Haible  <bruno@clisp.org>
50608
50609         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50610
50611 2008-11-08  Bruno Haible  <bruno@clisp.org>
50612
50613         * tests/test-select-fd.c: New file.
50614         * tests/test-select-in.sh: New file.
50615         * tests/test-select-out.sh: New file.
50616         * tests/test-select-stdin.c: New file.
50617         * modules/select-tests (Files): Add the new files.
50618         (Depends-on): Add gettimeofday.
50619         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50620         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50621         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50622
50623 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50624             Bruno Haible  <bruno@clisp.org>
50625
50626         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50627
50628 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50629
50630         * build-aux/pmccabe2html: Added support for C++ source files.
50631
50632 2008-11-05  Ben Pfaff  <blp@gnu.org>
50633
50634         Fix lib/close.c build on Windows.
50635         * modules/close (Files): Add lib/w32sock.h.
50636
50637 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50638
50639         Accept Bison's NEWS format.
50640         * build-aux/announce-gen (print_news_deltas): Tweak
50641         $re_prefix.
50642
50643 2008-11-04  Bruno Haible  <bruno@clisp.org>
50644
50645         * modules/random_r (Maintainer): Add glibc.
50646
50647 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50648
50649         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50650         by karl@freefriends.org (Karl Berry).
50651         * doc/alloca.texi: Likewise.
50652         * doc/c-ctype.texi: Likewise.
50653         * doc/c-strcase.texi: Likewise.
50654         * doc/c-strcaseeq.texi: Likewise.
50655         * doc/c-strcasestr.texi: Likewise.
50656         * doc/c-strstr.texi: Likewise.
50657         * doc/c-strtod.texi: Likewise.
50658         * doc/c-strtold.texi: Likewise.
50659         * doc/ctime.texi: Likewise.
50660         * doc/error.texi: Likewise.
50661         * doc/fdl.texi: Likewise.
50662         * doc/gcd.texi: Likewise.
50663         * doc/getdate.texi: Likewise.
50664         * doc/gnulib-intro.texi: Likewise.
50665         * doc/gnulib-tool.texi: Likewise.
50666         * doc/gnulib.texi: Likewise.
50667         * doc/inet_ntoa.texi: Likewise.
50668         * doc/maintain.texi: Likewise.
50669         * doc/make-stds.texi: Likewise.
50670         * doc/quote.texi: Likewise.
50671         * doc/regexprops-generic.texi: Likewise.
50672         * doc/standards.texi: Likewise.
50673         * doc/verify.texi: Likewise.
50674         * doc/visibility.texi: Likewise.
50675         * doc/gnulib.texi (GNU Free Documentation License): Include
50676         fdl-1.3.texi instead of fdl.texi.
50677
50678 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50679
50680         * doc/fdl-1.3.texi: New file, from
50681         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50682         * modules/fdl-1.3: Add.
50683         * MODULES.html.sh: Add fdl-1.3.
50684
50685 2008-11-03  Bruno Haible  <bruno@clisp.org>
50686
50687         Make determination of absolute name of header file work with AIX xlc.
50688         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50689         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50690         preprocessing.
50691         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50692         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50693
50694 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50695
50696         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50697         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50698         <ludo@gnu.org>.
50699
50700 2008-11-02  Bruno Haible  <bruno@clisp.org>
50701
50702         Mark 'strpbrk' obsolete.
50703         * modules/strpbrk (Status, Notice): New sections.
50704         * modules/strtok_r (Depends-on): Add strpbrk.
50705
50706 2008-11-02  Bruno Haible  <bruno@clisp.org>
50707
50708         Mark 'strdup' obsolete.
50709         * modules/strdup (Status, Notice): New sections.
50710         * modules/findprog (Depends-on): Add strdup.
50711         * modules/getaddrinfo (Depends-on): Likewise.
50712         * modules/localename (Depends-on): Likewise.
50713         * modules/relocatable-lib (Depends-on): Likewise.
50714         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50715         * modules/relocatable-prog (Depends-on): Likewise.
50716         * modules/trim (Depends-on): Likewise.
50717         * modules/unictype/gen-ctype (Depends-on): Likewise.
50718         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50719
50720 2008-11-02  Bruno Haible  <bruno@clisp.org>
50721
50722         Mark 'strcspn' obsolete.
50723         * modules/strcspn (Status, Notice): New sections.
50724
50725 2008-11-02  Bruno Haible  <bruno@clisp.org>
50726
50727         Mark 'rmdir' obsolete.
50728         * modules/rmdir (Status, Notice): New sections.
50729         * modules/clean-temp (Depends-on): Add rmdir.
50730         * modules/openat (Depends-on): Likewise.
50731
50732 2008-11-02  Bruno Haible  <bruno@clisp.org>
50733
50734         Mark 'raise' obsolete.
50735         * modules/raise (Status, Notice): New sections.
50736         (Include): Specify <signal.h>.
50737         * modules/stdio (Depends-on): Add raise.
50738         * modules/write (Depends-on): Likewise.
50739
50740 2008-11-02  Bruno Haible  <bruno@clisp.org>
50741
50742         Mark 'memset' obsolete.
50743         * modules/memset (Status, Notice): New sections.
50744
50745 2008-11-02  Bruno Haible  <bruno@clisp.org>
50746
50747         Mark 'memmove' obsolete.
50748         * modules/memmove (Status, Notice): New sections.
50749         * modules/argp (Depends-on): Add memmove.
50750         * modules/argz (Depends-on): Likewise.
50751         * modules/canonicalize (Depends-on): Likewise.
50752         * modules/canonicalize-lgpl (Depends-on): Likewise.
50753         * modules/fts (Depends-on): Likewise.
50754         * modules/getcwd (Depends-on): Likewise.
50755         * modules/human (Depends-on): Likewise.
50756         * modules/regex (Depends-on): Likewise.
50757         * modules/striconveh (Depends-on): Likewise.
50758         * modules/trim (Depends-on): Likewise.
50759         * modules/unistr/u8-move (Depends-on): Likewise.
50760         * modules/unistr/u16-move (Depends-on): Likewise.
50761         * modules/unistr/u32-move (Depends-on): Likewise.
50762
50763 2008-11-02  Bruno Haible  <bruno@clisp.org>
50764
50765         Mark 'memcpy' obsolete.
50766         * modules/memcpy (Status, Notice): New sections.
50767
50768 2008-11-02  Bruno Haible  <bruno@clisp.org>
50769
50770         Mark 'memcmp' obsolete.
50771         * modules/memcmp (Status, Notice): New sections.
50772         * modules/argmatch (Depends-on): Add memchr.
50773         * modules/backupfile (Depends-on): Likewise.
50774         * modules/c-strcasestr (Depends-on): Likewise.
50775         * modules/crypto/des (Depends-on): Likewise.
50776         * modules/csharpcomp (Depends-on): Likewise.
50777         * modules/fnmatch (Depends-on): Likewise.
50778         * modules/git-merge-changelog (Depends-on): Likewise.
50779         * modules/isnand (Depends-on): Likewise.
50780         * modules/isnand-nolibm (Depends-on): Likewise.
50781         * modules/isnanf (Depends-on): Likewise.
50782         * modules/isnanf-nolibm (Depends-on): Likewise.
50783         * modules/isnanl (Depends-on): Likewise.
50784         * modules/isnanl-nolibm (Depends-on): Likewise.
50785         * modules/mbchar (Depends-on): Likewise.
50786         * modules/memcoll (Depends-on): Likewise.
50787         * modules/quotearg (Depends-on): Likewise.
50788         * modules/regex (Depends-on): Likewise.
50789         * modules/relocatable-prog (Depends-on): Likewise.
50790         * modules/same (Depends-on): Likewise.
50791         * modules/signbit (Depends-on): Likewise.
50792         * modules/strcasestr-simple (Depends-on): Likewise.
50793         * modules/unictype/gen-ctype (Depends-on): Likewise.
50794         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50795         * modules/uniname/uniname (Depends-on): Likewise.
50796         * modules/unistr/u8-cmp (Depends-on): Likewise.
50797
50798 2008-11-02  Bruno Haible  <bruno@clisp.org>
50799
50800         Mark 'memchr' obsolete.
50801         * modules/memchr (Status, Notice): New sections.
50802         * modules/argp (Depends-on): Add memchr.
50803         * modules/base64 (Depends-on): Likewise.
50804         * modules/c-strcasestr (Depends-on): Likewise.
50805         * modules/chdir-long (Depends-on): Likewise.
50806         * modules/fnmatch (Depends-on): Likewise.
50807         * modules/getsubopt (Depends-on): Likewise.
50808         * modules/git-merge-changelog (Depends-on): Likewise.
50809         * modules/glob (Depends-on): Likewise.
50810         * modules/strcasestr-simple (Depends-on): Likewise.
50811         * modules/strnlen (Depends-on): Likewise.
50812
50813 2008-11-02  Bruno Haible  <bruno@clisp.org>
50814
50815         Mark 'atexit' obsolete.
50816         * modules/atexit (Status, Notice): New sections.
50817         * modules/chdir-long (Depends-on): Add atexit.
50818         * modules/wait-process (Depends-on): Likewise.
50819
50820 2008-11-02  Bruno Haible  <bruno@clisp.org>
50821
50822         * gnulib-tool: New option --with-obsolete.
50823         (func_usage): Document it.
50824         (func_modules_transitive_closure): Drop obsolete dependencies if
50825         incobsolete is not true.
50826         (func_import): Read and save the incobsolete variable to the cache.
50827
50828 2008-11-02  Bruno Haible  <bruno@clisp.org>
50829
50830         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50831         * gnulib-tool: New option --extract-status.
50832         (func_usage): Document it.
50833         (sed_extract_prog): Recognize it.
50834         (func_get_status): New function.
50835
50836 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50837
50838         * modules/sockets (License): Change from LGPL to LGPLv2+.
50839
50840 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50841
50842         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50843
50844 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50845
50846         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50847         Mention times and sys_times.
50848         * modules/sys_times, modules/sys_times-tests: New modules.
50849         * modules/times, modules/times-tests: Likewise
50850         * m4/sys_times_h.m4: New file.
50851         * lib/sys_times.in.h: Likewise
50852         * lib/times.c: Likewise.
50853         * tests/test-sys_times.c: Likewise.
50854         * tests/test-times.c: Likewise.
50855         * doc/posix-headers/sys_times.texi: Update.
50856         * doc/posix-functions/times.texi: Update.
50857
50858 2008-10-28  Jim Meyering  <meyering@redhat.com>
50859
50860         * modules/tempname (Depends-on): Add lstat.
50861
50862         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50863
50864 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50865
50866         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50867         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50868         using idiom used elsewhere in gnulib.
50869
50870 2008-10-27  Jim Meyering  <meyering@redhat.com>
50871
50872         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50873
50874 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50875
50876         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50877         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50878         programs.
50879         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50880
50881 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50882
50883         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50884
50885 2008-10-27  Bruno Haible  <bruno@clisp.org>
50886
50887         * tests/test-lstat.c: Include <stdio.h>.
50888
50889 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50890
50891         * modules/lstat-tests: New module.
50892         * tests/test-lstat.c: New file.
50893
50894 2008-10-26  Jim Meyering  <meyering@redhat.com>
50895
50896         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50897
50898 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50899             Bruno Haible  <bruno@clisp.org>
50900
50901         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50902         * modules/configmake (Include): Add a note that the include must come
50903         after all system headers.
50904         * lib/javaversion.c: Include configmake.h after all other includes.
50905
50906 2008-10-26  Bruno Haible  <bruno@clisp.org>
50907
50908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50909         HAVE_STRUCT_RANDOM_DATA to 1.
50910         (gl_STDLIB_H): Simplify.
50911
50912 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50913
50914         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50915         substitute HAVE_STRUCT_RANDOM_DATA.
50916         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50917         random_data.
50918         * modules/stdlib (Makefile.am): Substitute
50919         HAVE_STRUCT_RANDOM_DATA.
50920
50921 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50922
50923         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50924         * doc/gnulib-intro.texi (Copyright): Likewise.
50925
50926 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50927
50928         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50929         findings.
50930
50931 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50932             Bruno Haible  <bruno@clisp.org>
50933
50934         * lib/unistd.in.h: Include <winsock2.h>.
50935         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50936         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50937         Provide dummy declarations.
50938         (gethostname): Override.
50939         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50940         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50941         gl_PREREQ_SYS_H_WINSOCK2.
50942         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50943         * doc/posix-functions/gethostname.texi: More details.
50944
50945 2008-10-25  Bruno Haible  <bruno@clisp.org>
50946
50947         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50948         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50949         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50950
50951         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50952         here ...
50953         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50954         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50955         gl_UNISTD_H_DEFAULTS.
50956
50957 2008-10-25  Eric Blake  <ebb9@byu.net>
50958
50959         signbit: avoid spurious compiler failure
50960         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50961         declarations inside function.
50962
50963 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50964             Bruno Haible  <bruno@clisp.org>
50965
50966         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50967         * modules/random_r (Depends-on): Add stdint.
50968
50969 2008-10-24  Bruno Haible  <bruno@clisp.org>
50970
50971         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50972         Eggert.
50973         * modules/strerror (License): Likewise.
50974
50975 2008-10-24  Jim Meyering  <meyering@redhat.com>
50976
50977         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50978         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50979
50980 2008-10-24  Eric Blake  <ebb9@byu.net>
50981
50982         getgroups: fix compilation when getgroups is available
50983         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50984         but with <config.h> override of getgroups disabled.
50985
50986 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50987
50988         * doc/gnulib.texi (Header files): Add note about C++ problems.
50989         Explained by Bruno Haible <bruno@clisp.org>.
50990
50991 2008-10-23  Bruno Haible  <bruno@clisp.org>
50992
50993         Define a dummy SA_NODEFER macro on Interix.
50994         * lib/signal.in.h (SA_NODEFER): Define fallback.
50995         Reported by Aleksey Cheusov <cheusov@tut.by> via
50996         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50997
50998 2008-10-23  Bruno Haible  <bruno@clisp.org>
50999
51000         * modules/freadahead (License): Change to LGPLv2+.
51001         Suggested by Simon Josefsson.
51002
51003 2008-10-23  Jim Meyering  <meyering@redhat.com>
51004
51005         random_r: new module
51006         * modules/random_r: New file.
51007         * m4/random_r.m4: New file.
51008         * lib/random_r.c: New file, from glibc.
51009         * modules/random_r-tests: New file.
51010         * tests/test-random_r.c: New file.
51011         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51012          Declare.
51013         (RAND_MAX): Define.
51014         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51015         * modules/stdlib: Substitute them, too.
51016         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51017         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51018         * doc/glibc-functions/random_r.texi: Likewise.
51019         * doc/glibc-functions/setstate_r.texi: Likewise.
51020         * doc/glibc-functions/srandom_r.texi: Likewise.
51021         * config/srclist.txt: Mention it.
51022
51023 2008-10-23  David Lutterkort  <lutter@redhat.com>
51024
51025         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51026         link requirement
51027
51028 2008-10-23  Jim Meyering  <meyering@redhat.com>
51029
51030         selinux-h: mark parameters of stub functions as intentionally unused
51031         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51032         * lib/se-context.in.h: Likewise.
51033
51034 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51035
51036         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51037
51038 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51039
51040         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51041
51042 2008-10-22  Eric Blake  <ebb9@byu.net>
51043
51044         glthread/thread: avoid compiler warning
51045         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51046         Add unreachable abort to silence compiler.
51047
51048 2008-10-22  Eric Blake  <ebb9@byu.net>
51049
51050         netdb: also supply struct addrinfo for cygwin 1.5.x
51051         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51052         older cygwin.
51053         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51054         cygwin.
51055         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51056
51057 2008-10-22  Bruno Haible  <bruno@clisp.org>
51058
51059         * users.txt: Update entry about pspp.
51060
51061 2008-10-21  Bruno Haible  <bruno@clisp.org>
51062
51063         Simplification.
51064         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51065         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51066
51067         Simplification.
51068         * lib/ioctl.c (ioctl): Don't undefine.
51069         * lib/socket.c (socket): Don't undefine.
51070
51071         Remove unused module indicator macros.
51072         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51073         GNULIB_$1 as a C macro.
51074
51075         * doc/posix-functions/close.texi: Undo last change.
51076         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51077         Windows platforms.
51078
51079 2008-10-21  Bruno Haible  <bruno@clisp.org>
51080
51081         Add gethostname() declaration to <unistd.h>.
51082         * lib/unistd.in.h (gethostname): New declaration.
51083         * lib/gethostname.c: Include <unistd.h>.
51084         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51085         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51087         and HAVE_GETHOSTNAME.
51088         * modules/gethostname (Depends-on): Add unistd.
51089         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51090         (Include): Specify <unistd.h>.
51091         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51092         HAVE_GETHOSTNAME.
51093         * tests/test-gethostname.c: Include <unistd.h> first.
51094
51095 2008-10-21  Bruno Haible  <bruno@clisp.org>
51096
51097         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51098         * modules/select-tests (Depends-on): Likewise.
51099         Reported by Simon Josefsson.
51100
51101 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51102
51103         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51104         * lib/accept.c: New file, based on winsock.c.
51105         * lib/bind.c: New file, based on winsock.c.
51106         * lib/connect.c: New file, based on winsock.c.
51107         * lib/getpeername.c: New file, based on winsock.c.
51108         * lib/getsockname.c: New file, based on winsock.c.
51109         * lib/getsockopt.c: New file, based on winsock.c.
51110         * lib/ioctl.c: New file, based on winsock.c.
51111         * lib/listen.c: New file, based on winsock.c.
51112         * lib/recv.c: New file, based on winsock.c.
51113         * lib/recvfrom.c: New file, based on winsock.c.
51114         * lib/send.c: New file, based on winsock.c.
51115         * lib/sendto.c: New file, based on winsock.c.
51116         * lib/setsockopt.c: New file, based on winsock.c.
51117         * lib/shutdown.c: New file, based on winsock.c.
51118         * lib/socket.c: New file, based on winsock.c.
51119         * lib/w32sock.h: New file, based on winsock.c.
51120         * lib/winsock.c: Remove file.
51121         * modules/accept: Likewise.
51122         * modules/bind: Likewise.
51123         * modules/connect: Likewise.
51124         * modules/getpeername: Likewise.
51125         * modules/getsockname: Likewise.
51126         * modules/getsockopt: Likewise.
51127         * modules/ioctl: Likewise.
51128         * modules/listen: Likewise.
51129         * modules/recv: Likewise.
51130         * modules/recvfrom: Likewise.
51131         * modules/send: Likewise.
51132         * modules/sendto: Likewise.
51133         * modules/setsockopt: Likewise.
51134         * modules/shutdown: Likewise.
51135         * modules/socket: Use socket.c instead of winsock.c.
51136         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51137         * doc/posix-functions/accept.texi: Doc fix.
51138         * doc/posix-functions/bind.texi: Doc fix.
51139         * doc/posix-functions/close.texi: Doc fix.
51140         * doc/posix-functions/connect.texi: Doc fix.
51141         * doc/posix-functions/getpeername.texi: Doc fix.
51142         * doc/posix-functions/getsockname.texi: Doc fix.
51143         * doc/posix-functions/getsockopt.texi: Doc fix.
51144         * doc/posix-functions/ioctl.texi: Doc fix.
51145         * doc/posix-functions/listen.texi: Doc fix.
51146         * doc/posix-functions/recv.texi: Doc fix.
51147         * doc/posix-functions/recvfrom.texi: Doc fix.
51148         * doc/posix-functions/send.texi: Doc fix.
51149         * doc/posix-functions/sendto.texi: Doc fix.
51150         * doc/posix-functions/setsockopt.texi: Doc fix.
51151         * doc/posix-functions/shutdown.texi: Doc fix.
51152         * doc/posix-functions/socket.texi: Doc fix.
51153
51154 2008-10-20  Bruno Haible  <bruno@clisp.org>
51155
51156         Take into account the role of SIGABRT_COMPAT on Windows 2008.
51157         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
51158         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
51159         as an alias for SIGABRT.
51160         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
51161         (sigaction): Map it to SIGABRT.
51162         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
51163
51164 2008-10-20  Bruno Haible  <bruno@clisp.org>
51165
51166         * lib/fts.c: Don't include lstat.h.
51167         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
51168
51169         Move the lstat() declaration to <sys/stat.h>.
51170         * lib/lstat.h: Remove file.
51171         * lib/sys_stat.in.h: Add special invocation convention.
51172         (lstat): New declaration.
51173         * lib/lstat.c (orig_lstat): New function.
51174         (rpl_lstat): Use orig_lstat instead of lstat.
51175         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
51176         AC_C_INLINE. Set REPLACE_LSTAT.
51177         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
51178         and REPLACE_LSTAT.
51179         * modules/lstat (Files): Remove lib/lstat.h.
51180         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51181         (Include): Specify <sys/stat.h> instead of lstat.h.
51182         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51183         REPLACE_LSTAT.
51184         * NEWS: Mention the change.
51185
51186 2008-10-20  Bruno Haible  <bruno@clisp.org>
51187
51188         * modules/posix_spawn-tests: New file.
51189         * tests/test-posix_spawn3.c: New file.
51190
51191 2008-10-20  Bruno Haible  <bruno@clisp.org>
51192
51193         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51194         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51195         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51196         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51197         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51198
51199 2008-10-20  Bruno Haible  <bruno@clisp.org>
51200
51201         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51202         of posix_spawn on AIX 5.3.
51203
51204 2008-10-20  Bruno Haible  <bruno@clisp.org>
51205
51206         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51207
51208 2008-10-20  Bruno Haible  <bruno@clisp.org>
51209
51210         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51211         of AC_LANG_PROGRAM.
51212
51213 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51214
51215         * lib/netdb.in.h: Don't define GNU specific constants until they
51216         are supported or needed.  Reported by Bruno Haible
51217         <bruno@clisp.org>.
51218
51219 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51220
51221         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51222
51223 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51224
51225         * lib/getaddrinfo.h: Remove file.
51226         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51227         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51228         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51229         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51230         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51231         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51232         * tests/test-getaddrinfo.c: Likewise.
51233         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51234         * NEWS: Mention change.
51235
51236 2008-10-19  Bruno Haible  <bruno@clisp.org>
51237
51238         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51239
51240 2008-10-19  Bruno Haible  <bruno@clisp.org>
51241
51242         * lib/wait-process.c: Include simply <sys/wait.h>.
51243         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
51244         WIFSTOPPED): Remove fallback definitions.
51245         * modules/wait-process (Depends-on): Add sys_wait.
51246
51247         New module 'sys_wait'.
51248         * modules/sys_wait: New file.
51249         * lib/sys_wait.in.h: New file, partially copied from
51250         lib/wait-process.c.
51251         * m4/sys_wait_h.m4: New file.
51252         * doc/posix-headers/sys_wait.texi: Mention the new module.
51253
51254 2008-10-19  Bruno Haible  <bruno@clisp.org>
51255
51256         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51257
51258 2008-10-19  Bruno Haible  <bruno@clisp.org>
51259
51260         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51261         * lib/wait-process.c (WAIT_T): Remove type.
51262         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51263         (wait_subprocess): Update.
51264
51265 2008-10-19  Bruno Haible  <bruno@clisp.org>
51266
51267         New module 'atoll'.
51268         * modules/atoll: New file.
51269         * lib/stdlib.in.h (atoll): New declaration.
51270         * lib/atoll.c: New file, from glibc with modifications.
51271         * m4/atoll.m4: New file.
51272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51273         HAVE_ATOLL.
51274         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51275         * doc/posix-functions/atoll.texi: Mention the new module.
51276
51277 2008-10-19  Bruno Haible  <bruno@clisp.org>
51278
51279         Add strtoull() declaration to <stdlib.h>.
51280         * lib/stdlib.in.h (strtoull): New declaration.
51281         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51282         Set HAVE_STRTOULL.
51283         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51284         HAVE_STRTOULL.
51285         * modules/strtoull (Depends-on): Add stdlib.
51286         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51287         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51288         HAVE_STRTOULL.
51289
51290 2008-10-19  Bruno Haible  <bruno@clisp.org>
51291
51292         Add strtoll() declaration to <stdlib.h>.
51293         * lib/stdlib.in.h (strtoll): New declaration.
51294         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51295         Set HAVE_STRTOLL.
51296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51297         HAVE_STRTOLL.
51298         * modules/strtoll (Depends-on): Add stdlib.
51299         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51300         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51301
51302 2008-10-19  Bruno Haible  <bruno@clisp.org>
51303
51304         * modules/bcopy (Depends-on): Add strings.
51305         (Include): Specify <strings.h>.
51306
51307 2008-10-19  Bruno Haible  <bruno@clisp.org>
51308
51309         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51310
51311 2008-10-19  Bruno Haible  <bruno@clisp.org>
51312
51313         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51314         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51315         mingw.
51316
51317 2008-10-19  Bruno Haible  <bruno@clisp.org>
51318
51319         * lib/atanl.c: Don't include isnanl.h.
51320         * lib/cosl.c: Likewise.
51321         * lib/ldexpl.c: Likewise.
51322         * lib/logl.c: Likewise.
51323         * lib/sinl.c: Likewise.
51324         * lib/sqrtl.c: Likewise.
51325         * lib/tanl.c: Likewise.
51326
51327         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51328         * lib/isnanf.h: Remove file.
51329         * lib/isnand.h: Remove file.
51330         * lib/isnanl.h: Remove file.
51331         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51332         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51333         macros.
51334         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51335         HAVE_ISNANF, don't define it as a C macro.
51336         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51337         HAVE_ISNAND, don't define it as a C macro.
51338         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51339         HAVE_ISNANL, don't define it as a C macro.
51340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51341         HAVE_ISNAN[FDL].
51342         * modules/isnanf (Files): Remove lib/isnanf.h.
51343         (Depends-on): Add math.
51344         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51345         (Include): Specify <math.h> instead of isnanf.h.
51346         * modules/isnand (Files): Remove lib/isnand.h.
51347         (Depends-on): Add math.
51348         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51349         (Include): Specify <math.h> instead of isnand.h.
51350         * modules/isnanl (Files): Remove lib/isnanl.h.
51351         (Depends-on): Add math.
51352         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51353         (Include): Specify <math.h> instead of isnanl.h.
51354         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51355         HAVE_ISNAN[FDL].
51356         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51357         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51358         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51359         * NEWS: Mention the change.
51360
51361 2008-10-18  Bruno Haible  <bruno@clisp.org>
51362
51363         Add getusershell(), setusershell(), endusershell() declarations to
51364         <unistd.h>.
51365         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51366         declarations.
51367         * lib/getusershell.c: Include unistd.h.
51368         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51369         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51370         HAVE_GETUSERSHELL.
51371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51372         and HAVE_GETUSERSHELL.
51373         * modules/getusershell (Depends-on): Add unistd, extensions.
51374         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51375         (Include): Specify <unistd.h>.
51376         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51377         HAVE_GETUSERSHELL.
51378
51379 2008-10-18  Bruno Haible  <bruno@clisp.org>
51380
51381         Add a getloadavg() declaration to <stdlib.h>.
51382         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51383         getloadavg declaration.
51384         (getloadavg): New declaration.
51385         * lib/getloadavg.c: Include <stdlib.h> first.
51386         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51387         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51388         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51390         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51391         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51392         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51393         (Include): Specify <stdlib.h>.
51394         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51395         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51396
51397 2008-10-18  Bruno Haible  <bruno@clisp.org>
51398
51399         * lib/dirchownmod.c: Don't include lchmod.h.
51400
51401         Move the lchmod() declaration to <sys/stat.h>.
51402         * lib/lchmod.h: Remove file.
51403         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51404         (lchmod): New declaration, moved here from lib/lchown.h.
51405         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51406         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51407         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51408         and HAVE_LCHMOD.
51409         * modules/lchmod (Files): Remove lib/lchmod.h.
51410         (Depends-on): Add sys_stat, extensions.
51411         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51412         (Include): Specify <sys/stat.h> instead of lchmod.h.
51413         * modules/sys_stat (Depends-on): Add link-warning.
51414         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51415         definition of GL_LINK_WARNING.
51416         * NEWS: Mention the change.
51417
51418 2008-10-18  Bruno Haible  <bruno@clisp.org>
51419
51420         * lib/fchdir.c: Don't include dirfd.h.
51421         * lib/fts.c: Likewise.
51422         * lib/getcwd.c: Likewise.
51423         * lib/glob.c: Likewise.
51424
51425         Move the dirfd() declaration to <dirent.h>.
51426         * lib/dirfd.h: Remove file.
51427         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51428         (dirfd): New declaration.
51429         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51430         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51431         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51432         HAVE_DECL_DIRFD.
51433         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51434         HAVE_DECL_DIRFD.
51435         * modules/dirfd (Files): Remove lib/dirfd.h.
51436         (Depends-on): Add dirent, extensions.
51437         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51438         (Include): Specify <dirent.h> instead of dirfd.h.
51439         * modules/dirent (Depends-on): Add link-warning.
51440         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51441         definition of GL_LINK_WARNING.
51442         * NEWS: Mention the change.
51443
51444 2008-10-18  Bruno Haible  <bruno@clisp.org>
51445
51446         Move the euidaccess() declaration to <unistd.h>.
51447         * lib/euidaccess.h: Remove file.
51448         * lib/unistd.in.h (euidaccess): New declaration.
51449         * lib/euidaccess.c: Don't include euidaccess.h.
51450         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51451         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51453         and HAVE_EUIDACCESS.
51454         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51455         (Depends-on): Add unistd.
51456         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51457         (Include): Specify <unistd.h> instead of euidaccess.h.
51458         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51459         HAVE_EUIDACCESS.
51460         * NEWS: Mention the change.
51461
51462 2008-10-18  Bruno Haible  <bruno@clisp.org>
51463
51464         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51465
51466         Move the getdomainname() declaration to <unistd.h>.
51467         * lib/getdomainname.h: Remove file.
51468         * lib/unistd.in.h (getdomainname): New declaration.
51469         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51470         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51471         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51472         HAVE_GETDOMAINNAME.
51473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51474         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51475         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51476         (Depends-on): Add unistd, extensions.
51477         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51478         (Includes): Specify <unistd.h> instead of getdomainname.h.
51479         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51480         HAVE_GETDOMAINNAME.
51481         * NEWS: Mention the change.
51482
51483 2008-10-18  Bruno Haible  <bruno@clisp.org>
51484
51485         * modules/dirent: New file.
51486         * m4/dirent_h.m4: New file.
51487         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51488         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51489         * modules/fchdir (Files): Remove lib/dirent.in.h.
51490         (Depends-on): Add dirent.
51491         (Makefile.am): Move rules to modules/dirent.
51492         * doc/posix-headers/dirent.texi: Mention the new module.
51493
51494 2008-10-18  Bruno Haible  <bruno@clisp.org>
51495
51496         Avoid -Wunused-parameter warnings in public gnulib header files.
51497         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51498         macro.
51499         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51500
51501 2008-10-18  Bruno Haible  <bruno@clisp.org>
51502
51503         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51504         * doc/glibc-functions/error.texi: Mention the module 'error'.
51505         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51506         * doc/glibc-functions/getdomainname.texi: Mention the module
51507         'getdomainname'.
51508         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51509         * doc/glibc-functions/getpagesize.texi: Mention the module
51510         'getpagesize'.
51511         * doc/glibc-functions/getusershell.texi: Mention the module
51512         'getusershell'.
51513         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51514         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51515         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51516         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51517         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51518         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51519         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51520         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51521         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51522         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51523         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51524         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51525         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51526         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51527
51528 2008-10-17  Bruno Haible  <bruno@clisp.org>
51529
51530         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51531         HP-UX and IRIX, use -0.0L.
51532         * tests/test-ceill.c (minus_zero): Likewise.
51533         * tests/test-floorl.c (minus_zero): Likewise.
51534         * tests/test-frexpl.c (minus_zero): Likewise.
51535         * tests/test-isnan.c (minus_zerol): Likewise.
51536         * tests/test-isnanl.h (minus_zero): Likewise.
51537         * tests/test-ldexpl.c (minus_zero): Likewise.
51538         * tests/test-roundl.c (minus_zero): Likewise.
51539         * tests/test-signbit.c (minus_zerol): Likewise.
51540         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51541         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51542         * tests/test-truncl.c (minus_zero): Likewise.
51543         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51544         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51545         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51546         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51547
51548 2008-10-17  Bruno Haible  <bruno@clisp.org>
51549
51550         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51551         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51552         that it gets activated only for gcc >= 3.0.
51553         * lib/dirent.in.h: Likewise.
51554         * lib/errno.in.h: Likewise.
51555         * lib/fcntl.in.h: Likewise.
51556         * lib/float.in.h: Likewise.
51557         * lib/iconv.in.h: Likewise.
51558         * lib/inttypes.in.h: Likewise.
51559         * lib/locale.in.h: Likewise.
51560         * lib/math.in.h: Likewise.
51561         * lib/netdb.in.h: Likewise.
51562         * lib/netinet_in.in.h: Likewise.
51563         * lib/search.in.h: Likewise.
51564         * lib/signal.in.h: Likewise.
51565         * lib/spawn.in.h: Likewise.
51566         * lib/stdarg.in.h: Likewise.
51567         * lib/stdint.in.h: Likewise.
51568         * lib/stdio.in.h: Likewise.
51569         * lib/stdlib.in.h: Likewise.
51570         * lib/string.in.h: Likewise.
51571         * lib/strings.in.h: Likewise.
51572         * lib/sys_file.in.h: Likewise.
51573         * lib/sys_ioctl.in.h: Likewise.
51574         * lib/sys_select.in.h: Likewise.
51575         * lib/sys_socket.in.h: Likewise.
51576         * lib/sys_stat.in.h: Likewise.
51577         * lib/sys_time.in.h: Likewise.
51578         * lib/sysexits.in.h: Likewise.
51579         * lib/time.in.h: Likewise.
51580         * lib/unistd.in.h: Likewise.
51581         * lib/wchar.in.h: Likewise.
51582         * lib/wctype.in.h: Likewise.
51583         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51584
51585 2008-10-17  Jim Meyering  <meyering@redhat.com>
51586
51587         ignore-value: don't depend on inline module
51588         * modules/ignore-value (Depends-on): Remove 'inline'.
51589         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51590         Suggestion from Bruno Haible.
51591
51592 2008-10-17  Bruno Haible  <bruno@clisp.org>
51593
51594         New implementation of condition variables for Win32.
51595         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51596         (gl_linked_waitqueue_t): New type.
51597         (gl_cond_t): Use it.
51598         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51599         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51600         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51601         (glthread_cond_init_func, glthread_cond_wait_func,
51602         glthread_cond_timedwait_func, glthread_cond_signal_func,
51603         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51604         Reimplemented on the basis of gl_linked_waitqueue_t.
51605         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51606         gl_waitqueue_t.
51607         (gl_rwlock_t): Update.
51608         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51609
51610 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51611
51612         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51613         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51614
51615 2008-10-17  Jim Meyering  <meyering@redhat.com>
51616
51617         ignore-value: new module
51618         * modules/ignore-value: New file.
51619         * lib/ignore-value.h: New file.
51620         * MODULES.html.sh (Compiler warning management): New section,
51621         just for this module.  More to come.
51622
51623 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51624
51625         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51626         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51627         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51628
51629 2008-10-16  Jim Meyering  <meyering@redhat.com>
51630
51631         openat-die.c: avoid 'no previous prototype' warning
51632         * lib/openat-die.c: Include "openat.h".
51633         Reported by Reuben Thomas <rrt@sc3d.org>.
51634
51635 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51636
51637         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51638         * lib/netdb.in.h: Fix typo.
51639         Reported by Bruno Haible  <bruno@clisp.org>
51640
51641         * lib/netdb.in.h: Include sys/socket.h for platforms without
51642         netdb.h, to get structures like hostent on MinGW.
51643         * modules/netdb (Depends-on): Add sys_socket.
51644
51645 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51646
51647         * modules/netdb, modules/netdb-tests: New file.
51648         * m4/netdb_h.m4: New file.
51649         * lib/netdb.in.h: Add, currently just an empty file pending
51650         definitions.
51651         * tests/test-netdb.c: New file.
51652         * doc/posix-headers/netdb.texi: Mention that we replace it if
51653         needed.
51654         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51655         netdb.
51656
51657 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51658
51659         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51660         with code.
51661
51662 2008-10-13  Bruno Haible  <bruno@clisp.org>
51663
51664         * lib/glthread/cond.c (glthread_cond_wait_func,
51665         glthread_cond_timedwait_func): Add a comment.
51666
51667 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51668
51669         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51670         * tests/test-select.c: Likewise,
51671
51672 2008-10-13  Bruno Haible  <bruno@clisp.org>
51673
51674         * lib/glthread/cond.c (glthread_cond_wait_func,
51675         glthread_cond_timedwait_func): Fix variable name.
51676         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51677
51678 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51679
51680         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51681         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51682         struct sockaddr.sa_len.
51683         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51684
51685 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51686
51687         * build-aux/pmccabe2html: Add css and css_url parameters.
51688
51689 2008-10-12  Bruno Haible  <bruno@clisp.org>
51690
51691         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51692         calling aclx_get.
51693         Reported by Rainer Tammer <tammer@tammer.net>.
51694
51695 2008-10-12  Bruno Haible  <bruno@clisp.org>
51696
51697         Use msvcrt aware primitives for creation/termination of Win32 threads.
51698         * lib/glthread/thread.c: Include <process.h>.
51699         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51700         (wrapper_func): Update signature.
51701         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51702
51703 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51704             Bruno Haible  <bruno@clisp.org>
51705
51706         Provide a Win32 implementation of the 'cond' module.
51707         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51708         * lib/glthread/cond.c (glthread_cond_init_func,
51709         glthread_cond_wait_func, glthread_cond_timedwait_func,
51710         glthread_cond_signal_func, glthread_cond_broadcast_func,
51711         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51712         * modules/cond (Dependencies): Add gettimeofday.
51713
51714 2008-10-11  Bruno Haible  <bruno@clisp.org>
51715
51716         Make sleep work on older versions of mingw.
51717         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51718         only whether it exists.
51719         * doc/posix-functions/sleep.texi: Mention the problem with older
51720         versions of mingw.
51721
51722 2008-10-11  Bruno Haible  <bruno@clisp.org>
51723
51724         New module 'shutdown'.
51725         * modules/shutdown: New file.
51726         * lib/sys_socket.in.h (shutdown): New declaration.
51727         * lib/winsock.c (shutdown): New function.
51728         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51729         GNULIB_SHUTDOWN.
51730         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51731         * doc/posix-functions/shutdown.texi: Document the new module.
51732
51733 2008-10-11  Jim Meyering  <meyering@redhat.com>
51734
51735         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51736
51737 2008-10-11  Bruno Haible  <bruno@clisp.org>
51738
51739         New module 'fclose'.
51740         * modules/fclose: New file.
51741         * lib/stdio.in.h (fclose): New declaration.
51742         * lib/fclose.c: New file.
51743         * m4/fclose.m4: New file.
51744         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51745         REPLACE_FCLOSE.
51746         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51747         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51748         REPLACE_FCLOSE.
51749         * modules/close (Depends-on): fclose.
51750         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51751
51752 2008-10-11  Bruno Haible  <bruno@clisp.org>
51753
51754         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51755         set errno and don't call _close.
51756
51757 2008-10-10  Bruno Haible  <bruno@clisp.org>
51758
51759         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51760         ACL, not afterwards. Fixes test failure on Cygwin.
51761
51762 2008-10-09  Ben Pfaff  <blp@gnu.org>
51763
51764         * build-aux/announce-gen: Fix gnulib version related part of usage
51765         message.  Die with a useful error message if no tarballs are
51766         found.
51767
51768 2008-10-10  Jim Meyering  <meyering@redhat.com>
51769
51770         bootstrap: use git's --depth=N option only if it's supported
51771         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51772         recognize the --depth option.  Reported by Pádraig Brady.
51773
51774 2008-10-09  Bruno Haible  <bruno@clisp.org>
51775
51776         New module 'ioctl'.
51777         * modules/ioctl: New file.
51778         * lib/sys_socket.in.h (ioctl): Remove declaration.
51779         * lib/winsock.c: Include <sys/ioctl.h>.
51780         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51781         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51782         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51783         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51784         * doc/posix-functions/ioctl.texi: Mention the new module.
51785
51786 2008-10-09  Bruno Haible  <bruno@clisp.org>
51787
51788         New module 'sys_ioctl'.
51789         * lib/sys_ioctl.in.h: New file.
51790         * m4/sys_ioctl_h.m4: New file.
51791         * modules/sys_ioctl: New file.
51792         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51793
51794 2008-10-09  Bruno Haible  <bruno@clisp.org>
51795
51796         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51797         * lib/winsock.c: Include <stdarg.h>.
51798         (rpl_ioctl): Change to second argument 'int' and then varargs.
51799
51800 2008-10-09  Bruno Haible  <bruno@clisp.org>
51801
51802         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51803         when the sys_socket module is present and the system has <winsock2.h>.
51804
51805 2008-10-09  Bruno Haible  <bruno@clisp.org>
51806
51807         * doc/posix-functions/close.texi: Mention module 'close' instead of
51808         module 'sys_socket'.
51809
51810 2008-10-09  Bruno Haible  <bruno@clisp.org>
51811
51812         * doc/glibc-headers/sys_ioctl.texi: New file.
51813         * doc/gnulib.texi: Include it.
51814
51815 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51816             Bruno Haible  <bruno@clisp.org>
51817
51818         Combine the two replacements of 'close'.
51819         * lib/sys_socket.in.h (close): Define to a reminder to include
51820         <unistd.h>.
51821         (_gl_close_fd_maybe_socket): New declaration.
51822         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51823         * lib/winsock.c (close): Remove undefinition.
51824         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51825         needed for the gnulib module 'close'.
51826         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51827         define to an error symbol or to a warning, if suitable.
51828         * lib/close.c: Include <sys/socket.h>.
51829         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51830         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51831         UNISTD_H_HAVE_WINSOCK2_H.
51832         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51834         UNISTD_H_HAVE_WINSOCK2_H.
51835         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51836         (configure.ac): Set a module indicator.
51837         (Makefile.am): Substitute GNULIB_CLOSE.
51838         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51839         * modules/poll-tests (Depends-on): Add close.
51840         * modules/select-tests (Depends-on): Likewise.
51841
51842 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51843             Bruno Haible  <bruno@clisp.org>
51844
51845         New module 'close'.
51846         * modules/close: New file.
51847         * lib/unistd.in.h (close): Move declaration out of the
51848         FCHDIR_REPLACEMENT scope.
51849         (_gl_unregister_fd): New declaration.
51850         * lib/close.c: New file.
51851         * lib/fchdir.c (rpl_close): Remove function.
51852         * m4/close.m4: New file.
51853         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51854         close.
51855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51856         REPLACE_CLOSE.
51857         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51858         REPLACE_CLOSE.
51859         * modules/fchdir (Depends-on): Add close.
51860
51861 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51862             Bruno Haible  <bruno@clisp.org>
51863
51864         * lib/fcntl.in.h (open): Simplify conditionals.
51865         (_gl_register_fd): New declaration.
51866         * lib/fchdir.c (rpl_open): Remove function.
51867         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51868         also.
51869         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51870         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51871         open.
51872
51873 2008-10-09  Jim Meyering  <meyering@redhat.com>
51874
51875         GNUmakefile: use the more name-space-friendly "_version"
51876         * top/GNUmakefile (_dummy): Update.
51877         (_version): Rename from "version".
51878
51879 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51880             Bruno Haible  <bruno@clisp.org>
51881
51882         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51883         rpl_close.
51884         (_gl_register_fd): New function, extracted from rpl_open.
51885         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51886         (rpl_open, rpl_opendir): Use _gl_register_fd.
51887
51888 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51889
51890         Fix organization of 'open' replacement.
51891         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51892         (gl_FUNC_OPEN): Use it.
51893         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51894
51895 2008-10-08  Bruno Haible  <bruno@clisp.org>
51896
51897         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51898
51899 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51900
51901         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51902         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51903         listen).
51904
51905 2008-10-08  Eric Blake  <ebb9@byu.net>
51906
51907         GNUmakefile: add 'make version' target
51908         * top/GNUmakefile (_curr-ver): Split version update rules...
51909         (version): ...into a target.
51910
51911 2008-10-07  Bruno Haible  <bruno@clisp.org>
51912
51913         Use a more portable replacement expression for -0.0L.
51914         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51915         instead of -0.0L. Fix m4 quotation.
51916
51917         * tests/test-signbit.c: Include <float.h>.
51918         (minus_zero): New variable.
51919         (test_signbitl): Use minus_zero instead of -zero.
51920         * modules/signbit-tests (Depends-on): Add float.
51921
51922         * tests/test-ceill.c: Include <float.h>.
51923         (zero): Remove variable.
51924         (minus_zero): New variable.
51925         (main): Use minus_zero instead of -zero.
51926         * modules/ceill-tests (Depends-on): Add float.
51927
51928         * tests/test-floorl.c: Include <float.h>.
51929         (zero): Remove variable.
51930         (minus_zero): New variable.
51931         (main): Use minus_zero instead of -zero.
51932         * modules/floorl-tests (Depends-on): Add float.
51933
51934         * tests/test-roundl.c: Include <float.h>.
51935         (zero): Remove variable.
51936         (minus_zero): New variable.
51937         (main): Use minus_zero instead of -zero.
51938         * modules/roundl-tests (Depends-on): Add float.
51939
51940         * tests/test-truncl.c: Include <float.h>.
51941         (zero): Remove variable.
51942         (minus_zero): New variable.
51943         (main): Use minus_zero instead of -zero.
51944         * modules/truncl-tests (Depends-on): Add float.
51945
51946         * tests/test-frexpl.c (zero): Remove variable.
51947         (minus_zero): New variable.
51948         (main): Use minus_zero instead of -zero.
51949         * modules/frexpl-tests (Depends-on): Add float.
51950
51951         * tests/test-isnan.c (zerol): Remove variable.
51952         (minus_zerol): New variable.
51953         (test_long_double): Use minus_zerol instead of -zerol.
51954         * modules/isnan-tests (Depends-on): Add float.
51955
51956         * tests/test-isnanl.h (zero): Remove variable.
51957         (minus_zero): New variable.
51958         (main): Use minus_zero instead of -zero.
51959         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51960         * modules/isnanl-tests (Depends-on): Add float.
51961
51962         * tests/test-ldexpl.c (zero): Remove variable.
51963         (minus_zero): New variable.
51964         (main): Use minus_zero instead of -zero.
51965         * modules/ldexpl-tests (Depends-on): Add float.
51966
51967         * tests/test-snprintf-posix.h (zerol): Remove variable.
51968         (minus_zerol): New variable.
51969         (test_function): Use minus_zerol instead of -zerol.
51970         * modules/snprintf-posix-tests (Depends-on): Add float.
51971         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51972
51973         * tests/test-sprintf-posix.h (zerol): Remove variable.
51974         (minus_zerol): New variable.
51975         (test_function): Use minus_zerol instead of -zerol.
51976         * modules/sprintf-posix-tests (Depends-on): Add float.
51977         * modules/vsprintf-posix-tests (Depends-on): Add float.
51978
51979         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51980         (minus_zerol): New variable.
51981         (test_function): Use minus_zerol instead of -zerol.
51982         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51983
51984         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51985         (minus_zerol): New variable.
51986         (test_function): Use minus_zerol instead of -zerol.
51987         * modules/vasprintf-posix-tests (Depends-on): Add float.
51988
51989 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51990
51991         * MODULES.html.sh (Support for building documentation): Mention
51992         pmccabe2html.  Sort entries.
51993
51994         Add pmccabe2html module, from gnupdf.
51995         * build-aux/pmccabe.css: New file.
51996         * build-aux/pmccabe2html: New file.
51997         * m4/pmccabe2html.m4: New file.
51998         * modules/pmccabe2html: New file.
51999
52000 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
52001
52002         flock: new module
52003         * MODULES.html.sh: Add to list of modules.
52004         * lib/flock.c: flock implementation for Windows and Unix systems
52005         which have fcntl.
52006         * doc/glibc-functions/flock.texi: Update documentation.
52007         * lib/sys_file.in.h: <sys/file.h> header file.
52008         * m4/flock.m4: M4 macros.
52009         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52010         * modules/flock: flock module.
52011         * modules/flock-tests: flock tests module.
52012         * modules/sys_file: sys/file.h module.
52013         * tests/test-flock.c: test suite for flock.
52014
52015 2008-10-06  Jim Meyering  <meyering@redhat.com>
52016
52017         bootstrap: check for LT_INIT more portably still ;-)
52018         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52019         Spotted by Bruno Haible.
52020
52021 2008-10-06  Eric Blake  <ebb9@byu.net>
52022
52023         test-signbit: avoid tripping Irix cc bug on -0.0L
52024         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52025         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52026         entire testsuite consistent and avoids an Irix 6.2 bug.
52027
52028 2008-10-05  Bruno Haible  <bruno@clisp.org>
52029             Jim Meyering  <jim@meyering.net>
52030
52031         Add an option for ignoring EPIPE during close_stdout.
52032         * lib/closeout.h: Include <stdbool.h>.
52033         (close_stdout_set_ignore_EPIPE): New declaration.
52034         * lib/closeout.c: Include <stdbool.h>.
52035         (ignore_EPIPE): New variable.
52036         (close_stdout_set_ignore_EPIPE): New function.
52037         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52038         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52039         failure.
52040         * modules/closeout (Depends-on): Add stdbool.
52041
52042 2008-10-05  Bruno Haible  <bruno@clisp.org>
52043
52044         * modules/accept: New file.
52045         * modules/bind: New file.
52046         * modules/connect: New file.
52047         * modules/getpeername: New file.
52048         * modules/getsockname: New file.
52049         * modules/getsockopt: New file.
52050         * modules/listen: New file.
52051         * modules/recv: New file.
52052         * modules/recvfrom: New file.
52053         * modules/send: New file.
52054         * modules/sendto: New file.
52055         * modules/setsockopt: New file.
52056         * modules/socket: New file.
52057         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52058         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52059         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52060         the particular module is requested. Add a link warning when the
52061         particular module is not requested.
52062         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52063         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52064         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52065         the particular module is requested.
52066         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52067         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52068         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52069         * modules/sys_socket (Depends-on): Add link-warning.
52070         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52071         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52072         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52073         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52074         GL_LINK_WARNING.
52075         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52076         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52077         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52078         * doc/posix-functions/getpeername.texi: Mention the new module
52079         'getpeername'.
52080         * doc/posix-functions/getsockname.texi: Mention the new module
52081         'getsockname'.
52082         * doc/posix-functions/getsockopt.texi: Mention the new module
52083         'getsockopt'.
52084         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52085         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52086         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52087         * doc/posix-functions/send.texi: Mention the new module 'send'.
52088         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52089         * doc/posix-functions/setsockopt.texi: Mention the new module
52090         'setsockopt'.
52091         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52092         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52093         listen, connect, accept.
52094         * modules/select-tests (Depends-on): Likewise.
52095
52096 2008-10-05  Bruno Haible  <bruno@clisp.org>
52097
52098         * lib/winsock.c (strerror): Remove unused #undef.
52099         (rpl_close): Remove unused local variable.
52100
52101         * modules/sys_socket (Depends-on); Add errno.
52102
52103 2008-10-05  Bruno Haible  <bruno@clisp.org>
52104
52105         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52106         (select): Add a link warning when the 'select' module is not used.
52107         * modules/sys_select (Depends-on): Add link-warning.
52108         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52109         Suggested by Paolo Bonzini.
52110
52111 2008-10-05  Jim Meyering  <meyering@redhat.com>
52112
52113         bootstrap: check for LT_INIT more portably
52114         * build-aux/bootstrap: Avoid using grep -E, since it's not
52115         portable enough.  Suggestion from Bruno Haible.
52116
52117 2008-10-05  Bruno Haible  <bruno@clisp.org>
52118
52119         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52120         as being fixed by gnulib.
52121
52122 2008-10-05  Bruno Haible  <bruno@clisp.org>
52123
52124         * modules/select-tests: New file, mostly copied from
52125         modules/sys_select-tests.
52126         * tests/test-select.c: New file, mostly copied from
52127         tests/test-sys_select.c.
52128         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52129         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52130         (Makefile.am): Remove test_sys_select_LDADD.
52131
52132         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52133         to an undefined symbol, for an error message.
52134         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52135         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52136         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52137         winsock-select.c here.
52138         * modules/sys_select (Files): Remove lib/winsock-select.c.
52139         (Depends-on): Remove alloca.
52140         (Makefile.am): Substitute GNULIB_SELECT.
52141         * modules/select: New file.
52142         * doc/posix-functions/select.texi: Update.
52143
52144 2008-10-05  Bruno Haible  <bruno@clisp.org>
52145
52146         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
52147         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
52148         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
52149         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
52150         getdtablesize.
52151         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52152         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52153
52154 2008-10-05  Bruno Haible  <bruno@clisp.org>
52155
52156         * modules/getdtablesize-tests: New file.
52157         * tests/test-getdtablesize.c: New file.
52158
52159         New module 'getdtablesize'.
52160         * lib/unistd.in.h (getdtablesize): New declaration.
52161         * lib/getdtablesize.c: New file.
52162         * m4/getdtablesize.m4: New file.
52163         * modules/getdtablesize: New file.
52164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52165         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
52166         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
52167         HAVE_GETDTABLESIZE.
52168         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
52169
52170 2008-10-05  Bruno Haible  <bruno@clisp.org>
52171
52172         * modules/sched (Makefile.am): Fix typo.
52173         Reported by Simon Josefsson.
52174
52175 2008-10-05  Jim Meyering  <meyering@redhat.com>
52176
52177         bootstrap: check for LT_INIT, too
52178         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
52179         are deprecated.  Suggestion from Ralf Wildenhues.
52180
52181 2008-10-05  Bruno Haible  <bruno@clisp.org>
52182
52183         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52184         overriding them by ours.
52185         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52186
52187 2008-10-05  Jim Meyering  <meyering@redhat.com>
52188
52189         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52190         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52191         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52192
52193 2008-10-04  Bruno Haible  <bruno@clisp.org>
52194
52195         * modules/dup2 (License): Change to LGPLv2+.
52196         * modules/sleep (License): Likewise.
52197         * modules/perror (License): Likewise.
52198         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52199         Blake.
52200         * modules/signal (License): Likewise.
52201         * modules/sigprocmask (License): Likewise.
52202         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52203         Meyering.
52204
52205 2008-10-04  Bruno Haible  <bruno@clisp.org>
52206
52207         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52208         Reported by Rainer Tammer <tammer@tammer.net>.
52209
52210 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52211             Bruno Haible  <bruno@clisp.org>
52212
52213         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52214         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52215         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52216
52217 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52218
52219         filevercmp: new module
52220         * lib/filevercmp.h: New function filevercmp comparing version strings.
52221         * lib/filevercmp.c: Implementation of filevercmp function.
52222         * modules/filevercmp: Module metadata.
52223         * tests/test-filevercmp.c: Unit test for new module.
52224         * modules/filevercmp-tests: Unit test metadata.
52225         * MODULES.html.sh: Add filevercmp module.
52226
52227 2008-10-03  Bruno Haible  <bruno@clisp.org>
52228
52229         * lib/c-ctype.h: Add comment.
52230         Reported by Jim Meyering.
52231
52232 2008-10-02  Bruno Haible  <bruno@clisp.org>
52233
52234         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52235
52236 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52237
52238         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52239         name of bootstrap.conf accordingly.
52240
52241 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52242
52243         * build-aux/bootstrap: Install git-merge-changelog configuration
52244         items into .gitconfig if needed.
52245
52246 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52247
52248         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
52249         git repository, and initialize/update it accordingly.
52250
52251 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
52252
52253         * modules/fsync-tests: New file.
52254         * tests/test-fsync.c: New file.
52255
52256         New module 'fsync'.
52257         * lib/fsync.c: New file.
52258         * m4/fsync.m4: New file.
52259         * modules/fsync: New file.
52260         * lib/unistd.in.h (fsync): New declaration.
52261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52262         GNULIB_FSYNC and HAVE_FSYNC.
52263         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52264         * MODULES.html.sh (posix_functions): Add fsync.
52265         * doc/posix-functions/fsync.texi: Mention the new module.
52266
52267 2008-10-02  Jim Meyering  <meyering@redhat.com>
52268
52269         fts.c: sync with similar code from coreutils' remove.c
52270         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52271         Guard also with "#if defined __linux__", since for now at least,
52272         this code is Linux-kernel-specific.
52273
52274 2008-10-02  Jim Meyering  <meyering@redhat.com>
52275
52276         fts: bug fixes
52277         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52278         Include <sys/vfs.h>, not <sys/statfs.h>.
52279
52280         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52281         Include <sys/vfs.h>, not <sys/statfs.h>.
52282
52283 2008-10-01  Bruno Haible  <bruno@clisp.org>
52284
52285         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52286         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52287         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52288         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52289         * doc/posix-functions/posix_spawnp.texi: Likewise.
52290         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52291         whether posix_spawn actually works.
52292         * m4/pipe.m4 (gl_PIPE): Likewise.
52293         * modules/execute (Files): Add m4/posix_spawn.m4.
52294         * modules/pipe (Files): Add m4/posix_spawn.m4.
52295         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52296
52297 2008-10-01  Jim Meyering  <meyering@redhat.com>
52298
52299         remove trailing spaces
52300         * NEWS: Likewise.
52301         * lib/poll.c (poll): Likewise.
52302         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52303         * lib/winsock.c (rpl_close): Likewise.
52304         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52305         * modules/yield: Likewise.
52306         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52307         * tests/test-sys_select.c (connect_to_socket): Likewise.
52308
52309         fts.c: adjust a new interface to be more generally useful
52310         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52311         (fts_build): Adjust caller.
52312
52313 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52314
52315         * modules/cond-tests: New file.
52316         * tests/test-cond.c: New file.
52317
52318 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52319             Bruno Haible  <bruno@clisp.org>
52320
52321         * modules/cond (Dependencies): Add errno, time.
52322         * lib/glthread/cond.h: Include <time.h>.
52323         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52324         across platforms.
52325
52326 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52327             Bruno Haible  <bruno@clisp.org>
52328
52329         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52330
52331 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52332             Bruno Haible  <bruno@clisp.org>
52333
52334         * modules/tls-tests (Depends-on): Add thread, yield.
52335         (configure.ac): Remove all checks.
52336         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52337         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52338         gl_thread_self): Remove definitions. Include glthread/thread.h and
52339         glthread/yield.h instead.
52340         (test_tls): Pass an additional NULL argument to gl_thread_join.
52341
52342 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52343             Bruno Haible  <bruno@clisp.org>
52344
52345         * modules/lock-tests (Depends-on): Add thread, yield.
52346         (configure.ac): Remove all checks.
52347         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52348         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52349         gl_thread_self): Remove definitions. Include glthread/thread.h and
52350         glthread/yield.h instead.
52351         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52352         additional NULL argument to gl_thread_join.
52353
52354 2008-09-30  Bruno Haible  <bruno@clisp.org>
52355
52356         Fix the Win32 implementation of the 'thread' module.
52357         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52358         pointer type.
52359         (gl_thread_self): Invoke gl_thread_self_func.
52360         (gl_thread_self_func): New declaration.
52361         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52362         (do_init_self_key, init_self_key): New functions.
52363         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52364         Remove some fields.
52365         (running_threads, running_lock): Remove variables.
52366         (get_current_thread_handle): New function.
52367         (gl_thread_self_func, wrapper_func, glthread_create_func,
52368         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52369         simplified.
52370
52371 2008-09-30  Bruno Haible  <bruno@clisp.org>
52372
52373         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52374         files.
52375
52376 2008-09-30  Jim Meyering  <meyering@redhat.com>
52377
52378         fts.m4: correct the test for statfs.f_type
52379         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52380         when checking for statfs.f_type.
52381
52382 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52383
52384         tests: avoid some compiler warnings
52385         * tests/test-memchr.c (main): Pass NULL indirectly.
52386         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52387
52388 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
52389
52390         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52391         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52392         exactly specified dayshifts.
52393         (dayshift): New rule.
52394         (rel): Add dayshift.
52395         (relative_time_table) [tomorrow, yesterday, today, now]:
52396         Use tDAY_SHIFT in place of tDAY_UNIT.
52397         * tests/test-getdate.c: Add tests for now-disallowed countable
52398         dayshifts, e.g., "4 yesterday ago".
52399
52400 2008-09-29  Bruno Haible  <bruno@clisp.org>
52401
52402         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52403         * tests/test-posix_spawn1.in.sh: Renamed from
52404         tests/test-posix_spawn.in.sh.
52405         * tests/test-posix_spawn2.c: New file.
52406         * tests/test-posix_spawn2.in.sh: New file.
52407         * modules/posix_spawnp-tests (Files): Update.
52408         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52409
52410 2008-09-29  Bruno Haible  <bruno@clisp.org>
52411
52412         Propagate effects of putenv/setenv/unsetenv to child processes.
52413         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52414         * lib/pipe.c (create_pipe): Likewise.
52415
52416 2008-09-29  Bruno Haible  <bruno@clisp.org>
52417
52418         Enable use of shell scripts as executables in mingw.
52419         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52420         run the program as a shell script.
52421         * lib/pipe.c (create_pipe): Likewise.
52422         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52423         resulting array.
52424
52425 2008-09-29  Eric Blake  <ebb9@byu.net>
52426
52427         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52428
52429 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52430
52431         * doc/posix-functions/accept.texi: Update mingw problems.
52432         * doc/posix-functions/bind.texi: Update mingw problems.
52433         * doc/posix-functions/close.texi: Update mingw problems.
52434         * doc/posix-functions/connect.texi: Update mingw problems.
52435         * doc/posix-functions/getpeername.texi: Update mingw problems.
52436         * doc/posix-functions/getsockname.texi: Update mingw problems.
52437         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52438         * doc/posix-functions/ioctl.texi: Update mingw problems.
52439         * doc/posix-functions/listen.texi: Update mingw problems.
52440         * doc/posix-functions/recv.texi: Update mingw problems.
52441         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52442         * doc/posix-functions/select.texi: Update mingw problems.
52443         * doc/posix-functions/send.texi: Update mingw problems.
52444         * doc/posix-functions/sendto.texi: Update mingw problems.
52445         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52446         * doc/posix-functions/socket.texi: Update mingw problems.
52447
52448 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52449             Bruno Haible  <bruno@clisp.org>
52450
52451         * lib/sys_select.in.h: Include sys/time.h.
52452         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52453         * modules/sys_select: Depend on sys_time.
52454         * tests/test-sys_select.c: Test that sys/select.h defines struct
52455         timeval fully.
52456
52457 2008-09-29  Bruno Haible  <bruno@clisp.org>
52458
52459         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52460         * lib/sys_select.in.h: Likewise.
52461
52462 2008-09-29  Bruno Haible  <bruno@clisp.org>
52463
52464         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52465
52466 2008-09-29  Bruno Haible  <bruno@clisp.org>
52467
52468         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52469         Set LIBSOCKET instead of augmenting LIBS.
52470         * modules/sockets (Link): New section.
52471         * modules/sockets-tests (test_sockets_LDADD): New variable.
52472         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52473         * modules/poll-tests (test_poll_LDADD): New variable.
52474         * NEWS: Document the change.
52475
52476 2008-09-29  Bruno Haible  <bruno@clisp.org>
52477
52478         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52479         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52480         ARPA_INET_H directly.
52481         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52482
52483 2008-09-28  Bruno Haible  <bruno@clisp.org>
52484
52485         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52486         from gl_HEADER_SYS_SOCKET.
52487         (gl_HEADER_SYS_SOCKET): Invoke it.
52488         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52489
52490 2008-09-28  Bruno Haible  <bruno@clisp.org>
52491
52492         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52493         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52494         Needed on OSF/1 4.0.
52495
52496 2008-09-28  Bruno Haible  <bruno@clisp.org>
52497
52498         Override open more carefully.
52499         * lib/open.c (orig_open): New function.
52500         (rpl_open): Use orig_open instead of open.
52501         * lib/fcntl.in.h: Add special invocation convention.
52502         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52503         (gl_FUNC_OPEN): Invoke it.
52504
52505         Override freopen more carefully.
52506         * lib/freopen.c (orig_freopen): New function.
52507         (rpl_freopen): Use orig_freopen instead of freopen.
52508         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52509         (gl_FUNC_FREOPEN): Invoke it.
52510
52511         Override fopen more carefully.
52512         * lib/fopen.c (orig_fopen): New function.
52513         (rpl_fopen): Use orig_fopen instead of fopen.
52514         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52515         (gl_FUNC_FOPEN): Invoke it.
52516         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52517
52518 2008-09-28  Bruno Haible  <bruno@clisp.org>
52519
52520         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52521         SIGPIPE.
52522
52523 2008-09-28  Bruno Haible  <bruno@clisp.org>
52524
52525         * tests/test-sigaction.c (handler, main): Disable the check whether
52526         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52527         glibc systems with LinuxThreads.
52528
52529 2008-09-28  Bruno Haible  <bruno@clisp.org>
52530
52531         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52532
52533         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52534         with AIX xlc.
52535         * lib/fcntl.in.h (open): Likewise.
52536         Reported by Rainer Tammer <tammer@tammer.net>.
52537
52538 2008-09-28  Bruno Haible  <bruno@clisp.org>
52539
52540         * modules/posix_spawnp-tests: New file.
52541         * tests/test-posix_spawn.c: New file.
52542         * tests/test-posix_spawn.in.sh: New file.
52543
52544         New module 'posix_spawnp'.
52545         * modules/posix_spawnp: New file.
52546         * lib/spawnp.c: New file, from GNU libc with modifications.
52547         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52548
52549         New module 'posix_spawn'.
52550         * modules/posix_spawn: New file.
52551         * lib/spawn.c: New file, from GNU libc with modifications.
52552         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52553
52554         New module 'posix_spawnattr_destroy'.
52555         * modules/posix_spawnattr_destroy: New file.
52556         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52557         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52558         module.
52559
52560         New module 'posix_spawnattr_setsigmask'.
52561         * modules/posix_spawnattr_setsigmask: New file.
52562         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52563         modifications.
52564         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52565         new module.
52566
52567         New module 'posix_spawnattr_getsigmask'.
52568         * modules/posix_spawnattr_getsigmask: New file.
52569         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52570         modifications.
52571         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52572         new module.
52573
52574         New module 'posix_spawnattr_setsigdefault'.
52575         * modules/posix_spawnattr_setsigdefault: New file.
52576         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52577         modifications.
52578         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52579         new module.
52580
52581         New module 'posix_spawnattr_getsigdefault'.
52582         * modules/posix_spawnattr_getsigdefault: New file.
52583         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52584         modifications.
52585         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52586         new module.
52587
52588         New module 'posix_spawnattr_setschedpolicy'.
52589         * modules/posix_spawnattr_setschedpolicy: New file.
52590         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52591         modifications.
52592         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52593         new module.
52594
52595         New module 'posix_spawnattr_getschedpolicy'.
52596         * modules/posix_spawnattr_getschedpolicy: New file.
52597         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52598         modifications.
52599         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52600         new module.
52601
52602         New module 'posix_spawnattr_setschedparam'.
52603         * modules/posix_spawnattr_setschedparam: New file.
52604         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52605         modifications.
52606         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52607         new module.
52608
52609         New module 'posix_spawnattr_getschedparam'.
52610         * modules/posix_spawnattr_getschedparam: New file.
52611         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52612         modifications.
52613         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52614         new module.
52615
52616         New module 'posix_spawnattr_setpgroup'.
52617         * modules/posix_spawnattr_setpgroup: New file.
52618         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52619         modifications.
52620         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52621         module.
52622
52623         New module 'posix_spawnattr_getpgroup'.
52624         * modules/posix_spawnattr_getpgroup: New file.
52625         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52626         modifications.
52627         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52628         module.
52629
52630         New module 'posix_spawnattr_setflags'.
52631         * modules/posix_spawnattr_setflags: New file.
52632         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52633         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52634         module.
52635
52636         New module 'posix_spawnattr_getflags'.
52637         * modules/posix_spawnattr_getflags: New file.
52638         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52639         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52640         module.
52641
52642         New module 'posix_spawnattr_init'.
52643         * modules/posix_spawnattr_init: New file.
52644         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52645         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52646         module.
52647
52648         New module 'posix_spawn_file_actions_destroy'.
52649         * modules/posix_spawn_file_actions_destroy: New file.
52650         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52651         modifications.
52652         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52653         the new module.
52654
52655         New module 'posix_spawn_file_actions_addopen'.
52656         * modules/posix_spawn_file_actions_addopen: New file.
52657         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52658         modifications.
52659         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52660         the new module.
52661
52662         New module 'posix_spawn_file_actions_adddup2'.
52663         * modules/posix_spawn_file_actions_adddup2: New file.
52664         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52665         modifications.
52666         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52667         the new module.
52668
52669         New module 'posix_spawn_file_actions_addclose'.
52670         * modules/posix_spawn_file_actions_addclose: New file.
52671         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52672         modifications.
52673         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52674         the new module.
52675
52676         New module 'posix_spawn_file_actions_init'.
52677         * modules/posix_spawn_file_actions_init: New file.
52678         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52679         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52680         new module.
52681
52682         New module 'posix_spawn-internal'.
52683         * modules/posix_spawn-internal: New file.
52684         * lib/spawn_int.h: New file, from GNU libc with modifications.
52685         * lib/spawni.c: New file, from GNU libc with modifications.
52686         * m4/posix_spawn.m4: New file.
52687
52688         New module 'spawn'.
52689         * modules/spawn: New file.
52690         * lib/spawn.in.h: New file, from GNU libc with modifications.
52691         * m4/spawn_h.m4: New file.
52692         * doc/posix-headers/spawn.texi: Mention the new module.
52693
52694 2008-09-28  Bruno Haible  <bruno@clisp.org>
52695
52696         * modules/sched-tests: New file.
52697         * tests/test-sched.c: New file.
52698
52699         New module 'sched'.
52700         * modules/sched: New file.
52701         * lib/sched.in.h: New file.
52702         * m4/sched_h.m4: New file.
52703         * doc/posix-headers/sched.texi: Mention the new module.
52704
52705 2008-09-27  Eric Blake  <ebb9@byu.net>
52706
52707         Fix previous patch, and tweak references to $0.
52708         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52709         (func_version, func_gnulib_dir): Don't call this program
52710         gnulib-tool.
52711         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52712         with using $0 in function.
52713         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52714         (func_fatal_error): Reuse the name the user invoked us with.
52715
52716 2008-09-27  Bruno Haible  <bruno@clisp.org>
52717
52718         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52719         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52720         (gl_ICONV_H): Not here.
52721         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52722         instead of assigning ICONV_H directly.
52723
52724         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52726         WCHAR_H directly.
52727
52728 2008-09-27  Bruno Haible  <bruno@clisp.org>
52729
52730         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52731         * modules/arpa_inet (Depends-on): Add link-warning.
52732         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52733         * modules/unistd (Makefile.am): Likewise.
52734
52735 2008-09-26  Bruno Haible  <bruno@clisp.org>
52736
52737         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52738         variables.
52739         (func_version): Essentially copied from gnulib-tool.
52740         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52741         func_readlink): Copied from gnulib-tool.
52742
52743 2008-09-26  Bruno Haible  <bruno@clisp.org>
52744
52745         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52746         invoking git-version-gen.
52747
52748 2008-09-26  Bruno Haible  <bruno@clisp.org>
52749
52750         * posix-modules: Update to directory names changed on 2008-01-19.
52751         Remove commas in output before splitting into words. No more need to
52752         avoid 'ftruncate' since 2007-02-19.
52753
52754 2008-09-26  Bruno Haible  <bruno@clisp.org>
52755
52756         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52757
52758 2008-09-26  Bruno Haible  <bruno@clisp.org>
52759
52760         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52761         * modules/fwriteerror (Depends-on): Add errno.
52762
52763 2008-09-26  Bruno Haible  <bruno@clisp.org>
52764
52765         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52766         * tests/test-vc-list-files-cvs.sh: Likewise.
52767
52768 2008-09-26  Bruno Haible  <bruno@clisp.org>
52769
52770         * doc/posix-headers/sys_resource.texi: Reorder items.
52771
52772 2008-09-26  Jim Meyering  <meyering@redhat.com>
52773
52774         fts: tweak inode comparison function
52775         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52776         inode numbers, as documented.
52777
52778         fts: sort dirent entries on inode number before traversing
52779         This avoids a quadratic, seek-related performance penalty when
52780         operating on a directory containing many entries (measurable at 10k;
52781         3.5 hours at 2 million entries with a cold cache) on certain types
52782         of file systems, including ext3 and ext4, but not tmpfs.
52783         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52784         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52785         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52786         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52787         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52788         (fts_build): Set the stat.st_ino member from D_INO.
52789         If it is likely to be useful, sort dirent entries on inode number.
52790
52791         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52792         and the struct statfs.f_type member.
52793         * modules/fts (Depends-on): Add d-ino.
52794
52795 2008-09-26  Bruno Haible  <bruno@clisp.org>
52796
52797         * modules/sigpipe-die (Depends-on): Add sigpipe.
52798
52799         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52800         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52801         and GNULIB_STDIO_H_SIGPIPE are set.
52802         * lib/stdio-write.c: New file.
52803         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52804         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52805         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52806         REPLACE_STDIO_WRITE_FUNCS.
52807         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52808         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52809         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52810         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52811         * modules/stdio (Files): Add lib/stdio-write.c.
52812         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52813         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52814         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52815         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52816         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52817         REPLACE_FPRINTF_POSIX.
52818         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52819         REPLACE_PRINTF_POSIX.
52820         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52821         REPLACE_VFPRINTF_POSIX.
52822         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52823         REPLACE_VPRINTF_POSIX.
52824         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52825         SIGPIPE issue.
52826         * doc/posix-functions/fputc.texi: Likewise.
52827         * doc/posix-functions/fputs.texi: Likewise.
52828         * doc/posix-functions/fwrite.texi: Likewise.
52829         * doc/posix-functions/printf.texi: Likewise.
52830         * doc/posix-functions/putc.texi: Likewise.
52831         * doc/posix-functions/putchar.texi: Likewise.
52832         * doc/posix-functions/puts.texi: Likewise.
52833         * doc/posix-functions/vfprintf.texi: Likewise.
52834         * doc/posix-functions/vprintf.texi: Likewise.
52835
52836         * modules/safe-write (Depends-on): Add write.
52837
52838         * modules/sigpipe-tests: New file.
52839         * tests/test-sigpipe.c: New file.
52840         * tests/test-sigpipe.sh: New file.
52841
52842         * modules/write: New file.
52843         * lib/unistd.in.h: Include <sys/types.h>.
52844         (write): New declaration.
52845         * lib/write.c: New file.
52846         * m4/write.m4: New file.
52847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52848         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52849         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52850         GNULIB_WRITE, REPLACE_WRITE.
52851         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52852         and the SIGPIPE issue.
52853
52854         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52855         (raise): New declaration.
52856         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52857         (ext_signal): New function.
52858         (rpl_raise): New function.
52859         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52860         GNULIB_SIGNAL_H_SIGPIPE.
52861         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52862         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52863
52864         * modules/sigpipe: New file.
52865         * m4/sigpipe.m4: New file.
52866
52867 2008-09-25  Derek Price  <derek@ximbiot.com>
52868             Bruno Haible  <bruno@clisp.org>
52869
52870         * gnulib-tool (func_import): Report all license incompatibilities, not
52871         just the first one.
52872
52873 2008-09-25  Bruno Haible  <bruno@clisp.org>
52874
52875         * gnulib-tool (func_import): When computing the edits, consider not
52876         only the Makefile.ams that exist but also those that will be generated.
52877
52878 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52879
52880         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52881         fixes gnulib-tool --test warning about duplicate dependency.
52882
52883 2008-09-25  Bruno Haible  <bruno@clisp.org>
52884
52885         * gnulib-tool: Don't ask the user to perform edits in the generated
52886         Makefile.ams.
52887         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52888         apply to the Makefile.am being generated.
52889         (func_emit_tests_Makefile_am): Execute edits that apply to the
52890         Makefile.am being generated.
52891         (func_import): Setup list of Makefile.am edits before emitting the
52892         Makefile.ams, not at the end.
52893         (func_create_testdir): Update.
52894         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52895
52896 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52897
52898         * gnulib-tool (func_import): Store the --tests-base option in the
52899         comment in gnulib-cache.m4.
52900
52901 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52902
52903         * NEWS: Document increased portability that sys_select now provides.
52904
52905         * lib/sys_select.in.h: Install select wrapper.
52906         * lib/sys_socket.in.h: Use more descriptive name when there is no
52907         select wrapper.
52908         * lib/winsock-select.c: New.
52909         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52910         Require gl_HEADER_SYS_SOCKET.
52911         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52912         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52913         * tests/test-sys_select.c: Add functional tests.
52914
52915 2008-09-24  Eric Blake  <ebb9@byu.net>
52916
52917         open, fopen: close fd leak in last patch
52918         * lib/open.c (rpl_open): Close fd before returning error.
52919         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52920         * doc/posix-functions/open.texi (open): Document that Irix also
52921         has the bug.
52922         * doc/posix-functions/fopen.texi (fopen): Likewise.
52923         Reported by Paolo Bonzini.
52924
52925 2008-09-24  Bruno Haible  <bruno@clisp.org>
52926
52927         Ensure that a filename ending in a slash cannot be used to access a
52928         non-directory.
52929         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52930         to check whether it's really a directory.
52931         * lib/fopen.c: Include fcntl.h, unistd.h.
52932         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52933         and fdopen().
52934         * modules/fopen (Depends-on): Add unistd.
52935         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52936         * tests/test-fopen.c (main): Likewise.
52937         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52938         * doc/posix-functions/fopen.texi: Likewise.
52939         Reported by Eric Blake.
52940
52941 2008-09-23  Eric Blake  <ebb9@byu.net>
52942
52943         c-stack: avoid compiler optimizations when provoking overflow
52944         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52945         recursion harder to optimize, to ensure a stack overflow occurs.
52946         * tests/test-c-stack.c (recurse): Likewise.
52947         Borrowed from libsigsegv.
52948
52949         c-stack: work around Irix sigaltstack bug
52950         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52951         whether sigaltstack uses wrong end of stack_t (copied in part from
52952         libsigsegv).
52953         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52954         Irix bug, without requiring an over-allocation.
52955         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52956         bug.
52957
52958         fopen: document mingw bug on directories
52959         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52960         not allowing a stream visiting a directory, even though reading
52961         from such a stream is not portable.
52962
52963 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52964
52965         * lib/poll.c: Rewrite.
52966         * modules/poll: Depend on alloca.
52967
52968 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52969
52970         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52971         instead define prototypes for a full set of wrappers.  Ensure
52972         that Cygwin does not use the compatibility code, which is only
52973         for MinGW.
52974         * lib/winsock.c: New.
52975         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52976         * modules/sys_socket: Add lib/winsock.c.
52977
52978         * modules/poll-tests: Add errno and perror.
52979         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52980
52981 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52982
52983         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52984
52985 2008-09-23  Bruno Haible  <bruno@clisp.org>
52986
52987         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52988         * doc/glibc-functions/*: Likewise.
52989
52990 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52991
52992         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52993         success.
52994
52995 2008-09-22  Eric Blake  <ebb9@byu.net>
52996             Bruno Haible  <bruno@clisp.org>
52997
52998         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52999         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
53000         supply %A but mishandle pseudo-NaN.
53001         Reported by Simon Josefsson.
53002
53003 2008-09-21  Bruno Haible  <bruno@clisp.org>
53004
53005         * tests/test-lock.c (main): Tweak skip message.
53006         * tests/test-tls.c (main): Likewise.
53007
53008 2008-09-21  Bruno Haible  <bruno@clisp.org>
53009
53010         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53011         whether 'struct sigaction' has sa_sigaction here...
53012         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53013         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53014
53015 2008-09-21  Bruno Haible  <bruno@clisp.org>
53016
53017         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53018         section.
53019         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53020         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53021         the new section.
53022         (Support for obsolete systems lacking POSIX:2001): New section.
53023         (String handling <string.h>): Move strdup to the new section.
53024         Suggested by Simon Josefsson and Paolo Bonzini.
53025
53026 2008-09-21  Bruno Haible  <bruno@clisp.org>
53027
53028         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53029         exponents in %e and %g results on 'long double'. Needed for mingw's
53030         improved *printf functions.
53031         * tests/test-vasprintf-posix.c (test_function): Likewise.
53032         * tests/test-snprintf-posix.h (test_function): Likewise.
53033         * tests/test-sprintf-posix.h (test_function): Likewise.
53034         Reported by Eric Blake.
53035
53036 2008-09-21  Bruno Haible  <bruno@clisp.org>
53037
53038         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53039         * tests/test-sprintf-posix.h (test_function): Likewise.
53040
53041 2008-09-21  Bruno Haible  <bruno@clisp.org>
53042
53043         * modules/getpass (Depends-on): Add strdup-posix.
53044
53045         New module 'strdup-posix'.
53046         * modules/strdup-posix: New file.
53047         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53048         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53050         REPLACE_STRDUP.
53051         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53052         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53053         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53054         strdup-posix.
53055
53056         * modules/strdup (Depends-on): Remove malloc-posix.
53057
53058 2008-09-20  Bruno Haible  <bruno@clisp.org>
53059
53060         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53061         Wildenhues.
53062
53063 2008-09-20  Bruno Haible  <bruno@clisp.org>
53064
53065         Ensure that wint_t gets defined on IRIX 5.3.
53066         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53067         * lib/wctype.in.h (wint_t): Likewise.
53068         (__wctype_wint_t): Remove type.
53069         (isw*): Use wint_t instead of __wctype_wint_t.
53070         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53071         * modules/wchar (Files): Add m4/wint_t.m4.
53072         (Makefile.am): Substitute HAVE_WINT_T.
53073         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53074         * tests/test-wctype.c: Check that wint_t is defined.
53075         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53076         * doc/posix-headers/wctype.texi: Likewise.
53077         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53078
53079 2008-09-18  Bruno Haible  <bruno@clisp.org>
53080
53081         * gnulib-tool (func_exit): Update comment.
53082
53083 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53084
53085         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53086         assumes strdup exists and does not depend on strdup to return
53087         ENOMEM on out of memory conditions.
53088
53089 2008-09-18  Bruno Haible  <bruno@clisp.org>
53090
53091         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
53092         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53093         digits for the exponent.
53094
53095 2008-09-18  Jim Meyering  <meyering@redhat.com>
53096             Bruno Haible  <bruno@clisp.org>
53097
53098         * lib/vasnprintf.c (decimal_point_char): Define also if
53099         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53100
53101 2008-09-16  Bruno Haible  <bruno@clisp.org>
53102         and Eric Blake  <ebb9@byu.net>
53103
53104         vasnprintf: support Irix 5.3
53105         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53106         that mishandle long double infinity.
53107         Reported by Tom G. Christensen.
53108
53109 2008-09-16  Bruno Haible  <bruno@clisp.org>
53110
53111         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53112         Solaris 9.
53113         * doc/glibc-functions/alphasort.texi: Likewise.
53114         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53115
53116 2008-09-16  Jim Meyering  <meyering@redhat.com>
53117
53118         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53119         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53120         a umask modification leak out of a subshell.  Otherwise, the
53121         opensolaris /bin/sh would be accepted and thus cause unwarranted
53122         failures in the coreutils test suite.
53123
53124 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53125
53126         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53127         to succeed.
53128
53129 2008-09-16  Jim Meyering  <meyering@redhat.com>
53130
53131         avoid spurious test failure when library is built without ACL support
53132         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53133         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53134         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53135         * tests/test-copy-acl.sh: Likewise.
53136
53137 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53138
53139         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53140         based on character occurrence counts.
53141
53142 2008-09-15  Eric Blake  <ebb9@byu.net>
53143
53144         tests: avoid some compiler warnings
53145         * tests/test-memchr.c (main): Pass NULL indirectly.
53146         * tests/test-closein.c (main): Avoid unused variable.
53147
53148 2008-09-15  Bruno Haible  <bruno@clisp.org>
53149
53150         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
53151         are missing on OpenBSD 4.0 individually.
53152         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53153
53154 2008-09-15  Bruno Haible  <bruno@clisp.org>
53155
53156         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
53157         * doc/posix-functions/strerror.texi: Mention also Cygwin.
53158         * doc/posix-functions/perror.texi: Likewise.
53159         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
53160         is missing.
53161         Reported by Eric Blake.
53162
53163         * lib/errno.in.h: Use replacement values >= 2000.
53164         Reported by Eric Blake.
53165
53166 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53167
53168         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
53169         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
53170         limit.
53171         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
53172         compareseq was aborted.
53173
53174 2008-09-14  Bruno Haible  <bruno@clisp.org>
53175
53176         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
53177         yvec_edit_count.
53178         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
53179         (fstrcmp_bounded): Simplify result computation accordingly.
53180
53181 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53182
53183         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53184         (fstrcmp): Define in terms of fstrcmp_bounded.
53185         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53186         lower_bound argument.
53187         Return quickly if the result is certainly < lower_bound.
53188         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53189
53190 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53191
53192         * lib/diffseq.h (EARLY_ABORT): New macro.
53193         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53194         evaluates to true.
53195
53196 2008-09-14  Bruno Haible  <bruno@clisp.org>
53197
53198         * modules/perror-tests: New file.
53199         * tests/test-perror.sh: New file.
53200         * tests/test-perror.c: New file.
53201
53202         New module 'perror'.
53203         * lib/stdio.in.h (perror): New declaration.
53204         * lib/perror.c: New file.
53205         * m4/perror.m4: New file.
53206         * modules/perror: New file.
53207         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53208         * doc/posix-functions/perror.texi: Mention the perror module.
53209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53210         REPLACE_PERROR.
53211         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53212         REPLACE_PERROR.
53213
53214 2008-09-14  Bruno Haible  <bruno@clisp.org>
53215
53216         * modules/stdio (Makefile.am): Reorder to match the order in
53217         lib/stdio.in.h.
53218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53219
53220 2008-09-13  Bruno Haible  <bruno@clisp.org>
53221
53222         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53223
53224 2008-09-13  Bruno Haible  <bruno@clisp.org>
53225
53226         Extend strerror to cover the added errno values.
53227         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53228         (rpl_strerror): Provide error messages for the added errno values and
53229         for the WSA* values.
53230         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53231         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53232         strerror.
53233         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53234         * modules/strerror (Depends-on): Add errno.
53235         * doc/posix-functions/strerror.texi: Document the change.
53236         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53237         and EOVERFLOW.
53238
53239 2008-09-13  Bruno Haible  <bruno@clisp.org>
53240
53241         * modules/EOVERFLOW: Remove file.
53242         * m4/eoverflow.m4: Remove file.
53243         * modules/EOVERFLOW-tests: Remove file.
53244         * tests/test-EOVERFLOW.c: Remove file.
53245         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
53246         * modules/ftell (Depends-on): Likewise.
53247         * modules/getdelim (Depends-on): Likewise.
53248         * modules/getugroups (Depends-on): Likewise.
53249         * modules/poll (Depends-on): Likewise.
53250         * modules/snprintf (Depends-on): Likewise.
53251         * modules/sprintf-posix (Depends-on): Likewise.
53252         * modules/vasnprintf (Depends-on): Likewise.
53253         * modules/vasprintf (Depends-on): Likewise.
53254         * modules/vfprintf-posix (Depends-on): Likewise.
53255         * modules/vsnprintf (Depends-on): Likewise.
53256         * modules/vsprintf-posix (Depends-on): Likewise.
53257         * modules/xvasprintf (Depends-on): Likewise.
53258         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53259         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53260         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53261         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53262         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53263         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53264         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53265         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53266         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53267         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53268         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53269         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53270         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53271         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53272         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53273         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53274         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53275         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53276         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53277         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53278         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53279         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53280         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53281         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53282         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53283         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53284         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53285         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53286         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53287         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53288         * MODULES.html.sh: Remove EOVERFLOW.
53289         * NEWS: Mention the change.
53290
53291 2008-09-13  Bruno Haible  <bruno@clisp.org>
53292
53293         * modules/errno-tests: New file.
53294         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53295
53296         * lib/errno.in.h: New file.
53297         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53298         * modules/errno: New file.
53299         * doc/posix-headers/errno.texi: Update documentation.
53300         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53301
53302 2008-09-13  Bruno Haible  <bruno@clisp.org>
53303
53304         * tests/test-poll.c: Use #if for native Windows, rather than testing
53305         __MSVCRT__.
53306
53307 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53308             Bruno Haible  <bruno@clisp.org>
53309
53310         * lib/glob.c: Don't include <pwd.h> on native Windows.
53311         (WINDOWS32): New macro.
53312         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53313
53314 2008-09-13  Bruno Haible  <bruno@clisp.org>
53315
53316         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53317         (ETIMEDOUT): Remove macro.
53318         (glthread_cond_timedwait_multithreaded): New declaration.
53319         (glthread_cond_timedwait): Use it.
53320         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53321         (glthread_cond_timedwait_multithreaded): New function.
53322
53323 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53324
53325         * modules/poll-tests: Do not check for io.h.
53326         * tests/test-poll.c: Check for __MSVCRT__ instead.
53327
53328 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53329
53330         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53331         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53332         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53333
53334 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53335
53336         * modules/poll-tests: New.
53337         * tests/test-poll.c: New.
53338
53339 2008-09-12  Eric Blake  <ebb9@byu.net>
53340
53341         frexp: test for NetBSD failure on -0.0
53342         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53343         not all, bugs from NetBSD 3.0 have been fixed.
53344         * doc/posix-functions/frexp.texi (frexp): Document bug.
53345         Reported by Thomas Klausner.
53346
53347         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53348         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53349         literal -0.0.
53350         Reported by Jonathan C. Patschke <jp@centtech.com>.
53351
53352 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53353
53354         * lib/glthread/cond.h: Use dummy implementation also if
53355         USE_WIN32_THREADS.
53356
53357 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53358
53359         * modules/fnmatch-posix (License): Change to LGPLv2+.
53360         * modules/fnmatch-gnu (License): Likewise.
53361
53362 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53363
53364         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53365
53366 2008-09-11  Jim Meyering  <meyering@redhat.com>
53367
53368         * users.txt: Add gtk-vnc.
53369
53370 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53371
53372         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53373         rotate amounts.
53374
53375         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53376         required for 16-bit and 8-bit rotates.
53377         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53378         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53379         UINT8_MAX instead of hard-coded constants.
53380         Suggested by Paul Eggert.
53381
53382 2008-09-07  Bruno Haible  <bruno@clisp.org>
53383
53384         * tests/test-striconveh.c (main): Check behaviour when converting from
53385         UTF-7.
53386
53387         Make striconveh work better with stateful encodings.
53388         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53389         that iconv does not increment the inptr when returning -1/EINVAL.
53390
53391 2008-09-07  Bruno Haible  <bruno@clisp.org>
53392
53393         * build-aux/config.rpath: Update according to libtool-2.2.6.
53394         * build-aux/config.libpath: Likewise.
53395
53396 2008-09-06  Bruno Haible  <bruno@clisp.org>
53397
53398         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53399         * lib/freadptr.c (freadptr): Likewise.
53400         * lib/freadseek.c (freadptrinc): Likewise.
53401         Reported by Simon Josefsson.
53402
53403 2008-09-06  Bruno Haible  <bruno@clisp.org>
53404
53405         * modules/freadptr (License): Change to LGPLv2+.
53406         * modules/freadseek (License): Likewise.
53407         Suggested by Eric Blake.
53408
53409         * modules/memchr2 (License): Change to LGPLv2+.
53410         Approved by Eric Blake.
53411
53412 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53413             Bruno Haible  <bruno@clisp.org>
53414
53415         Make gnulib-tool work with native 'sed' on AIX.
53416         * gnulib-tool (sed_noop): New variable.
53417         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53418         func_add_or_update, func_create_testdir): Use it to initialize sed
53419         script variables.
53420         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53421
53422 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53423             Bruno Haible  <bruno@clisp.org>
53424
53425         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53426         also works after #include directives.
53427
53428 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
53429
53430         getdate.y: reject an out-of-range timezone value
53431         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53432         the range [-24...+24].  When specified with only one or two digits,
53433         * tests/test-getdate.c: Tests for the fix.
53434         * doc/getdate.texi: Document this change.
53435
53436 2008-09-03  Bruno Haible  <bruno@clisp.org>
53437
53438         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53439
53440 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53441
53442         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53443         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53444         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53445         Blake <ebb9@byu.net>.
53446
53447         * tests/test-bitrotate.c: Add more test vectors.
53448
53449 2008-09-02  Eric Blake  <ebb9@byu.net>
53450
53451         vasnprintf-posix: handle large precision via %.*d
53452         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53453         when handling it ourselves.
53454         * tests/test-vasnprintf-posix.c (test_function): Add test.
53455         * tests/test-snprintf-posix.h (test_function): Likewise.
53456         * tests/test-sprintf-posix.h (test_function): Likewise.
53457         * tests/test-vasprintf-posix.c (test_function): Likewise.
53458         Reported by Alain Guibert.
53459
53460 2008-09-01  Eric Blake  <ebb9@byu.net>
53461
53462         c-stack: make configure-time check more robust
53463         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53464         successful sigaction call.
53465         Reported by Tom G. Christensen.
53466
53467 2008-09-01  Bruno Haible  <bruno@clisp.org>
53468
53469         New module 'findprog-lgpl'.
53470         * modules/findprog-lgpl: New file.
53471         * lib/findprog-lgpl.c: New file.
53472         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53473         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53474         to decide whether to use strdup or xstrdup, concatenated_filename or
53475         xconcatenated_filename.
53476
53477 2008-09-01  Bruno Haible  <bruno@clisp.org>
53478
53479         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53480         'xconcat-filename' (GPL).
53481         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53482         (License): Change to LGPLv2+.
53483         * modules/xconcat-filename: New file.
53484         * lib/concat-filename.h (concatenated_filename): Change specification.
53485         (xconcatenated_filename): New declaration.
53486         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53487         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53488         memory situations.
53489         * lib/xconcat-filename.c: New file.
53490         * NEWS: Mention the change.
53491         * lib/findprog.c: Include concat-filename.h, not filename.h.
53492         (find_in_path): Use xconcatenated_filename instead of
53493         concatenated_filename.
53494         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53495         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53496         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53497         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53498         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53499         instead of concatenated_filename.
53500         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53501         (execute_java_class): Use xconcatenated_filename instead of
53502         concatenated_filename.
53503         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53504         * modules/javacomp (Depends-on): Likewise.
53505         * modules/javaexec (Depends-on): Likewise.
53506
53507 2008-09-01  Bruno Haible  <bruno@clisp.org>
53508
53509         Split module 'filename' into 'filename' and 'concat-filename'.
53510         * modules/filename: Keep only lib/filename.h.
53511         (License): Change to LGPLv2+.
53512         * modules/concat-filename: New file, extracted from modules/filename.
53513         * lib/filename.h (concatenated_filename): Remove declaration.
53514         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53515         * lib/concat-filename.c: Include concat-filename.h.
53516         * NEWS: Mention the change.
53517
53518 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53519
53520         * lib/bitrotate.h (rotl8, rotr8): Add.
53521
53522         * modules/bitrotate (configure.ac): Need
53523         AC_REQUIRE([AC_C_INLINE]).
53524         (Description): Mention stdint.h.  Reported by Bruno Haible
53525         <bruno@clisp.org>.
53526
53527         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53528         Paolo Bonzini <bonzini@gnu.org>.
53529
53530 2008-08-31  Bruno Haible  <bruno@clisp.org>
53531
53532         Assume Solaris specific bi-arch conventions on Solaris systems.
53533         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53534         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53535         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53536         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53537         like acl_libdirstem.
53538         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53539         acl_libdirstem.
53540         * NEWS: Mention the change.
53541         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53542
53543 2008-08-31  Jim Meyering  <meyering@redhat.com>
53544
53545         * lib/strftime.h: Add comments describing the two added arguments.
53546
53547         remove duplicate #include directives
53548         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53549         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53550
53551 2008-08-31  Bruno Haible  <bruno@clisp.org>
53552
53553         New module 'sigpipe-die'.
53554         * modules/sigpipe-die: New file.
53555         * lib/sigpipe-die.h: New file.
53556         * lib/sigpipe-die.c: New file.
53557         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53558
53559 2008-08-31  Bruno Haible  <bruno@clisp.org>
53560
53561         Don't override previously installed signal handlers.
53562         * lib/fatal-signal.c (saved_sigactions): New variable.
53563         (uninstall_handlers): Reset the signal to the saved handler, not
53564         to SIG_DFL (except when ignored).
53565         (install_handlers): Save the previous handlers.
53566
53567 2008-08-30  Bruno Haible  <bruno@clisp.org>
53568
53569         * gnulib-tool (func_reset_sigpipe): New function.
53570         (func_get_automake_snippet, func_modules_transitive_closure,
53571         func_import): Invoke it before a join command that reads from stdin,
53572         to avoid "echo: write error: Broken pipe" error messages on stderr.
53573         Reported by Sam Steingold <sds@gnu.org>.
53574
53575 2008-08-30  Bruno Haible  <bruno@clisp.org>
53576
53577         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53578         Code copied from m4/open.m4.
53579         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53580         access and the filename ends in a slash. Code copied from lib/open.c.
53581         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53582         * tests/test-fopen.c (main): Check against bug with trailing slash.
53583
53584 2008-08-29  Bruno Haible  <bruno@clisp.org>
53585
53586         Avoid some "gcc -pedantic" warnings.
53587         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53588         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53589         * lib/dirent.in.h: Likewise.
53590         * lib/fcntl.in.h: Likewise.
53591         * lib/float.in.h: Likewise.
53592         * lib/iconv.in.h: Likewise.
53593         * lib/inttypes.in.h: Likewise.
53594         * lib/locale.in.h: Likewise.
53595         * lib/math.in.h: Likewise.
53596         * lib/netinet_in.in.h: Likewise.
53597         * lib/search.in.h: Likewise.
53598         * lib/signal.in.h: Likewise.
53599         * lib/stdarg.in.h: Likewise.
53600         * lib/stdint.in.h: Likewise.
53601         * lib/stdio.in.h: Likewise.
53602         * lib/stdlib.in.h: Likewise.
53603         * lib/string.in.h: Likewise.
53604         * lib/strings.in.h: Likewise.
53605         * lib/sys_select.in.h: Likewise.
53606         * lib/sys_socket.in.h: Likewise.
53607         * lib/sys_stat.in.h: Likewise.
53608         * lib/sys_time.in.h: Likewise.
53609         * lib/sysexits.in.h: Likewise.
53610         * lib/time.in.h: Likewise.
53611         * lib/unistd.in.h: Likewise.
53612         * lib/wchar.in.h: Likewise.
53613         * lib/wctype.in.h: Likewise.
53614         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53615         * modules/fchdir (Makefile.am): Likewise.
53616         * modules/fcntl (Makefile.am): Likewise.
53617         * modules/float (Makefile.am): Likewise.
53618         * modules/iconv_open (Makefile.am): Likewise.
53619         * modules/inttypes (Makefile.am): Likewise.
53620         * modules/locale (Makefile.am): Likewise.
53621         * modules/math (Makefile.am): Likewise.
53622         * modules/netinet_in (Makefile.am): Likewise.
53623         * modules/search (Makefile.am): Likewise.
53624         * modules/signal (Makefile.am): Likewise.
53625         * modules/stdarg (Makefile.am): Likewise.
53626         * modules/stdint (Makefile.am): Likewise.
53627         * modules/stdio (Makefile.am): Likewise.
53628         * modules/stdlib (Makefile.am): Likewise.
53629         * modules/string (Makefile.am): Likewise.
53630         * modules/strings (Makefile.am): Likewise.
53631         * modules/sys_select (Makefile.am): Likewise.
53632         * modules/sys_socket (Makefile.am): Likewise.
53633         * modules/sys_stat (Makefile.am): Likewise.
53634         * modules/sys_time (Makefile.am): Likewise.
53635         * modules/sysexits (Makefile.am): Likewise.
53636         * modules/time (Makefile.am): Likewise.
53637         * modules/unistd (Makefile.am): Likewise.
53638         * modules/wchar (Makefile.am): Likewise.
53639         * modules/wctype (Makefile.am): Likewise.
53640         Reported by Reuben Thomas <rrt@sc3d.org>.
53641
53642 2008-08-29  Bruno Haible  <bruno@clisp.org>
53643
53644         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53645         any more.
53646
53647 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53648
53649         * MODULES.html.sh (Misc): Add bitrotate.
53650
53651         * modules/bitrotate: New file.
53652
53653         * lib/bitrotate.h: New file.
53654
53655         * modules/bitrotate-tests: New file.
53656
53657         * tests/test-bitrotate.c: New file.
53658
53659         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53660         on the bitrotate module.
53661
53662         * lib/arctwo.c: Use new bitrotate module.
53663
53664 2008-08-29  Jim Meyering  <meyering@redhat.com>
53665
53666         bootstrap: merge changes from coreutils
53667         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53668         of copied files.  Remove a kludge, now that this is fixed.
53669         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53670         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53671         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53672
53673 2008-08-29  Bruno Haible  <bruno@clisp.org>
53674
53675         * MODULES.html.sh: Remove --cvs-urls option.
53676
53677 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53678
53679         maint.mk: adjust to file name change
53680         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53681
53682 2008-08-28  Jim Meyering  <meyering@redhat.com>
53683
53684         * modules/getndelim2 (License): Relicense to LGPLv2+.
53685         Approved by Richard Stallman for the version of 1995, and by
53686         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53687
53688 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53689
53690         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53691         dummy if one is not available.  Do not touch them if
53692         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53693         (getc_maybe_unlocked): New.
53694         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53695
53696 2008-08-26  Eric Blake  <ebb9@byu.net>
53697
53698         doc/INSTALL: resync from autoconf
53699         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53700         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53701         moving...
53702         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53703         * INSTALL: Regenerate.
53704         * INSTALL.ISO: New file.
53705         * INSTALL.UTF-8: Likewise.
53706
53707 2008-08-26  Jim Meyering  <meyering@redhat.com>
53708
53709         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53710         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53711         these definitions conditional, so that they may be overridden, too.
53712
53713 2008-08-26  Bruno Haible  <bruno@clisp.org>
53714
53715         Generate INSTALL file variants with prettier quotes.
53716         * doc/Makefile (INSTALL_PRELUDE): New macro.
53717         (INSTALL): Use it.
53718         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53719
53720 2008-08-26  Bruno Haible  <bruno@clisp.org>
53721
53722         Run makeinfo in an English locale.
53723         * doc/Makefile (MAKEINFO): New variable.
53724
53725 2008-08-26  Bruno Haible  <bruno@clisp.org>
53726
53727         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53728         Suggested by Eric Blake.
53729
53730 2008-08-25  Bruno Haible  <bruno@clisp.org>
53731
53732         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53733
53734 2008-08-25  Eric Blake  <ebb9@byu.net>
53735
53736         c-stack: test that stack overflow can be caught
53737         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53738         that platform allows handling stack overflow; at least OS/2 EMX
53739         has sigaltstack, but crashes before transferring control to
53740         handler on stack overflow.
53741         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53742         check for HAVE_STACK_OVERFLOW_HANDLING.
53743         Reported by Elbert Pol.
53744
53745 2008-08-25  Bruno Haible  <bruno@clisp.org>
53746
53747         * doc/posix-functions/strftime.texi: Fix description of strftime
53748         module.
53749
53750 2008-08-24  Bruno Haible  <bruno@clisp.org>
53751
53752         * tests/uniwidth/test-uc_width2.c: New file.
53753         * tests/uniwidth/test-uc_width2.sh: New file.
53754         * modules/uniwidth/width-tests (Files): Add the new files.
53755         (TESTS): Add uniwidth/test-uc_width2.sh.
53756         (TESTS_ENVIRONMENT): New variable.
53757         (check_PROGRAMS): Add test-uc_width2.
53758         (test_uc_width2_SOURCES): New variable.
53759
53760         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53761         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53762         not 0x00AB.
53763         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53764
53765 2008-08-22  Eric Blake  <ebb9@byu.net>
53766
53767         test-lock, test-tls: mention why a test is skipped
53768         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53769         skipped.
53770         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53771
53772         count-one-bits: relax license
53773         * modules/count-one-bits (License): Relicense to LGPLv2+.
53774         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53775
53776 2008-08-22  Andreas Schwab  <schwab@suse.de>
53777
53778         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53779         Remove spurious space in assignment.
53780
53781 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53782
53783         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53784         Paul Eggert <eggert@CS.UCLA.EDU>.
53785
53786 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53787
53788         * modules/gettext: Add m4/threadlib.m4.
53789
53790 2008-08-19  Eric Blake  <ebb9@byu.net>
53791
53792         test-c-stack: fix compilation failure on FreeBSD 5.0
53793         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53794         headers before <sys/resource.h>.
53795         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53796         the bug.
53797         Reported by Nelson H. F. Beebe.
53798
53799         strverscmp: migrate from "strverscmp.h" to <string.h>
53800         * modules/string (Makefile.am): Add new hooks.
53801         * modules/strverscmp (Files): Remove strverscmp.h.
53802         (Depends-on): Add string.
53803         (configure.ac): Add indicator.
53804         (Include): Mention new header.
53805         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53806         defaults.
53807         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53808         results.
53809         * lib/strverscmp.h: Delete.
53810         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53811         * tests/test-strverscmp.c (includes): Adjust client.
53812         * lib/check-version.c (includes): Likewise.
53813         * NEWS: Document the change.
53814
53815         strverscmp: add unit test
53816         * modules/strverscmp-tests: New file.
53817         * tests/test-strverscmp.c: Likewise.
53818
53819 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53820
53821         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53822         regarding Windows crypto stuff, from Mono.
53823
53824 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53825
53826         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53827         if present, for intel RND.  Return error on failures.
53828
53829 2008-08-18  Ben Pfaff  <blp@gnu.org>
53830
53831         gitlog-to-changelog: give better diagnostic for failed pipe-open
53832         * build-aux/gitlog-to-changelog: Improve error message: suggest
53833         that the version of Git may be too old.
53834
53835 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53836
53837         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53838         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53839
53840 2008-08-18  Bruno Haible  <bruno@clisp.org>
53841
53842         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53843         pthread_in_use().
53844
53845 2008-08-18  Bruno Haible  <bruno@clisp.org>
53846
53847         * lib/glthread/threadlib.c: Include <pthread.h>.
53848
53849 2008-08-18  Bruno Haible  <bruno@clisp.org>
53850
53851         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53852         glthread_recursive_lock_* macros.
53853         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53854         Fix syntax error.
53855
53856 2008-08-18  Bruno Haible  <bruno@clisp.org>
53857
53858         * lib/glthread/thread.c: Avoid forcing a context switch right after
53859         thread creation.
53860
53861 2008-08-17  Bruno Haible  <bruno@clisp.org>
53862
53863         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53864         * lib/glthread/thread.h: Provide Win32 specific implementation.
53865         * modules/thread (Files): Add lib/glthread/thread.c.
53866         (Depends-on): Add lock.
53867         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53868
53869 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53870
53871         New module 'yield'.
53872         * modules/yield: New file.
53873         * lib/glthread/yield.h: New file.
53874         * m4/yield.m4: New file.
53875         * MODULES.html.sh (Multithreading): Add yield.
53876
53877 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53878
53879         New module 'thread'.
53880         * modules/thread: New file.
53881         * lib/glthread/thread.h: New file.
53882         * m4/thread.m4: New file.
53883         * MODULES.html.sh (Multithreading): Add thread.
53884
53885 2008-08-17  Bruno Haible  <bruno@clisp.org>
53886
53887         * lib/glthread/lock.h: Include <stdlib.h> always.
53888         * lib/glthread/tls.h: Likewise.
53889         * lib/glthread/cond.h: Likewise.
53890
53891 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53892
53893         New module 'cond'.
53894         * modules/cond: New file.
53895         * lib/glthread/cond.h: New file.
53896         * lib/glthread/cond.c: New file.
53897         * m4/cond.m4: New file.
53898         * MODULES.html.sh (Multithreading): Add cond.
53899
53900 2008-08-16  Eric Blake  <ebb9@byu.net>
53901
53902         c-stack: fix regression on Irix 5.3 from 2008-06-21
53903         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53904         sa_sigaction...
53905         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53906         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53907         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53908         * modules/signal (Makefile.am): Use the value.
53909         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53910         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53911         * doc/posix-headers/signal.texi (signal.h): Document this
53912         portability issue.
53913         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53914         Reported by Tom G. Christensen.
53915
53916 2008-08-17  Bruno Haible  <bruno@clisp.org>
53917
53918         New module 'threadlib'.
53919         * modules/threadlib: New file.
53920         * lib/glthread/threadlib.c: New file, extracted from
53921         lib/glthread/lock.c.
53922         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53923         functions.
53924         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53925         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53926         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53927         macros.
53928         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53929         (gl_DISABLE_THREADS): Remove macro.
53930         * modules/lock (Files): Remove build-aux/config.rpath.
53931         (Depends-on): Remove havelib. Add threadlib.
53932         (configure.ac-early): Remove section.
53933         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53934         * modules/tls (Depends-on): Remove lock. Add threadlib.
53935         (Link): New section, copied from threadlib.
53936         * MODULES.html.sh (Multithreading): Add threadlib.
53937
53938 2008-08-14  Bruno Haible  <bruno@clisp.org>
53939
53940         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53941         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53942         glthread_rwlock_unlock, glthread_rwlock_destroy,
53943         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53944         glthread_recursive_lock_destroy): Define as macros always.
53945         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53946         glthread_lock_lock.
53947         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53948         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53949         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53950         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53951         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53952         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53953         (glthread_recursive_lock_lock_func): Renamed from
53954         glthread_recursive_lock_lock.
53955         (glthread_recursive_lock_unlock_func): Renamed from
53956         glthread_recursive_lock_unlock.
53957         (glthread_recursive_lock_destroy_func): Renamed from
53958         glthread_recursive_lock_destroy.
53959
53960 2008-08-14  Bruno Haible  <bruno@clisp.org>
53961
53962         * lib/glthread/lock.h: Renamed from lib/lock.h.
53963         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53964         * lib/glthread/tls.h: Renamed from lib/tls.h.
53965         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53966         * lib/fstrcmp.c: Update includes.
53967         * lib/strsignal.c: Update includes.
53968         * modules/lock (Files, Makefile.am): Update.
53969         (Include): Change to "glthread/lock.h".
53970         * modules/tls (Files, Makefile.am): Update.
53971         (Include): Change to "glthread/tls.h".
53972         * tests/test-lock.c: Update includes.
53973         * tests/test-tls.c: Update includes.
53974         * NEWS: Mention the renamed header files.
53975
53976 2008-08-11  Jim Meyering  <meyering@redhat.com>
53977
53978         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53979
53980 2008-08-11  Eric Blake  <ebb9@byu.net>
53981
53982         test-c-stack: avoid C99-ism
53983         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53984         before statement.
53985         Reported by Alain Guibert.
53986
53987 2008-08-10  Jim Meyering  <meyering@redhat.com>
53988
53989         ensure that return value of uinttostr et al are not ignored
53990         * lib/inttostr.h (__GNUC_PREREQ): Define.
53991         (__attribute_warn_unused_result__): Define.
53992         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53993
53994 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53995
53996         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53997         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53998
53999 2008-08-07  Jim Meyering  <meyering@redhat.com>
54000
54001         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
54002
54003         * modules/mkstemp (License): Relicense under LGPLv2+.
54004         * modules/tempname (License): Likewise.
54005
54006 2008-08-06  Bruno Haible  <bruno@clisp.org>
54007
54008         * lib/poll.c (poll): Further micro-optimization.
54009
54010 2008-08-06  Jim Meyering  <meyering@redhat.com>
54011
54012         inet_pton.c: use locale-independent tolower
54013         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54014         (inet_pton6): Use c_tolower rather than tolower.
54015         * modules/inet_pton (Depends-on): Add c-ctype.
54016
54017 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54018
54019         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54020         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54021
54022 2008-08-06  Jim Meyering  <meyering@redhat.com>
54023
54024         * modules/inet_pton (License): Relicense under LGPLv2+.
54025
54026 2008-08-03  Bruno Haible  <bruno@clisp.org>
54027
54028         Additional non-aborting API for lock and tls.
54029         * lib/lock.h: Include <errno.h>.
54030         (glthread_lock_init): New macro/function.
54031         (gl_lock_init): Define as wrapper around glthread_lock_init.
54032         (glthread_lock_lock): New macro/function.
54033         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54034         (glthread_lock_unlock): New macro/function.
54035         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54036         (glthread_lock_destroy): New macro/function.
54037         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54038         (glthread_rwlock_init): New macro/function.
54039         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54040         (glthread_rwlock_rdlock): New macro/function.
54041         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54042         (glthread_rwlock_wrlock): New macro/function.
54043         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54044         (glthread_rwlock_unlock): New macro/function.
54045         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54046         (glthread_rwlock_destroy): New macro/function.
54047         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54048         (glthread_recursive_lock_init): New macro/function.
54049         (gl_recursive_lock_init): Define as wrapper around
54050         glthread_recursive_lock_init.
54051         (glthread_recursive_lock_lock): New macro/function.
54052         (gl_recursive_lock_lock): Define as wrapper around
54053         glthread_recursive_lock_lock.
54054         (glthread_recursive_lock_unlock): New macro/function.
54055         (gl_recursive_lock_unlock): Define as wrapper around
54056         glthread_recursive_lock_unlock.
54057         (glthread_recursive_lock_destroy): New macro/function.
54058         (gl_recursive_lock_destroy): Define as wrapper around
54059         glthread_recursive_lock_destroy.
54060         (glthread_once): New macro/function.
54061         (gl_once): Define as wrapper around glthread_once.
54062         Update function declarations.
54063         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54064         glthread_rwlock_init. Return error code.
54065         (glthread_rwlock_rdlock_multithreaded): Renamed from
54066         glthread_rwlock_rdlock. Return error code.
54067         (glthread_rwlock_wrlock_multithreaded): Renamed from
54068         glthread_rwlock_wrlock. Return error code.
54069         (glthread_rwlock_unlock_multithreaded): Renamed from
54070         glthread_rwlock_unlock. Return error code.
54071         (glthread_rwlock_destroy_multithreaded): Renamed from
54072         glthread_rwlock_destroy. Return error code.
54073         (glthread_recursive_lock_init_multithreaded): Renamed from
54074         glthread_recursive_lock_init. Return error code.
54075         (glthread_recursive_lock_lock_multithreaded): Renamed from
54076         glthread_recursive_lock_lock. Return error code.
54077         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54078         glthread_recursive_lock_unlock. Return error code.
54079         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54080         glthread_recursive_lock_destroy. Return error code.
54081         (glthread_once_call): Make static.
54082         (glthread_once_multithreaded): Renamed from glthread_once.
54083         * lib/tls.h: Include <errno.h>.
54084         (glthread_tls_key_init): New macro/function.
54085         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54086         (glthread_tls_set): New macro/function.
54087         (gl_tls_set): Define as wrapper around glthread_tls_set.
54088         (glthread_tls_key_destroy): New macro/function.
54089         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54090         Update function declarations.
54091         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54092         glthread_tls_get.
54093         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54094
54095 2008-08-04  Eric Blake  <ebb9@byu.net>
54096
54097         gnumakefile: use space, not TAB, outside of targets
54098         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54099
54100 2008-08-02  Jim Meyering  <meyering@redhat.com>
54101
54102         getdate.y: avoid locale-dependent date parsing failure
54103         In Turkish locales, getdate would fail to recognize keywords
54104         containing a lowercase "i".  The solution is not to rely on
54105         locale-sensitive case-conversion.
54106         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54107         (lookup_word): Use c_toupper in place of toupper.
54108         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54109         Reported by Vefa Bicakci <bicave@superonline.com> in
54110         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54111         * modules/getdate (Depends-on): Add c-ctype.
54112
54113 2008-08-02  Bruno Haible  <bruno@clisp.org>
54114
54115         * gnulib-tool (func_import): When updating or creating a .gitignore
54116         file, prepend each added line with a slash, and ignore leading slashes
54117         from the existing lines.
54118         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54119
54120 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54121
54122         Portability fix for GNU make 3.79.1.
54123         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54124         versions do not understand.
54125
54126 2008-08-01  Bruno Haible  <bruno@clisp.org>
54127
54128         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54129         * tests/test-isnanf.h (zero): New variable.
54130         (main): Avoid literal -0.0f.
54131         * tests/test-isnand.h (zero): New variable.
54132         (main): Avoid literal -0.0.
54133         * tests/test-isnanl.h (zero): New variable.
54134         (main): Avoid literal -0.0L.
54135         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54136         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54137         -0.0, -0.0L.
54138         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54139         (test_signbitd): Avoid literal -0.0.
54140         (test_signbitl): Avoid literal -0.0L.
54141         * tests/test-ceilf1.c (zero): New variable.
54142         (main): Avoid literal -0.0f.
54143         * tests/test-ceill.c (zero): New variable.
54144         (main): Avoid literal -0.0L.
54145         * tests/test-floorf1.c (zero): New variable.
54146         (main): Avoid literal -0.0f.
54147         * tests/test-floorl.c (zero): New variable.
54148         (main): Avoid literal -0.0L.
54149         * tests/test-roundf1.c (zero): New variable.
54150         (main): Avoid literal -0.0f.
54151         * tests/test-round1.c (zero): New variable.
54152         (main): Avoid literal -0.0.
54153         * tests/test-roundl.c (zero): New variable.
54154         (main): Avoid literal -0.0L.
54155         * tests/test-truncf1.c (zero): New variable.
54156         (main): Avoid literal -0.0f.
54157         * tests/test-trunc1.c (zero): New variable.
54158         (main): Avoid literal -0.0.
54159         * tests/test-truncl.c (zero): New variable.
54160         (main): Avoid literal -0.0L.
54161         * tests/test-frexp.c (zero): New variable.
54162         (main): Avoid literal -0.0.
54163         * tests/test-frexpl.c (zero): New variable.
54164         (main): Avoid literal -0.0L.
54165         * tests/test-ldexpl.c (zero): New variable.
54166         (main): Avoid literal -0.0L.
54167         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54168         (zerod, zerol): New variables.
54169         (test_function): Avoid literals -0.0, -0.0L.
54170         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54171         (zerod, zerol): New variables.
54172         (test_function): Avoid literals -0.0, -0.0L.
54173         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54174         (zerod, zerol): New variables.
54175         (test_function): Avoid literals -0.0, -0.0L.
54176         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54177         (zerod, zerol): New variables.
54178         (test_function): Avoid literals -0.0, -0.0L.
54179         * tests/test-strtod.c (zero): New variable.
54180         (main): Avoid literal -0.0.
54181         Reported by Jonathan C. Patschke <jp@centtech.com>.
54182
54183 2008-07-31  Jim Meyering  <meyering@redhat.com>
54184
54185         sha256.h: correct definition of SHA224_DIGEST_SIZE
54186         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54187         Reported by Paulie Pena IV <paulie4@gmail.com>.
54188         Define as 224 / 8, rather than as a literal.
54189         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54190         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54191         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54192
54193 2008-07-31  Bruno Haible  <bruno@clisp.org>
54194
54195         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54196         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54197         Reported by Jonathan Patschke <jp@centtech.com>.
54198
54199 2008-07-31  Bruno Haible  <bruno@clisp.org>
54200
54201         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54202         Reported by Paolo Bonzini <bonzini@gnu.org>.
54203
54204 2008-07-30  Eric Blake  <ebb9@byu.net>
54205
54206         test-strtod: allow compilation without -lm
54207         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54208         Reported by Dennis Clarke <blastwave@gmail.com>.
54209
54210 2008-07-28  Jim Meyering  <meyering@redhat.com>
54211
54212         bootstrap: work also when there are no .po files in po/
54213         * build-aux/bootstrap (update_po_files): Complete the change
54214         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54215
54216 2008-07-27  Jim Meyering  <meyering@redhat.com>
54217
54218         * users.txt: Add zile.
54219
54220 2008-07-26  Ben Pfaff  <blp@gnu.org>
54221
54222         Add missing dependencies on new m4/exponent[fdl].m4 files.
54223         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54224         * modules/isnand-nolibm: Add m4/exponentd.m4.
54225         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54226         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54227         m4/isnan[fdl].m4, because the macros actually used moved.
54228         Reported by Jim Meyering.
54229
54230 2008-07-14  Ben Pfaff  <blp@gnu.org>
54231
54232         Add isinf module.
54233         * lib/isinf.c: New file.
54234         * lib/math.in.h: Define isinf macro if we have decided to replace
54235         it.
54236         * m4/isinf.m4: New file.
54237         * m4/math_h.m4: Initialize and substitute variables for isinf
54238         module.
54239         * modules/isinf: New file.
54240         * modules/isinf-tests: New file.
54241         * modules/math: Add substitutions for new module.
54242         * tests/test-isinf.c: New file.
54243         * doc/posix-functions/isinf.texi: Mention new module.
54244         * MODULES.html.sh: Mention new module.
54245
54246 2008-07-14  Ben Pfaff  <blp@gnu.org>
54247
54248         Factor out some macros for use by additional modules.
54249         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
54250         exponentf.m4.
54251         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
54252         exponentd.m4.
54253         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54254         file exponentl.m4.
54255         * m4/exponentf.m4: New file.
54256         * m4/exponentd.m4: New file.
54257         * m4/exponentl.m4: New file.
54258         * modules/isnanf: Use new file m4/exponentf.m4.
54259         * modules/isnand: Use new file m4/exponentd.m4.
54260         * modules/isnanl: Use new file m4/exponentl.m4.
54261
54262 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54263
54264         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54265         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54266         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54267         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54268
54269         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54270         readlink on platforms without PATH_MAX.
54271
54272 2008-07-21  Eric Blake  <ebb9@byu.net>
54273
54274         Warn, not fail, on stale version.
54275         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54276
54277         Don't allow installation with stale devel version number.
54278         * top/GNUmakefile (_is-install-target): New macro.
54279         (_curr-ver): Forbid installation with stale version number.
54280
54281 2008-07-20  Bruno Haible  <bruno@clisp.org>
54282
54283         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54284         TESTS_ENVIRONMENT.
54285         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54286
54287 2008-07-20  Bruno Haible  <bruno@clisp.org>
54288
54289         * lib/c-stack.h (c_stack_action): Add documentation.
54290         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54291
54292 2008-07-20  Bruno Haible  <bruno@clisp.org>
54293
54294         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54295         * modules/readlink (License): Likewise.
54296
54297 2008-07-17  Eric Blake  <ebb9@byu.net>
54298
54299         * modules/c-stack (Link): Fix typo.
54300
54301         Make c-stack use libsigsegv, when available.
54302         * modules/c-stack (Depends-on): Add libsigsegv.
54303         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54304         needed.
54305         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54306         (segv_handler, overflow_handler, c_stack_action)
54307         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54308         implementation when libsigsegv is available, but only when using
54309         the library is necessary.
54310         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54311         comment, explaining why XSI check fails on Linux.
54312         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54313         * tests/test-c-stack2.sh: Tweak skip message.
54314         * NEWS: Document new link-time requirements.
54315
54316 2008-07-16  Eric Blake  <ebb9@byu.net>
54317
54318         c-stack: Expose false positives when not using libsigsegv.
54319         * modules/c-stack-tests (Files): Expand test.
54320         * tests/test-c-stack.c (main): Add means to conditionally trigger
54321         non-overflow SIGSEGV.
54322         * tests/test-c-stack2.sh: New file.
54323
54324 2008-07-14  Bruno Haible  <bruno@clisp.org>
54325
54326         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54327         Reported by Eric Blake.
54328
54329 2008-07-14  Sam Steingold  <sds@gnu.org>
54330             Bruno Haible  <bruno@clisp.org>
54331
54332         New module libsigsegv.
54333         * modules/libsigsegv: New file.
54334         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54335         modifications.
54336         * MODULES.html.sh (Signal handling): New section.
54337
54338 2008-07-14  Bruno Haible  <bruno@clisp.org>
54339
54340         * modules/unictype/ctype-* (Description): Add the word "function".
54341         Improves the resulting doc in MODULES.html.
54342
54343 2008-07-12  Ben Pfaff  <blp@gnu.org>
54344
54345         Add longlong module.
54346         * modules/longlong: New file.
54347
54348 2008-07-12  Bruno Haible  <bruno@clisp.org>
54349
54350         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54351         to empty.
54352
54353 2008-07-10  Ben Pfaff  <blp@gnu.org>
54354
54355         Add isnan module.
54356         * doc/posix-functions/isnan.texi: Mention new module.
54357         * lib/math.in.h: Define isnan macro if we have decided to replace
54358         it.
54359         * m4/isnan.m4: New file.
54360         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54361         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54362         also.
54363         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54364         redundancy.
54365         * m4/math_h.m4: Initialize and substitute variables for isnan
54366         module.
54367         * modules/isnan: New file.
54368         * modules/isnan-tests: New file.
54369         * modules/math: Add substitutions for new module.
54370         * tests/test-isnan.c: New file.
54371         * MODULES.html.sh: Mention new module.
54372
54373 2008-07-10  Ben Pfaff  <blp@gnu.org>
54374
54375         Add isnanf module.
54376         * lib/isnanf.m4: New file.
54377         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54378         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54379         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54380         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54381         * modules/isnanf: New file.
54382         * modules/isnanf-tests: New file.
54383         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54384         files.
54385         * tests/test-isnanf-nolibm.c: factored most of its contents into
54386         new file tests/test-isnanf.h.
54387         * tests/test-isnanf.h: New file.
54388         * tests/test-isnanf.c: New file.
54389         * MODULES.html.sh: Mention new module.
54390         * doc/glibc-functions/isnanf.texi: Mention new module.
54391
54392 2008-07-10  Ben Pfaff  <blp@gnu.org>
54393
54394         Add isnand module.
54395         * lib/isnand.h: New file.
54396         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54397         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54398         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54399         functionality also.
54400         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54401         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54402         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54403         * modules/isnand: New file.
54404         * modules/isnand-tests: New file.
54405         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54406         files.
54407         * tests/test-isnand-nolibm.c: factored most of its contents into
54408         new file tests/test-isnand.h.
54409         * tests/test-isnand.h: New file.
54410         * tests/test-isnand.c: New file.
54411         * MODULES.html.sh: Mention new module.
54412
54413 2008-07-10  Ben Pfaff  <blp@gnu.org>
54414
54415         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54416         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54417         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54418         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54419         * modules/isnanf-nolibm: Update references to renamed files.
54420         * modules/isnand-nolibm: Likewise.
54421         * modules/isnanf-nolibm-tests: Likewise.
54422         * modules/isnand-nolibm-tests: Likewise.
54423         * lib/frexp.c: Likewise.
54424         * lib/isfinite.c: Likewise.
54425         * lib/signbitd.c: Likewise.
54426         * lib/signbitf.c: Likewise.
54427         * lib/vasnprintf.c: Likewise.
54428         * tests/test-ceilf1.c: Likewise.
54429         * tests/test-ceilf2.c: Likewise.
54430         * tests/test-floorf1.c: Likewise.
54431         * tests/test-floorf2.c: Likewise.
54432         * tests/test-frexp.c: Likewise.
54433         * tests/test-round1.c: Likewise.
54434         * tests/test-round2.c: Likewise.
54435         * tests/test-roundf1.c: Likewise.
54436         * tests/test-strtod.c: Likewise.
54437         * tests/test-trunc1.c: Likewise.
54438         * tests/test-trunc2.c: Likewise.
54439         * tests/test-truncf1.c: Likewise.
54440         * tests/test-truncf2.c: Likewise.
54441         * NEWS: Mention the renamed header files.
54442
54443 2008-07-11  Jim Meyering  <meyering@redhat.com>
54444
54445         vc-list-files: make the last-resort awk code more portable
54446         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54447         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54448         does not support it.
54449
54450 2008-07-10  Eric Blake  <ebb9@byu.net>
54451
54452         Work with tar's bootstrap.
54453         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54454         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54455         an m4 comment.
54456
54457 2008-07-09  Jim Meyering  <meyering@redhat.com>
54458
54459         posix-shell.m4: fix typo that made this test malfunction
54460         * m4/posix-shell.m4: Remove capitalization in variable name.
54461
54462 2008-07-08  Bruno Haible  <bruno@clisp.org>
54463
54464         * m4/onceonly.m4: Update comments.
54465         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54466
54467 2008-07-04  Jim Meyering  <meyering@redhat.com>
54468
54469         * users.txt: Add vc-dwim.
54470         (bison, coreutils): Use the gitweb URL.
54471
54472 2008-07-03  Jim Meyering  <meyering@redhat.com>
54473
54474         * users.txt: Add libffcall.  From Sam Steingold.
54475
54476 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
54477
54478         getdate.y: do not ignore TZ with relative day, month or year offset
54479         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54480         relative-date-handling, since otherwise, the latter would clobber the
54481         sole output (an updated Start value) of the tz-handling block.
54482         * tests/test-getdate.c: Tests for the fix
54483
54484 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54485
54486         Recognize 'foo_LIBRARIES += libgnu.a'.
54487         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54488         makefile snippet has already specified an installation location,
54489         also using '+='.
54490
54491 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
54492
54493         getdate.y: factor out common actions
54494         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54495         Use them in place of open-coded actions.
54496
54497 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54498
54499         Add self-test for getdate module.
54500         * modules/getdate-tests: New file.
54501         * tests/test-getdate.c: New file.
54502
54503 2008-06-29  Bruno Haible  <bruno@clisp.org>
54504
54505         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54506         .gitignore.
54507         Reported by Sylvain Beucler <beuc@beuc.net>.
54508
54509 2008-06-29  Bruno Haible  <bruno@clisp.org>
54510
54511         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54512         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54513
54514 2008-06-29  Bruno Haible  <bruno@clisp.org>
54515
54516         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54517         EXTRA_DIST.
54518         Reported by Sylvain Beucler <beuc@beuc.net>.
54519
54520 2008-06-26  Jim Meyering  <meyering@redhat.com>
54521
54522         make several modules depend on the "open" module
54523         This provides slightly increased consistency when opening-for-write
54524         the name of a non-directory spelled with a trailing slash.
54525         * modules/chdir-safer: Likewise.
54526         * modules/chown: Likewise.
54527         * modules/clean-temp: Likewise.
54528         * modules/copy-file: Likewise.
54529         * modules/fchdir: Likewise.
54530         * modules/fcntl-safer: Likewise.
54531         * modules/pipe: Likewise.
54532         * modules/utime: Likewise.
54533         Prompted by Eric Blake and Bruno Haible.
54534
54535 2008-06-24  Andreas Schwab  <schwab@suse.de>
54536
54537         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54538         literals can be used as initializers for global variables.
54539
54540 2008-06-23  Eric Blake  <ebb9@byu.net>
54541
54542         Make gnulib-cache.m4 easier to diff.
54543         * gnulib-tool (func_import): Allow newlines when reading cached
54544         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54545
54546 2008-06-23  Bruno Haible  <bruno@clisp.org>
54547
54548         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54549         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54550         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54551         m4/signalblocking.m4.
54552         (gl_PREREQ_SIGACTION): Don't invoke it.
54553         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54554         gl_PREREQ_SIG_HANDLER_H.
54555         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54556         Don't check for sigaction here.
54557
54558 2008-06-23  Bruno Haible  <bruno@clisp.org>
54559
54560         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54561         (install_handlers): Don't set the SA_RESETHAND flag.
54562
54563 2008-06-23  Bruno Haible  <bruno@clisp.org>
54564
54565         * m4/sigaction.m4: Comment fixes.
54566         * lib/signal.in.h: Likewise.
54567
54568 2008-06-23  Eric Blake  <ebb9@byu.net>
54569
54570         Fix typo.
54571         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54572
54573         Avoid SA_ namespace.
54574         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54575         Reported by Ralf Wildenhues.
54576
54577         Avoid test failure due to SA_RESTORER.
54578         * tests/test-sigaction.c (SA_MASK): New macro.
54579         (main): Avoid failing due to extension flags being set.
54580         Reported by Jim Meyering.
54581
54582         Revert use of sig-handler.h in sigprocmask.c.
54583         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54584         it requires the existence of struct sigaction.
54585         * lib/sigprocmask.c (handler_t): Restore typedef.
54586         (rpl_signal, old_handlers): Use local type.
54587
54588 2008-06-22  Bruno Haible  <bruno@clisp.org>
54589
54590         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54591         conditionally.
54592         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54593
54594 2008-06-22  Bruno Haible  <bruno@clisp.org>
54595
54596         * doc/posix-functions/siginterrupt.texi: Move note.
54597
54598         * lib/signal.in.h (SA_RESTART): New macro.
54599         * lib/sigaction.c: Update comment.
54600
54601         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54602
54603         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54604         (gl_PREREQ_SIGPROCMASK): Invoke it.
54605         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54606
54607         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54608
54609         * lib/sigprocmask.c: Update a comment.
54610
54611 2008-06-21  Eric Blake  <ebb9@byu.net>
54612
54613         Use sigaction module rather than signal().
54614         * modules/c-stack (Depends-on): Add sigaction.
54615         * modules/fatal-signal (Depends-on): Likewise.
54616         * modules/nanosleep (Depends-on): Likewise.
54617         * modules/sigprocmask (Files): Add sig-handler.h.
54618         * modules/sigaction (Files): Likewise.
54619         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54620         Eggert.
54621         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54622         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54623         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54624         (init_fatal_signals): Likewise.
54625         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54626         (siginterrupt): Delete fallback.
54627         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54628         instead.
54629         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54630         siginterrupt.
54631
54632         New module sigaction, for mingw.
54633         * modules/sigaction: New module...
54634         * modules/sigaction-tests: ...and its test.
54635         * m4/sigaction.m4: New file.
54636         * lib/sigaction.c: Likewise.
54637         * tests/test-sigaction.c: Likewise.
54638         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54639         * modules/signal (Makefile.am): Likewise.
54640         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54641         needed.
54642         * doc/posix-headers/signal.texi (signal.h): Mention provided
54643         types.
54644         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54645         that sigaction is preferable.
54646         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54647         module.
54648         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54649         sigaction.
54650
54651         Improve robustness of sigprocmask by overriding signal.
54652         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54653         is in use.
54654         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54655         (SIGKILL, SIGSTOP): Provide fallbacks.
54656         (rpl_signal): Implement.
54657         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54658         signal can be called inside handlers.
54659
54660         Fix nanosleep module on mingw.
54661         * modules/nanosleep (Depends-on): Add sys_select.
54662         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54663
54664         Fix licensing of sigprocmask.
54665         * modules/raise (License): Relicense as LGPL.
54666
54667 2008-06-21  Bruno Haible  <bruno@clisp.org>
54668
54669         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54670         result if it contains question marks.
54671         Reported by Michael Geng <linux@michaelgeng.de>.
54672
54673 2008-06-19  Bruno Haible  <bruno@clisp.org>
54674
54675         Fix CVS-ism.
54676         * doc/gnulib.texi: Include updated-stamp.texi.
54677         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54678         (updated-stamp.texi): New rule.
54679         (gnulib.info): Depend on it.
54680         * doc/.gitignore: Add updated-stamp.texi.
54681         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54682
54683 2008-06-19  Bruno Haible  <bruno@clisp.org>
54684
54685         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54686         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54687
54688 2008-06-19  Eric Blake  <ebb9@byu.net>
54689
54690         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54691         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54692         Reported by Stepan Kasal.
54693
54694 2008-06-18  Bruno Haible  <bruno@clisp.org>
54695
54696         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54697         Reported by Eric Blake.
54698
54699 2008-06-18  Eric Blake  <ebb9@byu.net>
54700
54701         Work around cygwin 1.5.25 strsignal bug.
54702         * tests/test-strsignal.c: Allow for const char *.
54703         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54704
54705 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54706
54707         * users.txt: Update URL to article and add author/date
54708         information.
54709
54710 2008-06-17  Bruno Haible  <bruno@clisp.org>
54711
54712         New macro gl_DISABLE_THREADS.
54713         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54714         if the user did not pass --enable-threads or --disable-threads option.
54715         (gl_DISABLE_THREADS): New macro.
54716         Reported by Eric Blake <ebb9@byu.net>.
54717
54718 2008-06-17  Bruno Haible  <bruno@clisp.org>
54719
54720         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54721         when the macro ignores it.
54722         Based on a patch by Eric Blake <ebb9@byu.net>.
54723
54724 2008-06-17  Bruno Haible  <bruno@clisp.org>
54725
54726         * modules/tls (License): Change to LGPLv2+.
54727         Reported by Eric Blake.
54728
54729 2008-06-17  Eric Blake  <ebb9@byu.net>
54730
54731         Simplify c-stack prerequisites.
54732         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54733         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54734         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54735         check.
54736         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54737         <sys/resource.h>.
54738
54739         Move c-stack test into testsuite.
54740         * modules/c-stack-tests: New file.
54741         * lib/c-stack.c [DEBUG]: Move test program...
54742         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54743         fail test if sigaltstack is lacking.
54744         * tests/test-c-stack.sh: New driver file.
54745
54746 2008-06-16  Eric Blake  <ebb9@byu.net>
54747
54748         Use raise module consistently.
54749         * modules/fatal-signal (Depends-on): Add raise.
54750         * modules/sigprocmask (Depends-on): Likewise.
54751         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54752         * lib/sigprocmask.c (sigprocmask): Likewise.
54753         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54754         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54755
54756         Fix compliance bug in sigpending.
54757         * lib/sigprocmask.c (sigpending): Return pending array via
54758         parameter, not return value.
54759
54760 2008-06-14  Eric Blake  <ebb9@byu.net>
54761
54762         Improve obstack-printf test code.
54763         * tests/test-obstack-printf.c (test_function): Fix comment, and
54764         simplify usage of obstack_* in macros.  Add a test for coverage.
54765         Reported by Bruno Haible.
54766
54767 2008-06-14  Bruno Haible  <bruno@clisp.org>
54768
54769         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54770         array size as a constant, not as a const variable.
54771         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54772         AC_USE_SYSTEM_EXTENSIONS.
54773         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54774         Test whether the obstack_printf function actually exists.
54775         * modules/obstack-printf (Depends-on): Add extensions.
54776         (Include): Remove obstack.h.
54777         * modules/obstack-printf-posix (Depends-on): Add extensions.
54778         (Include): Remove obstack.h.
54779
54780 2008-06-13  Eric Blake  <ebb9@byu.net>
54781
54782         Add obstack-printf and obstack-printf-posix modules.
54783         * modules/obstack-printf: New file.
54784         * modules/obstack-printf-posix: Likewise.
54785         * MODULES.html.sh (Misc): Mention them.
54786         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54787         Likewise.
54788         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54789         Likewise.
54790         * modules/stdio (Makefile.am): Accomodate new modules.
54791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54792         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54793         Declare.
54794         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54795         functions.
54796         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54797         (gl_REPLACE_OBSTACK_PRINTF): New macros
54798         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54799         * tests/test-obstack-printf.c: New file.
54800         * modules/obstack-printf-tests: Likewise.
54801         * modules/obstack-printf-posix-tests: Likewise.
54802
54803 2008-06-11  Bruno Haible  <bruno@clisp.org>
54804
54805         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54806         * lib/open.c: Include errno.h.
54807         (open): Fail when attempting to write to a file that has a trailing
54808         slash.
54809         * tests/test-open.c (main): Test against trailing slash bug.
54810         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54811
54812 2008-06-10  Bruno Haible  <bruno@clisp.org>
54813
54814         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54815         for $? to work inside the trap command, with various /bin/sh-s.
54816         * tests/test-vc-list-files-cvs.sh: Likewise.
54817
54818 2008-06-10  Bruno Haible  <bruno@clisp.org>
54819
54820         * lib/acl-internal.h: Don't include gettext.h here.
54821         * lib/set-mode-acl.c: Include gettext.h here.
54822         * lib/copy-acl.c: Likewise.
54823
54824 2008-06-10  Bruno Haible  <bruno@clisp.org>
54825
54826         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54827         * lib/wait-process.c (wait_subprocess): Likewise.
54828         * lib/execute.h (execute): Add termsigp argument.
54829         * lib/execute.c (execute): Likewise.
54830         * lib/csharpcomp.c (compile_csharp_using_pnet,
54831         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54832         * lib/csharpexec.c (execute_csharp_using_pnet,
54833         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54834         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54835         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54836         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54837         is_jikes_present): Update.
54838         * lib/javaexec.c (execute_java_class): Update.
54839         * lib/javaversion.c (execute_and_read_line): Update.
54840         * NEWS: Document the changes.
54841         Reported by Eric Blake.
54842
54843 2008-06-10  Eric Blake  <ebb9@byu.net>
54844
54845         Add missing include.
54846         * tests/test-strstr.c (includes): Add <signal.h>.
54847         * tests/test-strcasestr.c (includes): Likewise.
54848         * tests/test-memmem.c (includes): Likewise.
54849
54850 2008-06-10  Bruno Haible  <bruno@clisp.org>
54851
54852         * lib/wait-process.c (wait_subprocess): Add an assertion.
54853
54854 2008-06-10  Bruno Haible  <bruno@clisp.org>
54855
54856         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54857
54858 2008-06-10  Bruno Haible  <bruno@clisp.org>
54859
54860         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54861         using alarm().
54862         * tests/test-strcasestr.c (main): Likewise.
54863         * tests/test-strstr.c (main): Likewise.
54864
54865 2008-06-09  Bruno Haible  <bruno@clisp.org>
54866
54867         Work around the Solaris 10 ACE ACLs ABI change.
54868         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54869         declare if ACL_NO_TRIVIAL is present.
54870         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54871         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54872         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54873         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54874         define if ACL_NO_TRIVIAL is present.
54875         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54876         and use the current ABI.
54877         (file_has_acl): Use same #if condition as elsewhere.
54878         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54879         in use, and use the current ABI.
54880         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54881         Reported by Jim Meyering.
54882
54883 2008-06-09  Eric Blake  <ebb9@byu.net>
54884
54885         Work around environments that (stupidly) ignore SIGALRM.
54886         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54887         before using alarm().
54888         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54889         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54890         Reported by Ian Beckwith <ianb@erislabs.net>.
54891
54892         Produce autobuild blurb earlier in log.
54893         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54894
54895 2008-06-09  Jim Meyering  <meyering@redhat.com>
54896         and Ondřej Vašík  <ovasik@redhat.com>
54897
54898         utimens.c: correct kernel bug work-around
54899         Ondřej Vašík found that the invalid return value of 280 indicates
54900         failure, not success, and the kernel bug we're trying to work
54901         around affects not just the utimensat call, but also the fallback
54902         futimens call.
54903         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54904         not success.
54905         [HAVE_FUTIMENS]: Use the same work-around, here.
54906
54907 2008-06-09  Jim Meyering  <meyering@redhat.com>
54908
54909         add more guards around definition of ACE_-related code
54910         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54911         ALLOW and ACE_OWNER are also defined.
54912
54913 2008-06-08  Bruno Haible  <bruno@clisp.org>
54914
54915         * lib/acl-internal.h: Add me as co-author.
54916         * lib/file-has-acl.c: Likewise.
54917         * lib/set-mode-acl.c: Likewise.
54918         * lib/copy-acl.c: Likewise.
54919
54920 2008-06-08  Bruno Haible  <bruno@clisp.org>
54921
54922         Add support for AIX ACLs.
54923         * lib/acl-internal.h (acl_nontrivial): New declaration.
54924         * lib/file-has-acl.c (acl_nontrivial): New function.
54925         (file_has_acl): Add implementation using AIX 4 ACL API.
54926         * lib/set-mode-acl.c (qset_acl): Likewise.
54927         * lib/copy-acl.c (qcopy_acl): Likewise.
54928
54929 2008-06-08  Bruno Haible  <bruno@clisp.org>
54930
54931         Add support for HP-UX ACLs.
54932         * lib/acl-internal.h (acl_nontrivial): New declaration.
54933         * lib/file-has-acl.c (acl_nontrivial): New function.
54934         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54935         * lib/set-mode-acl.c (qset_acl): Likewise.
54936         * lib/copy-acl.c (qcopy_acl): Likewise.
54937
54938 2008-06-08  Bruno Haible  <bruno@clisp.org>
54939
54940         Add support for Cygwin ACLs.
54941         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54942         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54943         the chmod_or_fchmod call.
54944         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54945
54946 2008-06-08  Bruno Haible  <bruno@clisp.org>
54947
54948         Fix bug with setuid modes in Solaris 10+ code.
54949         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54950         succeeded, when the mode contains some special bits.
54951
54952 2008-06-08  Bruno Haible  <bruno@clisp.org>
54953
54954         Add support for Solaris 7..10 ACLs.
54955         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54956         declarations.
54957         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54958         functions.
54959         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54960         * lib/set-mode-acl.c (qset_acl): Likewise.
54961         * lib/copy-acl.c (qcopy_acl): Likewise.
54962
54963 2008-06-08  Bruno Haible  <bruno@clisp.org>
54964
54965         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54966         declaration.
54967         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54968         (acl_access_nontrivial): Remove MacOS X case.
54969         (file_has_acl): Use acl_extended_nontrivial.
54970         * lib/copy-acl.c (qcopy_acl): Likewise.
54971
54972 2008-06-08  Bruno Haible  <bruno@clisp.org>
54973
54974         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54975
54976 2008-06-08  Jim Meyering  <meyering@redhat.com>
54977
54978         * modules/acl (Maintainer): Add Bruno Haible.
54979
54980 2008-06-07  Bruno Haible  <bruno@clisp.org>
54981
54982         Improve support for Tru64 ACLs.
54983         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54984         ACL on OSF/1.
54985
54986 2008-06-07  Bruno Haible  <bruno@clisp.org>
54987
54988         Add support for MacOS X ACLs.
54989         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54990         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54991         * lib/set-mode-acl.c (qset_acl): Likewise.
54992         * lib/copy-acl.c (qcopy_acl): Likewise.
54993
54994 2008-06-07  Bruno Haible  <bruno@clisp.org>
54995
54996         Fix memory leak introduced on 2008-05-22.
54997         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54998         use.
54999
55000 2008-06-07  Bruno Haible  <bruno@clisp.org>
55001
55002         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
55003         to construct an empty ACL.
55004
55005 2008-06-07  Bruno Haible  <bruno@clisp.org>
55006
55007         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55008         precisely.
55009         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55010
55011 2008-06-07  Bruno Haible  <bruno@clisp.org>
55012
55013         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55014         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55015
55016 2008-06-07  Bruno Haible  <bruno@clisp.org>
55017
55018         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55019         regardless of POSIX.
55020         * doc/posix-functions/_longjmp.texi: Likewise.
55021         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55022         SystemV platform in this case.
55023
55024 2008-06-06  Eric Blake  <ebb9@byu.net>
55025
55026         Document abort() bugs.
55027         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55028
55029         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55030         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55031         sigsetjmp.
55032         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55033         siglongjmp, but only as a macro.
55034         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55035         is obsolete.
55036         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55037
55038         Tweak documentation to cover cygwin argz bugs.
55039         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55040         argz bug fix; no code change needed since no cygwin releases
55041         occurred between the last fix and the bug being tested.
55042         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55043         module and recently fixed cygwin bugs.
55044         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55045         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55046         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55047         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55048         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55049         Likewise.
55050         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55051         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55052         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55053         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55054         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55055         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55056         Likewise.
55057
55058         Avoid gcc warning on cygwin.
55059         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55060         !ACL_NO_TRIVIAL]: Avoid unused variable.
55061
55062 2008-06-05  Eric Blake  <ebb9@byu.net>
55063
55064         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55065         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55066         git-version-gen fails to come up with a version.
55067         Reported by Simon Josefsson.
55068
55069 2008-06-05  Jim Meyering  <meyering@redhat.com>
55070             Paul Eggert  <eggert@cs.ucla.edu>
55071
55072         utimens.c: work around a probable Linux kernel bug
55073         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55074         appears to be a kernel bug that causes utimensat to return 280
55075         instead of 0, indicating success.
55076
55077 2008-06-04  Bruno Haible  <bruno@clisp.org>
55078
55079         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55080         2008-06-01 commit.
55081
55082 2008-06-04  Bruno Haible  <bruno@clisp.org>
55083
55084         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55085         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55086         (file_has_acl): Use it. Save errno afterwards.
55087         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55088
55089 2008-06-03  Bruno Haible  <bruno@clisp.org>
55090
55091         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55092         draft code. Simplify #ifs.
55093         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55094         Put Solaris code after POSIX-draft code. Fix comments regarding
55095         Solaris 10, HP-UX. Mention Cygwin.
55096         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55097
55098 2008-06-03  Eric Blake  <ebb9@byu.net>
55099
55100         Provide fallback for older kernels.
55101         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55102         Provide runtime fallback if kernel lacks support.
55103         Reported by Mike Frysinger.
55104
55105 2008-06-02  Bruno Haible  <bruno@clisp.org>
55106
55107         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55108         it exists.
55109
55110 2008-06-02  Bruno Haible  <bruno@clisp.org>
55111
55112         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55113         * lib/copy-acl.c (qcopy_acl): Update comment.
55114
55115 2008-06-02  Bruno Haible  <bruno@clisp.org>
55116
55117         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55118         like ACL APIs.
55119
55120 2008-06-02  Bruno Haible  <bruno@clisp.org>
55121
55122         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55123         * tests/test-set-mode-acl.sh: Likewise.
55124         * tests/test-copy-acl.sh: Likewise.
55125         * tests/test-copy-file.sh: Likewise.
55126
55127 2008-06-02  Bruno Haible  <bruno@clisp.org>
55128
55129         * tests/test-file-has-acl.sh: Remove unused code.
55130
55131 2008-06-01  Bruno Haible  <bruno@clisp.org>
55132
55133         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55134         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55135         messages.
55136         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55137
55138 2008-06-01  Bruno Haible  <bruno@clisp.org>
55139
55140         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55141         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55142         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
55143         APIs.
55144         * modules/acl-tests (configure.ac): Remove tests now contained in
55145         m4/acl.m4.
55146
55147 2008-06-02  Jim Meyering  <meyering@redhat.com>
55148
55149         announce-gen: use a better key-server host name
55150         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
55151         it may be more consistently reliable.  Suggested by Werner Koch
55152         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
55153
55154 2008-06-01  Bruno Haible  <bruno@clisp.org>
55155
55156         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
55157         Reported by Voroskoi Andras <voroskoi@gmail.com>.
55158
55159 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
55160
55161         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
55162
55163 2008-06-01  Bruno Haible  <bruno@clisp.org>
55164
55165         New ACL tests.
55166         * tests/test-file-has-acl.sh: New file.
55167         * tests/test-file-has-acl.c: New file.
55168         * tests/test-set-mode-acl.sh: New file.
55169         * tests/test-set-mode-acl.c: New file.
55170         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
55171         * tests/test-copy-acl.c: New file.
55172         * modules/acl-tests: New file, based on modules/copy-file-tests.
55173         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
55174         (Depends-on): Add acl-tests.
55175         (configure.ac): Remove checks.
55176         (Makefile.am): Don't create test-sameacls program here any more.
55177
55178 2008-06-01  Bruno Haible  <bruno@clisp.org>
55179
55180         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55181         * tests/test-sameacls.c: Include progname.h.
55182         (main): Invoke set_program_name. Portability fixes for MacOS X,
55183         Solaris, HP-UX.
55184
55185 2008-06-01  Bruno Haible  <bruno@clisp.org>
55186
55187         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55188         function.
55189         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55190
55191 2008-06-01  Bruno Haible  <bruno@clisp.org>
55192
55193         * modules/rpmatch (Depends-on): Add strdup.
55194
55195 2008-06-01  Bruno Haible  <bruno@clisp.org>
55196
55197         * lib/pipe.c: Include unistd-safer.h.
55198         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55199         * modules/pipe (Depends-on): Add unistd-safer.
55200
55201 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55202
55203         * modules/autobuild (configure.ac): Call AB_INIT.
55204
55205 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55206
55207         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55208         Suggested by Bruno Haible <bruno@clisp.org>.
55209
55210 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55211
55212         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55213         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55214         <bruno@clisp.org>.
55215
55216 2008-05-29  Eric Blake  <ebb9@byu.net>
55217
55218         Prefer new POSIX 200x interfaces over futimesat.
55219         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55220         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55221         when available.
55222         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55223
55224 2008-05-28  Bruno Haible  <bruno@clisp.org>
55225
55226         * modules/stpcpy (License): Change to LGPLv2+.
55227         Requested by David Lutterkort <dlutter@redhat.com>.
55228
55229 2008-05-27  Bruno Haible  <bruno@clisp.org>
55230
55231         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55232         current mingw.
55233         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55234
55235 2008-05-27  Bruno Haible  <bruno@clisp.org>
55236
55237         * modules/iconv_open (Link): New section, from module 'iconv'.
55238         * modules/striconv (Link): Likewise.
55239         * modules/striconveh (Link): Likewise.
55240         * modules/xstriconv (Link): Likewise.
55241         * modules/unicodeio (Link): Likewise.
55242         * modules/propername (Link): Likewise.
55243         Reported by Jim Meyering.
55244
55245 2008-05-26  Jim Meyering  <meyering@redhat.com>
55246
55247         sha256: do not artificially restrict buffer length to be < 2^32
55248         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
55249         uint32_t to size_t.
55250         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
55251         to match.
55252
55253         avoid unaligned access errors, e.g., on sparc
55254         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55255         direct access through a possibly-unaligned uint64* pointer.
55256         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55257         direct access through a possibly-unaligned uint32* pointer.
55258         Prompted by this patch from Tom "spot" Callaway:
55259         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55260
55261         sha512.c: fix typo in comment
55262         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55263
55264 2008-05-25  Bruno Haible  <bruno@clisp.org>
55265
55266         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55267         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55268         (Makefile.am): Update lib_SOURCES.
55269
55270 2008-05-25  Bruno Haible  <bruno@clisp.org>
55271
55272         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55273
55274 2008-05-25  Jim Meyering  <meyering@redhat.com>
55275
55276         useless-if-before-free: freed expr may have white-space differences
55277         * build-aux/useless-if-before-free: Recognize cases in which the
55278         freed expression differs from the tested one in embedded white
55279         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55280         $1 was used, so we can't make any regexp shy.  Improved tests now
55281         detect this.
55282
55283         useless-if-before-free: accept white space in the expression.
55284         * build-aux/useless-if-before-free: For now, any white space
55285         in the expression must be identical in the free argument.
55286
55287         useless-if-before-free: efficiency tweak
55288         * build-aux/useless-if-before-free: Make the expression-matching
55289         regexp "shy".
55290         Make the *outer* regexp shy, not the expr-matching one.
55291
55292         update code-in-comment to accept cast of free arg
55293         * build-aux/useless-if-before-free: Update regexp.
55294
55295 2008-05-25  Bruno Haible  <bruno@clisp.org>
55296
55297         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55298         * modules/copy-file-tests (Files, Makefile.am): Update.
55299         * tests/test-copy-file.c (func_test_copy): Update.
55300
55301 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55302
55303         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55304
55305 2008-05-23  Bruno Haible  <bruno@clisp.org>
55306
55307         Improve support for ACLs on OSF/1.
55308         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55309         Remove fallback for unknown flavors of ACLs.
55310
55311 2008-05-22  Bruno Haible  <bruno@clisp.org>
55312
55313         Add support for ACLs on OSF/1.
55314         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55315         replacements.
55316         (acl_free_text): New macro fallback.
55317         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55318         acl_free.
55319         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55320         acl_free_text function. Require AC_C_INLINE.
55321
55322 2008-05-22  Bruno Haible  <bruno@clisp.org>
55323
55324         Make copy_acl work on MacOS X 10.5.
55325         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55326         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55327         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55328         If MODE_INSIDE_ACL, don't assume that every system has the same text
55329         representation for ACLs as FreeBSD.
55330         * lib/copy-acl.c (copy_acl): Add support for platforms with
55331         !MODE_INSIDE_ACL.
55332         * lib/file-has-acl.c (file_has_acl): Likewise.
55333         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55334         FreeBSD, MacOS X, or IRIX, respectively.
55335
55336 2008-05-22  Bruno Haible  <bruno@clisp.org>
55337
55338         * lib/acl.h: Don't include <sys/acl.h>.
55339         (GETACLCNT): Move fallback to lib/acl-internal.h.
55340         * lib/acl-internal.h: Include <sys/acl.h> here.
55341         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55342
55343 2008-05-22  Bruno Haible  <bruno@clisp.org>
55344
55345         Split off copy_acl function to separate file.
55346         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55347         * lib/acl.c (copy_acl): Moved function to separate file.
55348         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55349         * modules/acl (Files): Add lib/copy-acl.c.
55350         (Makefiles.am): Augment lib_SOURCES.
55351
55352 2008-05-22  Bruno Haible  <bruno@clisp.org>
55353
55354         * modules/copy-file-tests: New file.
55355         * tests/test-copy-file.sh: New file.
55356         * tests/test-copy-file.c: New file.
55357         * tests/test-copy-file-sameacls.c: New file.
55358
55359 2008-05-22  Eric Blake  <ebb9@byu.net>
55360
55361         Avoid gcc warning.
55362         * tests/test-memcmp.c (main): Pass NULL indirectly.
55363
55364 2008-05-21  Bruno Haible  <bruno@clisp.org>
55365
55366         Add reference doc about ACLs.
55367         * doc/acl-resources.txt: New file.
55368         * doc/acl-cygwin.txt: New file.
55369
55370 2008-05-21  Bruno Haible  <bruno@clisp.org>
55371
55372         Avoid one more warning from gcc.
55373         * lib/vasnprintf.c (IF_LINT): Update comments.
55374         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55375
55376 2008-05-21  Jim Meyering  <meyering@redhat.com>
55377
55378         avoid a warning from gcc
55379         * lib/vasnprintf.c (IF_LINT): Define.
55380         (scale10_round_decimal_long_double):
55381         Use it to avoid a "may be used uninitialized" warning.
55382         (scale10_round_decimal_double): Likewise.
55383
55384 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55385
55386         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55387         declared.
55388
55389 2008-05-20  Bruno Haible  <bruno@clisp.org>
55390
55391         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55392         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55393
55394 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55395
55396         * modules/memcmp-tests: New file.
55397         * tests/test-memcmp.c: New file.
55398
55399 2008-05-19  Bruno Haible  <bruno@clisp.org>
55400
55401         * modules/propername (Notice, configure.ac): Put quoted "..." into
55402         --keyword option.
55403         * lib/propername.h: Update comments accordingly.
55404         Reported by Eric Blake.
55405
55406 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55407
55408         * modules/getpass-gnu (Depends-on): Add fseeko.
55409
55410 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55411
55412         * modules/base64-tests: New file.
55413
55414 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55415
55416         * lib/base64.c (base64_decode_ctx): If a decode context structure
55417         was passed in use it to ignore newlines.  If a context structure
55418         was _not_ passed in, continue to treat newlines as garbage (this
55419         is the historical behavior).  Formerly base64_decode.
55420         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55421         takes a decode context structure.
55422         * lib/base64.h (base64_decode): Macro for four-argument calls.
55423         (base64_decode_alloc): Likewise.
55424         * lib/base64.c (base64_decode_ctx): If a decode context structure
55425         was passed in use it to ignore newlines.  If a context structure
55426         was _not_ passed in, continue to treat newlines as garbage (this
55427         is the historical behavior).  Formerly base64_decode.
55428         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55429         takes a decode context structure.
55430         * lib/base64.h (base64_decode): Macro for four-argument calls.
55431         (base64_decode_alloc): Likewise.
55432
55433 2008-05-19  Jim Meyering  <meyering@redhat.com>
55434
55435         avoid a warning from gcc
55436         * lib/trim.c (IF_LINT): Define.
55437         (trim2): Use it to avoid a "may be used uninitialized" warning.
55438
55439         Fix doc typo.
55440         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55441
55442 2008-05-19  Bruno Haible  <bruno@clisp.org>
55443
55444         * doc/glibc-functions/getpass.texi: Document limits of other
55445         implementations.
55446
55447 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55448             Bruno Haible <bruno@clisp.org>
55449
55450         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55451
55452 2008-05-18  Bruno Haible  <bruno@clisp.org>
55453
55454         * modules/propername: New file, from GNU gettext.
55455         * lib/propername.h: New file, from GNU gettext.
55456         * lib/propername.c: New file, from GNU gettext.
55457         * MODULES.html.sh (Internationalization functions): Add propername.
55458
55459 2008-05-16  Jim Meyering  <meyering@redhat.com>
55460             Bruno Haible  <bruno@clisp.org>
55461
55462         Avoid some warnings from "gcc -Wshadow".
55463         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55464
55465 2008-05-15  Eric Blake  <ebb9@byu.net>
55466
55467         Extend previous patch to cygwin 1.7.0.
55468         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55469         fast implementation in cygwin >= 1.7.0.
55470         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55471         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55472
55473 2008-05-15  Bruno Haible  <bruno@clisp.org>
55474
55475         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55476         implementation in glibc >= 2.9.
55477         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55478         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55479
55480 2008-05-15  Bruno Haible  <bruno@clisp.org>
55481
55482         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55483         (Unicode string functions): Add unilbrk/*.
55484         Reported by Karl Berry.
55485
55486 2008-05-15  Eric Blake  <ebb9@byu.net>
55487
55488         Fix violation of <stdbool.h> replacement in regex.
55489         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55490         * lib/regexec.c (re_search_internal): Likewise.
55491         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55492
55493 2008-05-15  Jim Meyering  <meyering@redhat.com>
55494
55495         avoid distracting test output when git or cvs is not found
55496         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55497         * tests/test-vc-list-files-git.sh: Likewise.
55498
55499 2008-05-15  Eric Blake  <ebb9@byu.net>
55500
55501         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55502         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55503         glibc version.
55504         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55505         * doc/posix-functions/strstr.texi (strstr): Likewise.
55506         * lib/str-two-way.h (MAX): Sychronize with glibc.
55507
55508 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55509
55510         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55511         opr.ctx_type.
55512         (calc_first): Initialize constraint field.
55513         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55514         Fix grammar.
55515         (duplicate_node): Merge constraint field for all node types.
55516         (calc_eclosure_iter): Look at constraint field for all node types.
55517         * lib/regex_internal.c (create_cd_newstate): Don't look at
55518         opr.ctx_type.
55519
55520 2008-05-14  Bruno Haible  <bruno@clisp.org>
55521
55522         Help GCC to do better code generation.
55523         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55524         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55525         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55526         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55527         Declare with attribute 'malloc' if supported.
55528
55529 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55530
55531         use "echo STR|wc -c" rather than unportable "expr length STR"
55532         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55533         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55534
55535 2008-05-14  Jim Meyering  <meyering@redhat.com>
55536
55537         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55538         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55539         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55540         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55541         via Collin Lasse.
55542
55543 2008-05-14  Eric Blake  <ebb9@byu.net>
55544
55545         Avoid quadratic growth in gl_LIBSOURCES.
55546         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55547         Suggested by Bruno Haible.
55548
55549         Test xmemdup0.
55550         * modules/xmemdup0-tests: New file.
55551         * tests/test-xmemdup0.c: Likewise.
55552
55553 2008-05-13  Eric Blake  <ebb9@byu.net>
55554
55555         Split xmemdup0 into its own module.
55556         * modules/xmemdup0: New file.
55557         * lib/xmemdup0.h: Likewise.
55558         * lib/xmemdup0.c: Likewise.
55559         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55560         * lib/xalloc.h (xmemdup0): Remove.
55561         * lib/xmalloc.c (xmemdup0): Likewise.
55562
55563 2008-05-13  Eric Blake  <ebb9@byu.net>
55564             Bruno Haible  <bruno@clisp.org>
55565
55566         Reduce number of forks required during autoconf.
55567         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55568         and gl_LIBSOURCES_DIR.
55569         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55570         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55571         m4_syscmd per file.
55572         <m4_foreach_w>: Move...
55573         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55574
55575 2008-05-13  Eric Blake  <ebb9@byu.net>
55576
55577         * gnulib-tool: Fix various comment typos.
55578
55579 2008-05-12  Bruno Haible  <bruno@clisp.org>
55580
55581         Tailor the linebreaking algorithm.
55582         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55583
55584 2008-05-12  Bruno Haible  <bruno@clisp.org>
55585
55586         Update to Unicode 5.0.0.
55587         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55588         LBP_JV, LBP_JT. Redistribute values.
55589         (unilbrk_table): Change size.
55590         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55591         Unicode TR#14 rev. 22.
55592         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55593         LBP_JV, LBP_JT. Redistribute values.
55594         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55595         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55596         Update.
55597         * lib/unilbrk/lbrkprop1.h: Regenerated.
55598         * lib/unilbrk/lbrkprop2.h: Regenerated.
55599         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55600         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55601         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55602         Likewise.
55603         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55604         Likewise.
55605         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55606         result.
55607         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55608         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55609         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55610         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55611         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55612         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55613
55614 2008-05-11  Bruno Haible  <bruno@clisp.org>
55615
55616         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55617
55618 2008-05-11  Bruno Haible  <bruno@clisp.org>
55619
55620         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55621         * modules/unilbrk/gen-lbrk: New file.
55622
55623 2008-05-11  Bruno Haible  <bruno@clisp.org>
55624
55625         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55626         * m4/sha512.m4 (gl_SHA512): Likewise.
55627
55628 2008-05-11  Jim Meyering  <meyering@redhat.com>
55629
55630         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55631         * modules/crypto/sha256: New file.
55632         * modules/crypto/sha512: Likewise.
55633         * lib/sha256.c: Likewise.
55634         * lib/sha256.h: Likewise.
55635         * lib/sha512.c: Likewise.
55636         * lib/sha512.h: Likewise.
55637         * lib/u64.h: Likewise.
55638         * m4/sha256.m4: Likewise.
55639         * m4/sha512.m4: Likewise.
55640         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55641
55642 2008-05-10  Bruno Haible  <bruno@clisp.org>
55643
55644         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55645         (Input/Output <stdio.h>): Add xprintf.
55646         (Signal handling <signal.h>): Add strsignal.
55647         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55648         (Core language properties): Add func.
55649         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55650         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55651         strings.
55652         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55653         (Input/output): New section.
55654         (File system functions): Add openat-die, stat-macros.
55655         (Networking functions): Add sockets.
55656         (Unicode string functions): Add unictype/*.
55657         (Support for building libraries and executables): Add gperf.
55658         (Support for building documentation): Add agpl-3.0.
55659         (Misc): Add nocrash.
55660
55661 2008-05-10  Bruno Haible  <bruno@clisp.org>
55662
55663         * modules/unictype/gen-ctype: New file.
55664
55665 2008-05-10  Jim Meyering  <meyering@redhat.com>
55666
55667         Make chdir-safer.c more efficient on a system with no symlinks.
55668         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55669         also if ELOOP is zero.  Suggested by Bruno Haible.
55670
55671         Make chdir-safer.c slightly safer.
55672         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55673         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55674
55675         Avoid compile failure on systems without ELOOP (like mingw).
55676         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55677         Reported by Bruno Haible.
55678
55679 2008-05-10  Bruno Haible  <bruno@clisp.org>
55680
55681         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55682         (is_utf8_encoding): Use a case-insensitive comparison.
55683         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55684         streq.
55685
55686 2008-05-10  Bruno Haible  <bruno@clisp.org>
55687
55688         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55689         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55690         * lib/unilbrk/ulc-common.h (iconv_string_length,
55691         iconv_string_keeping_offsets): Remove declarations.
55692         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55693         Don't include <iconv.h>, streq.h, xsize.h.
55694         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55695         conversion.
55696         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55697         <iconv.h>, streq.h, xsize.h.
55698         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55699         conversion.
55700         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55701         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55702         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55703         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55704
55705 2008-05-10  Bruno Haible  <bruno@clisp.org>
55706
55707         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55708         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55709
55710         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55711         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55712
55713         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55714         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55715
55716         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55717         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55718
55719         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55720         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55721
55722         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55723         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55724
55725         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55726         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55727
55728         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55729         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55730
55731 2008-05-10  Bruno Haible  <bruno@clisp.org>
55732
55733         Split up 'linebreak' module.
55734         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55735         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55736         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55737         modifications.
55738         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55739         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55740         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55741         lib/linebreak.c.
55742         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55743         lib/linebreak.c.
55744         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55745         lib/linebreak.c.
55746         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55747         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55748         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55749         lib/linebreak.c.
55750         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55751         lib/linebreak.c.
55752         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55753         lib/linebreak.c.
55754         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55755         lib/linebreak.c.
55756         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55757         lib/linebreak.c.
55758         * modules/unilbrk/base: New file.
55759         * modules/unilbrk/tables: New file.
55760         * modules/unilbrk/u8-possible-linebreaks: New file.
55761         * modules/unilbrk/u16-possible-linebreaks: New file.
55762         * modules/unilbrk/u32-possible-linebreaks: New file.
55763         * modules/unilbrk/ulc-common: New file.
55764         * modules/unilbrk/ulc-possible-linebreaks: New file.
55765         * modules/unilbrk/u8-width-linebreaks: New file.
55766         * modules/unilbrk/u16-width-linebreaks: New file.
55767         * modules/unilbrk/u32-width-linebreaks: New file.
55768         * modules/unilbrk/ulc-width-linebreaks: New file.
55769         * lib/linebreak.h: Remove file.
55770         * lib/linebreak.c: Remove file.
55771         * m4/linebreak.m4: Remove file.
55772         * modules/linebreak: Remove file.
55773         * NEWS: Mention the changes.
55774
55775 2008-05-09  Eric Blake  <ebb9@byu.net>
55776
55777         Add xmemdup0.
55778         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55779         implementation.
55780         * lib/xmalloc.c (xmemdup0): New C implementation.
55781
55782 2008-05-08  Bruno Haible  <bruno@clisp.org>
55783
55784         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55785
55786 2008-05-07  Eric Blake  <ebb9@byu.net>
55787
55788         Support cross-compilation of <wctype.h>.
55789         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55790         AC_CACHE_CHECK.
55791
55792 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55793
55794         * build-aux/vc-list-files: Add support for bzr.
55795
55796 2008-05-03  Jim Meyering  <meyering@redhat.com>
55797
55798         avoid failed assertion with tight malloc
55799         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55800
55801 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55802
55803         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55804         are needed from arpa/inet.h.
55805         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55806         Reported by Bruno Haible.
55807
55808 2008-05-02  Jim Meyering  <meyering@redhat.com>
55809
55810         avoid compilation error on FreeBSD 6
55811         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55812
55813 2008-05-01  Jim Meyering  <meyering@redhat.com>
55814
55815         useless-if-before-free: correct --help's exit status description
55816         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55817         for one or more matches, etc.  Reported by Bruno Haible.
55818
55819         vc-list-files: make the stand-alone gnulib test work
55820         * modules/vc-list-files-tests (configure.ac):
55821         Define and AC_SUBST abs_aux_dir.
55822         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55823         $(abs_top_srcdir) to each script and having each of them
55824         duplicate the work of setting PATH, set PATH here, using
55825         the new variable, abs_aux_dir instead.
55826         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55827         * tests/test-vc-list-files-git.sh: Likewise.
55828         Reported by Bruno Haible.
55829
55830 2008-05-01  Bruno Haible  <bruno@clisp.org>
55831
55832         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55833         reallocation. Rename 'done' to 'found_delimiter'.
55834
55835 2008-05-01  Jim Meyering  <meyering@redhat.com>
55836
55837         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55838         * build-aux/vc-list-files: Use `...`, not $(...).
55839
55840 2008-04-30  Jim Meyering  <meyering@redhat.com>
55841
55842         add tests for vc-list-files
55843         * modules/vc-list-files-tests: New module.
55844         * tests/test-vc-list-files-cvs.sh: New file.
55845         * tests/test-vc-list-files-git.sh: New file.
55846
55847         avoid a warning from gcc
55848         * lib/getndelim2.c (IF_LINT): Define.
55849         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55850
55851         vc-list-files: work properly with build-aux/cvsu, too
55852         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55853         to all cvs-based clauses.
55854
55855         vc-list-files: work properly in the CVS+awk case, too
55856         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55857
55858         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55859         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55860         take more than one file argument, so .  Add quotes, just in case $dir
55861         ever contains a shell meta-character.  Prompted by Soren Hansen in
55862         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55863
55864 2008-04-29  Eric Blake  <ebb9@byu.net>
55865
55866         Optimize getndelim2 to use block operations when possible.
55867         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55868         freadseek, and memchr2.
55869         * lib/getndelim2.c (getndelim2): Use them for block reads.
55870
55871 2008-04-29  Bruno Haible  <bruno@clisp.org>
55872
55873         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55874         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55875         * modules/inet_ntop (Depends-on): Add extensions.
55876         * modules/inet_pton (Depends-on): Likewise.
55877         Reported by Simon Josefsson.
55878
55879 2008-04-29  Jim Meyering  <meyering@redhat.com>
55880
55881         When the is more than one match in a block, match all of them.
55882         * build-aux/useless-if-before-free: Iterate through each block
55883         until there are no more matches.
55884
55885         Fix broken useless-if-before-free script.
55886         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55887         the expression to match cast of argument to free-like function.
55888
55889 2008-04-29  Eric Blake  <ebb9@byu.net>
55890
55891         Use new header.
55892         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55893
55894 2008-04-29  Jim Meyering  <meyering@redhat.com>
55895
55896         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55897         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55898         by gnulib to exist and to declare e.g., inet_ntop.
55899         Don't include "inet_ntop.h", now removed.
55900
55901         * m4/arpa_inet_h.m4: Remove trailing blanks.
55902
55903 2008-04-29  Eric Blake  <ebb9@byu.net>
55904
55905         Silence valgrind on safe reads beyond potential array bounds.
55906         * lib/rawmemchr.valgrind: New file.
55907         * lib/strchrnul.valgrind: Likewise.
55908         * modules/rawmemchr (Files): Distribute new file.
55909         * modules/strchrnul (Files): Likewise.
55910         Suggested by Bruno Haible.
55911
55912 2008-04-29  Bruno Haible  <bruno@clisp.org>
55913
55914         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55915         (inet_ntop, inet_pton): Change portability warning's wording.
55916         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55917         Invoke gl_CHECK_NEXT_HEADERS.
55918         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55919         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55920         set ARPA_INET_H.
55921         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55922         * modules/arpa_inet (Description): No longer only for systems that
55923         lack it.
55924         (Depends-on): Add include_next.
55925         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55926         HAVE_ARPA_INET_H.
55927
55928 2008-04-29  Jim Meyering  <meyering@redhat.com>
55929
55930         * modules/mkdir (License): Re-license as LGPLv2+.
55931
55932 2008-04-29  Bruno Haible  <bruno@clisp.org>
55933
55934         * modules/rawmemchr (Maintainer): Set to Eric.
55935         * modules/strchrnul (Maintainer): Likewise.
55936
55937 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55938
55939         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55940         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55941
55942         * modules/arpa_inet (arpa/inet.h): Use them.
55943
55944 2008-04-28  Eric Blake  <ebb9@byu.net>
55945
55946         Test getndelim2.
55947         * modules/getndelim2-tests: New file.
55948         * tests/test-getndelim2.c: Likewise.
55949         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55950         stream.
55951         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55952
55953         * MODULES.html.sh: Document new module.
55954
55955 2008-04-20  Bruno Haible  <bruno@clisp.org>
55956
55957         * lib/c-stack.c (die): Use raise.
55958         * modules/c-stack (Depends-on): Add raise.
55959
55960 2008-04-28  Bruno Haible  <bruno@clisp.org>
55961
55962         Expect rpmatch to be declared.
55963         * lib/yesno.c (rpmatch): Remove declaration.
55964
55965         Declare rpmatch.
55966         * lib/stdlib.in.h (rpmatch): New declaration.
55967         * lib/rpmatch.c: Include <stdlib.h> first.
55968         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55969         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55971         HAVE_RPMATCH.
55972         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55973         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55974         (Include): Set to <stdlib.h>.
55975         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55976         HAVE_RPMATCH.
55977         * NEWS: Document the change.
55978
55979 2008-04-28  Bruno Haible  <bruno@clisp.org>
55980
55981         Change rpmatch to use nl_langinfo when appropriate.
55982         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55983         (N_): New macro.
55984         (localized_pattern): New function/macro.
55985         (try): Remove match, nomatch arguments. Copy the pattern into safe
55986         memory before caching it.
55987         (rpmatch): Use localized_pattern. Add translator comments.
55988         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55989         Suggested by Eric Blake.
55990         * modules/rpmatch (Depends-on): Add stdbool.
55991
55992 2008-04-28  Eric Blake  <ebb9@byu.net>
55993
55994         Add rawmemchr module, matching glibc.
55995         * modules/string (Makefile.am): New indicator.
55996         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55997         * lib/string.in.h (rawmemchr): Declare when appropriate.
55998         * modules/rawmemchr: New file.
55999         * m4/rawmemchr.m4: Likewise.
56000         * lib/rawmemchr.c: Likewise.
56001         * modules/rawmemchr-tests: Likewise.
56002         * tests/test-rawmemchr.c: Likewise.
56003         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
56004         module.
56005         * modules/strchrnul (Depends-on): Add rawmemchr.
56006         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56007
56008         Whitespace cleanup.
56009         * tests/test-strchrnul.c: Reindent.
56010         * lib/strchrnul.c: Likewise.
56011
56012         Optimize and test strchrnul.
56013         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56014         * modules/strchrnul-tests: New file.
56015         * tests/test-strchrnul.c: Likewise.
56016
56017         Remove intprops dependency.
56018         * modules/memchr (Depends-on): Remove intprops.
56019         * modules/memrchr (Depends-on): Likewise.
56020         * modules/memchr2 (Depends-on): Likewise.
56021         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56022         * lib/memrchr.c (__memrchr): Likewise.
56023         * lib/memrchr2.c (memchr2): Likewise.
56024         Reported by Simon Josefsson.
56025
56026 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56027
56028         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56029         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56030
56031 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56032
56033         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56034
56035         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56036
56037         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56038
56039         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56040         declarations.
56041         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56042
56043         * m4/inet_pton.m4: Don't check for header files.
56044
56045         * m4/inet_ntop.m4: Don't check for header files.
56046
56047 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56048
56049         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56050         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56051         trigger for cygwin).
56052         Reported by Bruno Haible  <bruno@clisp.org>.
56053
56054 2008-04-28  Bruno Haible  <bruno@clisp.org>
56055
56056         * doc/posix-functions/strdup.texi: Mention mingw problem.
56057
56058 2008-04-27  Bruno Haible  <bruno@clisp.org>
56059
56060         * modules/stat-time-tests (Depends-on): Add sleep.
56061         * tests/test-stat-time.c (force_unlink): New function.
56062         (cleanup): Use it.
56063         (test_mtime): Remove the ctime related tests.
56064         (test_ctime): New function, containing the ctime related tests.
56065         (main): Call test_ctime, except on native Windows platforms.
56066
56067 2008-04-27  Bruno Haible  <bruno@clisp.org>
56068
56069         * lib/rpmatch.c (rpmatch): Add some comments.
56070         Reported by James Youngman <jay@gnu.org>.
56071
56072 2008-04-27  Bruno Haible  <bruno@clisp.org>
56073
56074         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56075         quiet NaNs.
56076
56077 2008-04-27  Bruno Haible  <bruno@clisp.org>
56078
56079         Make test-yesno.sh work on mingw.
56080         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56081         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56082         (main): Set stdin to binary mode.
56083         * modules/yesno-tests (Depends-on): Add binary-io.
56084
56085 2008-04-27  Bruno Haible  <bruno@clisp.org>
56086
56087         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56088         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56089         argument that lie outside the IEEE 854 domain.
56090         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56091         (gl_ISFINITE): Use it.
56092         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56093
56094 2008-04-27  Bruno Haible  <bruno@clisp.org>
56095
56096         Allow local renaming in config.h.
56097         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56098
56099 2008-04-27  Bruno Haible  <bruno@clisp.org>
56100
56101         * lib/memchr.c (__memchr): Change type of 'i'.
56102         * lib/memchr2.c (memchr2): Likewise.
56103
56104 2008-04-26  Eric Blake  <ebb9@byu.net>
56105         and Bruno Haible  <bruno@clisp.org>
56106
56107         Optimize and test memrchr.
56108         * modules/memrchr (Depends-on): Add intprops.
56109         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56110         * modules/memrchr-tests: New file.
56111         * tests/test-memrchr.c: New file.
56112
56113 2008-04-26  Bruno Haible  <bruno@clisp.org>
56114
56115         Add tentative support for DragonFly BSD.
56116         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56117         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56118         fp.
56119         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56120         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56121         * lib/fpurge.c (fpurge): Likewise.
56122         * lib/freadable.c (freaadable): Likewise.
56123         * lib/freadahead.c (freadahead): Likewise.
56124         * lib/freading.c (freading): Likewise.
56125         * lib/freadptr.c (freadptr): Likewise.
56126         * lib/freadseek.c (freadptrinc): Likewise.
56127         * lib/fseeko.c (fseeko): Likewise.
56128         * lib/fseterr.c (fseterr): Likewise.
56129         * lib/fwritable.c (fwritable): Likewise.
56130         * lib/fwriting.c (fwriting): Likewise.
56131
56132 2008-04-26  Bruno Haible  <bruno@clisp.org>
56133
56134         * lib/stdio-impl.h: New file.
56135         * lib/fbufmode.c: Include stdio-impl.h.
56136         (fbufmode): Use fp_, remove redundant #defines.
56137         * lib/fflush.c: Include stdio-impl.h.
56138         (clear_ungetc_buffer): Remove redundant #defines.
56139         * lib/fpurge.c: Include stdio-impl.h.
56140         (fpurge): Remove redundant #defines.
56141         * lib/freadable.c: Include stdio-impl.h.
56142         (freadable): Remove redundant #defines.
56143         * lib/freadahead.c: Include stdio-impl.h.
56144         (freadahead): Remove redundant #defines.
56145         * lib/freading.c: Include stdio-impl.h.
56146         (freading): Remove redundant #defines.
56147         * lib/freadptr.c: Include stdio-impl.h.
56148         (freadptr): Remove redundant #defines.
56149         * lib/freadseek.c: Include stdio-impl.h.
56150         (freadptrinc): Remove redundant #defines.
56151         * lib/fseeko.c: Include stdio-impl.h.
56152         (rpl_fseeko): Remove redundant #defines.
56153         * lib/fseterr.c: Include stdio-impl.h.
56154         (fseterr): Remove redundant #defines.
56155         * lib/fwritable.c: Include stdio-impl.h.
56156         (fwritable: Remove redundant #defines.
56157         * lib/fwriting.c: Include stdio-impl.h.
56158         (fwriting): Remove redundant #defines.
56159         * modules/fbufmode (Files): Add lib/stdio-impl.h.
56160         * modules/fflush (Files): Likewise.
56161         * modules/fpurge (Files): Likewise.
56162         * modules/freadable (Files): Likewise.
56163         * modules/freadahead (Files): Likewise.
56164         * modules/freading (Files): Likewise.
56165         * modules/freadptr (Files): Likewise.
56166         * modules/freadseek (Files): Likewise.
56167         * modules/fseeko (Files): Likewise.
56168         * modules/fseterr (Files): Likewise.
56169         * modules/fwritable (Files): Likewise.
56170         * modules/fwriting (Files): Likewise.
56171
56172 2008-04-26  Bruno Haible  <bruno@clisp.org>
56173
56174         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56175         restore_seek_optimization, update_fpos_cache): New functions, extracted
56176         from rpl_fflush.
56177         (rpl_fflush): Use them.
56178         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
56179         (gl_REPLACE_FFLUSH): Use it.
56180
56181 2008-04-26  Bruno Haible  <bruno@clisp.org>
56182
56183         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56184         on Solaris.
56185         * tests/test-xstrtoimax.sh: Likewise.
56186         * tests/test-xstrtoumax.sh: Likewise.
56187         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56188
56189 2008-04-26  Bruno Haible  <bruno@clisp.org>
56190
56191         * modules/memchr-tests: New file.
56192         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56193
56194 2008-04-26  Eric Blake  <ebb9@byu.net>
56195             Bruno Haible  <bruno@clisp.org>
56196
56197         * lib/memchr.c: Include intprops.h.
56198         (__memchr): Optimize parallel detection of matching bytes. Rename local
56199         variables. Add explanatory comments.
56200
56201 2008-04-26  Bruno Haible  <bruno@clisp.org>
56202
56203         Fix module 'memchr', broken since 2000-10-28.
56204         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56205
56206 2008-04-26  Bruno Haible  <bruno@clisp.org>
56207
56208         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56209         comments.
56210
56211 2008-04-25  Eric Blake  <ebb9@byu.net>
56212
56213         Use native fstatat on cygwin 1.7.0.
56214         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56215         first.
56216
56217 2008-04-23  Eric Blake  <ebb9@byu.net>
56218
56219         Improve memchr2 performance.
56220         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56221         NUL bytes.
56222         * modules/memchr2 (Depends-on): Use intprops.h.
56223
56224 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56225
56226         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56227         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56228         <blp@cs.stanford.edu>.
56229
56230 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56231
56232         * lib/arpa_inet.in.h: New file.
56233
56234         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56235         (Makefile.am): Sed in substitute header file.
56236
56237         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56238         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56239
56240         * modules/inet_ntop (configure.ac): Use
56241         gl_ARPA_INET_MODULE_INDICATOR.
56242
56243         * modules/inet_pton (configure.ac): Use
56244         gl_ARPA_INET_MODULE_INDICATOR.
56245
56246 2008-04-22  Jim Meyering  <meyering@redhat.com>
56247
56248         * modules/verify (License): Re-license as LGPLv2+.
56249
56250 2008-04-22  Simon Josefsson  <simon@josefsson.org>
56251
56252         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
56253         parameter to void* as per POSIX standard (MinGW uses char*).
56254
56255 2008-04-21  Bruno Haible  <bruno@clisp.org>
56256
56257         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56258         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56259         Define to replacements if REPLACE_ISWCNTRL is 1.
56260         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56261         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56262         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56263         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56264         what it fixes.
56265         * doc/posix-functions/iswalpha.texi: Likewise.
56266         * doc/posix-functions/iswblank.texi: Likewise.
56267         * doc/posix-functions/iswcntrl.texi: Likewise.
56268         * doc/posix-functions/iswdigit.texi: Likewise.
56269         * doc/posix-functions/iswgraph.texi: Likewise.
56270         * doc/posix-functions/iswlower.texi: Likewise.
56271         * doc/posix-functions/iswprint.texi: Likewise.
56272         * doc/posix-functions/iswpunct.texi: Likewise.
56273         * doc/posix-functions/iswspace.texi: Likewise.
56274         * doc/posix-functions/iswupper.texi: Likewise.
56275         * doc/posix-functions/iswxdigit.texi: Likewise.
56276         Reported by Alain Guibert.
56277
56278 2008-04-21  Bruno Haible  <bruno@clisp.org>
56279
56280         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56281         Patch by Alain Guibert.
56282
56283 2008-04-21  Bruno Haible  <bruno@clisp.org>
56284
56285         Fix test failures on mingw.
56286         * tests/test-xstrtol.c (print_no_progname): New function.
56287         (main): Install it in error_print_progname hook.
56288         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56289         * tests/test-xstrtoimax.sh: Likewise.
56290         * tests/test-xstrtoumax.sh: Likewise.
56291
56292 2008-04-21  Bruno Haible  <bruno@clisp.org>
56293
56294         Fix test failure on mingw.
56295         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56296
56297 2008-04-21  Bruno Haible  <bruno@clisp.org>
56298
56299         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56300         Actually assign a value.
56301
56302 2008-04-20  Bruno Haible  <bruno@clisp.org>
56303
56304         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56305         take 2.
56306         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56307         'canonicalize-lgpl' module is also used.
56308         * lib/canonicalize-lgpl.c: Undo last change.
56309         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56310
56311 2008-04-20  Bruno Haible  <bruno@clisp.org>
56312
56313         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56314         config.h. Provide _mkdir based fallback for mingw.
56315         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56316         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56317         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56318         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56319         rather than defining mkdir in config.h.
56320         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56321         (gl_SYS_STAT_H_DEFAULTS): New macro.
56322         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56323         HAVE_IO_H any more.
56324         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56325         HAVE_DECL_MKDIR and HAVE_IO_H.
56326
56327 2008-04-20  Bruno Haible  <bruno@clisp.org>
56328
56329         * lib/isapipe.c: Port to native Windows platforms.
56330
56331 2008-04-20  Bruno Haible  <bruno@clisp.org>
56332
56333         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56334
56335 2008-04-21  Eric Blake  <ebb9@byu.net>
56336
56337         Work around preprocessors that don't handle UINTMAX_MAX.
56338         * lib/memchr2.c (memchr2): Avoid embedded #if.
56339         Reported by Alain Guibert, fix suggested by Bruno Haible.
56340
56341 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56342
56343         * doc/posix-functions/strftime.texi (strftime): Explain better
56344         Windows incompatibility.  Suggested by Micah Cowan
56345         <micah@cowan.name>.
56346
56347 2008-04-20  Bruno Haible  <bruno@clisp.org>
56348
56349         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56350         unistr/u8-mblen.
56351
56352 2008-04-20  Bruno Haible  <bruno@clisp.org>
56353
56354         Fix test failure on platforms with non-GNU iconv.
56355         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56356         (U_TO_U8): Use it, rather than u16_to_u8.
56357         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56358         units at the end of the input string.
56359         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56360
56361 2008-04-20  Bruno Haible  <bruno@clisp.org>
56362
56363         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56364         when the resulting length is 0.
56365         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56366
56367 2008-04-20  Bruno Haible  <bruno@clisp.org>
56368
56369         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56370         works.
56371         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56372
56373 2008-04-20  Bruno Haible  <bruno@clisp.org>
56374
56375         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56376         * modules/tsearch-tests (configure.ac): Test for initstate function.
56377
56378 2008-04-20  Bruno Haible  <bruno@clisp.org>
56379
56380         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56381         for nlink_t if missing.
56382         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56383
56384 2008-04-19  Bruno Haible  <bruno@clisp.org>
56385
56386         Work around snprintf bug on Linux libc5.
56387         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56388         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56389         gl_SNPRINTF_SIZE1.
56390         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56391         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56392         that test failed.
56393         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56394         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56395         * modules/snprintf (Files): Add m4/printf.m4.
56396         * modules/vsnprintf (Files): Likewise.
56397         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56398         * doc/posix-functions/vsnprintf.texi: Likewise.
56399
56400 2008-04-19  Bruno Haible  <bruno@clisp.org>
56401
56402         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56403         from 0.0058 to less than 10^-7.
56404
56405 2008-04-19  Bruno Haible  <bruno@clisp.org>
56406
56407         Fix rounding when a precision is given.
56408         * lib/vasnprintf.c (is_borderline): New function.
56409         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56410         9...9x.
56411         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56412         %e, %g.
56413         * tests/test-vasprintf-posix.c (test_function): Likewise.
56414         * tests/test-snprintf-posix.h (test_function): Likewise.
56415         * tests/test-sprintf-posix.h (test_function): Likewise.
56416         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56417         * tests/test-printf-posix.h (test_function): Likewise.
56418         * tests/test-printf-posix.output: Update.
56419         Reported by John Darrington <john@darrington.wattle.id.au> via
56420         Ben Pfaff <blp@cs.stanford.edu>.
56421
56422 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56423
56424         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56425         Suggested by Bruno Haible <bruno@clisp.org>.
56426
56427 2008-04-17  Bruno Haible  <bruno@clisp.org>
56428
56429         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56430         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56431         implementation.
56432         Patch by Bruce Merry <bmerry@gmail.com>.
56433
56434 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56435
56436         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56437         doesn't work under Windows.
56438
56439 2008-04-16  Bruno Haible  <bruno@clisp.org>
56440
56441         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56442         New macros.
56443         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56444         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56445         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56446         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56447         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56448         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56449         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56450         macros.
56451         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56452         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56453         Northern Sotho, Uighur.
56454
56455 2008-04-16  Bruno Haible  <bruno@clisp.org>
56456
56457         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56458         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56459         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56460         Reported by Daniel Bergström <daniel@octocode.com>.
56461
56462 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56463             Bruno Haible  <bruno@clisp.org>
56464
56465         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56466         function.
56467         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56468         New functions, mostly extracted from gl_locale_name_default.
56469         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56470
56471 2008-04-16  Eric Blake  <ebb9@byu.net>
56472
56473         Adjust strtod detection to catch glibc 2.7 bug.
56474         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56475         Reported by John Gatewood Ham.
56476
56477 2008-04-16  Bruno Haible  <bruno@clisp.org>
56478
56479         Add tentative support for Linux libc5.
56480         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56481         * lib/fpurge.c (fpurge): Likewise.
56482         * lib/freadable.c (freadable): Likewise.
56483         * lib/freadahead.c (freadahead): Likewise.
56484         * lib/freading.c (freading): Likewise.
56485         * lib/freadptr.c (freadptr): Likewise.
56486         * lib/freadseek.c (freadptrinc): Likewise.
56487         * lib/fseeko.c (rpl_fseeko): Likewise.
56488         * lib/fseterr.c (fseterr): Likewise.
56489         * lib/fwritable.c (fwritable): Likewise.
56490         * lib/fwriting.c (fwriting): Likewise.
56491         Reported by Alain Guibert <alguibert+bts@free.fr>.
56492
56493 2008-04-15  Bruno Haible  <bruno@clisp.org>
56494
56495         * modules/mathl (configure.ac): Define module indicator.
56496
56497 2008-04-15  Bruno Haible  <bruno@clisp.org>
56498
56499         * lib/logl.c (logl): Remove unused variables.
56500
56501 2008-04-15  Bruno Haible  <bruno@clisp.org>
56502
56503         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56504         fails.
56505
56506 2008-04-15  Bruno Haible  <bruno@clisp.org>
56507
56508         * lib/trim.c (trim2): Fix argument of isspace() macro.
56509
56510 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56511
56512         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56513         to 0.
56514         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56515
56516 2008-04-14  Bruno Haible  <bruno@clisp.org>
56517
56518         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56519         AC_LANG_PROGRAM argument.
56520         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56521         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56522         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56523         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56524         * m4/math_h.m4 (gl_MATH_H): Likewise.
56525         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56526         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56527         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56528         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56529         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56530         * m4/regex.m4 (gl_REGEX): Likewise.
56531         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56532         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56533         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56534         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56535         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56536         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56537         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56538         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56539
56540 2008-04-14  Jim Meyering  <meyering@redhat.com>
56541
56542         test-strtod: fix typos: s/abs/fabs/
56543         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56544
56545 2008-04-13  Bruno Haible  <bruno@clisp.org>
56546
56547         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56548         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56549         module is also used and while not building the reloc-wrapper.
56550
56551 2008-04-13  Bruno Haible  <bruno@clisp.org>
56552
56553         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56554
56555 2008-04-13  Bruno Haible  <bruno@clisp.org>
56556
56557         Fix AIX compilation failure introduced on 2008-04-02.
56558         * tests/test-frexp.c (exp): Undefine before redefining.
56559         * tests/test-frexpl.c (exp): Likewise.
56560
56561 2008-04-13  Bruno Haible  <bruno@clisp.org>
56562
56563         Work around a HP-UX stdio bug.
56564         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56565         * tests/test-ftello.c (main): Likewise.
56566         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56567         * doc/posix-functions/ftello.texi: Likewise.
56568
56569 2008-04-13  Bruno Haible  <bruno@clisp.org>
56570
56571         Make test-signbit pass on HP-UX/hppa.
56572         * tests/test-signbit.c (minus_zerol): New variable.
56573         (test_signbitl): Use it.
56574
56575 2008-04-13  Bruno Haible  <bruno@clisp.org>
56576
56577         Make truncl work on OSF/1 4.0.
56578         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56579         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56580         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56582         HAVE_DECL_TRUNCL.
56583         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56584         HAVE_DECL_TRUNCL.
56585         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56586
56587 2008-04-13  Bruno Haible  <bruno@clisp.org>
56588
56589         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56590
56591 2008-04-13  Bruno Haible  <bruno@clisp.org>
56592
56593         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56594         expression, so as to avoid HP-UX 11 cc compiler bug.
56595
56596 2008-04-13  Bruno Haible  <bruno@clisp.org>
56597
56598         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56599
56600 2008-04-13  Bruno Haible  <bruno@clisp.org>
56601
56602         * lib/git-merge-changelog.c: Remove empty declaration outside of
56603         functions.
56604
56605 2008-04-13  Bruno Haible  <bruno@clisp.org>
56606
56607         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56608
56609 2008-04-13  Bruno Haible  <bruno@clisp.org>
56610
56611         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56612         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56613         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56614         also if it exists but lacks definitions of the SHUT_* macros.
56615         * modules/sys_socket (Description): Update.
56616         Reported by Elbert Pol <e.pol@chello.nl>.
56617
56618 2008-04-13  Bruno Haible  <bruno@clisp.org>
56619
56620         * lib/localcharset.c (OS2): Don't redefine if already defined.
56621         Reported by Elbert Pol <e.pol@chello.nl>.
56622
56623 2008-04-13  Bruno Haible  <bruno@clisp.org>
56624
56625         * lib/binary-io.h [__EMX__]: Include <io.h>.
56626         Reported by Elbert Pol <e.pol@chello.nl>.
56627
56628 2008-04-12  Bruno Haible  <bruno@clisp.org>
56629
56630         * lib/fpucw.h: Enable the definitions also for x86_64.
56631         Needed for NetBSD/x86_64.
56632         Reported by Thomas Klausner <tk@giga.or.at>.
56633
56634 2008-04-12  Bruno Haible  <bruno@clisp.org>
56635
56636         * tests/test-strtod.c: Include isnand.h.
56637         (main): Use isnand instead of isnan.
56638         Reported by Jim Meyering.
56639
56640 2008-04-12  Bruno Haible  <bruno@clisp.org>
56641
56642         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56643         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56644
56645 2008-04-12  Jim Meyering  <meyering@redhat.com>
56646
56647         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56648
56649 2008-04-12  Bruno Haible  <bruno@clisp.org>
56650
56651         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56652         Reported by Elbert Pol <e.pol@chello.nl>.
56653
56654 2008-04-12  Eric Blake  <ebb9@byu.net>
56655
56656         Work around Solaris 10 math.h bug.
56657         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56658         (gl_MATH_H_DEFAULTS): Set up default.
56659         * modules/math (Makefile.am): Replace new indicators.
56660         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56661         * tests/test-math.c (main): Test this.
56662         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56663         * doc/posix-headers/math.texi (math.h): Mention bug.
56664         Reported by Nelson H. F. Beebe and Jim Meyering.
56665
56666 2008-04-11  Bruno Haible  <bruno@clisp.org>
56667
56668         Adapt to future versions of Apple GCC.
56669         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56670         Reported by Peter O'Gorman <peter@pogma.com>.
56671
56672 2008-04-11  Bruno Haible  <bruno@clisp.org>
56673
56674         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56675
56676 2008-04-11  Bruno Haible  <bruno@clisp.org>
56677
56678         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56679
56680         * modules/getaddrinfo-tests (Makefile.am): Define
56681         test_getaddrinfo_LDADD.
56682
56683 2008-04-11  Bruno Haible  <bruno@clisp.org>
56684
56685         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56686         (init): Fix syntax error.
56687         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56688         is declared.
56689
56690 2008-04-11  Bruno Haible  <bruno@clisp.org>
56691
56692         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56693         * modules/glob (Depends-on): Add stdbool.
56694
56695 2008-04-11  Bruno Haible  <bruno@clisp.org>
56696
56697         * lib/trim.c: Include <string.h>.
56698
56699 2008-04-11  Eric Blake  <ebb9@byu.net>
56700
56701         Avoid compile failure on OS/2.
56702         * lib/regex_internal.h (internal_function): Disable optimization
56703         on OS/2 (__EMX__), where it caused compiler error.
56704         Reported by Elbert Pol.
56705
56706 2008-04-11  Bruno Haible  <bruno@clisp.org>
56707
56708         Flush the standard error stream before aborting. Needed on mingw.
56709         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56710         * tests/test-array_list.c (ASSERT): Likewise.
56711         * tests/test-array_oset.c (ASSERT): Likewise.
56712         * tests/test-avltree_list.c (ASSERT): Likewise.
56713         * tests/test-avltree_oset.c (ASSERT): Likewise.
56714         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56715         * tests/test-binary-io.c (ASSERT): Likewise.
56716         * tests/test-byteswap.c (ASSERT): Likewise.
56717         * tests/test-c-ctype.c (ASSERT): Likewise.
56718         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56719         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56720         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56721         * tests/test-c-strstr.c (ASSERT): Likewise.
56722         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56723         * tests/test-canonicalize.c (ASSERT): Likewise.
56724         * tests/test-carray_list.c (ASSERT): Likewise.
56725         * tests/test-ceilf1.c (ASSERT): Likewise.
56726         * tests/test-ceilf2.c (ASSERT): Likewise.
56727         * tests/test-ceill.c (ASSERT): Likewise.
56728         * tests/test-count-one-bits.c (ASSERT): Likewise.
56729         * tests/test-fbufmode.c (ASSERT): Likewise.
56730         * tests/test-fflush2.c (ASSERT): Likewise.
56731         * tests/test-floorf1.c (ASSERT): Likewise.
56732         * tests/test-floorf2.c (ASSERT): Likewise.
56733         * tests/test-floorl.c (ASSERT): Likewise.
56734         * tests/test-fopen.c (ASSERT): Likewise.
56735         * tests/test-fpending.c (ASSERT): Likewise.
56736         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56737         * tests/test-fpurge.c (ASSERT): Likewise.
56738         * tests/test-freadable.c (ASSERT): Likewise.
56739         * tests/test-freadahead.c (ASSERT): Likewise.
56740         * tests/test-freading.c (ASSERT): Likewise.
56741         * tests/test-freadptr.c (ASSERT): Likewise.
56742         * tests/test-freadptr2.c (ASSERT): Likewise.
56743         * tests/test-freadseek.c (ASSERT): Likewise.
56744         * tests/test-freopen.c (ASSERT): Likewise.
56745         * tests/test-frexp.c (ASSERT): Likewise.
56746         * tests/test-frexpl.c (ASSERT): Likewise.
56747         * tests/test-fseek.c (ASSERT): Likewise.
56748         * tests/test-fseeko.c (ASSERT): Likewise.
56749         * tests/test-fstrcmp.c (ASSERT): Likewise.
56750         * tests/test-ftell.c (ASSERT): Likewise.
56751         * tests/test-ftello.c (ASSERT): Likewise.
56752         * tests/test-func.c (ASSERT): Likewise.
56753         * tests/test-fwritable.c (ASSERT): Likewise.
56754         * tests/test-fwriting.c (ASSERT): Likewise.
56755         * tests/test-getdelim.c (ASSERT): Likewise.
56756         * tests/test-getline.c (ASSERT): Likewise.
56757         * tests/test-i-ring.c (ASSERT): Likewise.
56758         * tests/test-iconv-utf.c (ASSERT): Likewise.
56759         * tests/test-iconv.c (ASSERT): Likewise.
56760         * tests/test-isfinite.c (ASSERT): Likewise.
56761         * tests/test-isnand.c (ASSERT): Likewise.
56762         * tests/test-isnanf.c (ASSERT): Likewise.
56763         * tests/test-isnanl.h (ASSERT): Likewise.
56764         * tests/test-ldexpl.c (ASSERT): Likewise.
56765         * tests/test-linked_list.c (ASSERT): Likewise.
56766         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56767         * tests/test-localename.c (ASSERT): Likewise.
56768         * tests/test-lseek.c (ASSERT): Likewise.
56769         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56770         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56771         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56772         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56773         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56774         * tests/test-mbschr.c (ASSERT): Likewise.
56775         * tests/test-mbscspn.c (ASSERT): Likewise.
56776         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56777         * tests/test-mbspbrk.c (ASSERT): Likewise.
56778         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56779         * tests/test-mbsrchr.c (ASSERT): Likewise.
56780         * tests/test-mbsspn.c (ASSERT): Likewise.
56781         * tests/test-mbsstr1.c (ASSERT): Likewise.
56782         * tests/test-mbsstr2.c (ASSERT): Likewise.
56783         * tests/test-mbsstr3.c (ASSERT): Likewise.
56784         * tests/test-memchr2.c (ASSERT): Likewise.
56785         * tests/test-memmem.c (ASSERT): Likewise.
56786         * tests/test-open.c (ASSERT): Likewise.
56787         * tests/test-printf-frexp.c (ASSERT): Likewise.
56788         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56789         * tests/test-printf-posix.c (ASSERT): Likewise.
56790         * tests/test-quotearg.c (ASSERT): Likewise.
56791         * tests/test-rbtree_list.c (ASSERT): Likewise.
56792         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56793         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56794         * tests/test-round1.c (ASSERT): Likewise.
56795         * tests/test-roundf1.c (ASSERT): Likewise.
56796         * tests/test-roundl.c (ASSERT): Likewise.
56797         * tests/test-signbit.c (ASSERT): Likewise.
56798         * tests/test-sleep.c (ASSERT): Likewise.
56799         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56800         * tests/test-snprintf.c (ASSERT): Likewise.
56801         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56802         * tests/test-stat-time.c (ASSERT): Likewise.
56803         * tests/test-strcasestr.c (ASSERT): Likewise.
56804         * tests/test-strerror.c (ASSERT): Likewise.
56805         * tests/test-striconv.c (ASSERT): Likewise.
56806         * tests/test-striconveh.c (ASSERT): Likewise.
56807         * tests/test-striconveha.c (ASSERT): Likewise.
56808         * tests/test-strsignal.c (ASSERT): Likewise.
56809         * tests/test-strstr.c (ASSERT): Likewise.
56810         * tests/test-strtod.c (ASSERT): Likewise.
56811         * tests/test-trunc1.c (ASSERT): Likewise.
56812         * tests/test-trunc2.c (ASSERT): Likewise.
56813         * tests/test-truncf1.c (ASSERT): Likewise.
56814         * tests/test-truncf2.c (ASSERT): Likewise.
56815         * tests/test-truncl.c (ASSERT): Likewise.
56816         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56817         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56818         * tests/test-vasnprintf.c (ASSERT): Likewise.
56819         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56820         * tests/test-vasprintf.c (ASSERT): Likewise.
56821         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56822         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56823         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56824         * tests/test-vsnprintf.c (ASSERT): Likewise.
56825         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56826         * tests/test-wcwidth.c (ASSERT): Likewise.
56827         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56828         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56829         * tests/test-xvasprintf.c (ASSERT): Likewise.
56830         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56831         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56832         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56833         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56834         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56835         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56836         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56837         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56838         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56839         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56840         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56841         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56842         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56843         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56844         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56845         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56846         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56847         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56848         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56849         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56850         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56851         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56852         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56853         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56854         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56855         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56856         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56857         * tests/unictype/test-combining.c (ASSERT): Likewise.
56858         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56859         * tests/unictype/test-digit.c (ASSERT): Likewise.
56860         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56861         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56862         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56863         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56864         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56865         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56866         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56867         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56868         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56869         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56870         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56871         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56872         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56873         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56874         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56875         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56876         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56877         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56878         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56879         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56880         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56881         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56882         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56883         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56884         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56885         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56886         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56887         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56888         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56889         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56890         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56891         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56892         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56893         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56894         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56895         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56896         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56897         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56898         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56899         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56900         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56901         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56902         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56903         Reported by Eric Blake.
56904
56905 2008-04-11  Bruno Haible  <bruno@clisp.org>
56906
56907         * lib/wchar.in.h: Tweak comment.
56908
56909 2008-04-11  Bruno Haible  <bruno@clisp.org>
56910
56911         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56912         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56913         gl_COMMON.
56914         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56915
56916 2008-04-11  Bruno Haible  <bruno@clisp.org>
56917
56918         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56919
56920 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56921
56922         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56923         of attempting to use non-existing /dev/*random.  Based on patch
56924         from Adam Strzelecki <ono@java.pl> in
56925         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56926
56927 2008-04-08  Bruno Haible  <bruno@clisp.org>
56928
56929         Add tentative support for emx+gcc.
56930         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56931         * lib/fpurge.c (fpurge): Likewise.
56932         * lib/freadable.c (freadable): Likewise.
56933         * lib/freadahead.c (freadahead): Likewise.
56934         * lib/freading.c (freading): Likewise.
56935         * lib/freadptr.c (freadptr): Likewise.
56936         * lib/freadseek.c (freadptrinc): Likewise.
56937         * lib/fseeko.c (rpl_fseeko): Likewise.
56938         * lib/fseterr.c (fseterr): Likewise.
56939         * lib/fwritable.c (fwritable): Likewise.
56940         * lib/fwriting.c (fwriting): Likewise.
56941         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56942
56943 2008-04-09  Eric Blake  <ebb9@byu.net>
56944
56945         Avoid some autoconf warnings.
56946         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56947         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56948         * m4/afs.m4 (gl_AFS): Likewise.
56949         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56950         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56951         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56952         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56953         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56954         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56955         (AC_CHECK_DECLS_ONCE): Likewise.
56956         Rename file...
56957         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56958         gnulib-tool requires autoconf 2.59 or better.
56959         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56960
56961 2008-04-08  Eric Blake  <ebb9@byu.net>
56962
56963         Use 'git describe --match' if present (added in git 1.5.5).
56964         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56965         if possible.
56966
56967 2008-04-08  Bruno Haible  <bruno@clisp.org>
56968
56969         Add tentative support for OpenServer.
56970         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56971         _ptr, _cnt.
56972         * lib/fpurge.c (fpurge): Likewise.
56973         * lib/freadable.c (freadable): Likewise.
56974         * lib/freadahead.c (freadahead): Likewise.
56975         * lib/freading.c (freading): Likewise.
56976         * lib/freadptr.c (freadptr): Likewise.
56977         * lib/freadseek.c (freadptrinc): Likewise.
56978         * lib/fseeko.c (rpl_fseeko): Likewise.
56979         * lib/fseterr.c (fseterr): Likewise.
56980         * lib/fwritable.c (fwritable): Likewise.
56981         * lib/fwriting.c (fwriting): Likewise.
56982         Reported by Roger Cornelius <rac@tenzing.org> and
56983         Brian K. White <brian@aljex.com>.
56984
56985 2008-04-06  Jim Meyering  <meyering@redhat.com>
56986
56987         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56988
56989 2008-04-06  Bruno Haible  <bruno@clisp.org>
56990
56991         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56992         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56993         * tests/test-printf-posix.sh: Likewise.
56994         * tests/test-vfprintf-posix.sh: Likewise.
56995         * tests/test-vprintf-posix.sh: Likewise.
56996         * tests/test-xprintf-posix.sh: Likewise.
56997
56998 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56999
57000         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
57001         hide error from 'ls', needed on OS/2.
57002         Report by Elbert Pol <elbert.pol@gmail.com>.
57003
57004 2008-04-04  Eric Blake  <ebb9@byu.net>
57005
57006         Make test-fseeko.c failures meaningful.
57007         * tests/test-fseeko.c: Print line number on failure.
57008         * tests/test-fseek.c: Likewise.
57009         Reported by Nelson H. F. Beebe.
57010
57011         Improve strtod bug detection check.
57012         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57013         required for Solaris 10.
57014         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57015
57016 2008-04-04  Bruno Haible  <bruno@clisp.org>
57017
57018         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57019         by m4/setenv.m4.
57020
57021 2008-04-03  Eric Blake  <ebb9@byu.net>
57022
57023         Ensure sane .version contents.
57024         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57025         version string.
57026         * build-aux/git-version-gen: Improve documentation.
57027
57028         Make GNU make output nicer.
57029         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57030         MAKECMDGOALS to enforce message for all command line targets.  Set
57031         srcdir for use in maint.mk.
57032
57033         Another maintainer tweak.
57034         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57035         a target that regenerates version.
57036
57037 2008-04-03  Jim Meyering  <meyering@redhat.com>
57038
57039         vc-list-files: don't cause coreutils "make po-check" failure
57040         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57041
57042 2008-04-03  Eric Blake  <ebb9@byu.net>
57043
57044         Allow VPATH usage of vc-list-files.
57045         * build-aux/vc-list-files (scriptversion): Add timestamp.
57046         (options): Add --help, --version, -C.
57047         (CVS): Support installed cvsu.
57048
57049 2008-04-02  Bruno Haible  <bruno@clisp.org>
57050
57051         Avoid some "statement with no effect" warnings from gcc.
57052         * tests/test-wctype.c (main): Explicitly ignore unused values.
57053         Reported by Jim Meyering.
57054
57055 2008-04-02  Jim Meyering  <meyering@redhat.com>
57056
57057         Avoid some warnings from "gcc -Wshadow".
57058         * tests/test-frexp.c (exp): Define to a different identifier.
57059         * tests/test-frexpl.c (exp): Likewise.
57060
57061 2008-04-03  Jim Meyering  <meyering@redhat.com>
57062
57063         bootstrap: remove dangling *.[ch] symlinks from lib
57064         * build-aux/bootstrap [dangling symlink removal]: Move find's
57065         -depth option to precede all others, to avoid a warning.
57066         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57067
57068 2008-04-02  Bruno Haible  <bruno@clisp.org>
57069
57070         Avoid some warnings from "gcc -Wshadow".
57071         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57072         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57073         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57074         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57075         Reported by Jim Meyering.
57076
57077 2008-04-01  Bruno Haible  <bruno@clisp.org>
57078
57079         Fix test to work on IRIX 6.5 with cc.
57080         * tests/test-math.c (numeric_equal): New function.
57081         (main): Use it.
57082
57083 2008-04-01  Bruno Haible  <bruno@clisp.org>
57084
57085         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57086
57087 2008-04-01  Bruno Haible  <bruno@clisp.org>
57088
57089         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57090         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57091         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57092         (Depends-on): Remove math.
57093
57094         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57095         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57096         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57097         (Depends-on): Remove math.
57098
57099         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57100         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57101         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57102         (Depends-on): Remove math.
57103         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57104         (Depends-on): Remove math.
57105
57106         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
57107         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57108         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57109         (Depends-on): Remove math.
57110         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57111         (Depends-on): Remove math.
57112
57113         * tests/test-round1.c: Include nan.h.
57114         (main): Use NaNd instead of NAN.
57115         * modules/round-tests (Files): Add tests/nan.h.
57116
57117         * tests/test-trunc1.c: Include nan.h.
57118         (main): Use NaNd instead of NAN.
57119         * modules/trunc-tests (Files): Add tests/nan.h.
57120
57121         * tests/test-roundf1.c: Include nan.h.
57122         (main): Use NaNf instead of NAN.
57123         * modules/roundf-tests (Files): Add tests/nan.h.
57124
57125         * tests/test-truncf1.c: Include nan.h.
57126         (main): Use NaNf instead of NAN.
57127         * modules/truncf-tests (Files): Add tests/nan.h.
57128
57129         * tests/test-ceilf1.c: Include nan.h.
57130         (main): Use NaNf instead of NAN.
57131         * modules/ceilf-tests (Files): Add tests/nan.h.
57132
57133         * tests/test-floorf1.c: Include nan.h.
57134         (main): Use NaNf instead of NAN.
57135         * modules/floorf-tests (Files): Add tests/nan.h.
57136
57137         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57138         (main): Use NaNf instead of NAN.
57139         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57140
57141         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57142         (main): Use NaNd instead of NAN.
57143         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
57144
57145         * tests/test-frexp.c: Include nan.h.
57146         (main): Use NaNd instead of NAN.
57147         * modules/frexp-tests (Files): Add tests/nan.h.
57148
57149         * lib/isnan.c: Don't include <math.h>.
57150         (FUNC): Don't use NAN macro.
57151         * modules/isnand-nolibm (Depends-on): Remove math.
57152         * modules/isnanf-nolibm (Depends-on): Remove math.
57153         * modules/isnanl (Depends-on): Remove math.
57154         * modules/isnanl-nolibm (Depends-on): Remove math.
57155
57156         * tests/nan.h: New file.
57157
57158 2008-04-01  Eric Blake  <ebb9@byu.net>
57159
57160         Fix typos.
57161         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
57162         values to be the right type.
57163
57164         For now, cater to gnulib strtod inaccuracies.
57165         * tests/test-strtod.c (main): Allow 1-ulp error on expected
57166         fractional results.  While not as nice from a QoI perspective, it
57167         is a quicker patch than correctly implementing decimal to binary
57168         rounding.
57169
57170 2008-03-31  Eric Blake  <ebb9@byu.net>
57171
57172         Guarantee a definition of NAN.
57173         * lib/math.in.h (NAN): Define if missing.
57174         * tests/test-math.c (main): Test it.
57175         * doc/posix-headers/math.texi (math.h): Document this.
57176         * lib/isnan.c (rpl_isnand): Use it.
57177         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
57178         * tests/test-floorf1.c (NaN): Likewise.
57179         * tests/test-frexp.c (NaN): Likewise.
57180         * tests/test-isnand.c (NaN): Likewise.
57181         * tests/test-isnanf.c (NaN): Likewise.
57182         * tests/test-round1.c (NaN): Likewise.
57183         * tests/test-roundf1.c (NaN): Likewise.
57184         * tests/test-snprintf-posix.h (NaN): Likewise.
57185         * tests/test-sprintf-posix.h (NaN): Likewise.
57186         * tests/test-trunc1.c (NaN): Likewise.
57187         * tests/test-truncf1.c (NaN): Likewise.
57188         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57189         * tests/test-vasprintf-posix.c (NaN): Likewise.
57190         * modules/isnand-nolibm (Depends-on): Add math.
57191         * modules/isnanf-nolibm (Depends-on): Likewise.
57192         * modules/isnanl (Depends-on): Likewise.
57193         * modules/isnanl-nolibm (Depends-on): Likewise.
57194         * modules/snprintf-posix-tests (Depends-on): Likewise.
57195         * modules/sprintf-posix-tests (Depends-on): Likewise.
57196         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57197         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57198         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57199         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57200
57201 2008-03-31  Bruno Haible  <bruno@clisp.org>
57202
57203         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57204         * doc/posix-functions/strtod.texi: Likewise.
57205
57206 2008-03-31  Bruno Haible  <bruno@clisp.org>
57207
57208         * tests/test-strtod.c (main): Don't use C99 syntax.
57209
57210 2008-03-31  Bruno Haible  <bruno@clisp.org>
57211
57212         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57213         Reported by Eric Blake.
57214
57215 2008-03-31  Jim Meyering  <meyering@redhat.com>
57216
57217         Don't compare actual signbit return values.
57218         * tests/test-strtod.c (main): Rather, compare only their
57219         zero/non-zero nature.
57220
57221 2008-03-31  Eric Blake  <ebb9@byu.net>
57222
57223         More strtod documentation.
57224         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57225         failures as distinct bugs.
57226
57227 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57228
57229         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57230         Problem reported by Erik Benada in
57231         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57232
57233 2008-03-30  Bruno Haible  <bruno@clisp.org>
57234
57235         * tests/test-strtod.c: Add comments about which assertion fails on which
57236         platform.
57237         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57238
57239 2008-03-30  Eric Blake  <ebb9@byu.net>
57240
57241         Test signbit behavior on zeros.
57242         * tests/test-signbit.c (test_signbitf): Add tests for zero.
57243         (test_signbitd, test_signbitl): Likewise.
57244
57245         More strtod touchups.
57246         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
57247         sign of negative underflow, for now.  Use .5, not .1.
57248         * doc/posix-functions/strtod.texi (strtod): Mention these
57249         limitations.
57250         Reported by Jim Meyering.
57251
57252 2008-03-30  Bruno Haible  <bruno@clisp.org>
57253
57254         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57255         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57256
57257 2008-03-30  Bruno Haible  <bruno@clisp.org>
57258
57259         Avoid failure when attempting to return empty iconv results on some
57260         platforms.
57261         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57262         allocation, don't report ENOMEM when the resulting string is empty.
57263
57264 2008-03-30  Bruno Haible  <bruno@clisp.org>
57265
57266         Fix buffer overrun.
57267         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57268         Don't consider the width for tmp_length. Check count against tmp_length
57269         before doing the padding. Ensure enough allocation during padding.
57270
57271 2008-03-30  Eric Blake  <ebb9@byu.net>
57272
57273         strtod touchups.
57274         * lib/strtod.c (strtod): Avoid compiler warnings.
57275         Reported by Jim Meyering.
57276
57277 2008-03-30  Bruno Haible  <bruno@clisp.org>
57278
57279         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57280         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57281         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57282         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57283         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57284         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57285         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57286         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57287
57288         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57289         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57290         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57291         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57292         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57293         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57294         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57295         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57296
57297         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57298         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57299         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57300         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57301         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57302         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57303         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57304         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57305
57306         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57307         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57308
57309         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57310         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57311
57312         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57313         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57314
57315         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57316         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57317         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57318
57319         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57320         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57321         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57322
57323         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57324         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57325         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57326
57327         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57328         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57329         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57330
57331         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57332         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57333         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57334         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57335         (Depends-on): Add EOVERFLOW.
57336         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57337         (Depends-on): Add EOVERFLOW.
57338         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57339         (Depends-on): Add EOVERFLOW.
57340         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57341         (Depends-on): Add EOVERFLOW.
57342         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57343         (Depends-on): Add EOVERFLOW.
57344         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57345         (Depends-on): Add EOVERFLOW.
57346         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57347         (Depends-on): Add EOVERFLOW.
57348         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57349         (Depends-on): Add EOVERFLOW.
57350
57351         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57352         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57353         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57354
57355         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57356         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57357         * modules/snprintf (Depends-on): Add EOVERFLOW.
57358
57359         * lib/poll.c (EOVERFLOW): Remove fallback.
57360         * modules/poll (Depends-on): Add EOVERFLOW.
57361
57362         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57363         * modules/getugroups (Depends-on): Add EOVERFLOW.
57364
57365         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57366         * modules/getdelim (Depends-on): Add EOVERFLOW.
57367
57368         * lib/ftell.c (EOVERFLOW): Remove fallback.
57369         * modules/ftell (Depends-on): Add EOVERFLOW.
57370
57371         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57372         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57373         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57374
57375         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57376
57377         * modules/EOVERFLOW-tests: New file.
57378         * tests/test-EOVERFLOW.c: New file.
57379
57380         * modules/EOVERFLOW: New file.
57381         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57382
57383 2008-03-30  Bruno Haible  <bruno@clisp.org>
57384
57385         Fix bug introduced on 2007-06-10.
57386         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57387         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57388
57389 2008-03-30  Bruno Haible  <bruno@clisp.org>
57390
57391         Improve freadseek's efficiency after ungetc.
57392         * lib/freadseek.c: Include freadahead.h.
57393         (freadptrinc): New function, extracted from freadseek.
57394         (freadseek): Use it in a loop. Use freadahead to determine the number
57395         of loop iterations.
57396         * modules/freadseek (Depends-on): Add freadahead.
57397         (configure.ac): Require AC_C_INLINE.
57398
57399 2008-03-30  Bruno Haible  <bruno@clisp.org>
57400
57401         * lib/freadseek.c (freadseek): Don't ignore the return value of
57402         freadptr.
57403
57404 2008-03-29  Eric Blake  <ebb9@byu.net>
57405
57406         Add hex float support.
57407         * modules/strtod (Depends-on): Add c-ctype.
57408         (Link): Mention POW_LIB.
57409         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57410         whitespace between 'e' and exponent.
57411         * tests/test-strtod.c (main): Enable hex float tests.
57412         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57413         now provides.
57414
57415         Document various strtod bugs, with some fixes.
57416         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57417         "-0x", "inf", "nan", and hex constants.
57418         * doc/posix-functions/atof.texi (atof): Likewise.
57419         * modules/stdlib (Makefile.am): Support strtod.
57420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57421         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57422         detect additional strtod bugs.
57423         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57424         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57425         bool where appropriate.  Parse 'inf' and 'nan'.
57426         * tests/test-strtod.c: New file.
57427         * modules/strtod (Depends-on): Add stdbool, stdlib.
57428         (configure.ac): Turn on module indicator.
57429         * modules/strtod-tests: New module.
57430
57431 2008-03-29  Eric Blake  <ebb9@byu.net>
57432
57433         Fix ftell on mingw.
57434         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57435         * modules/ftell-tests (Depends-on): Add binary-io.
57436         * modules/ftello-tests (Depends-on): Likewise.
57437         * tests/test-ftell.c (main): Enhance test to cover behavior after
57438         ungetc.  Enforce binary mode.
57439         * tests/test-ftello.c (main): Likewise.
57440
57441         Pass test-freadseek on cygwin.
57442         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57443         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57444         ungetc buffer.
57445
57446         * tests/test-fflush2.c (main): Fix typo.
57447
57448 2008-03-29  Bruno Haible  <bruno@clisp.org>
57449
57450         * tests/test-fflush2.c (main): Temporarily disable the contents of
57451         this test.
57452         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57453         Reported by Eric Blake.
57454
57455 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57456
57457         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57458         (GC_SHA224_DIGEST_SIZE): Add.
57459
57460         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57461         (gc_hash_digest_length): Likewise.
57462         (gc_hash_buffer): Likewise.
57463
57464 2008-03-25  Bruno Haible  <bruno@clisp.org>
57465
57466         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57467         detail which gettext release to use.
57468         Reported by Simon Josefsson.
57469
57470 2008-03-26  Jim Meyering  <meyering@redhat.com>
57471
57472         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57473         * modules/gnumakefile (clean-GNUmakefile): Also, use
57474         test ... && ... || : syntax rather than if-then ... fi.
57475
57476         gnumakefile: Don't double-quote-expand $(VPATH) value.
57477         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57478
57479 2008-03-24  Eric Blake  <ebb9@byu.net>
57480
57481         Alter GNUmakefile to install into top directory.
57482         * modules/maintainer-makefile: Split, and add dependency...
57483         * modules/gnumakefile: to this new module.
57484         * build-aux/GNUmakefile: Move...
57485         * top/GNUmakefile: ...here.
57486         * build-aux/maint.mk: Move...
57487         * top/maint.mk: ...here.
57488         * MODULES.html.sh (Support for maintaining...): Document new
57489         module.
57490
57491 2008-03-23  Bruno Haible  <bruno@clisp.org>
57492
57493         * gnulib-tool: New options --vc-files, --no-vc-files.
57494         (func_usage): Document them.
57495         (vc_files): New variable.
57496         (func_import): Consider vc_files.
57497         (func_create_testdir): Set vc_files to empty.
57498         Suggested by Jim Meyering and Karl Berry.
57499
57500 2008-03-23  Bruno Haible  <bruno@clisp.org>
57501
57502         Fix regex compilation error on HP-UX 11.
57503         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57504         * modules/regex (Files): Add m4/mbstate_t.m4.
57505         Reported by Ton Voon <ton.voon@altinity.com>.
57506
57507 2008-03-23  Bruno Haible  <bruno@clisp.org>
57508
57509         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57510
57511 2008-03-23  Eric Blake  <ebb9@byu.net>
57512             Bruno Haible  <bruno@clisp.org>
57513
57514         Install files from top/ in the destination directory.
57515         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57516         augmentation also for the files from top/.
57517         (func_import, func_create_testdir): Rewrite file names:
57518         top/filename -> filename.
57519
57520 2008-03-23  Bruno Haible  <bruno@clisp.org>
57521
57522         Tweak "gnulib --version" output.
57523         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57524
57525 2008-03-23  Bruno Haible  <bruno@clisp.org>
57526
57527         Tweak "gnulib --version" output.
57528         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57529         rather than contents of ChangeLog, when possible.
57530
57531 2008-03-21  Eric Blake  <ebb9@byu.net>
57532
57533         More --version tweaks.
57534         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57535         date of last ChangeLog entry.
57536
57537 2008-03-21  Jim Meyering  <meyering@redhat.com>
57538
57539         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57540
57541 2008-03-20  Eric Blake  <ebb9@byu.net>
57542
57543         VPATH fix.
57544         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57545
57546 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57547
57548         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57549         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57550
57551 2008-03-20  Eric Blake  <ebb9@byu.net>
57552
57553         Sync GNUmakefile with coreutils.
57554         * build-aux/GNUmakefile (have-Makefile): Rename...
57555         (_have-Makefile): ...to this, for namespace consideration.
57556         (GNUmakefile.cfg): Include, if present.
57557         (_autoreconf): Define a default.
57558         (_is-dist-target): New rule for rebuilds to pick up intra-release
57559         version.
57560         (maint-cfg.mk): Rename...
57561         (cfg.mk): ...to this.
57562
57563 2008-03-18  Jim Meyering  <meyering@redhat.com>
57564
57565         New script and module: mktempd
57566         * MODULES.html.sh (maint+release support): Add mktempd.
57567         * build-aux/mktempd: New file.
57568         * modules/mktempd: New file.
57569
57570 2008-03-15  Jim Meyering  <meyering@redhat.com>
57571
57572         Undo last change.
57573         * lib/sha1.c, lib/md5.c: 63 != ~63.
57574         Reported by Andreas Schwab.
57575
57576         sha1.c, md5.c: Hoist a redundant expression.
57577         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57578         "ctx->buflen" only once, before calling *_process_block.
57579         * lib/md5.c (md5_process_bytes): Likewise.
57580
57581 2008-03-14  Eric Blake  <ebb9@byu.net>
57582
57583         Bump copyright year in files generated by gnulib-tool.
57584         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57585         gnulib-tool, rather than hard-coding it.
57586
57587         Fix 'gnulib-tool --version' output to work with git.
57588         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57589         (startup): ...here.
57590         (func_version): Use it to invoke git-version-gen, rather than
57591         relying on CVS keyword expansion.  Modernize wording.
57592         (cvsdatestamp, last_checkin_date, version): Kill unused
57593         variables.
57594
57595 2008-03-12  Jim Meyering  <meyering@redhat.com>
57596
57597         Recognize optional cast of the argument to free.
57598         * build-aux/useless-if-before-free: Update regexps.
57599
57600         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57601
57602 2008-03-11  Bruno Haible  <bruno@clisp.org>
57603
57604         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57605         by a single package.
57606         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57607         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57608         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57609         Reported by Sam Steingold <sds@gnu.org>.
57610
57611 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57612
57613         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57614         repositories.
57615
57616 2008-03-11  Bruno Haible  <bruno@clisp.org>
57617
57618         Avoid conflicts between local macro definitions.
57619         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57620         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57621
57622 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57623             Bruno Haible  <bruno@clisp.org>
57624
57625         Make va_copy work with some version of xlc on AIX 5.1.
57626         * lib/stdarg.in.h: New file.
57627         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57628         On AIX, use a <stdarg.h> file substitute.
57629         * modules/stdarg (Files): Add lib/stdarg.in.h.
57630         (Depends-on): Add include_next.
57631         (Makefile.am): Build a stdarg.h substitute if requested.
57632         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57633
57634 2008-03-10  Bruno Haible  <bruno@clisp.org>
57635
57636         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57637         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57638         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57639
57640 2008-03-10  Bruno Haible  <bruno@clisp.org>
57641
57642         * modules/stdlib (Depends-on): Add include_next, remove
57643         absolute-header.
57644
57645 2008-03-09  Bruno Haible  <bruno@clisp.org>
57646
57647         * lib/freadahead.h (freadahead): Document more precisely.
57648         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57649         the sum of both buffer sizes.
57650         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57651         * NEWS: Document the change.
57652
57653 2008-03-09  Bruno Haible  <bruno@clisp.org>
57654
57655         Extend freadptr to return also the buffer size.
57656         * lib/freadptr.h (freadptr): Add sizep argument.
57657         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57658         (freadptr): Add sizep argument. Determine buffer size like freadahead
57659         does.
57660         * tests/test-freadptr.c: Don't include freadahead.h.
57661         (main): Adapt for new calling convention of freadptr.
57662         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57663         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57664         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57665         tests/test-freadptr2.sh.
57666         (Depends): Remove freadahead.
57667         (TESTS): Add test-freadptr2.sh.
57668         (check_PROGRAMS): Add test-freadptr2.
57669
57670 2008-03-09  Bruno Haible  <bruno@clisp.org>
57671
57672         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57673         Report and solution by Simon Josefsson.
57674
57675 2008-03-06  Bruno Haible  <bruno@clisp.org>
57676
57677         Make fflush after ungetc work on BSD platforms.
57678         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57679         * tests/test-fflush2.c: New file.
57680         * tests/test-fflush2.sh: New file.
57681         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57682         tests/test-fflush2.c.
57683         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57684         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57685
57686 2008-03-06  Eric Blake  <ebb9@byu.net>
57687
57688         Likewise for ftello.
57689         * modules/ftello (Dependencies): Add extensions.
57690         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57691
57692 2008-03-06  Bruno Haible  <bruno@clisp.org>
57693
57694         * modules/fseeko (Dependencies): Add extensions.
57695         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57696         Needed on glibc systems.
57697
57698 2008-03-06  Bruno Haible  <bruno@clisp.org>
57699
57700         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57701         email address.
57702         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57703
57704 2008-03-06  Bruno Haible  <bruno@clisp.org>
57705
57706         * users.txt: Add libgnupdf.
57707
57708 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57709
57710         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57711         (Header File Substitutes, Function Substitutes,
57712         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57713         (Build robot for gnulib): Fix typo.
57714
57715 2008-03-06  Bruno Haible  <bruno@clisp.org>
57716
57717         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57718         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57719
57720 2008-03-06  Bruno Haible  <bruno@clisp.org>
57721
57722         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57723         * doc/gnulib.texi: Include it.
57724
57725 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57726
57727         * modules/func (License): Change license to unlimited; there was
57728         no LGPL parts in the module anyway.
57729
57730 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57731
57732         * modules/__func__: Renamed to modules/func.
57733         * modules/__func__-tests: Renamed to modules/func-tests.
57734         * tests/test-__func__.c: Renamed to tests/test-func.c.
57735         * m4/__func__.m4: Renamed to m4/func.m4.
57736         * doc/gnulib.texi (__func__): Section renamed to func.
57737         Suggested by Eric Blake <ebb9@byu.net>.
57738
57739 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57740
57741         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57742         about __func__.  Make example self-contained.  Suggested by Eric
57743         Blake <ebb9@byu.net>.
57744
57745         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57746         Suggested by Eric Blake <ebb9@byu.net>.
57747
57748 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57749
57750         * modules/__func__: New file.
57751         * modules/__func__-tests: New file.
57752         * tests/test-__func__.c: New file.
57753         * m4/__func__.m4: New file.
57754         * doc/gnulib.texi (__func__): Document __func__ module.
57755
57756 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57757
57758         * modules/byteswap (License): Re-license as LGPLv2+.
57759
57760 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57761
57762         * doc/Makefile: Add pdf target.
57763
57764 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57765
57766         * modules/inline (License): Use 'unlimited', since there are only
57767         *.m4 files in this module.
57768
57769 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57770             Bruno Haible  <bruno@clisp.org>
57771
57772         Add support for HP C 7.1 on OpenVMS 8.3.
57773         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57774
57775 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57776
57777         Update VMS specifics.
57778         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57779
57780 2008-03-02  Jim Meyering  <meyering@redhat.com>
57781
57782         Remove the last dependency on the "free" module.
57783         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57784         Reported by Bob Proulx.
57785
57786         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57787
57788         Remove useless "if" tests before free.  Deprecate "free" module.
57789         * doc/posix-functions/free.texi: Mention that this
57790         module is no longer useful.
57791         * modules/free (Notice): Say this module is obsolete.
57792         * modules/readutmp (Depends-on): Remove free.
57793         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57794         * lib/putenv.c (putenv): Likewise.
57795         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57796         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57797         * tests/test-c-strcasestr.c (main): Likewise.
57798         * tests/test-c-strstr.c (main): Likewise.
57799         * tests/test-mbscasestr1.c (main): Likewise.
57800         * tests/test-mbscasestr2.c (main): Likewise.
57801         * tests/test-mbsstr1.c (main): Likewise.
57802         * tests/test-mbsstr2.c (main): Likewise.
57803         * tests/test-memmem.c (main): Likewise.
57804         * tests/test-strcasestr.c (main): Likewise.
57805         * tests/test-striconv.c (main): Likewise.
57806         * tests/test-striconveh.c (main): Likewise.
57807         * tests/test-striconveha.c (main): Likewise.
57808         * tests/test-strstr.c (main): Likewise.
57809
57810         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57811
57812         bootstrap: sync from coreutils again
57813         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57814
57815 2008-03-01  Jim Meyering  <meyering@redhat.com>
57816
57817         bootstrap: sync from coreutils
57818         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57819         also when the target doesn't exist.
57820
57821 2008-03-01  Eric Blake  <ebb9@byu.net>
57822
57823         Fix bugs in last patch.
57824         * lib/memchr2.c (memchr2): Fix typo.
57825         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57826         extension.
57827         Reported by Bruce Korb.
57828
57829         New module 'memchr2'.
57830         * modules/memchr2: New file.
57831         * modules/memchr2-tests: Likewise.
57832         * lib/memchr2.h: Likewise.
57833         * lib/memchr2.c: Likewise, based on memchr.c.
57834         * tests/test-memchr2.c: New test.
57835         * MODULES.html.sh (String handling): Add memchr2.
57836
57837 2008-02-29  Bruno Haible  <bruno@clisp.org>
57838
57839         * modules/freadseek-tests: New file.
57840         * tests/test-freadseek.sh: New file.
57841         * tests/test-freadseek.c: New file.
57842
57843         New module 'freadseek'.
57844         * modules/freadseek: New file.
57845         * lib/freadseek.h: New file.
57846         * lib/freadseek.c: New file.
57847         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57848
57849 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57850
57851         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57852         wydawca.
57853
57854         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57855         program_invocation_name and program_invocation_short_name are
57856         present.
57857
57858 2008-02-28  Bruno Haible  <bruno@clisp.org>
57859
57860         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57861         * tests/test-freadptr.sh: Also test non-seekable stdin.
57862
57863 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57864
57865         * build-aux/bootstrap (source_base, m4_base)
57866         (doc_base, tests_base): New variables.
57867         (gnulib_tool_options): Do not hardcode base directories, use
57868         the above variables instead.
57869
57870 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57871
57872         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57873
57874 2008-02-28  Bruno Haible  <bruno@clisp.org>
57875
57876         * modules/freadptr-tests: New file.
57877         * tests/test-freadptr.sh: New file.
57878         * tests/test-freadptr.c: New file.
57879
57880         New module 'freadptr'.
57881         * modules/freadptr: New file.
57882         * lib/freadptr.h: New file.
57883         * lib/freadptr.c: New file.
57884         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57885
57886 2008-02-26  Karl Berry  <karl@freefriends.org>
57887
57888         Sync from Libtool:
57889         * libltdl/argz.c (argz_add, argz_count): New functions.
57890         * libltdl/argz.in.h: Declare them.
57891         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57892
57893 2008-02-22  Bruno Haible  <bruno@clisp.org>
57894
57895         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57896         is a pointer type.  Needed for HP-UX 10.
57897         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57898         * doc/posix-functions/gmtime_r.texi: Likewise.
57899         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57900
57901 2008-02-24  Bruno Haible  <bruno@clisp.org>
57902
57903         * modules/environ-tests: New file.
57904         * tests/test-environ.c: New file.
57905
57906         New module 'environ'.
57907         * modules/environ: New file.
57908         * lib/unistd.in.h (environ): New declaration.
57909         * m4/environ.m4: New file.
57910         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57911         after use.
57912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57913         HAVE_DECL_ENVIRON.
57914         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57915         HAVE_DECL_ENVIRON.
57916         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57917         wrong claim that 'environ' is missing on some systems.
57918         * modules/execute (Depends-on): Add environ.
57919         * lib/execute.c (environ): Remove fallback declaration.
57920         * modules/pipe (Depends-on): Add environ.
57921         * lib/pipe.c (environ): Remove fallback declaration.
57922         * modules/setenv (Depends-on): Add environ.
57923         * lib/setenv.c (environ): Remove fallback declaration.
57924         * modules/unsetenv (Depends-on): Add environ.
57925         * lib/unsetenv.c (environ): Remove fallback declaration.
57926         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57927         m4/environ.m4.
57928         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57929         (gl_PREREQ_UNSETENV): Likewise.
57930
57931 2008-02-24  Bruno Haible  <bruno@clisp.org>
57932
57933         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57934
57935 2008-02-20  Bob Proulx  <bob@proulx.com>
57936
57937         Enable use of older two part flavor 'git describe'.
57938         * build-aux/git-version-gen: If using the older two part flavor of
57939         git version then recreate the third part now present in the
57940         newer three part flavor of git describe.
57941
57942 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57943
57944         * lib/fts.c (fts_build): Typo correction to comment.
57945
57946 2008-02-17  Bruno Haible  <bruno@clisp.org>
57947
57948         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57949         generating no-op conflicts.
57950
57951 2008-02-17  Bruno Haible  <bruno@clisp.org>
57952
57953         Speed up by 10%.
57954         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57955         result_entries, rather than an index-based loop.
57956
57957 2008-02-17  Bruno Haible  <bruno@clisp.org>
57958
57959         Speed up by 25%.
57960         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57961         'hashcode_cached'.
57962         (entry_create): New function.
57963         (entry_hashcode): Use the cached hashcode if possible.
57964         (read_changelog_file, try_split_merged_entry): Use entry_create.
57965
57966 2008-02-17  Bruno Haible  <bruno@clisp.org>
57967
57968         Speed up from O(n^2) to O(n) for long ChangeLog files.
57969         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57970         (read_changelog_file): Change implementation of entries_reversed list
57971         to rbtreehash.
57972         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57973
57974 2008-02-17  Bruno Haible  <bruno@clisp.org>
57975
57976         New option --split-merged-entry.
57977         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57978         (find_paragraph_end, try_split_merged_entry): New functions.
57979         (long_options): Add option --split-merged-entry.
57980         (usage): Document option --split-merged-entry.
57981         (main): Implement option --split-merged-entry.
57982         Reported by Eric Blake.
57983
57984 2008-02-17  Bruno Haible  <bruno@clisp.org>
57985
57986         * lib/git-merge-changelog.c: Include c-strstr.h.
57987         (main): Support the "git pull --rebase" situation.
57988         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57989         Reported by Eric Blake.
57990
57991 2008-02-16  Eric Blake  <ebb9@byu.net>
57992
57993         Avoid doubling \ in common case of "c-maybe" quoting style.
57994         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57995         eliding outer quotes.
57996         * lib/quotearg.h: Document this.
57997         * tests/test-quotearg.c (result_strings, inputs, results_g)
57998         (flag_results, locale_results): Test it by adding a new string to
57999         each test group.
58000         (compare_strings): Test new string.
58001
58002 2008-02-13  Eric Blake  <ebb9@byu.net>
58003
58004         Avoid trigraph quoting in default output.
58005         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
58006         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58007         unless explicitly requested.
58008         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58009
58010 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58011
58012         Don't rely on signed integer overflowing to negative value.
58013         * lib/getugroups.c (getugroups): Include <limits.h>.
58014         Instead, compare against INT_MAX, and increment only if the test passes.
58015
58016 2008-02-13  Jim Meyering  <meyering@redhat.com>
58017         and Eric Blake  <ebb9@byu.net>
58018
58019         Avoid shadowing warning and compile errors on Linux.
58020         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58021         forwarding macros on Linux.
58022         (dcgettext): Define a stub, for Linux.
58023         (results_g, main): Avoid warnings.
58024
58025 2008-02-12  Eric Blake  <ebb9@byu.net>
58026
58027         Silence warning in last patch.
58028         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58029
58030         Quotearg part 4: add tests, fix c-maybe colon quoting.
58031         * lib/quotearg.h: Improve documentation.
58032         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58033         escapes when adding outer quotes.  When quoting trigraphs, use
58034         valid C notation.  When quoting NUL, omit extra characters if next
58035         character is not digit.  Alter prototype.
58036         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58037         callers.
58038         * modules/quotearg-tests: New module.
58039         * tests/test-quotearg.c: New test.
58040
58041 2008-02-07  Eric Blake  <ebb9@byu.net>
58042
58043         Quotearg part 3: add flag to control outer quote elision.
58044         * lib/quotearg.h (c_maybe_quoting_style): New style.
58045         (enum quoting_flags): Better documentation of flags.
58046         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58047         c-maybe style.
58048         (quotearg_buffer_restyled): Handle new flag to elide outer
58049         quotes.
58050
58051         Quotearg part 2: add flag that can control NUL elision.
58052         * lib/quotearg.h (set_quoting_flags): New prototype.
58053         * lib/quotearg.c (struct quoting_options): Add flag field.
58054         (set_quoting_flags): New function.
58055         (quotearg_buffer_restyled): Add flags parameter.
58056         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58057         (quotearg_n_options): Set the flag, since length cannot be
58058         returned.
58059         (quoting_options_from_style): Default flags correctly.
58060
58061         Quotearg part 1: more wrappers, restore quotearg_char state.
58062         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58063         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58064         (quotearg_colon_mem): New wrappers.
58065         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58066         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58067         functions.
58068         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58069         (quotearg_colon_mem): New functions.
58070
58071 2008-02-11  Bruno Haible  <bruno@clisp.org>
58072
58073         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58074         library in the current directory: it does not work with parallel make.
58075         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58076
58077 2008-02-11  Bruno Haible  <bruno@clisp.org>
58078
58079         * .gitattributes: New file.
58080
58081 2008-02-11  Jim Meyering  <meyering@redhat.com>
58082
58083         useless-if-before-free: Fix reversed exit values.
58084         * build-aux/useless-if-before-free: Use correct values
58085         for EXIT_MATCH and EXIT_NO_MATCH.
58086
58087         * build-aux/useless-if-before-free: Close stdout carefully.
58088
58089 2008-02-10  Bruno Haible  <bruno@clisp.org>
58090
58091         New module 'git-merge-changelog'.
58092         * modules/git-merge-changelog: New file.
58093         * lib/git-merge-changelog.c: New file.
58094
58095 2008-02-10  Jim Meyering  <meyering@redhat.com>
58096
58097         useless-if-before-free: New option: --list (-l).
58098
58099         useless-if-before-free: Don't exit immediately upon open failure.
58100         * build-aux/useless-if-before-free: Exit 2 for errors.
58101         Upon failure to open a file, don't exit immediately.
58102         Rather, just warn and continue with any remaining files.
58103
58104 2008-02-10  Bruno Haible  <bruno@clisp.org>
58105
58106         New abstract list operation 'node_set_value'.
58107         * lib/gl_list.h (gl_list_node_set_value): New function.
58108         (struct gl_list_implementation): New field node_set_value.
58109         * lib/gl_list.c (gl_list_node_set_value): New function.
58110         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58111         (gl_array_list_implementation): Update.
58112         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58113         (gl_carray_list_implementation): Update.
58114         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58115         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58116         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58117         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58118         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58119         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58120         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58121         Update.
58122         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58123         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58124         (gl_sublist_list_implementation): Update.
58125
58126 2008-02-10  Bruno Haible  <bruno@clisp.org>
58127
58128         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58129         Needed when ELEMENT is #defined to 'some_type *'.
58130
58131 2008-02-10  Jim Meyering  <meyering@redhat.com>
58132
58133         New script and module: useless-if-before-free
58134         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58135         * build-aux/useless-if-before-free: New file.
58136         * modules/useless-if-before-free: New file.
58137
58138         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58139
58140         xstrtol_error: Fix typo.
58141         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58142         s/exit_failure/exit_status/.
58143
58144 2008-02-09  Jim Meyering  <meyering@redhat.com>
58145
58146         New script and module: gitlog-to-changelog
58147         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
58148         * modules/gitlog-to-changelog: New file.
58149         * build-aux/gitlog-to-changelog: New file.
58150
58151 2008-02-08  Jim Meyering  <meyering@redhat.com>
58152
58153         Avoid two "parameter unused" warnings.
58154         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
58155         Mark "st" as used.
58156
58157         Use "git COMMAND", not "git-COMMAND".
58158         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
58159         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
58160         * build-aux/git-version-gen: Use "git status", not "git-status".
58161
58162 2008-02-07  Bruno Haible  <bruno@clisp.org>
58163
58164         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
58165         Avoids a crash on Windows Vista.
58166         Reported by Adam Strzelecki <ono@java.pl> via
58167         Simon Josefsson <simon@josefsson.org>.
58168
58169 2008-02-06  Bruno Haible  <bruno@clisp.org>
58170
58171         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
58172         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
58173         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
58174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
58175         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58176         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58177         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
58178         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
58179         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58180         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58181         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58182         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58183         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58184         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58185         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58186         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58187         left-adjust flag.
58188         * tests/test-snprintf-posix.h (test_function): Likewise.
58189         * tests/test-sprintf-posix.h (test_function): Likewise.
58190         * tests/test-vasprintf-posix.c (test_function): Likewise.
58191         * doc/posix-functions/fprintf.texi: Update.
58192         * doc/posix-functions/printf.texi: Update.
58193         * doc/posix-functions/snprintf.texi: Update.
58194         * doc/posix-functions/sprintf.texi: Update.
58195         * doc/posix-functions/vfprintf.texi: Update.
58196         * doc/posix-functions/vprintf.texi: Update.
58197         * doc/posix-functions/vsnprintf.texi: Update.
58198         * doc/posix-functions/vsprintf.texi: Update.
58199         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58200
58201 2008-02-06  Bruno Haible  <bruno@clisp.org>
58202
58203         Fix bug introduced on 2008-01-26.
58204         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58205
58206 2008-02-06  Bruno Haible  <bruno@clisp.org>
58207
58208         Fix bug introduced on 2007-06-10.
58209         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58210         !NEED_PRINTF_FLAG_ZERO.
58211
58212 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58213
58214         getloadavg: use libperfstat on AIX5
58215         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58216
58217 2008-02-03  Bruno Haible  <bruno@clisp.org>
58218
58219         * lib/diffseq.h: Add comments about required #includes.
58220         Reported by Michael Biggs <gnulib@doubleplum.net>.
58221
58222 2008-02-01  Bruno Haible  <bruno@clisp.org>
58223
58224         * users.txt: Add gnuit.
58225
58226 2008-01-31  Bruno Haible  <bruno@clisp.org>
58227
58228         * lib/md4.c (set_uint32): Mark as inline.
58229         * lib/md5.c (set_uint32): Likewise.
58230         * lib/sha1.c (set_uint32): Likewise.
58231         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58232         * m4/md5.m4 (gl_MD5): Likewise.
58233         * m4/sha1.m4 (gl_SHA1): Likewise.
58234
58235 2008-01-31  Jim Meyering  <meyering@redhat.com>
58236
58237         Use "sizeof VAR", rather than a literal "4".
58238         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58239         * lib/md4.c (md4_read_ctx): Likewise.
58240         * lib/sha1.c (sha1_read_ctx): Likewise.
58241
58242 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58243
58244         * tests/test-sha1.c: New file, based on test-md5.c.
58245
58246         * modules/crypto/sha1-tests: New file.
58247
58248 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58249
58250         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
58251
58252 2008-01-31  Jim Meyering  <meyering@redhat.com>
58253
58254         Prefer "sizeof v" over the equivalent "4".
58255         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58256         * lib/md5.c (set_uint32): Likewise.
58257         * lib/sha1.c (set_uint32): Likewise.
58258
58259 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58260
58261         * lib/sha1.c (set_uint32): Mark function as static.
58262
58263 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58264
58265         md2: clarify comments to say that alignment is not required.
58266         * lib/md2.h: Remove warning about alignment in comment.
58267         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58268         never been required.
58269
58270 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58271
58272         md4: adapt alignment constraint fix from sha1.
58273         * lib/md4.c (set_uint32): New function, from sha1.c
58274         (md4_read_ctx): Use it.
58275         (md4_finish_ctx): Doc fix.
58276         * lib/md4.h: Doc fix.
58277
58278 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58279
58280         md5: adapt alignment constraint fix from sha1.
58281         * lib/md5.c (set_uint32): New function, from sha1.c
58282         (md5_read_ctx): Use it.
58283         (md5_finish_ctx): Doc fix.
58284         * lib/md5.h: Doc fix.
58285
58286 2008-01-30  Peter Palfrader  <weasel@debian.org>
58287
58288         sha1: remove the result buffer alignment constraint
58289         * lib/sha1.c (set_uint32): New function.
58290         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58291         constraint.
58292         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58293         * lib/sha1.h: Likewise.
58294
58295 2008-01-30  Andreas Schwab  <schwab@suse.de>
58296             Bruno Haible  <bruno@clisp.org>
58297
58298         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58299         correct definition of LDBL_MIN_EXP.
58300
58301 2008-01-30  Karl Berry  <karl@gnu.org>
58302
58303         * config/srclist-update: try to preserve x bit on updates.
58304         * config/srclistvars.sh: update for karl.
58305
58306 2008-01-29  Jim Meyering  <meyering@redhat.com>
58307
58308         vasnprintf.c: Avoid warning about unused label
58309         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58310         "overflow" label definition and associated code with the
58311         same cpp condition that guards the sole use of that label.
58312
58313 2008-01-26  Bruno Haible  <bruno@clisp.org>
58314
58315         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58316         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58317         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58318         * lib/isnanl-nolibm.h (isnanl): Likewise.
58319         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58320
58321 2008-01-26  Bruno Haible  <bruno@clisp.org>
58322
58323         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58324         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58325
58326 2008-01-26  Bruno Haible  <bruno@clisp.org>
58327
58328         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58329         GCC >= 4.0 built-in.
58330         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58331
58332 2008-01-26  Bruno Haible  <bruno@clisp.org>
58333
58334         Rename isnan, applicable to 'double' only, to isnand.
58335         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58336         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58337         (configure.ac): Update.
58338         (Include): Replace "isnan.h" with "isnand.h".
58339         * m4/isnand.m4: Renamed from m4/isnan.m4.
58340         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58341         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58342         instead of isnan.c.
58343         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58344         instead of HAVE_ISNAN_IN_LIBC.
58345         (isnand): Renamed from isnan.
58346         * lib/isnand.c: New file.
58347         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58348         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58349         (Makefile.am): Update.
58350         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58351         Include isnand.h instead of isnan.h.
58352         (main): Test isnand instead of isnan.
58353         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58354         isnan-nolibm.
58355         * modules/frexp (Depends-on): Likewise.
58356         * modules/frexp-tests (Depends-on): Likewise.
58357         * modules/frexp-nolibm (Depends-on): Likewise.
58358         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58359         * modules/isfinite (Depends-on): Likewise.
58360         * modules/round-tests (Depends-on): Likewise.
58361         * modules/signbit (Depends-on): Likewise.
58362         * modules/signbit-tests (Depends-on): Likewise.
58363         * modules/snprintf-posix (Depends-on): Likewise.
58364         * modules/sprintf-posix (Depends-on): Likewise.
58365         * modules/trunc-tests (Depends-on): Likewise.
58366         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58367         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58368         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58369         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58370         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58371         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58372         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58373         * modules/vasnprintf-posix (Depends-on): Likewise.
58374         * modules/vasprintf-posix (Depends-on): Likewise.
58375         * modules/vfprintf-posix (Depends-on): Likewise.
58376         * modules/vsnprintf-posix (Depends-on): Likewise.
58377         * modules/vsprintf-posix (Depends-on): Likewise.
58378         * lib/frexp.c: Include isnand.h instead of isnan.h.
58379         (ISNAN): Set to isnand instead of isnan.
58380         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58381         (gl_isfinited): Use isnand instead of isnan.
58382         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58383         (gl_signbitd): Use isnand instead of isnan.
58384         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58385         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58386         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58387         (main): Use isnand instead of isnan.
58388         * tests/test-round1.c: Include isnand.h.
58389         (main): Use isnand instead of isnan.
58390         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58391         (ISNAN): Set to isnand instead of isnan.
58392         * tests/test-trunc1.c: Include isnand.h.
58393         (main): Use isnand instead of isnan.
58394         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58395         (equal): Use isnand instead of isnan.
58396         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58397         isnand-nolibm.
58398         * NEWS: Mention the change.
58399
58400 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58401             Bruno Haible  <bruno@clisp.org>
58402
58403         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58404         the GCC builtins for signbits are present and set
58405         REPLACE_SIGNBIT_USING_GCC if so.
58406         * lib/math.in.h (signbit): Define using GCC builtins if
58407         REPLACE_SIGNBIT_USING_GCC is set.
58408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58409         REPLACE_SIGNBIT_USING_GCC.
58410         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58411
58412 2008-01-25  Jim Meyering  <meyering@redhat.com>
58413
58414         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58415         * lib/poll.c: Include <config.h>, not "config.h".
58416         * tests/test-getaddrinfo.c: Likewise.
58417
58418 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58419
58420         * modules/sockets-tests: New file.
58421
58422 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58423
58424         * modules/sockets: New module, can be used to call WSA_Startup and
58425         WSA_Cleanup when needed.
58426
58427         * lib/sockets.h, lib/sockets.c: New files.
58428
58429         * m4/sockets.m4: New file.
58430
58431         * tests/test-sockets.c: New file.
58432
58433 2008-01-19  Bruno Haible  <bruno@clisp.org>
58434
58435         * doc/posix-headers: Renamed from doc/headers.
58436         * doc/posix-functions: Renamed from doc/functions.
58437         * doc/gnulib.texi: Update.
58438
58439 2008-01-19  Bruno Haible  <bruno@clisp.org>
58440
58441         * doc/glibc-functions/strcasestr.texi: Include contents of
58442         doc/functions/strcasestr.texi, fixing the list of platforms.
58443         * doc/functions/strcasestr.texi: Remove file.
58444
58445 2008-01-19  Bruno Haible  <bruno@clisp.org>
58446
58447         * doc/glibc-functions/memmem.texi: Include contents of
58448         doc/functions/memmem.texi.
58449         * doc/functions/memmem.texi: Remove file.
58450
58451 2008-01-18  Bruno Haible  <bruno@clisp.org>
58452
58453         * doc/glibc-functions/*.texi: New files.
58454         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58455         to use the new files.
58456
58457 2008-01-17  Bruno Haible  <bruno@clisp.org>
58458
58459         * tests/test-gethostname.c (main): Fix printf statement.
58460
58461 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58462
58463         * modules/gethostname-tests: New file.
58464
58465         * tests/test-gethostname.c: New file.
58466
58467 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58468
58469         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58470         used by the UNAME case.  Reported by Bruno Haible
58471         <bruno@clisp.org>.
58472
58473 2008-01-17  Eric Blake  <ebb9@byu.net>
58474
58475         Convert c-strcasestr to be more efficient.
58476         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58477         (Depends-on): Add c-strcase, remove malloca, strnlen.
58478         * tests/test-c-strcasestr.c (main): Enhance test.
58479         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58480
58481 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58482
58483         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58484         Use it in creating po/Makevars.
58485
58486 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58487
58488         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58489         Applications that requires it should initialize libgcrypt
58490         manually.
58491
58492 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58493
58494         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58495
58496 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58497
58498         Fix problem with getdate on mingw32 reported by Simon Josefsson
58499         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58500         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58501         tzname", when deciding whether to declare tzname.
58502         * lib/strftime.c (tzname): Likewise.
58503
58504 2008-01-15  Bruno Haible  <bruno@clisp.org>
58505
58506         Work around a MacOS X 10.5 bug in frexpl().
58507         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58508         * doc/functions/frexpl.texi: Document the bug.
58509         Reported by Elias Pipping <pipping@gentoo.org>.
58510
58511 2008-01-14  Eric Blake  <ebb9@byu.net>
58512
58513         Touch up previous patch.
58514         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58515         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58516
58517         Convert strcasestr module to use Two-Way algorithm.
58518         * modules/strcasestr-simple: New module, based on the old
58519         strcasestr, but with Two-Way rather than KMP.
58520         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58521         * lib/string.in.h (rpl_strcasestr): Declare.
58522         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58523         performance.
58524         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58525         * modules/string (Makefile.am): Support strcasestr.
58526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58527         * modules/strcasestr-tests (Depends-on): Check for alarm.
58528         * tests/test-strcasestr.c: Augment test.
58529         * lib/str-two-way.h: Clean up stray macro.
58530         * NEWS: Document new module.
58531         * MODULES.html.sh (string handling): Likewise.
58532         * doc/functions/strcasestr.texi: New file.
58533         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58534         here, since it is not a POSIX function.
58535
58536 2008-01-14  Colin Watson  <cjwatson@debian.org>
58537             Bruno Haible  <bruno@clisp.org>
58538
58539         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58540         works fine; if not, set REPLACE_STRSIGNAL.
58541         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58542         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58543         REPLACE_STRSIGNAL.
58544         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58545         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58546         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58547
58548 2008-01-14  Bruno Haible  <bruno@clisp.org>
58549
58550         * modules/strsignal (Include): Change to <string.h>.
58551
58552 2008-01-14  Colin Watson  <cjwatson@debian.org>
58553
58554         * modules/argp (Notice): Add a notice recommending to change
58555         XGETTEXT_OPTIONS.
58556         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58557
58558 2008-01-13  Colin Watson  <cjwatson@debian.org>
58559
58560         * modules/strsignal-tests: New file.
58561         * tests/test-strsignal.c: New file.
58562
58563         * lib/strsignal.c: New file, from glibc with modifications.
58564         * lib/siglist.h: New file, from glibc with modifications.
58565         * lib/string.in.h (strsignal): New declaration.
58566         * m4/strsignal.m4: New file.
58567         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58568         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58569         * modules/strsignal: New file.
58570         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58571         HAVE_DECL_STRSIGNAL.
58572
58573 2008-01-13  Bruno Haible  <bruno@clisp.org>
58574
58575         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58576         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58577         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58578         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58579
58580 2008-01-13  Bruno Haible  <bruno@clisp.org>
58581
58582         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58583         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58584         * lib/argp.h (__attribute__): Likewise.
58585         * lib/c-stack.c (__attribute__): Likewise.
58586         * lib/error.h (__attribute__): Likewise.
58587         * lib/fts.c (__attribute__): Likewise.
58588         * lib/openat.h (__attribute__): Likewise.
58589         * lib/stdio.in.h (__attribute__): Likewise.
58590         * lib/string.in.h (__attribute__): Likewise.
58591         * lib/utimens.c (__attribute__): Likewise.
58592         * lib/vasnprintf.h (__attribute__): Likewise.
58593         * lib/xalloc.h (__attribute__): Likewise.
58594         * lib/xprintf.h (__attribute__): Likewise.
58595         * lib/xstrtol.h (__attribute__): Likewise.
58596         * lib/xvasprintf.h (__attribute__): Likewise.
58597
58598 2008-01-12  Bruno Haible  <bruno@clisp.org>
58599
58600         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58601         * doc/glibc-headers/a.out.texi: New file.
58602         * doc/glibc-headers/aliases.texi: New file.
58603         * doc/glibc-headers/alloca.texi: New file.
58604         * doc/glibc-headers/ar.texi: New file.
58605         * doc/glibc-headers/argp.texi: New file.
58606         * doc/glibc-headers/argz.texi: New file.
58607         * doc/glibc-headers/byteswap.texi: New file.
58608         * doc/glibc-headers/crypt.texi: New file.
58609         * doc/glibc-headers/endian.texi: New file.
58610         * doc/glibc-headers/envz.texi: New file.
58611         * doc/glibc-headers/err.texi: New file.
58612         * doc/glibc-headers/error.texi: New file.
58613         * doc/glibc-headers/execinfo.texi: New file.
58614         * doc/glibc-headers/fpu_control.texi: New file.
58615         * doc/glibc-headers/fstab.texi: New file.
58616         * doc/glibc-headers/fts.texi: New file.
58617         * doc/glibc-headers/getopt.texi: New file.
58618         * doc/glibc-headers/ieee754.texi: New file.
58619         * doc/glibc-headers/ifaddrs.texi: New file.
58620         * doc/glibc-headers/libintl.texi: New file.
58621         * doc/glibc-headers/mcheck.texi: New file.
58622         * doc/glibc-headers/mntent.texi: New file.
58623         * doc/glibc-headers/obstack.texi: New file.
58624         * doc/glibc-headers/paths.texi: New file.
58625         * doc/glibc-headers/printf.texi: New file.
58626         * doc/glibc-headers/pty.texi: New file.
58627         * doc/glibc-headers/resolv.texi: New file.
58628         * doc/glibc-headers/shadow.texi: New file.
58629         * doc/glibc-headers/sysexits.texi: New file.
58630         * doc/glibc-headers/ttyent.texi: New file.
58631
58632 2008-01-12  Jim Meyering  <meyering@redhat.com>
58633
58634         announce-gen: emit Gnulib's git-based version string.
58635         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58636         New option --gnulib-version=V, where V is expected to be
58637         the output of running git describe in the gnulib directory.
58638         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58639         not useful, and plan to stop publishing an xdelta file with each
58640         coreutils release.
58641
58642         * build-aux/announce-gen: Also check for lzma-compressed files.
58643
58644 2008-01-11  Bruno Haible  <bruno@clisp.org>
58645
58646         * tests/test-memmem.c (main): Increase maximum allowed time.
58647         * tests/test-strstr.c (main): Likewise.
58648
58649 2008-01-11  Bruno Haible  <bruno@clisp.org>
58650
58651         * doc/functions/memmem.texi: Add more precisions about platforms.
58652         * doc/functions/strstr.texi: Likewise.
58653
58654 2008-01-10  Eric Blake  <ebb9@byu.net>
58655
58656         * m4/strstr.m4: Delete cruft from copy-n-paste.
58657         Reported by Bruno Haible.
58658
58659 2008-01-10  Bruno Haible  <bruno@clisp.org>
58660
58661         Make c-strstr rely on strstr.
58662         * lib/c-strstr.c: Don't include str-kmp.h.
58663         (c_strstr): Define in terms of strstr.
58664         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58665         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58666
58667 2008-01-10  Bruno Haible  <bruno@clisp.org>
58668
58669         * doc/gnulib.texi (String Functions in C Locale): New section.
58670         * doc/c-ctype.texi: New file.
58671         * doc/c-strcase.texi: New file.
58672         * doc/c-strcaseeq.texi: New file.
58673         * doc/c-strcasestr.texi: New file.
58674         * doc/c-strstr.texi: New file.
58675         * doc/c-strtod.texi: New file.
58676         * doc/c-strtold.texi: New file.
58677
58678 2008-01-10  Eric Blake  <ebb9@byu.net>
58679
58680         * lib/relocatable.h: Fix a comment.
58681
58682 2008-01-10  Eric Blake  <ebb9@byu.net>
58683
58684         Share two-way algorithm.
58685         * lib/str-two-way.h: New file, merged from...
58686         * lib/memmem.c: ...here...
58687         * lib/strstr.c: ...and here.
58688         * modules/memmem (Files): Use it.
58689         * modules/strstr (Files): Likewise.
58690
58691         Avoid quadratic strstr implementations.
58692         * lib/strstr.c: New file.
58693         * m4/strstr.m4: Likewise.
58694         * modules/strstr: Likewise.
58695         * modules/strstr-tests: Likewise.
58696         * tests/test-strstr.c: Likewise.
58697         * lib/string.in.h (rpl_strstr): Declare.
58698         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58699         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58700         * modules/string (Makefile.am): Likewise.
58701         * MODULES.html.sh (string handling): Mention new module.
58702         * doc/functions/strstr.texi (strstr): Document the bug.
58703
58704 2008-01-10  Bruno Haible  <bruno@clisp.org>
58705
58706         * lib/relocatable.h (relocate): State whether result is freshly
58707         allocated or not.
58708         * lib/relocatable.c (relocate): Return a freshly allocated string
58709         instead of a pointer to a privately held string.
58710         Reported by Sylvain Beucler <beuc@gnu.org>.
58711
58712 2008-01-10  Colin Watson  <cjwatson@debian.org>
58713
58714         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58715         s/S_ISNLK/S_ISLNK/.
58716
58717 2008-01-09  Bruno Haible  <bruno@clisp.org>
58718
58719         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58720         and other files.
58721         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58722         if it's only a guess.
58723         * modules/memmem: Simplify by depending on memmem-simple.
58724
58725 2008-01-09  Bruno Haible  <bruno@clisp.org>
58726
58727         Work around OpenBSD 4.0 tdelete() bug.
58728         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58729         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58730         macros and don't redefine the enum values.
58731         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58732         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58733         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58734
58735 2008-01-09  Bruno Haible  <bruno@clisp.org>
58736
58737         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58738         (main): Don't perform the tests if setlocale did not install a UTF-8
58739         locale. Needed on OpenBSD 4.0.
58740         * modules/wcwidth-tests (Depends-on): Add localcharset.
58741
58742 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58743
58744         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58745         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58746         * NEWS: announce this.
58747         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58748
58749 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58750         and Eric Blake  <ebb9@byu.net>
58751
58752         Add memmem-simple module.
58753         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58754         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58755         * modules/memmem-simple: New file.
58756         * modules/memmem (Description): Tweak.
58757         * MODULES.html.sh (string handling): Mention new module.
58758         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58759         addressed by memmem-simple.
58760         * NEWS: Document the difference.
58761
58762 2008-01-09  Eric Blake  <ebb9@byu.net>
58763
58764         Give gcc some memmem optimization hints.
58765         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58766         (strcasestr): Declare as pure.
58767         * modules/memmem (Maintainer): Claim my implementation.
58768
58769 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58770
58771         Support AIX 6.1 and higher.
58772         * build-aux/config.libpath: Likewise.
58773         * build-aux/config.rpath: Likewise.
58774
58775 2008-01-08  Jim Meyering  <meyering@redhat.com>
58776             Bruno Haible  <bruno@clisp.org>
58777
58778         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58779         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58780         Reported by Peter Fales in
58781         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58782
58783 2008-01-08  Bruno Haible  <bruno@clisp.org>
58784
58785         * modules/unictype/category-of (Depends-on): Add
58786         unictype/category-none.
58787         * modules/unictype/category-and-tests (Depends-on): Add
58788         unictype/category-{L,N,Lu,Nd}.
58789         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58790         * modules/unictype/category-or-tests (Depends-on): Add
58791         unictype/category-{L,N}.
58792         * modules/unictype/category-name-tests (Depends-on): Add
58793         unictype/category-{Z,Nl}.
58794         Reported by Simon Josefsson.
58795
58796 2008-01-08  Bruno Haible  <bruno@clisp.org>
58797
58798         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58799         convention better.
58800         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58801         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58802         Reported by Peter Miller <millerp@canb.auug.org.au>.
58803
58804 2008-01-08  Eric Blake  <ebb9@byu.net>
58805
58806         Rewrite memmem to guarantee linear complexity without malloc.
58807         * lib/memmem.c (memmem): Use Two-Way rather than
58808         Knuth-Morris-Pratt, to allow O(1) space usage.
58809         (critical_factorization, two_way_short_needle)
58810         (two_way_long_needle): New functions.
58811         (knuth_morris_pratt): Delete.
58812         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58813         Add stdint.
58814         * tests/test-memmem.c (main): Add tests for periodic needle and
58815         sublinear performance.
58816         * doc/functions/memmem.texi (memmem): Document other deficiencies
58817         in cygwin and older glibc.
58818
58819 2008-01-08  Bruno Haible  <bruno@clisp.org>
58820
58821         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58822         augmentation.
58823
58824 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58825
58826         Add a configure time option: --disable-acl.
58827         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58828         AC_ARG_ENABLE(acl).
58829
58830 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58831
58832         * tests/test-localename.c: Don't include obsolete "setenv.h".
58833
58834         * modules/localename-tests (Depends-on): Need unsetenv.
58835
58836 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58837
58838         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58839
58840 2008-01-06  Colin Watson  <cjwatson@debian.org>
58841
58842         * users.txt: Add man-db.
58843
58844 2008-01-07  Bruno Haible  <bruno@clisp.org>
58845
58846         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58847         previous section name.
58848
58849 2008-01-07  Bruno Haible  <bruno@clisp.org>
58850
58851         * lib/progname.c (set_program_name): Don't strip off a leading
58852         "lt-" prefix outside a .libs directory.
58853         Suggested by Paul Eggert.
58854
58855 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58856             Bruno Haible  <bruno@clisp.org>
58857
58858         Improve memory cleanup in 'relocatable' module.
58859         * lib/relocatable.h (compute_curr_prefix): Change return type to
58860         'char *'.
58861         * lib/relocatable.c (compute_curr_prefix): Change return type to
58862         'char *'. Free curr_installdir after use.
58863         (relocate): Free curr_prefix_better after use.
58864         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58865
58866 2008-01-01  Bruno Haible  <bruno@clisp.org>
58867
58868         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58869         failure on older glibc systems.
58870         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58871
58872 2008-01-05  Eric Blake  <ebb9@byu.net>
58873
58874         Avoid quadratic system memmem.
58875         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58876         Reported by Ralf Wildenhues.
58877
58878         Fix memmem test for mingw.
58879         * modules/memmem-tests (configure.ac): Check for alarm.
58880         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58881         it.
58882         * doc/functions/memmem.texi: New file.
58883         * doc/gnulib.texi (Function Substitutes): Add memmem.
58884         Reported by Bruno Haible.
58885
58886 2008-01-04  Bruno Haible  <bruno@clisp.org>
58887
58888         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58889         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58890         gl_HEADER_STRING_H_DEFAULTS.
58891
58892 2008-01-04  Eric Blake  <ebb9@byu.net>
58893
58894         Shorten duration of memmem test.
58895         * tests/test-memmem.c (main): Use alarm to declare failure if test
58896         is taking too long.
58897         Reported by Ralf Wildenhues.
58898
58899 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58900
58901         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58902         string, needed by strerror.
58903
58904 2008-01-03  Colin Watson  <cjwatson@debian.org>
58905             Bruno Haible  <bruno@clisp.org>
58906
58907         * doc/gnulib-tool.texi (Localization): New section.
58908
58909 2008-01-02  Bruno Haible  <bruno@clisp.org>
58910
58911         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58912         variables to 'unsigned char *' type.
58913         Reported by Paul Eggert.
58914
58915 2008-01-02  Jim Meyering  <jim@meyering.net>
58916
58917         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58918
58919 2007-12-31  Jim Meyering  <jim@meyering.net>
58920
58921         Avoid use of private FTS type name.
58922         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58923
58924 2007-12-30  Karl Berry  <karl@gnu.org>
58925
58926         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58927         work around defect in Texinfo and/or the standalone Info browser.
58928
58929 2007-12-30  Bruno Haible  <bruno@clisp.org>
58930
58931         Unify 5 copies of the KMP code.
58932         * lib/str-kmp.h: New file.
58933         * lib/c-strcasestr.c: Include str-kmp.h.
58934         (knuth_morris_pratt): Remove function.
58935         (c_strcasestr): Update.
58936         * lib/c-strstr.c: Include str-kmp.h.
58937         (knuth_morris_pratt): Remove function.
58938         (c_strcasestr): Update.
58939         * lib/mbscasestr.c: Include str-kmp.h.
58940         (knuth_morris_pratt_unibyte): Remove function.
58941         * lib/mbsstr.c: Include str-kmp.h.
58942         (knuth_morris_pratt_unibyte): Remove function.
58943         * lib/strcasestr.c: Include str-kmp.h.
58944         (knuth_morris_pratt): Remove function.
58945         (strcasestr): Update.
58946         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58947         * modules/c-strstr (Files): Likewise.
58948         * modules/mbscasestr (Files): Likewise.
58949         * modules/mbsstr (Files): Likewise.
58950         * modules/strcasestr (Files): Likewise.
58951         Suggested by Paul Eggert.
58952
58953 2007-12-30  Bruno Haible  <bruno@clisp.org>
58954
58955         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58956         defined.
58957
58958 2007-12-30  Bruno Haible  <bruno@clisp.org>
58959
58960         * lib/xmalloca.h: Include xalloc.h.
58961         (xnmalloca): New macro.
58962
58963 2007-12-30  Bruno Haible  <bruno@clisp.org>
58964
58965         * lib/malloca.h (nmalloca): New macro.
58966         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58967         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58968         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58969         knuth_morris_pratt_multibyte): Likewise.
58970         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58971         knuth_morris_pratt_multibyte): Likewise.
58972         * lib/memmem.c (knuth_morris_pratt): Likewise.
58973         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58974
58975 2007-12-25  Bruno Haible  <bruno@clisp.org>
58976
58977         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58978         * lib/glob.c: Don't include openat.h.
58979         (link_exists2_p): Add back the code that deals with the
58980         !GLOB_ALTDIRFUNC case.
58981         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58982         let it do the filename concatenation.
58983         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58984         * modules/glob (Depends-on): Remove openat.
58985
58986 2007-12-31  Bruno Haible  <bruno@clisp.org>
58987
58988         * modules/dirfd (License): Change to LGPLv2+.
58989         Approved by Jim Meyering.
58990
58991 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58992
58993         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58994         when multiplying M by sizeof (size_t).
58995
58996 2007-12-10  Martin Lambers  <marlam@marlam.de>
58997
58998         Override getpagesize on mingw.
58999         * lib/getpagesize.c: New file.
59000         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
59001         * modules/getpagesize (Files): Add lib/getpagesize.c.
59002         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
59003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59004         REPLACE_GETPAGESIZE.
59005         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
59006
59007 2007-12-25  Bruno Haible  <bruno@clisp.org>
59008
59009         * modules/localcharset (Notice): New field.
59010         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59011         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59012
59013 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59014             Bruno Haible  <bruno@clisp.org>
59015
59016         Avoid using the syntax symbol() in formatted documentation.
59017         * MODULES.html.sh (func_module): When replacing symbol() with a
59018         hyperlink, remove the parentheses. Show an error if some remain.
59019         Recognize and render the '...' syntax.
59020         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59021         Rework. Add paragraph about GCC's inlining.
59022         * doc/alloca.texi: Likewise.
59023         * doc/error.texi: Remove parentheses from symbol reference.
59024         * doc/gnulib-intro.texi: Likewise.
59025         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59026         * modules/fnmatch (Description): Reword to say "the ... function".
59027         * modules/full-read (Description): Likewise.
59028         * modules/full-write (Description): Likewise.
59029         * modules/safe-read (Description): Likewise.
59030         * modules/safe-write (Description): Likewise.
59031         * modules/strchrnul (Description): Likewise.
59032         * modules/trim (Description): Likewise.
59033         * modules/error (Description): Remove parentheses from symbol
59034         references.
59035         * modules/verror (Description): Likewise.
59036         Reported by Karl Berry.
59037
59038 2007-12-25  Bruno Haible  <bruno@clisp.org>
59039
59040         Fixup after 2007-10-16 commit.
59041         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59042
59043 2007-12-24  Bruno Haible  <bruno@clisp.org>
59044
59045         Make --enable-relocatable work with DESTDIR.
59046         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59047         to compute installdir from destprog.
59048         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59049         also set the RELOC_DESTDIR variable.
59050         Reported by Левашев Иван <octagram@bluebottle.com>.
59051
59052 2007-12-24  Bruno Haible  <bruno@clisp.org>
59053
59054         Fix link error due to xalloc_die().
59055         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59056         of xreadlink.
59057         * lib/relocwrapper.c: Update comments.
59058         * build-aux/install-reloc: Remove xreadlink.c from file list.
59059         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59060         xreadlink.c.
59061         Reported by Левашев Иван <octagram@bluebottle.com>.
59062
59063 2007-12-24  Bruno Haible  <bruno@clisp.org>
59064
59065         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59066         * lib/setenv.h: Remove file.
59067         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59068         lib/setenv.h.
59069         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59070         (Depends-on): Add stdlib.
59071         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59072         gl_FUNC_UNSETENV.
59073         (Include): Replace setenv.h with <stdlib.h>.
59074         * modules/unsetenv: New file.
59075         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59076         * lib/unsetenv.c: Include <stdlib.h> first.
59077         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59078         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59079         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59080         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59081         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59082         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59083         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59084         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59085         * doc/functions/unsetenv.texi: Update.
59086         * modules/xsetenv (Depends-on): Add unsetenv.
59087         * modules/getdate (Depends-on): Likewise.
59088         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59089         * lib/xsetenv.c: Don't include setenv.h.
59090         * lib/getdate.y: Likewise.
59091         * lib/relocwrapper.c: Likewise.
59092         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59093         (Depends-on): Add stdlib.
59094         * NEWS: Mention the changes.
59095         Reported by Левашев Иван <octagram@bluebottle.com>.
59096
59097 2007-12-23  Bruno Haible  <bruno@clisp.org>
59098
59099         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59100         indentation.
59101
59102 2007-12-23  Bruno Haible  <bruno@clisp.org>
59103
59104         * lib/c-strcasestr.c: Add more comments.
59105         * lib/c-strstr.c: Likewise.
59106         * lib/mbscasestr.c: Likewise.
59107         * lib/mbsstr.c: Likewise.
59108         * lib/strcasestr.c: Likewise.
59109         * lib/memmem.c: Likewise.
59110
59111 2007-12-23  Bruno Haible  <bruno@clisp.org>
59112
59113         * tests/test-memmem.c: Include <string.h> first.
59114
59115 2007-12-22  Bruno Haible  <bruno@clisp.org>
59116
59117         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59118         the contents of $testsbase.
59119         Reported by Ralf Wildenhues.
59120
59121 2007-12-22  Bruno Haible  <bruno@clisp.org>
59122
59123         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59124         two variables local_ldadd_before, local_ldadd_last.
59125
59126 2007-12-20  Eric Blake  <ebb9@byu.net>
59127
59128         Work around circular library issue when cross-compiling.
59129         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59130         that progname.o does not need to pull in rpl_memcmp.
59131
59132 2007-12-19  Eric Blake  <ebb9@byu.net>
59133
59134         Fix memmem to avoid O(n^2) worst-case complexity.
59135         * lib/memmem.c (knuth_morris_pratt): New function.
59136         (memmem): Use it if first few naive iterations fail.
59137         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59138         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59139         * modules/memchr (License): Likewise.
59140         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59141         malloca.
59142         * tests/test-memmem.c: Rewrite, borrowing ideas from
59143         test-mbsstr1.c; the old version wouldn't even compile!
59144         * modules/memmem-tests: New file.
59145         * lib/string.in.h (rpl_memmem): Add declaration.
59146         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
59147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
59148         REPLACE_MEMMEM.
59149
59150 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59151
59152         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
59153         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
59154         before any system include files, and undef after them all.  This
59155         should fix a problem on VMS reported by John E. Malmberg in
59156         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
59157
59158 2007-12-17  Eric Blake  <ebb9@byu.net>
59159
59160         Revert addition of verify, for BSD/OS.
59161         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
59162         can't handle large files, for the sake of obsolete platforms.
59163         * modules/fseeko (Depends-on): Remove verify.
59164         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
59165         * doc/functions/ftello.texi (ftello): Likewise.
59166         * doc/functions/fgetpos.texi (fgetpos): Likewise.
59167         Reported by Larry Jones.
59168
59169 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
59170
59171         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
59172         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
59173
59174 2007-12-17  Jim Meyering  <meyering@redhat.com>
59175
59176         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
59177         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
59178         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
59179         * modules/getcwd (Depends-on): Add openat.
59180         Reported by Petr Salinger.
59181
59182 2007-12-17  Bruno Haible  <bruno@clisp.org>
59183
59184         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59185         avoid a segmentation fault of the configure test on x86_64 systems.
59186
59187 2007-12-15  Jim Meyering  <meyering@redhat.com>
59188
59189         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59190
59191 2007-12-13  Eric Blake  <ebb9@byu.net>
59192
59193         Another fseek test.
59194         * tests/test-fseek.c (main): Also test ungetc handling.
59195         * tests/test-fseeko.c (main): Likewise.
59196         * modules/fseeko (Depends-on): Add verify.
59197         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59198         large.
59199         Reported by Larry Jones.
59200
59201         Fix fseeko on mingw.
59202         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59203         seek.
59204
59205         Beef up fseek tests.
59206         * tests/test-fseek.c (main): Also test eof handling.
59207         * tests/test-fseeko.c (main): Likewise.
59208         Reported by Larry Jones.
59209
59210 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59211
59212         Fix fseeko on BSD-based platforms.
59213         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59214         successful seek.
59215
59216 2007-12-12  Eric Blake  <ebb9@byu.net>
59217
59218         Allow circular dependency of separate libtests.a
59219         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59220         when use_libtests.
59221
59222 2007-12-11  Eric Blake  <ebb9@byu.net>
59223
59224         Fix bug with -0.0L in previous patch.
59225         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59226         * tests/test-isnan.c (main): Also test on zeroes.
59227         * tests/test-isnanf.c (main): Likewise.
59228         * tests/test-isnanl.h (main): Likewise.
59229
59230         Detect pseudo-denormals on x86 even when cross-compiling.
59231         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59232         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59233         invalid bit patterns that happen to satisfy ==.
59234
59235         Avoid link failures with separate libtests.a.
59236         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59237         last, to satisfy circular dependencies.
59238
59239 2007-12-11  Eric Blake  <ebb9@byu.net>
59240         and Bruno Haible  <bruno@clisp.org>
59241
59242         Fix OpenBSD 4.0 <float.h> handling of long double.
59243         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
59244         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
59245         * doc/headers/float.texi (float.h): Document OpenBSD bug.
59246
59247 2007-12-11  Jim Meyering  <meyering@redhat.com>
59248
59249         * users.txt: Add libvirt.
59250
59251         Support versions of autoconf prior to 2.59c.
59252         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
59253         if it is not already defined.
59254
59255 2007-12-09  Bruno Haible  <bruno@clisp.org>
59256
59257         Let 'gnulib-tool --import' collect sources needed for the tests in
59258         tests/ rather than in lib/.
59259         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59260         argument. If true, add rules to generate libtests.a, and put libtests.a
59261         into $(LDADD). Consider source files in subdirectories and set
59262         uses_subdirs.
59263         (func_emit_initmacro_start, func_emit_initmacro_end,
59264         func_emit_initmacro_done): Pass all arguments explicitly.
59265         (func_import): Determine two module lists main_modules,
59266         testsrelated_modules. Determine use_libtests. Determine two variables
59267         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59268         instead of just sed_transform_lib_file. Determine two variables
59269         main_files and testsrelated_files. Compute 'files' as the union of
59270         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59271         func_add_or_update. In the generated gnulib-comp.m4, collect the
59272         object files for tests/ in different variables than those for lib/.
59273         Substitute LIBTESTS_LIBDEPS.
59274         (func_create_testdir): Combine the uses_subdirs results from
59275         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59276
59277 2007-12-09  Bruno Haible  <bruno@clisp.org>
59278
59279         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59280         the build-aux directory.
59281
59282 2007-12-09  Bruno Haible  <bruno@clisp.org>
59283
59284         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59285         introduced on 2006-09-09.
59286
59287 2007-12-07  Jim Meyering  <meyering@redhat.com>
59288
59289         Let these macros work also with autoconf-2.59.
59290         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59291         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59292         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59293
59294 2007-12-06  Jim Meyering  <meyering@redhat.com>
59295
59296         Avoid a configure-time syntax error in gl_FUNC_ACL.
59297         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59298         function in each branch, before testing the cache variable.
59299
59300 2007-12-04  Eric Blake  <ebb9@byu.net>
59301
59302         Make scripts executable.
59303         * build-aux/config.guess: Add execute permissions.
59304         * build-aux/config.sub: Likewise.
59305         * build-aux/gendocs.sh: Likewise.
59306
59307         Fix frexp on mingw.
59308         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59309         cross-compiling.
59310         * doc/functions/frexp.texi (frexp): Document the bug.
59311
59312         Make cygwin fseeko check more reliable.
59313         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59314         version numbers, rather than unrelated feature check.
59315         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59316         * doc/functions/ftello.texi (ftello): Likewise.
59317         Reported by Bruno Haible.
59318
59319         * m4/strerror.m4: Bump version number.
59320
59321 2007-12-03  Bruno Haible  <bruno@clisp.org>
59322
59323         * doc/functions/mprotect.texi: Mention the mingw problem.
59324
59325 2007-12-03  Eric Blake  <ebb9@byu.net>
59326
59327         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59328         REPLACE_STRERROR is initialized before this macro.
59329
59330 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59331
59332         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59333         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59334         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59335         put -lsec in even for programs other than 'ls'.  This fixes a problem
59336         for gettext reported by Bruno Haible in
59337         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59338         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59339         Add support for Solaris 10.  This isn't efficient, but should get the
59340         job done for now.
59341
59342 2007-12-03  James Youngman  <jay@gnu.org>
59343
59344         * doc/regexprops-generic.texi: change "an close-group" to "a
59345         close-group" and "illegal" to "not allowed".
59346
59347 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59348
59349         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59350         pr_byname.h. Needed for the rare case when the maintainer has done
59351         "make maintainer-clean" in the source directory and then attempts a
59352         build outside the source directory.
59353         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59354         scripts_byname.h.
59355
59356 2007-12-02  Martin Lambers <marlam@marlam.de>
59357             Bruno Haible  <bruno@clisp.org>
59358
59359         * lib/getpagesize.h: Remove file.
59360         * lib/unistd.in.h: Include declaration of getpagesize here.
59361         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59362         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59363         HAVE_SYS_PARAM_H.
59364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59365         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59366         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59367         (Depends-on): Add unistd.
59368         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59369         (Include): Use <unistd.h> instead of getpagesize.h.
59370         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59371         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59372         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59373         gl_GETPAGESIZE invocation, already handled by module dependency.
59374         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59375
59376 2007-12-02  Bruno Haible  <bruno@clisp.org>
59377
59378         * modules/strings-tests: New file.
59379         * tests/test-strings.c: New file.
59380
59381         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59382         * lib/strings.in.h: New file.
59383         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59384         * m4/strings_h.m4: New file.
59385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59386         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59387         * modules/strings: New file.
59388         * modules/string (Makefile.am): Update.
59389         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59390         Reported by Karl Berry.
59391
59392 2007-12-01  Eric Blake  <ebb9@byu.net>
59393
59394         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59395         accommodate fix in cygwin 1.5.25.
59396
59397 2007-12-01  Jim Meyering  <meyering@redhat.com>
59398
59399         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59400         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59401         that would inhibit utf8-optimization of a regexp containing line-
59402         or buffer-anchors, e.g., `^', `$'.
59403
59404 2007-11-30  Bruno Haible  <bruno@clisp.org>
59405
59406         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59407         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59408         glthread_recursive_lock_init.
59409         * lib/lock.c (glthread_recursive_lock_init)
59410         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59411         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59412
59413 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59414
59415         New function qset_acl, like set_acl but with syscall semantics.
59416         * lib/acl.h (qset_acl): New decl.
59417         * lib/acl.c (qset_acl): New function.
59418         (set_acl): Use new function.  Use more-consistent diagnostics.
59419
59420 2007-11-28  Jim Meyering  <meyering@redhat.com>
59421
59422         * modules/physmem (License): Change from GPL to LGPLv2+.
59423
59424 2007-11-26  Bruno Haible  <bruno@clisp.org>
59425
59426         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59427         'long double' type has excess precision.
59428         Reported by Jim Meyering in
59429         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59430
59431 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59432
59433         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59434         Sync from <http://gnu.org/licenses>.
59435         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59436         with license text from same location.
59437         * doc/maintain.texi, doc/standards.texi:  Sync from
59438         <http://savannah.gnu.org/projects/gnustandards>.
59439
59440 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
59441         and Jim Meyering  <meyering@redhat.com>
59442
59443         Adjust getdate' grammar to accept a slightly more regular language.
59444         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59445         Before, the former was rejected.
59446         * lib/getdate.y (digits_to_date_time): New function, factored
59447         out of ...
59448         (number): ...here.  Just call digits_to_date_time.
59449         (hybrid): New non-terminal to handle an <unsigned number,
59450         signed relative offset> sequence consistently.
59451
59452 2007-11-18  Jim Meyering  <meyering@redhat.com>
59453
59454         Pull my changes from coreutils:
59455         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59456         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59457         use of $gnulib_tool_option_extras, so that it's separated from the
59458         preceding argument.
59459
59460         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59461         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59462         parent destination directories before copying a file into place.
59463
59464 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59465
59466         bootstrap: work also with 4-argument variant of AC_INIT
59467         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59468
59469 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59470
59471         Port test-getaddrinfo to Solaris.
59472         Problem reported by Bruno Haible in
59473         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59474         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59475         explanation of setting 'hints'.
59476         Don't reject an implementation merely because it returns EAI_SERVICE.
59477         (EAI_SERVICE): Define to 0 if not defined.
59478
59479 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59480
59481         The license of gnu-make and posix-shell is now "GPLed build tool".
59482         * modules/gnu-make (License): Likewise.
59483         * modules/posix-shell (License): Likewise.
59484
59485         New module posix-shell, for determining a POSIX shell
59486         or perhaps something that is close enough to a POSIX shell.
59487         * m4/posix-shell.m4: New file.
59488         * modules/posix-shell: New file.
59489
59490         * MODULES.html.sh: Mention new module.
59491
59492         New module gnu-make, for determining whether we're using GNU Make.
59493         * m4/gnu-make.m4: New file.
59494         * modules/gnu-make: New file.
59495         * MODULES.html.sh: Mention new module.
59496
59497 2007-11-14  Jim Meyering  <meyering@redhat.com>
59498
59499         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59500         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59501         use this macro to create a function _definition_.
59502         Remove useless "#undef ARGMATCH_DIE".
59503
59504 2007-11-14  Bruno Haible  <bruno@clisp.org>
59505
59506         * lib/config.charset: Update for OpenBSD 4.1.
59507         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59508
59509 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59510
59511         Document 64-bit #if problems in stdint.texi.
59512         * doc/headers/stdint.texi (stdint.h): Mention problems with
59513         64-bit-#if, and how to work around them.
59514
59515         Don't insist on 'long long int' support in the preprocessor.  It
59516         breaks too many things.  For example, PRIdMAX still uses a 'long
59517         long int' format with the latest Sun compiler, even though
59518         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59519         preprocessor problem.  This causes the latest coreutils to dump
59520         core on Solaris 10 sparc with the Sun C compiler.
59521         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59522         the troublesome expressions at configure-time, not at #if-time.
59523         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59524         preprocessor.
59525         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59526         compile-time C checks, done at 'configure'-time.
59527         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59528         * modules/inttypes (Makefile): Substitute the new symbols that
59529         gl_INTTYPES_H now generates.
59530         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59531
59532 2007-11-12  Bruno Haible  <bruno@clisp.org>
59533
59534         Tests for Unicode character classification functions.
59535
59536         * modules/unictype/bidicategory-byname-tests: New file.
59537         * modules/unictype/bidicategory-name-tests: New file.
59538         * modules/unictype/bidicategory-of-tests: New file.
59539         * modules/unictype/bidicategory-test-tests: New file.
59540         * modules/unictype/block-list-tests: New file.
59541         * modules/unictype/block-of-tests: New file.
59542         * modules/unictype/block-test-tests: New file.
59543         * modules/unictype/category-C-tests: New file.
59544         * modules/unictype/category-Cc-tests: New file.
59545         * modules/unictype/category-Cf-tests: New file.
59546         * modules/unictype/category-Cn-tests: New file.
59547         * modules/unictype/category-Co-tests: New file.
59548         * modules/unictype/category-Cs-tests: New file.
59549         * modules/unictype/category-L-tests: New file.
59550         * modules/unictype/category-Ll-tests: New file.
59551         * modules/unictype/category-Lm-tests: New file.
59552         * modules/unictype/category-Lo-tests: New file.
59553         * modules/unictype/category-Lt-tests: New file.
59554         * modules/unictype/category-Lu-tests: New file.
59555         * modules/unictype/category-M-tests: New file.
59556         * modules/unictype/category-Mc-tests: New file.
59557         * modules/unictype/category-Me-tests: New file.
59558         * modules/unictype/category-Mn-tests: New file.
59559         * modules/unictype/category-N-tests: New file.
59560         * modules/unictype/category-Nd-tests: New file.
59561         * modules/unictype/category-Nl-tests: New file.
59562         * modules/unictype/category-No-tests: New file.
59563         * modules/unictype/category-P-tests: New file.
59564         * modules/unictype/category-Pc-tests: New file.
59565         * modules/unictype/category-Pd-tests: New file.
59566         * modules/unictype/category-Pe-tests: New file.
59567         * modules/unictype/category-Pf-tests: New file.
59568         * modules/unictype/category-Pi-tests: New file.
59569         * modules/unictype/category-Po-tests: New file.
59570         * modules/unictype/category-Ps-tests: New file.
59571         * modules/unictype/category-S-tests: New file.
59572         * modules/unictype/category-Sc-tests: New file.
59573         * modules/unictype/category-Sk-tests: New file.
59574         * modules/unictype/category-Sm-tests: New file.
59575         * modules/unictype/category-So-tests: New file.
59576         * modules/unictype/category-Z-tests: New file.
59577         * modules/unictype/category-Zl-tests: New file.
59578         * modules/unictype/category-Zp-tests: New file.
59579         * modules/unictype/category-Zs-tests: New file.
59580         * modules/unictype/category-and-not-tests: New file.
59581         * modules/unictype/category-and-tests: New file.
59582         * modules/unictype/category-byname-tests: New file.
59583         * modules/unictype/category-name-tests: New file.
59584         * modules/unictype/category-none-tests: New file.
59585         * modules/unictype/category-of-tests: New file.
59586         * modules/unictype/category-or-tests: New file.
59587         * modules/unictype/category-test-withtable-tests: New file.
59588         * modules/unictype/combining-class-tests: New file.
59589         * modules/unictype/ctype-alnum-tests: New file.
59590         * modules/unictype/ctype-alpha-tests: New file.
59591         * modules/unictype/ctype-blank-tests: New file.
59592         * modules/unictype/ctype-cntrl-tests: New file.
59593         * modules/unictype/ctype-digit-tests: New file.
59594         * modules/unictype/ctype-graph-tests: New file.
59595         * modules/unictype/ctype-lower-tests: New file.
59596         * modules/unictype/ctype-print-tests: New file.
59597         * modules/unictype/ctype-punct-tests: New file.
59598         * modules/unictype/ctype-space-tests: New file.
59599         * modules/unictype/ctype-upper-tests: New file.
59600         * modules/unictype/ctype-xdigit-tests: New file.
59601         * modules/unictype/decimal-digit-tests: New file.
59602         * modules/unictype/digit-tests: New file.
59603         * modules/unictype/mirror-tests: New file.
59604         * modules/unictype/numeric-tests: New file.
59605         * modules/unictype/property-alphabetic-tests: New file.
59606         * modules/unictype/property-ascii-hex-digit-tests: New file.
59607         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59608         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59609         * modules/unictype/property-bidi-block-separator-tests: New file.
59610         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59611         * modules/unictype/property-bidi-common-separator-tests: New file.
59612         * modules/unictype/property-bidi-control-tests: New file.
59613         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59614         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59615         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59616         * modules/unictype/property-bidi-european-digit-tests: New file.
59617         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59618         * modules/unictype/property-bidi-left-to-right-tests: New file.
59619         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59620         * modules/unictype/property-bidi-other-neutral-tests: New file.
59621         * modules/unictype/property-bidi-pdf-tests: New file.
59622         * modules/unictype/property-bidi-segment-separator-tests: New file.
59623         * modules/unictype/property-bidi-whitespace-tests: New file.
59624         * modules/unictype/property-byname-tests: New file.
59625         * modules/unictype/property-combining-tests: New file.
59626         * modules/unictype/property-composite-tests: New file.
59627         * modules/unictype/property-currency-symbol-tests: New file.
59628         * modules/unictype/property-dash-tests: New file.
59629         * modules/unictype/property-decimal-digit-tests: New file.
59630         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59631         * modules/unictype/property-deprecated-tests: New file.
59632         * modules/unictype/property-diacritic-tests: New file.
59633         * modules/unictype/property-extender-tests: New file.
59634         * modules/unictype/property-format-control-tests: New file.
59635         * modules/unictype/property-grapheme-base-tests: New file.
59636         * modules/unictype/property-grapheme-extend-tests: New file.
59637         * modules/unictype/property-grapheme-link-tests: New file.
59638         * modules/unictype/property-hex-digit-tests: New file.
59639         * modules/unictype/property-hyphen-tests: New file.
59640         * modules/unictype/property-id-continue-tests: New file.
59641         * modules/unictype/property-id-start-tests: New file.
59642         * modules/unictype/property-ideographic-tests: New file.
59643         * modules/unictype/property-ids-binary-operator-tests: New file.
59644         * modules/unictype/property-ids-trinary-operator-tests: New file.
59645         * modules/unictype/property-ignorable-control-tests: New file.
59646         * modules/unictype/property-iso-control-tests: New file.
59647         * modules/unictype/property-join-control-tests: New file.
59648         * modules/unictype/property-left-of-pair-tests: New file.
59649         * modules/unictype/property-line-separator-tests: New file.
59650         * modules/unictype/property-logical-order-exception-tests: New file.
59651         * modules/unictype/property-lowercase-tests: New file.
59652         * modules/unictype/property-math-tests: New file.
59653         * modules/unictype/property-non-break-tests: New file.
59654         * modules/unictype/property-not-a-character-tests: New file.
59655         * modules/unictype/property-numeric-tests: New file.
59656         * modules/unictype/property-other-alphabetic-tests: New file.
59657         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59658         * modules/unictype/property-other-grapheme-extend-tests: New file.
59659         * modules/unictype/property-other-id-continue-tests: New file.
59660         * modules/unictype/property-other-id-start-tests: New file.
59661         * modules/unictype/property-other-lowercase-tests: New file.
59662         * modules/unictype/property-other-math-tests: New file.
59663         * modules/unictype/property-other-uppercase-tests: New file.
59664         * modules/unictype/property-paired-punctuation-tests: New file.
59665         * modules/unictype/property-paragraph-separator-tests: New file.
59666         * modules/unictype/property-pattern-syntax-tests: New file.
59667         * modules/unictype/property-pattern-white-space-tests: New file.
59668         * modules/unictype/property-private-use-tests: New file.
59669         * modules/unictype/property-punctuation-tests: New file.
59670         * modules/unictype/property-quotation-mark-tests: New file.
59671         * modules/unictype/property-radical-tests: New file.
59672         * modules/unictype/property-sentence-terminal-tests: New file.
59673         * modules/unictype/property-soft-dotted-tests: New file.
59674         * modules/unictype/property-space-tests: New file.
59675         * modules/unictype/property-terminal-punctuation-tests: New file.
59676         * modules/unictype/property-test-tests: New file.
59677         * modules/unictype/property-titlecase-tests: New file.
59678         * modules/unictype/property-unassigned-code-value-tests: New file.
59679         * modules/unictype/property-unified-ideograph-tests: New file.
59680         * modules/unictype/property-uppercase-tests: New file.
59681         * modules/unictype/property-variation-selector-tests: New file.
59682         * modules/unictype/property-white-space-tests: New file.
59683         * modules/unictype/property-xid-continue-tests: New file.
59684         * modules/unictype/property-xid-start-tests: New file.
59685         * modules/unictype/property-zero-width-tests: New file.
59686         * modules/unictype/scripts-tests: New file.
59687         * modules/unictype/syntax-c-ident-tests: New file.
59688         * modules/unictype/syntax-c-whitespace-tests: New file.
59689         * modules/unictype/syntax-java-ident-tests: New file.
59690         * modules/unictype/syntax-java-whitespace-tests: New file.
59691         * tests/unictype/test-bidi_byname.c: New file.
59692         * tests/unictype/test-bidi_name.c: New file.
59693         * tests/unictype/test-bidi_of.c: New file.
59694         * tests/unictype/test-bidi_test.c: New file.
59695         * tests/unictype/test-block_list.c: New file.
59696         * tests/unictype/test-block_of.c: New file.
59697         * tests/unictype/test-block_test.c: New file.
59698         * tests/unictype/test-categ_and.c: New file.
59699         * tests/unictype/test-categ_and_not.c: New file.
59700         * tests/unictype/test-categ_byname.c: New file.
59701         * tests/unictype/test-categ_name.c: New file.
59702         * tests/unictype/test-categ_none.c: New file.
59703         * tests/unictype/test-categ_of.c: New file.
59704         * tests/unictype/test-categ_or.c: New file.
59705         * tests/unictype/test-categ_test_withtable.c: New file.
59706         * tests/unictype/test-combining.c: New file.
59707         * tests/unictype/test-decdigit.c: New file.
59708         * tests/unictype/test-digit.c: New file.
59709         * tests/unictype/test-mirror.c: New file.
59710         * tests/unictype/test-numeric.c: New file.
59711         * tests/unictype/test-pr_byname.c: New file.
59712         * tests/unictype/test-pr_test.c: New file.
59713         * tests/unictype/test-predicate-part1.h: New file.
59714         * tests/unictype/test-predicate-part2.h: New file.
59715         * tests/unictype/test-scripts.c: New file.
59716         * tests/unictype/test-sy_c_ident.c: New file.
59717         * tests/unictype/test-sy_java_ident.c: New file.
59718
59719         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59720         for Unicode 5.0.0.
59721         * tests/unictype/test-categ_Cc.c: Likewise.
59722         * tests/unictype/test-categ_Cf.c: Likewise.
59723         * tests/unictype/test-categ_Cn.c: Likewise.
59724         * tests/unictype/test-categ_Co.c: Likewise.
59725         * tests/unictype/test-categ_Cs.c: Likewise.
59726         * tests/unictype/test-categ_L.c: Likewise.
59727         * tests/unictype/test-categ_Ll.c: Likewise.
59728         * tests/unictype/test-categ_Lm.c: Likewise.
59729         * tests/unictype/test-categ_Lo.c: Likewise.
59730         * tests/unictype/test-categ_Lt.c: Likewise.
59731         * tests/unictype/test-categ_Lu.c: Likewise.
59732         * tests/unictype/test-categ_M.c: Likewise.
59733         * tests/unictype/test-categ_Mc.c: Likewise.
59734         * tests/unictype/test-categ_Me.c: Likewise.
59735         * tests/unictype/test-categ_Mn.c: Likewise.
59736         * tests/unictype/test-categ_N.c: Likewise.
59737         * tests/unictype/test-categ_Nd.c: Likewise.
59738         * tests/unictype/test-categ_Nl.c: Likewise.
59739         * tests/unictype/test-categ_No.c: Likewise.
59740         * tests/unictype/test-categ_P.c: Likewise.
59741         * tests/unictype/test-categ_Pc.c: Likewise.
59742         * tests/unictype/test-categ_Pd.c: Likewise.
59743         * tests/unictype/test-categ_Pe.c: Likewise.
59744         * tests/unictype/test-categ_Pf.c: Likewise.
59745         * tests/unictype/test-categ_Pi.c: Likewise.
59746         * tests/unictype/test-categ_Po.c: Likewise.
59747         * tests/unictype/test-categ_Ps.c: Likewise.
59748         * tests/unictype/test-categ_S.c: Likewise.
59749         * tests/unictype/test-categ_Sc.c: Likewise.
59750         * tests/unictype/test-categ_Sk.c: Likewise.
59751         * tests/unictype/test-categ_Sm.c: Likewise.
59752         * tests/unictype/test-categ_So.c: Likewise.
59753         * tests/unictype/test-categ_Z.c: Likewise.
59754         * tests/unictype/test-categ_Zl.c: Likewise.
59755         * tests/unictype/test-categ_Zp.c: Likewise.
59756         * tests/unictype/test-categ_Zs.c: Likewise.
59757         * tests/unictype/test-ctype_alnum.c: Likewise.
59758         * tests/unictype/test-ctype_alpha.c: Likewise.
59759         * tests/unictype/test-ctype_blank.c: Likewise.
59760         * tests/unictype/test-ctype_cntrl.c: Likewise.
59761         * tests/unictype/test-ctype_digit.c: Likewise.
59762         * tests/unictype/test-ctype_graph.c: Likewise.
59763         * tests/unictype/test-ctype_lower.c: Likewise.
59764         * tests/unictype/test-ctype_print.c: Likewise.
59765         * tests/unictype/test-ctype_punct.c: Likewise.
59766         * tests/unictype/test-ctype_space.c: Likewise.
59767         * tests/unictype/test-ctype_upper.c: Likewise.
59768         * tests/unictype/test-ctype_xdigit.c: Likewise.
59769         * tests/unictype/test-decdigit.h: Likewise.
59770         * tests/unictype/test-digit.h: Likewise.
59771         * tests/unictype/test-numeric.h: Likewise.
59772         * tests/unictype/test-pr_alphabetic.c: Likewise.
59773         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59774         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59775         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59776         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59777         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59778         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59779         * tests/unictype/test-pr_bidi_control.c: Likewise.
59780         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59781         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59782         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59783         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59784         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59785         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59786         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59787         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59788         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59789         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59790         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59791         * tests/unictype/test-pr_combining.c: Likewise.
59792         * tests/unictype/test-pr_composite.c: Likewise.
59793         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59794         * tests/unictype/test-pr_dash.c: Likewise.
59795         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59796         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59797         * tests/unictype/test-pr_deprecated.c: Likewise.
59798         * tests/unictype/test-pr_diacritic.c: Likewise.
59799         * tests/unictype/test-pr_extender.c: Likewise.
59800         * tests/unictype/test-pr_format_control.c: Likewise.
59801         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59802         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59803         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59804         * tests/unictype/test-pr_hex_digit.c: Likewise.
59805         * tests/unictype/test-pr_hyphen.c: Likewise.
59806         * tests/unictype/test-pr_id_continue.c: Likewise.
59807         * tests/unictype/test-pr_id_start.c: Likewise.
59808         * tests/unictype/test-pr_ideographic.c: Likewise.
59809         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59810         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59811         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59812         * tests/unictype/test-pr_iso_control.c: Likewise.
59813         * tests/unictype/test-pr_join_control.c: Likewise.
59814         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59815         * tests/unictype/test-pr_line_separator.c: Likewise.
59816         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59817         * tests/unictype/test-pr_lowercase.c: Likewise.
59818         * tests/unictype/test-pr_math.c: Likewise.
59819         * tests/unictype/test-pr_non_break.c: Likewise.
59820         * tests/unictype/test-pr_not_a_character.c: Likewise.
59821         * tests/unictype/test-pr_numeric.c: Likewise.
59822         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59823         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59824         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59825         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59826         * tests/unictype/test-pr_other_id_start.c: Likewise.
59827         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59828         * tests/unictype/test-pr_other_math.c: Likewise.
59829         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59830         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59831         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59832         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59833         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59834         * tests/unictype/test-pr_private_use.c: Likewise.
59835         * tests/unictype/test-pr_punctuation.c: Likewise.
59836         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59837         * tests/unictype/test-pr_radical.c: Likewise.
59838         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59839         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59840         * tests/unictype/test-pr_space.c: Likewise.
59841         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59842         * tests/unictype/test-pr_titlecase.c: Likewise.
59843         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59844         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59845         * tests/unictype/test-pr_uppercase.c: Likewise.
59846         * tests/unictype/test-pr_variation_selector.c: Likewise.
59847         * tests/unictype/test-pr_white_space.c: Likewise.
59848         * tests/unictype/test-pr_xid_continue.c: Likewise.
59849         * tests/unictype/test-pr_xid_start.c: Likewise.
59850         * tests/unictype/test-pr_zero_width.c: Likewise.
59851         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59852         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59853
59854 2007-11-12  Bruno Haible  <bruno@clisp.org>
59855
59856         Unicode character classification functions.
59857         * lib/unictype.h: New file.
59858         * modules/unictype/base: New file.
59859         * modules/unictype/category-L: New file.
59860         * modules/unictype/category-Lu: New file.
59861         * modules/unictype/category-Ll: New file.
59862         * modules/unictype/category-Lt: New file.
59863         * modules/unictype/category-Lm: New file.
59864         * modules/unictype/category-Lo: New file.
59865         * modules/unictype/category-M: New file.
59866         * modules/unictype/category-Mn: New file.
59867         * modules/unictype/category-Mc: New file.
59868         * modules/unictype/category-Me: New file.
59869         * modules/unictype/category-N: New file.
59870         * modules/unictype/category-Nd: New file.
59871         * modules/unictype/category-Nl: New file.
59872         * modules/unictype/category-No: New file.
59873         * modules/unictype/category-P: New file.
59874         * modules/unictype/category-Pc: New file.
59875         * modules/unictype/category-Pd: New file.
59876         * modules/unictype/category-Ps: New file.
59877         * modules/unictype/category-Pe: New file.
59878         * modules/unictype/category-Pi: New file.
59879         * modules/unictype/category-Pf: New file.
59880         * modules/unictype/category-Po: New file.
59881         * modules/unictype/category-S: New file.
59882         * modules/unictype/category-Sm: New file.
59883         * modules/unictype/category-Sc: New file.
59884         * modules/unictype/category-Sk: New file.
59885         * modules/unictype/category-So: New file.
59886         * modules/unictype/category-Z: New file.
59887         * modules/unictype/category-Zs: New file.
59888         * modules/unictype/category-Zl: New file.
59889         * modules/unictype/category-Zp: New file.
59890         * modules/unictype/category-C: New file.
59891         * modules/unictype/category-Cc: New file.
59892         * modules/unictype/category-Cf: New file.
59893         * modules/unictype/category-Cs: New file.
59894         * modules/unictype/category-Co: New file.
59895         * modules/unictype/category-Cn: New file.
59896         * modules/unictype/category-or: New file.
59897         * modules/unictype/category-of: New file.
59898         * modules/unictype/category-test: New file.
59899         * modules/unictype/category-test-withtable: New file.
59900         * modules/unictype/category-byname: New file.
59901         * modules/unictype/category-none: New file.
59902         * modules/unictype/category-and: New file.
59903         * modules/unictype/category-and-not: New file.
59904         * modules/unictype/category-name: New file.
59905         * modules/unictype/combining-class: New file.
59906         * modules/unictype/category-all: New file.
59907         * modules/unictype/bidicategory-all: New file.
59908         * modules/unictype/bidicategory-byname: New file.
59909         * modules/unictype/bidicategory-name: New file.
59910         * modules/unictype/bidicategory-of: New file.
59911         * modules/unictype/bidicategory-test: New file.
59912         * modules/unictype/decimal-digit: New file.
59913         * modules/unictype/digit: New file.
59914         * modules/unictype/numeric: New file.
59915         * modules/unictype/mirror: New file.
59916         * modules/unictype/property-white-space: New file.
59917         * modules/unictype/property-alphabetic: New file.
59918         * modules/unictype/property-other-alphabetic: New file.
59919         * modules/unictype/property-not-a-character: New file.
59920         * modules/unictype/property-default-ignorable-code-point: New file.
59921         * modules/unictype/property-other-default-ignorable-code-point: New
59922         file.
59923         * modules/unictype/property-deprecated: New file.
59924         * modules/unictype/property-logical-order-exception: New file.
59925         * modules/unictype/property-variation-selector: New file.
59926         * modules/unictype/property-private-use: New file.
59927         * modules/unictype/property-unassigned-code-value: New file.
59928         * modules/unictype/property-uppercase: New file.
59929         * modules/unictype/property-other-uppercase: New file.
59930         * modules/unictype/property-lowercase: New file.
59931         * modules/unictype/property-other-lowercase: New file.
59932         * modules/unictype/property-titlecase: New file.
59933         * modules/unictype/property-soft-dotted: New file.
59934         * modules/unictype/property-id-start: New file.
59935         * modules/unictype/property-other-id-start: New file.
59936         * modules/unictype/property-id-continue: New file.
59937         * modules/unictype/property-other-id-continue: New file.
59938         * modules/unictype/property-xid-start: New file.
59939         * modules/unictype/property-xid-continue: New file.
59940         * modules/unictype/property-pattern-white-space: New file.
59941         * modules/unictype/property-pattern-syntax: New file.
59942         * modules/unictype/property-join-control: New file.
59943         * modules/unictype/property-grapheme-base: New file.
59944         * modules/unictype/property-grapheme-extend: New file.
59945         * modules/unictype/property-other-grapheme-extend: New file.
59946         * modules/unictype/property-grapheme-link: New file.
59947         * modules/unictype/property-bidi-control: New file.
59948         * modules/unictype/property-bidi-left-to-right: New file.
59949         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59950         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59951         * modules/unictype/property-bidi-european-digit: New file.
59952         * modules/unictype/property-bidi-eur-num-separator: New file.
59953         * modules/unictype/property-bidi-eur-num-terminator: New file.
59954         * modules/unictype/property-bidi-arabic-digit: New file.
59955         * modules/unictype/property-bidi-common-separator: New file.
59956         * modules/unictype/property-bidi-block-separator: New file.
59957         * modules/unictype/property-bidi-segment-separator: New file.
59958         * modules/unictype/property-bidi-whitespace: New file.
59959         * modules/unictype/property-bidi-non-spacing-mark: New file.
59960         * modules/unictype/property-bidi-boundary-neutral: New file.
59961         * modules/unictype/property-bidi-pdf: New file.
59962         * modules/unictype/property-bidi-embedding-or-override: New file.
59963         * modules/unictype/property-bidi-other-neutral: New file.
59964         * modules/unictype/property-hex-digit: New file.
59965         * modules/unictype/property-ascii-hex-digit: New file.
59966         * modules/unictype/property-ideographic: New file.
59967         * modules/unictype/property-unified-ideograph: New file.
59968         * modules/unictype/property-radical: New file.
59969         * modules/unictype/property-ids-binary-operator: New file.
59970         * modules/unictype/property-ids-trinary-operator: New file.
59971         * modules/unictype/property-zero-width: New file.
59972         * modules/unictype/property-space: New file.
59973         * modules/unictype/property-non-break: New file.
59974         * modules/unictype/property-iso-control: New file.
59975         * modules/unictype/property-format-control: New file.
59976         * modules/unictype/property-dash: New file.
59977         * modules/unictype/property-hyphen: New file.
59978         * modules/unictype/property-punctuation: New file.
59979         * modules/unictype/property-line-separator: New file.
59980         * modules/unictype/property-paragraph-separator: New file.
59981         * modules/unictype/property-quotation-mark: New file.
59982         * modules/unictype/property-sentence-terminal: New file.
59983         * modules/unictype/property-terminal-punctuation: New file.
59984         * modules/unictype/property-currency-symbol: New file.
59985         * modules/unictype/property-math: New file.
59986         * modules/unictype/property-other-math: New file.
59987         * modules/unictype/property-paired-punctuation: New file.
59988         * modules/unictype/property-left-of-pair: New file.
59989         * modules/unictype/property-combining: New file.
59990         * modules/unictype/property-composite: New file.
59991         * modules/unictype/property-decimal-digit: New file.
59992         * modules/unictype/property-numeric: New file.
59993         * modules/unictype/property-diacritic: New file.
59994         * modules/unictype/property-extender: New file.
59995         * modules/unictype/property-ignorable-control: New file.
59996         * modules/unictype/property-test: New file.
59997         * modules/unictype/property-byname: New file.
59998         * modules/unictype/property-all: New file.
59999         * modules/unictype/scripts: New file.
60000         * modules/unictype/scripts-all: New file.
60001         * modules/unictype/block-of: New file.
60002         * modules/unictype/block-test: New file.
60003         * modules/unictype/block-list: New file.
60004         * modules/unictype/block-all: New file.
60005         * modules/unictype/syntax-c-whitespace: New file.
60006         * modules/unictype/syntax-java-whitespace: New file.
60007         * modules/unictype/syntax-c-ident: New file.
60008         * modules/unictype/syntax-java-ident: New file.
60009         * modules/unictype/ctype-alnum: New file.
60010         * modules/unictype/ctype-alpha: New file.
60011         * modules/unictype/ctype-cntrl: New file.
60012         * modules/unictype/ctype-digit: New file.
60013         * modules/unictype/ctype-graph: New file.
60014         * modules/unictype/ctype-lower: New file.
60015         * modules/unictype/ctype-print: New file.
60016         * modules/unictype/ctype-punct: New file.
60017         * modules/unictype/ctype-space: New file.
60018         * modules/unictype/ctype-upper: New file.
60019         * modules/unictype/ctype-xdigit: New file.
60020         * modules/unictype/ctype-blank: New file.
60021         * lib/unictype/bidi_byname.c: New file.
60022         * lib/unictype/bidi_name.c: New file.
60023         * lib/unictype/bidi_of.c: New file.
60024         * lib/unictype/bidi_test.c: New file.
60025         * lib/unictype/bitmap.h: New file.
60026         * lib/unictype/block_test.c: New file.
60027         * lib/unictype/blocks.c: New file.
60028         * lib/unictype/categ_C.c: New file.
60029         * lib/unictype/categ_Cc.c: New file.
60030         * lib/unictype/categ_Cf.c: New file.
60031         * lib/unictype/categ_Cn.c: New file.
60032         * lib/unictype/categ_Co.c: New file.
60033         * lib/unictype/categ_Cs.c: New file.
60034         * lib/unictype/categ_L.c: New file.
60035         * lib/unictype/categ_Ll.c: New file.
60036         * lib/unictype/categ_Lm.c: New file.
60037         * lib/unictype/categ_Lo.c: New file.
60038         * lib/unictype/categ_Lt.c: New file.
60039         * lib/unictype/categ_Lu.c: New file.
60040         * lib/unictype/categ_M.c: New file.
60041         * lib/unictype/categ_Mc.c: New file.
60042         * lib/unictype/categ_Me.c: New file.
60043         * lib/unictype/categ_Mn.c: New file.
60044         * lib/unictype/categ_N.c: New file.
60045         * lib/unictype/categ_Nd.c: New file.
60046         * lib/unictype/categ_Nl.c: New file.
60047         * lib/unictype/categ_No.c: New file.
60048         * lib/unictype/categ_P.c: New file.
60049         * lib/unictype/categ_Pc.c: New file.
60050         * lib/unictype/categ_Pd.c: New file.
60051         * lib/unictype/categ_Pe.c: New file.
60052         * lib/unictype/categ_Pf.c: New file.
60053         * lib/unictype/categ_Pi.c: New file.
60054         * lib/unictype/categ_Po.c: New file.
60055         * lib/unictype/categ_Ps.c: New file.
60056         * lib/unictype/categ_S.c: New file.
60057         * lib/unictype/categ_Sc.c: New file.
60058         * lib/unictype/categ_Sk.c: New file.
60059         * lib/unictype/categ_Sm.c: New file.
60060         * lib/unictype/categ_So.c: New file.
60061         * lib/unictype/categ_Z.c: New file.
60062         * lib/unictype/categ_Zl.c: New file.
60063         * lib/unictype/categ_Zp.c: New file.
60064         * lib/unictype/categ_Zs.c: New file.
60065         * lib/unictype/categ_and.c: New file.
60066         * lib/unictype/categ_and_not.c: New file.
60067         * lib/unictype/categ_byname.c: New file.
60068         * lib/unictype/categ_name.c: New file.
60069         * lib/unictype/categ_none.c: New file.
60070         * lib/unictype/categ_of.c: New file.
60071         * lib/unictype/categ_or.c: New file.
60072         * lib/unictype/categ_test.c: New file.
60073         * lib/unictype/combining.c: New file.
60074         * lib/unictype/ctype_alnum.c: New file.
60075         * lib/unictype/ctype_alpha.c: New file.
60076         * lib/unictype/ctype_blank.c: New file.
60077         * lib/unictype/ctype_cntrl.c: New file.
60078         * lib/unictype/ctype_digit.c: New file.
60079         * lib/unictype/ctype_graph.c: New file.
60080         * lib/unictype/ctype_lower.c: New file.
60081         * lib/unictype/ctype_print.c: New file.
60082         * lib/unictype/ctype_punct.c: New file.
60083         * lib/unictype/ctype_space.c: New file.
60084         * lib/unictype/ctype_upper.c: New file.
60085         * lib/unictype/ctype_xdigit.c: New file.
60086         * lib/unictype/decdigit.c: New file.
60087         * lib/unictype/digit.c: New file.
60088         * lib/unictype/identsyntaxmap.h: New file.
60089         * lib/unictype/mirror.c: New file.
60090         * lib/unictype/numeric.c: New file.
60091         * lib/unictype/pr_alphabetic.c: New file.
60092         * lib/unictype/pr_ascii_hex_digit.c: New file.
60093         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60094         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60095         * lib/unictype/pr_bidi_block_separator.c: New file.
60096         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60097         * lib/unictype/pr_bidi_common_separator.c: New file.
60098         * lib/unictype/pr_bidi_control.c: New file.
60099         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60100         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60101         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60102         * lib/unictype/pr_bidi_european_digit.c: New file.
60103         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60104         * lib/unictype/pr_bidi_left_to_right.c: New file.
60105         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60106         * lib/unictype/pr_bidi_other_neutral.c: New file.
60107         * lib/unictype/pr_bidi_pdf.c: New file.
60108         * lib/unictype/pr_bidi_segment_separator.c: New file.
60109         * lib/unictype/pr_bidi_whitespace.c: New file.
60110         * lib/unictype/pr_byname.c: New file.
60111         * lib/unictype/pr_byname.gperf: New file.
60112         * lib/unictype/pr_combining.c: New file.
60113         * lib/unictype/pr_composite.c: New file.
60114         * lib/unictype/pr_currency_symbol.c: New file.
60115         * lib/unictype/pr_dash.c: New file.
60116         * lib/unictype/pr_decimal_digit.c: New file.
60117         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60118         * lib/unictype/pr_deprecated.c: New file.
60119         * lib/unictype/pr_diacritic.c: New file.
60120         * lib/unictype/pr_extender.c: New file.
60121         * lib/unictype/pr_format_control.c: New file.
60122         * lib/unictype/pr_grapheme_base.c: New file.
60123         * lib/unictype/pr_grapheme_extend.c: New file.
60124         * lib/unictype/pr_grapheme_link.c: New file.
60125         * lib/unictype/pr_hex_digit.c: New file.
60126         * lib/unictype/pr_hyphen.c: New file.
60127         * lib/unictype/pr_id_continue.c: New file.
60128         * lib/unictype/pr_id_start.c: New file.
60129         * lib/unictype/pr_ideographic.c: New file.
60130         * lib/unictype/pr_ids_binary_operator.c: New file.
60131         * lib/unictype/pr_ids_trinary_operator.c: New file.
60132         * lib/unictype/pr_ignorable_control.c: New file.
60133         * lib/unictype/pr_iso_control.c: New file.
60134         * lib/unictype/pr_join_control.c: New file.
60135         * lib/unictype/pr_left_of_pair.c: New file.
60136         * lib/unictype/pr_line_separator.c: New file.
60137         * lib/unictype/pr_logical_order_exception.c: New file.
60138         * lib/unictype/pr_lowercase.c: New file.
60139         * lib/unictype/pr_math.c: New file.
60140         * lib/unictype/pr_non_break.c: New file.
60141         * lib/unictype/pr_not_a_character.c: New file.
60142         * lib/unictype/pr_numeric.c: New file.
60143         * lib/unictype/pr_other_alphabetic.c: New file.
60144         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
60145         * lib/unictype/pr_other_grapheme_extend.c: New file.
60146         * lib/unictype/pr_other_id_continue.c: New file.
60147         * lib/unictype/pr_other_id_start.c: New file.
60148         * lib/unictype/pr_other_lowercase.c: New file.
60149         * lib/unictype/pr_other_math.c: New file.
60150         * lib/unictype/pr_other_uppercase.c: New file.
60151         * lib/unictype/pr_paired_punctuation.c: New file.
60152         * lib/unictype/pr_paragraph_separator.c: New file.
60153         * lib/unictype/pr_pattern_syntax.c: New file.
60154         * lib/unictype/pr_pattern_white_space.c: New file.
60155         * lib/unictype/pr_private_use.c: New file.
60156         * lib/unictype/pr_punctuation.c: New file.
60157         * lib/unictype/pr_quotation_mark.c: New file.
60158         * lib/unictype/pr_radical.c: New file.
60159         * lib/unictype/pr_sentence_terminal.c: New file.
60160         * lib/unictype/pr_soft_dotted.c: New file.
60161         * lib/unictype/pr_space.c: New file.
60162         * lib/unictype/pr_terminal_punctuation.c: New file.
60163         * lib/unictype/pr_test.c: New file.
60164         * lib/unictype/pr_titlecase.c: New file.
60165         * lib/unictype/pr_unassigned_code_value.c: New file.
60166         * lib/unictype/pr_unified_ideograph.c: New file.
60167         * lib/unictype/pr_uppercase.c: New file.
60168         * lib/unictype/pr_variation_selector.c: New file.
60169         * lib/unictype/pr_white_space.c: New file.
60170         * lib/unictype/pr_xid_continue.c: New file.
60171         * lib/unictype/pr_xid_start.c: New file.
60172         * lib/unictype/pr_zero_width.c: New file.
60173         * lib/unictype/scripts.c: New file.
60174         * lib/unictype/sy_c_ident.c: New file.
60175         * lib/unictype/sy_c_whitespace.c: New file.
60176         * lib/unictype/sy_java_ident.c: New file.
60177         * lib/unictype/sy_java_whitespace.c: New file.
60178
60179         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60180         Unicode 5.0.0.
60181         * lib/unictype/blocks.h: Likewise.
60182         * lib/unictype/categ_C.h: Likewise.
60183         * lib/unictype/categ_Cc.h: Likewise.
60184         * lib/unictype/categ_Cf.h: Likewise.
60185         * lib/unictype/categ_Cn.h: Likewise.
60186         * lib/unictype/categ_Co.h: Likewise.
60187         * lib/unictype/categ_Cs.h: Likewise.
60188         * lib/unictype/categ_L.h: Likewise.
60189         * lib/unictype/categ_Ll.h: Likewise.
60190         * lib/unictype/categ_Lm.h: Likewise.
60191         * lib/unictype/categ_Lo.h: Likewise.
60192         * lib/unictype/categ_Lt.h: Likewise.
60193         * lib/unictype/categ_Lu.h: Likewise.
60194         * lib/unictype/categ_M.h: Likewise.
60195         * lib/unictype/categ_Mc.h: Likewise.
60196         * lib/unictype/categ_Me.h: Likewise.
60197         * lib/unictype/categ_Mn.h: Likewise.
60198         * lib/unictype/categ_N.h: Likewise.
60199         * lib/unictype/categ_Nd.h: Likewise.
60200         * lib/unictype/categ_Nl.h: Likewise.
60201         * lib/unictype/categ_No.h: Likewise.
60202         * lib/unictype/categ_P.h: Likewise.
60203         * lib/unictype/categ_Pc.h: Likewise.
60204         * lib/unictype/categ_Pd.h: Likewise.
60205         * lib/unictype/categ_Pe.h: Likewise.
60206         * lib/unictype/categ_Pf.h: Likewise.
60207         * lib/unictype/categ_Pi.h: Likewise.
60208         * lib/unictype/categ_Po.h: Likewise.
60209         * lib/unictype/categ_Ps.h: Likewise.
60210         * lib/unictype/categ_S.h: Likewise.
60211         * lib/unictype/categ_Sc.h: Likewise.
60212         * lib/unictype/categ_Sk.h: Likewise.
60213         * lib/unictype/categ_Sm.h: Likewise.
60214         * lib/unictype/categ_So.h: Likewise.
60215         * lib/unictype/categ_Z.h: Likewise.
60216         * lib/unictype/categ_Zl.h: Likewise.
60217         * lib/unictype/categ_Zp.h: Likewise.
60218         * lib/unictype/categ_Zs.h: Likewise.
60219         * lib/unictype/categ_of.h: Likewise.
60220         * lib/unictype/combining.h: Likewise.
60221         * lib/unictype/ctype_alnum.h: Likewise.
60222         * lib/unictype/ctype_alpha.h: Likewise.
60223         * lib/unictype/ctype_blank.h: Likewise.
60224         * lib/unictype/ctype_cntrl.h: Likewise.
60225         * lib/unictype/ctype_digit.h: Likewise.
60226         * lib/unictype/ctype_graph.h: Likewise.
60227         * lib/unictype/ctype_lower.h: Likewise.
60228         * lib/unictype/ctype_print.h: Likewise.
60229         * lib/unictype/ctype_punct.h: Likewise.
60230         * lib/unictype/ctype_space.h: Likewise.
60231         * lib/unictype/ctype_upper.h: Likewise.
60232         * lib/unictype/ctype_xdigit.h: Likewise.
60233         * lib/unictype/decdigit.h: Likewise.
60234         * lib/unictype/digit.h: Likewise.
60235         * lib/unictype/mirror.h: Likewise.
60236         * lib/unictype/numeric.h: Likewise.
60237         * lib/unictype/pr_alphabetic.h: Likewise.
60238         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60239         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60240         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60241         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60242         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60243         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60244         * lib/unictype/pr_bidi_control.h: Likewise.
60245         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60246         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60247         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60248         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60249         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60250         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60251         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60252         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60253         * lib/unictype/pr_bidi_pdf.h: Likewise.
60254         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60255         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60256         * lib/unictype/pr_combining.h: Likewise.
60257         * lib/unictype/pr_composite.h: Likewise.
60258         * lib/unictype/pr_currency_symbol.h: Likewise.
60259         * lib/unictype/pr_dash.h: Likewise.
60260         * lib/unictype/pr_decimal_digit.h: Likewise.
60261         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60262         * lib/unictype/pr_deprecated.h: Likewise.
60263         * lib/unictype/pr_diacritic.h: Likewise.
60264         * lib/unictype/pr_extender.h: Likewise.
60265         * lib/unictype/pr_format_control.h: Likewise.
60266         * lib/unictype/pr_grapheme_base.h: Likewise.
60267         * lib/unictype/pr_grapheme_extend.h: Likewise.
60268         * lib/unictype/pr_grapheme_link.h: Likewise.
60269         * lib/unictype/pr_hex_digit.h: Likewise.
60270         * lib/unictype/pr_hyphen.h: Likewise.
60271         * lib/unictype/pr_id_continue.h: Likewise.
60272         * lib/unictype/pr_id_start.h: Likewise.
60273         * lib/unictype/pr_ideographic.h: Likewise.
60274         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60275         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60276         * lib/unictype/pr_ignorable_control.h: Likewise.
60277         * lib/unictype/pr_iso_control.h: Likewise.
60278         * lib/unictype/pr_join_control.h: Likewise.
60279         * lib/unictype/pr_left_of_pair.h: Likewise.
60280         * lib/unictype/pr_line_separator.h: Likewise.
60281         * lib/unictype/pr_logical_order_exception.h: Likewise.
60282         * lib/unictype/pr_lowercase.h: Likewise.
60283         * lib/unictype/pr_math.h: Likewise.
60284         * lib/unictype/pr_non_break.h: Likewise.
60285         * lib/unictype/pr_not_a_character.h: Likewise.
60286         * lib/unictype/pr_numeric.h: Likewise.
60287         * lib/unictype/pr_other_alphabetic.h: Likewise.
60288         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60289         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60290         * lib/unictype/pr_other_id_continue.h: Likewise.
60291         * lib/unictype/pr_other_id_start.h: Likewise.
60292         * lib/unictype/pr_other_lowercase.h: Likewise.
60293         * lib/unictype/pr_other_math.h: Likewise.
60294         * lib/unictype/pr_other_uppercase.h: Likewise.
60295         * lib/unictype/pr_paired_punctuation.h: Likewise.
60296         * lib/unictype/pr_paragraph_separator.h: Likewise.
60297         * lib/unictype/pr_pattern_syntax.h: Likewise.
60298         * lib/unictype/pr_pattern_white_space.h: Likewise.
60299         * lib/unictype/pr_private_use.h: Likewise.
60300         * lib/unictype/pr_punctuation.h: Likewise.
60301         * lib/unictype/pr_quotation_mark.h: Likewise.
60302         * lib/unictype/pr_radical.h: Likewise.
60303         * lib/unictype/pr_sentence_terminal.h: Likewise.
60304         * lib/unictype/pr_soft_dotted.h: Likewise.
60305         * lib/unictype/pr_space.h: Likewise.
60306         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60307         * lib/unictype/pr_titlecase.h: Likewise.
60308         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60309         * lib/unictype/pr_unified_ideograph.h: Likewise.
60310         * lib/unictype/pr_uppercase.h: Likewise.
60311         * lib/unictype/pr_variation_selector.h: Likewise.
60312         * lib/unictype/pr_white_space.h: Likewise.
60313         * lib/unictype/pr_xid_continue.h: Likewise.
60314         * lib/unictype/pr_xid_start.h: Likewise.
60315         * lib/unictype/pr_zero_width.h: Likewise.
60316         * lib/unictype/scripts.h: Likewise.
60317         * lib/unictype/scripts_byname.gperf: Likewise.
60318         * lib/unictype/sy_c_ident.h: Likewise.
60319         * lib/unictype/sy_c_whitespace.h: Likewise.
60320         * lib/unictype/sy_java_ident.h: Likewise.
60321         * lib/unictype/sy_java_whitespace.h: Likewise.
60322
60323         * lib/unictype/Makefile: New file.
60324         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60325         glibc.
60326         * lib/unictype/3level.h: New file, copied from glibc.
60327         * lib/unictype/3levelbit.h: New file.
60328
60329 2007-11-11  Bruno Haible  <bruno@clisp.org>
60330
60331         * modules/gperf: New file.
60332         * modules/iconv_open (Depends-on): Add it.
60333         (Makefile.am): Remove the GPERF definition.
60334
60335 2007-11-11  Bruno Haible  <bruno@clisp.org>
60336
60337         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60338         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60339
60340 2007-11-11  Bruno Haible  <bruno@clisp.org>
60341
60342         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60343         (usage): Remove function.
60344
60345 2007-11-11  Bruno Haible  <bruno@clisp.org>
60346
60347         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60348         gl_FUNC_CEILF_LIBS.
60349         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60350         gl_FUNC_CEIL_LIBS.
60351         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60352         gl_FUNC_CEILL_LIBS.
60353         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60354         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60355         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60356
60357 2007-11-11  Bruno Haible  <bruno@clisp.org>
60358
60359         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60360         roundf were declared but do not exist on functions.
60361         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60362         roundl were declared but do not exist on functions.
60363         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60364         HAVE_FLOORL_AND_CEILL, respectively.
60365         Needed for Sun C on Solaris 10.
60366
60367 2007-11-11  Bruno Haible  <bruno@clisp.org>
60368
60369         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60370         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60371         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60372         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60373         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60374         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60375         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60376         HAVE_DECL_ROUNDF.
60377         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60378         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60380         of HAVE_DECL_ROUND*.
60381         * modules/math (Makefile.am): Update.
60382
60383 2007-11-10  Bruno Haible  <bruno@clisp.org>
60384
60385         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60386         ptrdiff_t as m4/intl.m4.
60387
60388 2007-11-10  Jim Meyering  <meyering@redhat.com>
60389
60390         Avoid link failure for the argmatch test.
60391         * tests/test-argmatch.c (usage): Define function to avoid a link
60392         failure: argmatch_die requires a usage function.
60393
60394 2007-11-09  Bruno Haible  <bruno@clisp.org>
60395
60396         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60397         * doc/functions/vsnprintf.texi: Likewise.
60398         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60399         with a size argument < 2.
60400
60401 2007-11-09  Bruno Haible  <bruno@clisp.org>
60402
60403         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60404         buffer. Fixes an inefficiency introduced on 2007-11-03.
60405
60406 2007-11-09  Bruno Haible  <bruno@clisp.org>
60407
60408         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60409         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60410
60411 2007-11-08  Jim Meyering  <meyering@redhat.com>
60412
60413         Change cache variable name prefix "jm_" to "gl_" everywhere.
60414         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60415         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60416         * m4/uptime.m4: s/gl_/jm_/
60417
60418 2007-11-07  Bruno Haible  <bruno@clisp.org>
60419
60420         Update to GNU gettext 0.17.
60421         * m4/intl.m4: Update to GNU gettext 0.17.
60422         * m4/po.m4: Likewise.
60423         * modules/gettext (Files): Remove m4/ulonglong.m4.
60424         (configure.ac): Require gettext infrastructure from version 0.17.
60425
60426 2007-11-06  Bruno Haible  <bruno@clisp.org>
60427
60428         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60429         symbolic values are not defined in a public header.
60430         * lib/freadable.c (freadable) [QNX]: Likewise.
60431         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60432         * lib/freading.c (freading) [QNX]: Likewise.
60433         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60434         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60435         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60436         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60437         Reported by Alain Magloire.
60438
60439         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60440
60441 2007-11-05  Bruno Haible  <bruno@clisp.org>
60442
60443         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60444         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60445         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60446         Reported by Eric Blake.
60447
60448 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60449             Bruno Haible  <bruno@clisp.org>
60450
60451         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60452         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60453         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60454         (malloc): Undefine also before including <stdlib.h>.
60455         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60456         Needed on OSF/1 4.0.
60457
60458 2007-11-05  Jim Meyering  <meyering@redhat.com>
60459
60460         git-version-gen: sync from coreutils.
60461         * build-aux/git-version-gen: Add comments.
60462         Change the first '-' to '.' in the snapshot version string,
60463         e.g., 6.9-377-08144 -> 6.9.377-08144
60464         Remove first parameter.
60465         Don't declare a version "-dirty" merely because a time
60466         stamp has changed.
60467
60468 2007-11-04  Bruno Haible  <bruno@clisp.org>
60469
60470         * lib/lock.h: Protect all macro definitions containing an 'if'
60471         statement through a "do { ... } while (0)".
60472         * lib/tls.h: Likewise.
60473
60474 2007-11-04  Bruno Haible  <bruno@clisp.org>
60475
60476         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60477
60478 2007-11-04  Bruno Haible  <bruno@clisp.org>
60479
60480         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60481         * modules/fprintf-posix (Depends-on): Add nocrash.
60482         * modules/snprintf-posix (Depends-on): Likewise.
60483         * modules/sprintf-posix (Depends-on): Likewise.
60484         * modules/vasnprintf-posix (Depends-on): Likewise.
60485         * modules/vasprintf-posix (Depends-on): Likewise.
60486         * modules/vfprintf-posix (Depends-on): Likewise.
60487         * modules/vsnprintf-posix (Depends-on): Likewise.
60488         * modules/vsprintf-posix (Depends-on): Likewise.
60489         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60490         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60491         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60492         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60493         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60494         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60495         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60496
60497 2007-11-04  Bruno Haible  <bruno@clisp.org>
60498
60499         * modules/nocrash: New file.
60500         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60501         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60502
60503 2007-11-04  Bruno Haible  <bruno@clisp.org>
60504
60505         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60506         precision handling.
60507         * tests/test-vasprintf-posix.c (test_function): Likewise.
60508         * tests/test-snprintf-posix.h (test_function): Likewise.
60509         * tests/test-sprintf-posix.h (test_function): Likewise.
60510
60511         Fix *printf behaviour for large precisions on mingw and BeOS.
60512         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60513         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60514         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60515         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60516         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60517         gl_PRINTF_PRECISION and test its result. Invoke
60518         gl_PREREQ_VASNPRINTF_PRECISION.
60519         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60520         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60521         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60522         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60523         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60525         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60526         * doc/functions/fprintf.texi: Update.
60527         * doc/functions/printf.texi: Update.
60528         * doc/functions/snprintf.texi: Update.
60529         * doc/functions/sprintf.texi: Update.
60530         * doc/functions/vfprintf.texi: Update.
60531         * doc/functions/vprintf.texi: Update.
60532         * doc/functions/vsnprintf.texi: Update.
60533         * doc/functions/vsprintf.texi: Update.
60534
60535 2007-11-04  Bruno Haible  <bruno@clisp.org>
60536
60537         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60538
60539 2007-11-04  Bruno Haible  <bruno@clisp.org>
60540
60541         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60542         Reported by Sylvain Beucler <beuc@gnu.org>.
60543
60544 2007-11-03  Bruno Haible  <bruno@clisp.org>
60545
60546         * tests/test-fprintf-posix2.sh: New file.
60547         * tests/test-fprintf-posix2.c: New file.
60548         * modules/fprintf-posix-tests (Files): Add them.
60549         (TESTS): Add test-fprintf-posix2.sh.
60550         (configure.ac): Check for getrlimit and setrlimit.
60551         (check_PROGRAMS): Add test-fprintf-posix2.
60552
60553         * tests/test-printf-posix2.sh: New file.
60554         * tests/test-printf-posix2.c: New file.
60555         * modules/printf-posix-tests (Files): Add them.
60556         (TESTS): Add test-printf-posix2.sh.
60557         (configure.ac): Check for getrlimit and setrlimit.
60558         (check_PROGRAMS): Add test-printf-posix2.
60559
60560         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60561         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60562         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60563         (decode_double): New function, copied from decode_long_double.
60564         (scale10_round_decimal_decoded): New function, extracted from
60565         scale10_round_decimal_long_double.
60566         (scale10_round_decimal_long_double): Use it.
60567         (scale10_round_decimal_double): New function.
60568         (floorlog10): New function.
60569         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60571         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60572         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60573         gl_PRINTF_ENOMEM and test its result. Invoke
60574         gl_PREREQ_VASNPRINTF_ENOMEM.
60575         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60576         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60577         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60578         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60579         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60580         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60581         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60582         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60583         * modules/snprintf-posix (Depends-on): Likewise.
60584         * modules/sprintf-posix (Depends-on): Likewise.
60585         * modules/vasnprintf-posix (Depends-on): Likewise.
60586         * modules/vasprintf-posix (Depends-on): Likewise.
60587         * modules/vfprintf-posix (Depends-on): Likewise.
60588         * modules/vsnprintf-posix (Depends-on): Likewise.
60589         * modules/vsprintf-posix (Depends-on): Likewise.
60590         * doc/functions/fprintf.texi: Update.
60591         * doc/functions/printf.texi: Update.
60592         * doc/functions/snprintf.texi: Update.
60593         * doc/functions/sprintf.texi: Update.
60594         * doc/functions/vfprintf.texi: Update.
60595         * doc/functions/vprintf.texi: Update.
60596         * doc/functions/vsnprintf.texi: Update.
60597         * doc/functions/vsprintf.texi: Update.
60598
60599 2007-11-03  Bruno Haible  <bruno@clisp.org>
60600
60601         * modules/frexp-nolibm-tests: New file.
60602
60603         * modules/frexp-nolibm: New file.
60604         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60605
60606 2007-11-03  Bruno Haible  <bruno@clisp.org>
60607
60608         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60609         value is C99 compliant.
60610         Needed for OSF/1 5.1.
60611
60612 2007-11-03  Bruno Haible  <bruno@clisp.org>
60613
60614         Fix out-of-memory handling of vasnprintf.
60615         * lib/printf-parse.c: Include <errno.h>.
60616         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60617         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60618         is already set.
60619
60620 2007-11-02  Eric Blake  <ebb9@byu.net>
60621
60622         Fix tests on cygwin.
60623         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60624
60625 2007-11-01  Bruno Haible  <bruno@clisp.org>
60626
60627         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60628         warning.
60629         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60630         needed for POSIX compatibility.
60631
60632 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60633
60634         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60635         for compatibility with GNU.
60636
60637 2007-11-01  Bruno Haible  <bruno@clisp.org>
60638
60639         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60640         (putenv): Renamed from rpl_putenv. Change argument type from
60641         'const char *' to 'char *'.
60642         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60643         of defining putenv in config.h, just set REPLACE_PUTENV.
60644         * modules/putenv (Depends-on): Add stdlib.
60645         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60646         (Include): Use <stdlib.h>.
60647         * lib/stdlib.in.h (putenv): New declaration.
60648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60649         REPLACE_PUTENV.
60650         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60651         REPLACE_PUTENV.
60652         Needed for MacOS X 10.5.0.
60653         Reported by Peter O'Gorman <peter@pogma.com>.
60654
60655 2007-11-01  Jim Meyering  <meyering@redhat.com>
60656
60657         Treat an empty date string exactly like "0".
60658         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60659         if the remaining date string (to be parsed) is empty, use "0".
60660         Reported by Mischa Molhoek and discussed in this thread:
60661         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60662
60663 2007-10-31  Bruno Haible  <bruno@clisp.org>
60664
60665         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60666         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60667         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60668         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60669         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60670         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60671
60672 2007-10-31  Bruno Haible  <bruno@clisp.org>
60673
60674         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60675         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60676         (AC_TYPE_LONG_LONG_INT): Use it.
60677         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60678         it as well.
60679         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60680         to m4/longlong.m4.
60681         * modules/stdint (Files): Remove m4/ulonglong.m4.
60682         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60683         m4/ulonglong.m4.
60684         * modules/strtoumax (Files): Likewise.
60685
60686 2007-10-30  Bruno Haible  <bruno@clisp.org>
60687
60688         * modules/xvasprintf-posix: New file.
60689         Suggested by Eric Blake.
60690
60691 2007-10-30  Bruno Haible  <bruno@clisp.org>
60692
60693         * modules/xprintf-posix-tests: New file.
60694         * tests/test-xprintf-posix.sh: New file.
60695         * tests/test-xprintf-posix.c: New file.
60696         * tests/test-xfprintf-posix.c: New file.
60697
60698         * modules/xprintf-posix: New file.
60699
60700 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60701
60702         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60703         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60704         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60705
60706 2007-10-29  Bruno Haible  <bruno@clisp.org>
60707
60708         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60709         contain the special marker '_cv_'.
60710         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60711         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60712         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60713         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60714         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60715         Reported by Ralf Wildenhues.
60716
60717 2007-10-29  Bruno Haible  <bruno@clisp.org>
60718
60719         * gnulib-tool (func_import): When --lgpl is not specified, set
60720         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60721         GPLv3.
60722         Reported by Simon Josefsson.
60723
60724 2007-10-28  Bruno Haible  <bruno@clisp.org>
60725
60726         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60727         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60728         HAVE_DECL_ISFINITE.
60729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60730         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60731         HAVE_DECL_ISFINITE.
60732
60733 2007-10-28  Bruno Haible  <bruno@clisp.org>
60734
60735         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60736         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60737
60738 2007-10-28  Bruno Haible  <bruno@clisp.org>
60739
60740         Fix link errors with Sun C 5.0 on Solaris 10.
60741         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60742         function is declared but not present in the compiler's libm.
60743         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60744         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60745         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60746         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60747         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60748         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60749         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60751         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60752         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60753         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60754         HAVE_DECL_FLOORL.
60755
60756 2007-10-28  Bruno Haible  <bruno@clisp.org>
60757
60758         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60759         gl_FUNC_FLOORL. Cache the result.
60760         (gl_FUNC_FLOORL): Use it.
60761         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60762         gl_FUNC_CEILL. Cache the result.
60763         (gl_FUNC_CEILL): Use it.
60764
60765         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60766         gl_FUNC_FLOOR. Cache the result.
60767         (gl_FUNC_FLOOR): Use it.
60768         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60769         gl_FUNC_CEIL. Cache the result.
60770         (gl_FUNC_CEIL): Use it.
60771
60772         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60773         gl_FUNC_FLOORF. Cache the result.
60774         (gl_FUNC_FLOORF): Use it.
60775         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60776         gl_FUNC_CEILF. Cache the result.
60777         (gl_FUNC_CEILF): Use it.
60778
60779 2007-10-28  Bruno Haible  <bruno@clisp.org>
60780
60781         * gnulib-tool: Allow specifying the LGPL version number through
60782         --lgpl=2 or --lgpl=3.
60783         (func_usage): Document --lgpl with argument.
60784         Handle --lgpl=... arguments.
60785         (func_import): Recognize also gl_LGPL calls with an argument. When
60786         --lgpl=2 is used and the module's license is just LGPL, report an
60787         error. Set sed_transform_lib_file according to the lgpl variable. In
60788         the generated files, use --lgpl or gl_LGPL invocations with argument,
60789         if necessary.
60790         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60791         an LGPv2+ license.
60792         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60793         gl_LGPL macro.
60794
60795 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60796             Bruno Haible  <bruno@clisp.org>
60797
60798         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60799         (u16_uctomb_aux): Likewise.
60800         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60801         !HAVE_INLINE.
60802         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60803
60804 2007-10-28  Bruno Haible  <bruno@clisp.org>
60805
60806         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60807         Invoke AM_GETTEXT_OPTION if it exists.
60808         * modules/vasprintf: Likewise.
60809         * modules/verror: Likewise.
60810         * modules/xprintf: Likewise.
60811         * modules/xvasprintf: Likewise.
60812
60813 2007-10-27  Ben Pfaff  <blp@gnu.org>
60814
60815         * lib/math.in.h: Define isfinite macro and prototypes for
60816         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60817         implementations.
60818         * m4/math_h.m4: New substitutions for isfinite module.
60819         * lib/isfinite.c: New file.
60820         * m4/isfinite.m4: New file.
60821         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60822         * modules/isfinite: New file.
60823         * modules/isfinite-tests: New file.
60824         * tests/tests-isfinite.c: New file.
60825         * doc/functions/isfinite.texi: Mention isfinite module.
60826         * MODULES.html.sh: Mention new module.
60827
60828 2007-10-27  Ben Pfaff  <blp@gnu.org>
60829
60830         Ralf Wildenhues reported that Tru64 4.0D declares the round
60831         functions but does not have definitions.
60832         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60833         cannot be found in any library, set the output variable to
60834         "missing" instead of "".
60835         * m4/round.m4: Also use our substitute if we cannot find round in
60836         any library, even if it is declared.
60837         * m4/roundf.m4: Likewise for roundf.
60838         * m4/roundl.m4: Likewise for roundl.
60839         * lib/math.in.h: Undefine roundf, round, roundl before defining
60840         their replacements, to allow for hypothetical systems where these
60841         may be defined as macros but not available in libraries.
60842
60843 2007-10-27  Bruno Haible  <bruno@clisp.org>
60844
60845         * doc/gnulib.texi: Invoke @firstparagraphindent.
60846         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60847         changes in gnulib.
60848         (Source changes): New section.
60849
60850 2007-10-26  Bruno Haible  <bruno@clisp.org>
60851
60852         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60853         borrowed from autoconf.
60854
60855 2007-10-26  Bruno Haible  <bruno@clisp.org>
60856
60857         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60858         strerror returned the empty string. Needed on HP-UX 11.00.
60859
60860 2007-10-24  Micah Cowan  <micah@cowan.name>
60861
60862         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60863         * build-aux/bootstrap: Remove support for now-unnecessary option,
60864         --cvs-user, and envvars CVS_USER, CVS_RSH.
60865
60866 2007-10-24  Jim Meyering  <meyering@redhat.com>
60867
60868         Avoid diagnostics from sha1sum when there is no cached checksum.
60869         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60870         if the po.s1 file hasn't been created yet.
60871
60872         * build-aux/bootstrap: Sync from coreutils:
60873         2007-10-24  Jim Meyering  <meyering@redhat.com>
60874         Get gnulib from the git repository, not from an obsolete cvs one.
60875         * build-aux/bootstrap: Suggestion from Micah Cowan.
60876         2007-10-04  Jim Meyering  <jim@meyering.net>
60877         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60878         (update_po_files): Work also when there are no .po files in po/.
60879
60880 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60881
60882         * README: Append ".git" to git and cg examples.
60883         Problem reported by Benoit Sigoure.
60884
60885 2007-10-23  Micah Cowan  <micah@cowan.name>
60886
60887         * users.txt: Add wget.
60888
60889 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60890
60891         Fix linking of some unistdio tests on FreeBSD.
60892         * modules/unistdio/u16-vsnprintf-tests
60893         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60894         * modules/unistdio/u16-vsprintf-tests
60895         (test_u16_vsnprintf1_LDADD): Likewise.
60896         * modules/unistdio/u32-vsnprintf-tests
60897         (test_u32_vsnprintf1_LDADD): Likewise.
60898         * modules/unistdio/u32-vsprintf-tests
60899         (test_u32_vsprintf1_LDADD): Likewise.
60900         * modules/unistdio/u8-vsnprintf-tests
60901         (test_u8_vsnprintf1_LDADD): Likewise.
60902         * modules/unistdio/u8-vsprintf-tests
60903         (test_u8_vsprintf1_LDADD): Likewise.
60904         * modules/unistdio/ulc-vsnprintf-tests
60905         (test_ulc_vsnprintf1_LDADD): Likewise.
60906         * modules/unistdio/ulc-vsprintf-tests
60907         (test_ulc_vsprintf1_LDADD): Likewise.
60908
60909         Fix linking of some uniconv tests on FreeBSD.
60910         * modules/uniconv/u16-conv-from-enc-tests
60911         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60912         * modules/uniconv/u16-conv-to-enc-tests
60913         (test_u16_conv_to_enc_LDADD): Likewise.
60914         * modules/uniconv/u16-strconv-from-enc-tests
60915         (test_u16_strconv_from_enc_LDADD): Likewise.
60916         * modules/uniconv/u16-strconv-to-enc-tests
60917         (test_u16_strconv_to_enc_LDADD): Likewise.
60918         * modules/uniconv/u32-conv-from-enc-tests
60919         (test_u32_conv_from_enc_LDADD): Likewise.
60920         * modules/uniconv/u32-conv-to-enc-tests
60921         (test_u32_conv_to_enc_LDADD): Likewise.
60922         * modules/uniconv/u32-strconv-from-enc-tests
60923         (test_u32_strconv_from_enc_LDADD): Likewise.
60924         * modules/uniconv/u32-strconv-to-enc-tests
60925         (test_u32_strconv_to_enc_LDADD): Likewise.
60926         * modules/uniconv/u8-conv-from-enc-tests
60927         (test_u8_conv_from_enc_LDADD): Likewise.
60928         * modules/uniconv/u8-conv-to-enc-tests
60929         (test_u8_conv_to_enc_LDADD): Likewise.
60930         * modules/uniconv/u8-strconv-from-enc-tests
60931         (test_u8_strconv_from_enc_LDADD): Likewise.
60932         * modules/uniconv/u8-strconv-to-enc-tests
60933         (test_u8_strconv_to_enc_LDADD): Likewise.
60934
60935 2007-10-22  Bruno Haible  <bruno@clisp.org>
60936
60937         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60938         size.
60939
60940 2007-10-22  Eric Blake  <ebb9@byu.net>
60941
60942         Tweak x*printf documentation.
60943         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60944         variable name and comments.
60945         Suggested by Bruno Haible.
60946
60947 2007-10-22  Bruno Haible  <bruno@clisp.org>
60948
60949         * lib/acl.c (copy_acl): Fix file name in comment.
60950
60951 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60952
60953         Fix Tru64 problem with stdbool.h.
60954         * lib/stdbool.in.h (false, true):
60955         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60956         Don't declare as an enum in this situation; it runs afoul of Tru64.
60957         Problem reported by Steven M. Schweda in
60958         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60959
60960 2007-10-22  Eric Blake  <ebb9@byu.net>
60961
60962         Also wrap vf?printf.
60963         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60964         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60965         (xvprintf, xvfprintf): New functions.
60966
60967 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60968
60969         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60970         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60971
60972         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60973         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60974
60975 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60976
60977         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60978         by Bruno Haible.
60979
60980 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60981
60982         * lib/getloadavg.c
60983         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60984         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60985
60986         * tests/test-i-ring.c: Work for C89.
60987
60988 2007-10-22  Bruno Haible  <bruno@clisp.org>
60989
60990         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60991         -1u, in preprocessor expression, so that we don't test for the bug
60992         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60993         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60994
60995 2007-10-22  Eric Blake  <ebb9@byu.net>
60996
60997         * tests/test-yesno.sh: Silence stderr during test.
60998
60999 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61000
61001         * modules/crypto/gc-camellia: New file.
61002
61003         * m4/gc-camellia.m4: New file.
61004
61005         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
61006
61007         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61008
61009 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61010
61011         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61012         --help to stdout.  Reported by sms@antinode.org (Steven
61013         M. Schweda).
61014
61015 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61016
61017         * users.txt: Fix link to libksba.
61018
61019 2007-10-21  Ben Pfaff  <blp@gnu.org>
61020
61021         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61022         round.c roundf implementation that depends on floorf and ceilf to
61023         be tested unconditionally.
61024
61025 2007-10-21  Ben Pfaff  <blp@gnu.org>
61026
61027         * m4/check-libm-func.m4: Removed.
61028         * m4/check-math-lib.m4: New file.
61029         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61030         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61031         definition and lack of AC_LIBOBJ([roundf]).
61032         * m4/roundl.m4: Ditto, and similarly for roundl.
61033         * modules/round: Reference new m4 file.
61034         * modules/roundf: Ditto.
61035         * modules/roundl: Ditto.
61036         * tests/test-round2.c (main): Use ROUND instead of round.
61037         Bug report from Bruno Haible.
61038
61039 2007-10-21  Bruno Haible  <bruno@clisp.org>
61040
61041         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61042         context.
61043
61044 2007-10-21  Bruno Haible  <bruno@clisp.org>
61045
61046         * tests/test-wcwidth.c (main): Allow negative result for some control
61047         characters.
61048
61049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61050         Needed on OSF/1 5.1.
61051
61052 2007-10-21  Bruno Haible  <bruno@clisp.org>
61053
61054         * tests/test-floorf1.c: Include isnanf.h.
61055         (main): Use isnanf() instead of isnan().
61056         * tests/test-ceilf1.c: Include isnanf.h.
61057         (main): Use isnanf() instead of isnan().
61058         * tests/test-truncf1.c: Include isnanf.h.
61059         (main): Use isnanf() instead of isnan().
61060         * tests/test-roundf1.c: Include isnanf.h.
61061         (main): Use isnanf() instead of isnan().
61062
61063 2007-10-21  Eric Blake  <ebb9@byu.net>
61064
61065         * users.txt: Update URL for m4.
61066
61067 2007-10-21  Bruno Haible  <bruno@clisp.org>
61068
61069         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61070
61071 2007-10-21  Bruno Haible  <bruno@clisp.org>
61072
61073         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61074         Git's management files if the CVS files are not present.
61075
61076 2007-10-20  Bruno Haible  <bruno@clisp.org>
61077
61078         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61079         gcc-3.4.x.
61080
61081 2007-10-20  Ben Pfaff  <blp@gnu.org>
61082
61083         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61084         implementations.
61085         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61086         * lib/round.c: New file.
61087         * lib/roundf.c: New file.
61088         * lib/roundl.c: New file.
61089         * m4/round.m4: New file.
61090         * m4/roundf.m4: New file.
61091         * m4/roundl.m4: New file.
61092         * m4/check-libm-func-m4: New file.
61093         * modules/math: Replace round, roundf, roundl related @VARS@ in
61094         math.in.h.
61095         * modules/round: New file.
61096         * modules/round-tests: New file.
61097         * modules/roundf: New file.
61098         * modules/roundf-tests: New file.
61099         * modules/roundl: New file.
61100         * modules/roundl-tests: New file.
61101         * tests/test-round1.c: New file.
61102         * tests/test-round2.c: New file.
61103         * tests/test-roundf1.c: New file.
61104         * tests/test-roundf2.c: New file.
61105         * tests/test-roundl.c: New file.
61106         * doc/functions/round.texi: Mention round module.
61107         * doc/functions/roundf.texi: Mention roundf module.
61108         * doc/functions/roundl.texi: Mention roundl module.
61109         * MODULES.html.sh: Mention new modules.
61110         Thanks to Bruno Haible for suggestions.
61111
61112 2007-10-20  Jim Meyering  <meyering@redhat.com>
61113
61114         * lib/xprintf.c: Include <config.h> unconditionally.
61115
61116         Change xprintf's license to GPL.
61117         * modules/xprintf (License): s/LGPL/GPL/, since this module
61118         depends on modules (exit and exitfail) which are GPL.
61119         Suggestion from Bruno Haible.
61120
61121         xprintf fixes.
61122         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61123         Use a clearer diagnostic.
61124         Patch from Bruno Haible.
61125
61126 2007-10-20  Bruno Haible  <bruno@clisp.org>
61127
61128         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61129         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61130         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61131
61132 2007-10-20  Bruno Haible  <bruno@clisp.org>
61133
61134         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61135         precision in the comparison result > x - 1 or similar.
61136         * tests/test-ceilf2.c (correct_result_p): Likewise.
61137         * tests/test-truncf2.c (correct_result_p): Likewise.
61138         * tests/test-trunc2.c (correct_result_p): Likewise.
61139         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61140
61141 2007-10-20  Bruno Haible  <bruno@clisp.org>
61142
61143         * modules/ceil: New file.
61144         * m4/ceil.m4: New file.
61145         * doc/functions/ceil.texi: Mention the 'ceil' module.
61146
61147 2007-10-20  Bruno Haible  <bruno@clisp.org>
61148
61149         * modules/floor: New file.
61150         * m4/floor.m4: New file.
61151         * doc/functions/floor.texi: Mention the 'floor' module.
61152
61153 2007-10-20  Bruno Haible  <bruno@clisp.org>
61154
61155         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
61156         of %a.
61157         * modules/floorf-tests (Depends-on): Likewise.
61158         * modules/truncf-tests (Depends-on): Likewise.
61159         * modules/trunc-tests (Depends-on): Likewise.
61160         Reported by Ben Pfaff.
61161
61162 2007-10-19  Jim Meyering  <meyering@redhat.com>
61163
61164         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
61165         Don't bother testing specific errno values.  Just test ferror.
61166
61167         New module: xprintf
61168         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
61169
61170 2007-10-19  Bruno Haible  <bruno@clisp.org>
61171
61172         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
61173         syntax.
61174         * modules/javaexec (Makefile.am): Likewise.
61175         * modules/relocatable-prog (Makefile.am): Likewise.
61176         Suggested by Jim Meyering.
61177
61178 2007-10-18  Bruno Haible  <bruno@clisp.org>
61179
61180         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61181         Reported by Jim Meyering.
61182
61183 2007-10-18  Eric Blake  <ebb9@byu.net>
61184
61185         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61186
61187 2007-10-18  Bruno Haible  <bruno@clisp.org>
61188
61189         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61190         the format string into writable memory. Needed in Fortify conditions.
61191
61192 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61193             Bruno Haible  <bruno@clisp.org>
61194
61195         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61196         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61197         * modules/trim (Depends-on): Add mbchar.
61198         (configure.ac): Add gl_FUNC_MBRTOWC.
61199         (Makefile.am): Augment lib_SOURCES.
61200
61201 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61202
61203         Modify glob.c to use fstatat and dirfd, to simplify it.
61204         Suggested by Eric Blake.
61205         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61206         Don't include <stdbool.h>; not used.
61207         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61208         (link_exists_p): Simplify implementation, since we can now assume
61209         dirfd and fstatat.
61210         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61211
61212 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61213
61214         * gnulib-tool (func_get_dependencies): Fix sed script to
61215         match only tests.
61216
61217 2007-10-17  Bruno Haible  <bruno@clisp.org>
61218
61219         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61220         allow locale names without encoding suffix.
61221         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61222         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61223
61224 2007-10-16  Bruno Haible  <bruno@clisp.org>
61225
61226         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61227         * lib/getgroups.c (getgroups): Likewise.
61228         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61229
61230 2007-10-16  Bruno Haible  <bruno@clisp.org>
61231
61232         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61233         * modules/malloc-posix (License): Likewise.
61234         * modules/realloc-posix (License): Likewise.
61235         * modules/calloc-posix (License): Likewise.
61236         * modules/intprops (License): Change from GPL to LGPL, with
61237         Paul Eggert's approval.
61238
61239 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61240
61241         Merge glibc changes into lib/glob.c.
61242
61243         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
61244         2007-10-15 04:59:03 UTC.  Here are the changes:
61245
61246         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
61247
61248         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
61249
61250         * lib/glob.c: Add some branch prediction throughout.
61251
61252         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
61253
61254         [BZ #5103]
61255         * lib/glob.c (glob): Recognize patterns starting \/.
61256
61257         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61258
61259         [BZ #3996]
61260         * lib/glob.c (attribute_hidden): Define if not defined.
61261         (glob): Unescape dirname, filename or username when needed and not
61262         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61263         is NULL.  Handle unescaped [ in pattern without closing ].
61264         Don't pass GLOB_CHECK down to recursive glob for directories.
61265         (__glob_pattern_type): New function.
61266         (__glob_pattern_p): Implement using __glob_pattern_type.
61267         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61268         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61269         Remove unreachable code.
61270
61271         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61272
61273         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61274         explain why there are no leaks.
61275
61276         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61277
61278         [BZ #3253]
61279         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61280         time, rather allocate increasingly bigger arrays of pointers, if
61281         possible with alloca, if too large with malloc.
61282
61283 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61284
61285         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61286         Problem reported by H.Merijn Brand in
61287         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61288         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61289         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61290
61291 2007-10-15  Bruno Haible  <bruno@clisp.org>
61292
61293         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61294         with explicit rpl_ prefix.
61295         * lib/fopen.c (fopen): Likewise.
61296         * lib/freopen.c (freopen): Likewise.
61297         * lib/iconv.c (iconv): Likewise.
61298         * lib/iconv_close.c (iconv_close): Likewise.
61299
61300 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61301
61302         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61303
61304 2007-10-15  Bruno Haible  <bruno@clisp.org>
61305
61306         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61307         <stddef.h> instead of <stdlib.h> since we only need NULL.
61308         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61309
61310 2007-10-15  Bruno Haible  <bruno@clisp.org>
61311
61312         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61313         Replace paragraph talking about LIBOBJS.
61314         Reported by Colin Watson <cjwatson@debian.org>.
61315
61316 2007-10-15  Bruno Haible  <bruno@clisp.org>
61317
61318         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61319         <stdlib.h> before using NULL.
61320
61321 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61322
61323         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61324         Reported by Albert Chin <china@thewrittenword.com>.
61325
61326 2007-10-14  Bruno Haible  <bruno@clisp.org>
61327
61328         * modules/iconv_open-utf-tests: New file.
61329         * tests/test-iconv-utf.c: New file.
61330
61331         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61332         * modules/iconv_open-utf: New file.
61333         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61334         (iconv, iconv_close): New declarations.
61335         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61336         be defined.
61337         (iconv_open): Add special handling of conversion between UTF-8 and
61338         UTF-{16,32}{BE,LE}.
61339         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61340         * lib/iconv_close.c: New file.
61341         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61342         gl_FUNC_ICONV_OPEN.
61343         (gl_FUNC_ICONV_OPEN): Use it.
61344         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61345         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61346         and REPLACE_ICONV_UTF.
61347         * modules/iconv_open (Depends-on): Add c-strcase.
61348         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61349         ICONV_CONST.
61350         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61351
61352 2007-10-13  Albert Chin  <china@thewrittenword.com>
61353             Bruno Haible  <bruno@clisp.org>
61354
61355         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61356         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61357
61358 2007-10-13  Bruno Haible  <bruno@clisp.org>
61359
61360         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61361         defined, use the ISO C99 inline semantics.
61362         * lib/argp.h (ARGP_EI): Likewise.
61363
61364 2007-10-13  Bruno Haible  <bruno@clisp.org>
61365
61366         Handle 'inline' change in gcc 4.3.0.
61367         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61368         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61369         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61370         argp_fmtstream_point): Disable 'extern' declaration if the function
61371         definition is going to be provided inline.
61372         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61373         semantics, not the ISO C99 inline semantics.
61374         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61375         'extern' declaration if the function definition is going to be provided
61376         inline.
61377         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61378         the GNU C inline semantics, not the ISO C99 inline semantics. With
61379         GCC 4.2, avoid a warning.
61380
61381 2007-10-13  Bruno Haible  <bruno@clisp.org>
61382
61383         * lib/freading.h (freading): Enable the use of __freading for
61384         glibc >= 2.7.
61385         * lib/freading.c (freading): Likewise.
61386
61387 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61388
61389         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61390         "warning: C99 inline functions are not supported; using GNU89".
61391
61392 2007-10-12  Bruno Haible  <bruno@clisp.org>
61393
61394         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61395         of 2.
61396         * tests/test-ceilf2.c: New file.
61397         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61398
61399         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61400         * modules/ceilf-tests: Update.
61401
61402 2007-10-12  Bruno Haible  <bruno@clisp.org>
61403
61404         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61405         of 2.
61406         * tests/test-floorf2.c: New file.
61407         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61408
61409         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61410         * modules/floorf-tests: Update.
61411
61412 2007-10-12  Bruno Haible  <bruno@clisp.org>
61413
61414         * tests/test-trunc2.c: New file.
61415         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61416
61417         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61418         * modules/trunc-tests: Update.
61419
61420 2007-10-12  Bruno Haible  <bruno@clisp.org>
61421
61422         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61423         of 2.
61424         * tests/test-truncf2.c: New file.
61425         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61426
61427         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61428         * modules/truncf-tests: Update.
61429
61430 2007-10-11  Eric Blake  <ebb9@byu.net>
61431
61432         Don't claim strerror is broken on Interix.
61433         * doc/functions/strerror.texi (strerror): Known broken systems are
61434         now Solaris 8, and not Interix.
61435         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61436         Interix on cross-compile.
61437         Reported by Martin Koeppe in
61438         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61439
61440 2007-10-11  Bruno Haible  <bruno@clisp.org>
61441
61442         * modules/i-ring-tests: New file.
61443         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61444         instead of assert.
61445
61446 2007-10-11  Bruno Haible  <bruno@clisp.org>
61447
61448         * modules/filenamecat-tests: New file.
61449         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61450         * lib/filenamecat.c: Remove test code.
61451
61452 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61453
61454         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61455
61456         * lib/strerror.c: Include <string.h> always, to test interface,
61457         and to remove the need for the dummy.
61458         Include intprops.h to compute width instead of doing it ourselves
61459         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61460         (strerror): Define it to return NULL if there's no system strerror.
61461         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61462         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61463         ancient pre-strerror Unix systems well any more.  Saying "unknown
61464         system error" is enough.
61465         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61466         simpler strerror.c implementation.
61467         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61468         Simplify the tests to reflect the simpler strerror implementation.
61469         * modules/strerror (Depends-on): Add intprops.
61470
61471 2007-10-09  Eric Blake  <ebb9@byu.net>
61472
61473         Silence test-fpending.
61474         * modules/fpending-tests (Files): Add wrapper script.
61475         * tests/test-fpending.sh: New file.
61476
61477 2007-10-09  Bruno Haible  <bruno@clisp.org>
61478
61479         * MODULES.html.sh (func_module): Don't create a hyperlink for
61480         function names like 'printf_frexp'.
61481         (Misc): Add crc, memxor.
61482         (Characteristics of floating types): New section.
61483         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61484         isnanf-nolibm, signbit, trunc, truncf, truncl.
61485         (Enhancements for ISO C 99 functions): New subsection Input/output.
61486         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61487         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61488         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61489         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61490         (Enhancements for POSIX:2001 functions): Add chdir-long.
61491         (File system functions): Add areadlink, chdir-safer, read-file.
61492         Remove cycle-check.
61493         (File system as inode set): New section.
61494         (Date and time): Add gethrxtime.
61495         (Multithreading): Add openmp.
61496         (Internationalization functions): Add localename.
61497         (Unicode string functions): Add unistr/u*-mbsnlen.
61498         (Support for maintaining and releasing projects): Add git-version-gen.
61499         (Lone files): Remove directories.
61500
61501 2007-10-08  Ben Pfaff  <blp@gnu.org>
61502
61503         * lib/xmalloca.h: Fix typo in comment.
61504
61505 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61506
61507         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61508         when avoiding problems with integer overflow.  Use a portable test
61509         instead.
61510
61511 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61512
61513         * modules/dummy (License): Change to LGPLv2+.
61514         * modules/float (License): Likewise
61515         * modules/realloc (License): Likewise
61516         * modules/stdlib (License): Likewise
61517
61518 2007-10-07  Bruno Haible  <bruno@clisp.org>
61519
61520         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61521         * floor.c (TWO_MANT_DIG): Likewise.
61522         * ceil.c (TWO_MANT_DIG): Likewise.
61523         Reported by Ben Pfaff.
61524
61525 2007-10-07  Bruno Haible  <bruno@clisp.org>
61526
61527         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61528         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61529         * lib/frexp.c (FUNC): Likewise.
61530         * lib/printf-frexp.h (printf_frexp): Likewise.
61531         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61532         * lib/printf-frexp.c (FUNC): Likewise.
61533         Suggested by Jim Meyering.
61534
61535 2007-10-07  Jim Meyering  <meyering@redhat.com>
61536
61537         Make xnanosleep's integer overflow test more robust.
61538         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61539         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61540
61541 2007-10-07  Bruno Haible  <bruno@clisp.org>
61542
61543         * NEWS: Mention the license change.
61544
61545         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61546         abbreviations in the modules files.
61547
61548         Change copyright notice from GPLv2+ to GPLv3+.
61549         * README: Change copyright notice.
61550         * MODULES.html.sh: Likewise.
61551         * build-aux/bootstrap.conf: Likewise.
61552         * build-aux/config.libpath: Likewise.
61553         * build-aux/csharpcomp.sh.in: Likewise.
61554         * build-aux/csharpexec.sh.in: Likewise.
61555         * build-aux/install-reloc: Likewise.
61556         * build-aux/javacomp.sh.in: Likewise.
61557         * build-aux/javaexec.sh.in: Likewise.
61558         * build-aux/ldd.sh.in: Likewise.
61559         * build-aux/reloc-ldflags: Likewise.
61560         * build-aux/relocatable.sh.in: Likewise.
61561         * build-aux/x-to-1.in: Likewise.
61562         * check-module: Likewise.
61563         * config/srclistvars.sh: Likewise.
61564         * gnulib-tool: Likewise.
61565         * lib/acl-internal.h: Likewise.
61566         * lib/acl.c: Likewise.
61567         * lib/acl.h: Likewise.
61568         * lib/acl_entries.c: Likewise.
61569         * lib/areadlink-with-size.c: Likewise.
61570         * lib/areadlink.c: Likewise.
61571         * lib/areadlink.h: Likewise.
61572         * lib/argmatch.c: Likewise.
61573         * lib/argmatch.h: Likewise.
61574         * lib/argp-ba.c: Likewise.
61575         * lib/argp-eexst.c: Likewise.
61576         * lib/argp-fmtstream.c: Likewise.
61577         * lib/argp-fmtstream.h: Likewise.
61578         * lib/argp-fs-xinl.c: Likewise.
61579         * lib/argp-help.c: Likewise.
61580         * lib/argp-namefrob.h: Likewise.
61581         * lib/argp-parse.c: Likewise.
61582         * lib/argp-pin.c: Likewise.
61583         * lib/argp-pv.c: Likewise.
61584         * lib/argp-pvh.c: Likewise.
61585         * lib/argp-xinl.c: Likewise.
61586         * lib/argp.h: Likewise.
61587         * lib/at-func.c: Likewise.
61588         * lib/atanl.c: Likewise.
61589         * lib/backupfile.c: Likewise.
61590         * lib/backupfile.h: Likewise.
61591         * lib/basename.c: Likewise.
61592         * lib/binary-io.h: Likewise.
61593         * lib/byteswap.in.h: Likewise.
61594         * lib/c-stack.c: Likewise.
61595         * lib/c-stack.h: Likewise.
61596         * lib/c-strcasestr.c: Likewise.
61597         * lib/c-strcasestr.h: Likewise.
61598         * lib/c-strstr.c: Likewise.
61599         * lib/c-strstr.h: Likewise.
61600         * lib/c-strtod.c: Likewise.
61601         * lib/calloc.c: Likewise.
61602         * lib/canon-host.c: Likewise.
61603         * lib/canon-host.h: Likewise.
61604         * lib/canonicalize-lgpl.c: Likewise.
61605         * lib/canonicalize.c: Likewise.
61606         * lib/canonicalize.h: Likewise.
61607         * lib/ceil.c: Likewise.
61608         * lib/ceilf.c: Likewise.
61609         * lib/ceill.c: Likewise.
61610         * lib/chdir-long.c: Likewise.
61611         * lib/chdir-long.h: Likewise.
61612         * lib/chdir-safer.c: Likewise.
61613         * lib/chdir-safer.h: Likewise.
61614         * lib/chown.c: Likewise.
61615         * lib/classpath.c: Likewise.
61616         * lib/classpath.h: Likewise.
61617         * lib/clean-temp.c: Likewise.
61618         * lib/clean-temp.h: Likewise.
61619         * lib/cloexec.c: Likewise.
61620         * lib/close-stream.c: Likewise.
61621         * lib/closein.c: Likewise.
61622         * lib/closein.h: Likewise.
61623         * lib/closeout.c: Likewise.
61624         * lib/closeout.h: Likewise.
61625         * lib/concat-filename.c: Likewise.
61626         * lib/copy-file.c: Likewise.
61627         * lib/copy-file.h: Likewise.
61628         * lib/count-one-bits.h: Likewise.
61629         * lib/crc.c: Likewise.
61630         * lib/crc.h: Likewise.
61631         * lib/creat-safer.c: Likewise.
61632         * lib/csharpcomp.c: Likewise.
61633         * lib/csharpcomp.h: Likewise.
61634         * lib/csharpexec.c: Likewise.
61635         * lib/csharpexec.h: Likewise.
61636         * lib/cycle-check.c: Likewise.
61637         * lib/cycle-check.h: Likewise.
61638         * lib/diacrit.c: Likewise.
61639         * lib/diacrit.h: Likewise.
61640         * lib/diffseq.h: Likewise.
61641         * lib/dirchownmod.c: Likewise.
61642         * lib/dirent.in.h: Likewise.
61643         * lib/dirfd.c: Likewise.
61644         * lib/dirfd.h: Likewise.
61645         * lib/dirname.c: Likewise.
61646         * lib/dirname.h: Likewise.
61647         * lib/dummy.c: Likewise.
61648         * lib/dup-safer.c: Likewise.
61649         * lib/dup2.c: Likewise.
61650         * lib/eealloc.h: Likewise.
61651         * lib/error.c: Likewise.
61652         * lib/error.h: Likewise.
61653         * lib/euidaccess.c: Likewise.
61654         * lib/exclude.c: Likewise.
61655         * lib/exclude.h: Likewise.
61656         * lib/execute.c: Likewise.
61657         * lib/execute.h: Likewise.
61658         * lib/exitfail.c: Likewise.
61659         * lib/exitfail.h: Likewise.
61660         * lib/expl.c: Likewise.
61661         * lib/fatal-signal.c: Likewise.
61662         * lib/fatal-signal.h: Likewise.
61663         * lib/fbufmode.c: Likewise.
61664         * lib/fbufmode.h: Likewise.
61665         * lib/fchdir.c: Likewise.
61666         * lib/fchmodat.c: Likewise.
61667         * lib/fchownat.c: Likewise.
61668         * lib/fcntl--.h: Likewise.
61669         * lib/fcntl-safer.h: Likewise.
61670         * lib/fcntl.in.h: Likewise.
61671         * lib/fd-safer.c: Likewise.
61672         * lib/fflush.c: Likewise.
61673         * lib/file-has-acl.c: Likewise.
61674         * lib/file-set.c: Likewise.
61675         * lib/file-type.c: Likewise.
61676         * lib/file-type.h: Likewise.
61677         * lib/fileblocks.c: Likewise.
61678         * lib/filemode.c: Likewise.
61679         * lib/filemode.h: Likewise.
61680         * lib/filename.h: Likewise.
61681         * lib/filenamecat.c: Likewise.
61682         * lib/filenamecat.h: Likewise.
61683         * lib/findprog.c: Likewise.
61684         * lib/findprog.h: Likewise.
61685         * lib/float.in.h: Likewise.
61686         * lib/floor.c: Likewise.
61687         * lib/floorf.c: Likewise.
61688         * lib/floorl.c: Likewise.
61689         * lib/fopen-safer.c: Likewise.
61690         * lib/fopen.c: Likewise.
61691         * lib/fpending.c: Likewise.
61692         * lib/fpending.h: Likewise.
61693         * lib/fprintf.c: Likewise.
61694         * lib/fprintftime.h: Likewise.
61695         * lib/fpucw.h: Likewise.
61696         * lib/fpurge.c: Likewise.
61697         * lib/fpurge.h: Likewise.
61698         * lib/freadable.c: Likewise.
61699         * lib/freadable.h: Likewise.
61700         * lib/freadahead.c: Likewise.
61701         * lib/freadahead.h: Likewise.
61702         * lib/freading.c: Likewise.
61703         * lib/freading.h: Likewise.
61704         * lib/free.c: Likewise.
61705         * lib/freopen.c: Likewise.
61706         * lib/frexp.c: Likewise.
61707         * lib/frexpl.c: Likewise.
61708         * lib/fseek.c: Likewise.
61709         * lib/fseterr.c: Likewise.
61710         * lib/fseterr.h: Likewise.
61711         * lib/fstatat.c: Likewise.
61712         * lib/fstrcmp.c: Likewise.
61713         * lib/fstrcmp.h: Likewise.
61714         * lib/fsusage.c: Likewise.
61715         * lib/fsusage.h: Likewise.
61716         * lib/ftell.c: Likewise.
61717         * lib/ftello.c: Likewise.
61718         * lib/fts-cycle.c: Likewise.
61719         * lib/fts.c: Likewise.
61720         * lib/fts_.h: Likewise.
61721         * lib/full-read.c: Likewise.
61722         * lib/full-read.h: Likewise.
61723         * lib/full-write.c: Likewise.
61724         * lib/full-write.h: Likewise.
61725         * lib/fwritable.c: Likewise.
61726         * lib/fwritable.h: Likewise.
61727         * lib/fwriteerror.c: Likewise.
61728         * lib/fwriteerror.h: Likewise.
61729         * lib/fwriting.c: Likewise.
61730         * lib/fwriting.h: Likewise.
61731         * lib/gcd.c: Likewise.
61732         * lib/gcd.h: Likewise.
61733         * lib/getcwd.c: Likewise.
61734         * lib/getdate.h: Likewise.
61735         * lib/getdate.y: Likewise.
61736         * lib/getdomainname.c: Likewise.
61737         * lib/getdomainname.h: Likewise.
61738         * lib/getgroups.c: Likewise.
61739         * lib/gethostname.c: Likewise.
61740         * lib/gethrxtime.c: Likewise.
61741         * lib/gethrxtime.h: Likewise.
61742         * lib/getloadavg.c: Likewise.
61743         * lib/getndelim2.c: Likewise.
61744         * lib/getndelim2.h: Likewise.
61745         * lib/getnline.c: Likewise.
61746         * lib/getnline.h: Likewise.
61747         * lib/getopt.c: Likewise.
61748         * lib/getopt.in.h: Likewise.
61749         * lib/getopt1.c: Likewise.
61750         * lib/getopt_int.h: Likewise.
61751         * lib/getpagesize.h: Likewise.
61752         * lib/getsubopt.c: Likewise.
61753         * lib/gettime.c: Likewise.
61754         * lib/getugroups.c: Likewise.
61755         * lib/getugroups.h: Likewise.
61756         * lib/getusershell.c: Likewise.
61757         * lib/gl_anyavltree_list1.h: Likewise.
61758         * lib/gl_anyavltree_list2.h: Likewise.
61759         * lib/gl_anyhash_list1.h: Likewise.
61760         * lib/gl_anyhash_list2.h: Likewise.
61761         * lib/gl_anylinked_list1.h: Likewise.
61762         * lib/gl_anylinked_list2.h: Likewise.
61763         * lib/gl_anyrbtree_list1.h: Likewise.
61764         * lib/gl_anyrbtree_list2.h: Likewise.
61765         * lib/gl_anytree_list1.h: Likewise.
61766         * lib/gl_anytree_list2.h: Likewise.
61767         * lib/gl_anytree_oset.h: Likewise.
61768         * lib/gl_anytreehash_list1.h: Likewise.
61769         * lib/gl_anytreehash_list2.h: Likewise.
61770         * lib/gl_array_list.c: Likewise.
61771         * lib/gl_array_list.h: Likewise.
61772         * lib/gl_array_oset.c: Likewise.
61773         * lib/gl_array_oset.h: Likewise.
61774         * lib/gl_avltree_list.c: Likewise.
61775         * lib/gl_avltree_list.h: Likewise.
61776         * lib/gl_avltree_oset.c: Likewise.
61777         * lib/gl_avltree_oset.h: Likewise.
61778         * lib/gl_avltreehash_list.c: Likewise.
61779         * lib/gl_avltreehash_list.h: Likewise.
61780         * lib/gl_carray_list.c: Likewise.
61781         * lib/gl_carray_list.h: Likewise.
61782         * lib/gl_linked_list.c: Likewise.
61783         * lib/gl_linked_list.h: Likewise.
61784         * lib/gl_linkedhash_list.c: Likewise.
61785         * lib/gl_linkedhash_list.h: Likewise.
61786         * lib/gl_list.c: Likewise.
61787         * lib/gl_list.h: Likewise.
61788         * lib/gl_oset.c: Likewise.
61789         * lib/gl_oset.h: Likewise.
61790         * lib/gl_rbtree_list.c: Likewise.
61791         * lib/gl_rbtree_list.h: Likewise.
61792         * lib/gl_rbtree_oset.c: Likewise.
61793         * lib/gl_rbtree_oset.h: Likewise.
61794         * lib/gl_rbtreehash_list.c: Likewise.
61795         * lib/gl_rbtreehash_list.h: Likewise.
61796         * lib/gl_sublist.c: Likewise.
61797         * lib/gl_sublist.h: Likewise.
61798         * lib/group-member.c: Likewise.
61799         * lib/group-member.h: Likewise.
61800         * lib/hard-locale.c: Likewise.
61801         * lib/hard-locale.h: Likewise.
61802         * lib/hash-pjw.c: Likewise.
61803         * lib/hash-pjw.h: Likewise.
61804         * lib/hash-triple.c: Likewise.
61805         * lib/hash.c: Likewise.
61806         * lib/hash.h: Likewise.
61807         * lib/human.c: Likewise.
61808         * lib/human.h: Likewise.
61809         * lib/i-ring.c: Likewise.
61810         * lib/i-ring.h: Likewise.
61811         * lib/idcache.c: Likewise.
61812         * lib/imaxabs.c: Likewise.
61813         * lib/imaxdiv.c: Likewise.
61814         * lib/inet_pton.c: Likewise.
61815         * lib/inet_pton.h: Likewise.
61816         * lib/intprops.h: Likewise.
61817         * lib/inttostr.c: Likewise.
61818         * lib/inttostr.h: Likewise.
61819         * lib/inttypes.in.h: Likewise.
61820         * lib/isapipe.c: Likewise.
61821         * lib/isdir.c: Likewise.
61822         * lib/isnan.c: Likewise.
61823         * lib/isnan.h: Likewise.
61824         * lib/isnanf.c: Likewise.
61825         * lib/isnanf.h: Likewise.
61826         * lib/isnanl-nolibm.h: Likewise.
61827         * lib/isnanl.c: Likewise.
61828         * lib/isnanl.h: Likewise.
61829         * lib/javacomp.c: Likewise.
61830         * lib/javacomp.h: Likewise.
61831         * lib/javaexec.c: Likewise.
61832         * lib/javaexec.h: Likewise.
61833         * lib/javaversion.c: Likewise.
61834         * lib/javaversion.h: Likewise.
61835         * lib/javaversion.java: Likewise.
61836         * lib/lbrkprop.h: Likewise.
61837         * lib/lchmod.h: Likewise.
61838         * lib/lchown.c: Likewise.
61839         * lib/ldexpl.c: Likewise.
61840         * lib/linebreak.c: Likewise.
61841         * lib/linebreak.h: Likewise.
61842         * lib/linebuffer.c: Likewise.
61843         * lib/linebuffer.h: Likewise.
61844         * lib/locale.in.h: Likewise.
61845         * lib/logl.c: Likewise.
61846         * lib/long-options.c: Likewise.
61847         * lib/long-options.h: Likewise.
61848         * lib/lstat.c: Likewise.
61849         * lib/lstat.h: Likewise.
61850         * lib/math.in.h: Likewise.
61851         * lib/mbchar.c: Likewise.
61852         * lib/mbchar.h: Likewise.
61853         * lib/mbfile.h: Likewise.
61854         * lib/mbiter.h: Likewise.
61855         * lib/mbscasecmp.c: Likewise.
61856         * lib/mbscasestr.c: Likewise.
61857         * lib/mbschr.c: Likewise.
61858         * lib/mbscspn.c: Likewise.
61859         * lib/mbslen.c: Likewise.
61860         * lib/mbsncasecmp.c: Likewise.
61861         * lib/mbsnlen.c: Likewise.
61862         * lib/mbspbrk.c: Likewise.
61863         * lib/mbspcasecmp.c: Likewise.
61864         * lib/mbsrchr.c: Likewise.
61865         * lib/mbssep.c: Likewise.
61866         * lib/mbsspn.c: Likewise.
61867         * lib/mbsstr.c: Likewise.
61868         * lib/mbstok_r.c: Likewise.
61869         * lib/mbswidth.c: Likewise.
61870         * lib/mbswidth.h: Likewise.
61871         * lib/mbuiter.h: Likewise.
61872         * lib/memcasecmp.c: Likewise.
61873         * lib/memcasecmp.h: Likewise.
61874         * lib/memchr.c: Likewise.
61875         * lib/memcmp.c: Likewise.
61876         * lib/memcoll.c: Likewise.
61877         * lib/memcoll.h: Likewise.
61878         * lib/memcpy.c: Likewise.
61879         * lib/memrchr.c: Likewise.
61880         * lib/mkancesdirs.c: Likewise.
61881         * lib/mkdir-p.c: Likewise.
61882         * lib/mkdir-p.h: Likewise.
61883         * lib/mkdir.c: Likewise.
61884         * lib/mkdirat.c: Likewise.
61885         * lib/mkdtemp.c: Likewise.
61886         * lib/mkstemp-safer.c: Likewise.
61887         * lib/mkstemp.c: Likewise.
61888         * lib/modechange.c: Likewise.
61889         * lib/modechange.h: Likewise.
61890         * lib/mountlist.c: Likewise.
61891         * lib/mountlist.h: Likewise.
61892         * lib/mpsort.c: Likewise.
61893         * lib/nanosleep.c: Likewise.
61894         * lib/obstack.c: Likewise.
61895         * lib/obstack.h: Likewise.
61896         * lib/open-safer.c: Likewise.
61897         * lib/open.c: Likewise.
61898         * lib/openat-die.c: Likewise.
61899         * lib/openat-priv.h: Likewise.
61900         * lib/openat-proc.c: Likewise.
61901         * lib/openat.c: Likewise.
61902         * lib/openat.h: Likewise.
61903         * lib/pagealign_alloc.c: Likewise.
61904         * lib/pagealign_alloc.h: Likewise.
61905         * lib/physmem.c: Likewise.
61906         * lib/physmem.h: Likewise.
61907         * lib/pipe-safer.c: Likewise.
61908         * lib/pipe.c: Likewise.
61909         * lib/pipe.h: Likewise.
61910         * lib/posixtm.c: Likewise.
61911         * lib/posixtm.h: Likewise.
61912         * lib/posixver.c: Likewise.
61913         * lib/printf-frexp.c: Likewise.
61914         * lib/printf-frexp.h: Likewise.
61915         * lib/printf-frexpl.c: Likewise.
61916         * lib/printf-frexpl.h: Likewise.
61917         * lib/printf.c: Likewise.
61918         * lib/progname.c: Likewise.
61919         * lib/progname.h: Likewise.
61920         * lib/progreloc.c: Likewise.
61921         * lib/putenv.c: Likewise.
61922         * lib/quote.c: Likewise.
61923         * lib/quote.h: Likewise.
61924         * lib/quotearg.c: Likewise.
61925         * lib/quotearg.h: Likewise.
61926         * lib/raise.c: Likewise.
61927         * lib/readline.c: Likewise.
61928         * lib/readline.h: Likewise.
61929         * lib/readlink.c: Likewise.
61930         * lib/readtokens.c: Likewise.
61931         * lib/readtokens.h: Likewise.
61932         * lib/readtokens0.c: Likewise.
61933         * lib/readtokens0.h: Likewise.
61934         * lib/readutmp.c: Likewise.
61935         * lib/readutmp.h: Likewise.
61936         * lib/realloc.c: Likewise.
61937         * lib/relocwrapper.c: Likewise.
61938         * lib/rename-dest-slash.c: Likewise.
61939         * lib/rename.c: Likewise.
61940         * lib/rmdir.c: Likewise.
61941         * lib/rpmatch.c: Likewise.
61942         * lib/safe-read.c: Likewise.
61943         * lib/safe-read.h: Likewise.
61944         * lib/safe-write.c: Likewise.
61945         * lib/safe-write.h: Likewise.
61946         * lib/same-inode.h: Likewise.
61947         * lib/same.c: Likewise.
61948         * lib/same.h: Likewise.
61949         * lib/save-cwd.c: Likewise.
61950         * lib/save-cwd.h: Likewise.
61951         * lib/savedir.c: Likewise.
61952         * lib/savedir.h: Likewise.
61953         * lib/savewd.c: Likewise.
61954         * lib/savewd.h: Likewise.
61955         * lib/search.in.h: Likewise.
61956         * lib/setenv.c: Likewise.
61957         * lib/setenv.h: Likewise.
61958         * lib/settime.c: Likewise.
61959         * lib/sh-quote.c: Likewise.
61960         * lib/sh-quote.h: Likewise.
61961         * lib/sig2str.c: Likewise.
61962         * lib/sig2str.h: Likewise.
61963         * lib/signal.in.h: Likewise.
61964         * lib/signbitd.c: Likewise.
61965         * lib/signbitf.c: Likewise.
61966         * lib/signbitl.c: Likewise.
61967         * lib/sigprocmask.c: Likewise.
61968         * lib/sincosl.c: Likewise.
61969         * lib/sleep.c: Likewise.
61970         * lib/sprintf.c: Likewise.
61971         * lib/sqrtl.c: Likewise.
61972         * lib/stat-time.h: Likewise.
61973         * lib/stdio--.h: Likewise.
61974         * lib/stdio-safer.h: Likewise.
61975         * lib/stdlib--.h: Likewise.
61976         * lib/stdlib-safer.h: Likewise.
61977         * lib/stdlib.in.h: Likewise.
61978         * lib/stpcpy.c: Likewise.
61979         * lib/stpncpy.c: Likewise.
61980         * lib/strchrnul.c: Likewise.
61981         * lib/strcspn.c: Likewise.
61982         * lib/strerror.c: Likewise.
61983         * lib/strftime.c: Likewise.
61984         * lib/strftime.h: Likewise.
61985         * lib/striconveh.c: Likewise.
61986         * lib/striconveh.h: Likewise.
61987         * lib/striconveha.c: Likewise.
61988         * lib/striconveha.h: Likewise.
61989         * lib/stripslash.c: Likewise.
61990         * lib/strnlen1.c: Likewise.
61991         * lib/strnlen1.h: Likewise.
61992         * lib/strtod.c: Likewise.
61993         * lib/strtoimax.c: Likewise.
61994         * lib/strtok_r.c: Likewise.
61995         * lib/strtol.c: Likewise.
61996         * lib/strtoll.c: Likewise.
61997         * lib/strtoul.c: Likewise.
61998         * lib/strtoull.c: Likewise.
61999         * lib/sysexits.in.h: Likewise.
62000         * lib/tempname.c: Likewise.
62001         * lib/tempname.h: Likewise.
62002         * lib/timespec.h: Likewise.
62003         * lib/tls.c: Likewise.
62004         * lib/tls.h: Likewise.
62005         * lib/tmpdir.c: Likewise.
62006         * lib/tmpdir.h: Likewise.
62007         * lib/tmpfile-safer.c: Likewise.
62008         * lib/tmpfile.c: Likewise.
62009         * lib/trigl.c: Likewise.
62010         * lib/trigl.h: Likewise.
62011         * lib/trim.c: Likewise.
62012         * lib/trim.h: Likewise.
62013         * lib/trunc.c: Likewise.
62014         * lib/truncf.c: Likewise.
62015         * lib/truncl.c: Likewise.
62016         * lib/tsearch.c: Likewise.
62017         * lib/unicodeio.c: Likewise.
62018         * lib/unicodeio.h: Likewise.
62019         * lib/unistd--.h: Likewise.
62020         * lib/unistd-safer.h: Likewise.
62021         * lib/unistdio/ulc-fprintf.c: Likewise.
62022         * lib/unistdio/ulc-vfprintf.c: Likewise.
62023         * lib/unlinkdir.c: Likewise.
62024         * lib/unlinkdir.h: Likewise.
62025         * lib/unlocked-io.h: Likewise.
62026         * lib/unsetenv.c: Likewise.
62027         * lib/userspec.c: Likewise.
62028         * lib/utime.c: Likewise.
62029         * lib/utimecmp.c: Likewise.
62030         * lib/utimecmp.h: Likewise.
62031         * lib/utimens.c: Likewise.
62032         * lib/verify.h: Likewise.
62033         * lib/verror.c: Likewise.
62034         * lib/verror.h: Likewise.
62035         * lib/version-etc-fsf.c: Likewise.
62036         * lib/version-etc.c: Likewise.
62037         * lib/version-etc.h: Likewise.
62038         * lib/vfprintf.c: Likewise.
62039         * lib/vprintf.c: Likewise.
62040         * lib/vsprintf.c: Likewise.
62041         * lib/w32spawn.h: Likewise.
62042         * lib/wait-process.c: Likewise.
62043         * lib/wait-process.h: Likewise.
62044         * lib/wcwidth.c: Likewise.
62045         * lib/write-any-file.c: Likewise.
62046         * lib/xalloc-die.c: Likewise.
62047         * lib/xalloc.h: Likewise.
62048         * lib/xasprintf.c: Likewise.
62049         * lib/xgetcwd.c: Likewise.
62050         * lib/xgetcwd.h: Likewise.
62051         * lib/xgetdomainname.c: Likewise.
62052         * lib/xgetdomainname.h: Likewise.
62053         * lib/xgethostname.c: Likewise.
62054         * lib/xmalloc.c: Likewise.
62055         * lib/xmalloca.c: Likewise.
62056         * lib/xmalloca.h: Likewise.
62057         * lib/xmemcoll.c: Likewise.
62058         * lib/xnanosleep.c: Likewise.
62059         * lib/xreadlink.c: Likewise.
62060         * lib/xreadlink.h: Likewise.
62061         * lib/xsetenv.c: Likewise.
62062         * lib/xsetenv.h: Likewise.
62063         * lib/xstriconv.c: Likewise.
62064         * lib/xstriconv.h: Likewise.
62065         * lib/xstrndup.c: Likewise.
62066         * lib/xstrndup.h: Likewise.
62067         * lib/xstrtod.c: Likewise.
62068         * lib/xstrtod.h: Likewise.
62069         * lib/xstrtol-error.c: Likewise.
62070         * lib/xstrtol.c: Likewise.
62071         * lib/xstrtol.h: Likewise.
62072         * lib/xtime.h: Likewise.
62073         * lib/xvasprintf.c: Likewise.
62074         * lib/xvasprintf.h: Likewise.
62075         * lib/yesno.c: Likewise.
62076         * lib/yesno.h: Likewise.
62077         * posix-modules: Likewise.
62078         * tests/test-alloca-opt.c: Likewise.
62079         * tests/test-arcfour.c: Likewise.
62080         * tests/test-arctwo.c: Likewise.
62081         * tests/test-argmatch.c: Likewise.
62082         * tests/test-argp-2.sh: Likewise.
62083         * tests/test-argp.c: Likewise.
62084         * tests/test-arpa_inet.c: Likewise.
62085         * tests/test-array_list.c: Likewise.
62086         * tests/test-array_oset.c: Likewise.
62087         * tests/test-atexit.c: Likewise.
62088         * tests/test-avltree_list.c: Likewise.
62089         * tests/test-avltree_oset.c: Likewise.
62090         * tests/test-avltreehash_list.c: Likewise.
62091         * tests/test-base64.c: Likewise.
62092         * tests/test-binary-io.c: Likewise.
62093         * tests/test-byteswap.c: Likewise.
62094         * tests/test-c-ctype.c: Likewise.
62095         * tests/test-c-strcasecmp.c: Likewise.
62096         * tests/test-c-strcasestr.c: Likewise.
62097         * tests/test-c-strncasecmp.c: Likewise.
62098         * tests/test-c-strstr.c: Likewise.
62099         * tests/test-canonicalize-lgpl.c: Likewise.
62100         * tests/test-canonicalize.c: Likewise.
62101         * tests/test-carray_list.c: Likewise.
62102         * tests/test-ceilf.c: Likewise.
62103         * tests/test-ceill.c: Likewise.
62104         * tests/test-count-one-bits.c: Likewise.
62105         * tests/test-crc.c: Likewise.
62106         * tests/test-dirname.c: Likewise.
62107         * tests/test-fbufmode.c: Likewise.
62108         * tests/test-fcntl.c: Likewise.
62109         * tests/test-fflush.c: Likewise.
62110         * tests/test-floorf.c: Likewise.
62111         * tests/test-floorl.c: Likewise.
62112         * tests/test-fopen.c: Likewise.
62113         * tests/test-fprintf-posix.c: Likewise.
62114         * tests/test-fprintf-posix.h: Likewise.
62115         * tests/test-fpurge.c: Likewise.
62116         * tests/test-freadable.c: Likewise.
62117         * tests/test-freadahead.c: Likewise.
62118         * tests/test-freading.c: Likewise.
62119         * tests/test-freopen.c: Likewise.
62120         * tests/test-frexp.c: Likewise.
62121         * tests/test-frexpl.c: Likewise.
62122         * tests/test-fseek.c: Likewise.
62123         * tests/test-fseeko.c: Likewise.
62124         * tests/test-fseterr.c: Likewise.
62125         * tests/test-fstrcmp.c: Likewise.
62126         * tests/test-ftell.c: Likewise.
62127         * tests/test-ftello.c: Likewise.
62128         * tests/test-fwritable.c: Likewise.
62129         * tests/test-fwriting.c: Likewise.
62130         * tests/test-getaddrinfo.c: Likewise.
62131         * tests/test-getpass.c: Likewise.
62132         * tests/test-gettimeofday.c: Likewise.
62133         * tests/test-hmac-md5.c: Likewise.
62134         * tests/test-hmac-sha1.c: Likewise.
62135         * tests/test-iconv.c: Likewise.
62136         * tests/test-iconvme.c: Likewise.
62137         * tests/test-inttypes.c: Likewise.
62138         * tests/test-isnan.c: Likewise.
62139         * tests/test-isnanf.c: Likewise.
62140         * tests/test-isnanl-nolibm.c: Likewise.
62141         * tests/test-isnanl.c: Likewise.
62142         * tests/test-isnanl.h: Likewise.
62143         * tests/test-ldexpl.c: Likewise.
62144         * tests/test-linked_list.c: Likewise.
62145         * tests/test-linkedhash_list.c: Likewise.
62146         * tests/test-locale.c: Likewise.
62147         * tests/test-localename.c: Likewise.
62148         * tests/test-lock.c: Likewise.
62149         * tests/test-lseek.c: Likewise.
62150         * tests/test-malloca.c: Likewise.
62151         * tests/test-math.c: Likewise.
62152         * tests/test-mbscasecmp.c: Likewise.
62153         * tests/test-mbscasestr1.c: Likewise.
62154         * tests/test-mbscasestr2.c: Likewise.
62155         * tests/test-mbscasestr3.c: Likewise.
62156         * tests/test-mbscasestr4.c: Likewise.
62157         * tests/test-mbschr.c: Likewise.
62158         * tests/test-mbscspn.c: Likewise.
62159         * tests/test-mbsncasecmp.c: Likewise.
62160         * tests/test-mbspbrk.c: Likewise.
62161         * tests/test-mbspcasecmp.c: Likewise.
62162         * tests/test-mbsrchr.c: Likewise.
62163         * tests/test-mbsspn.c: Likewise.
62164         * tests/test-mbsstr1.c: Likewise.
62165         * tests/test-mbsstr2.c: Likewise.
62166         * tests/test-mbsstr3.c: Likewise.
62167         * tests/test-md5.c: Likewise.
62168         * tests/test-memmem.c: Likewise.
62169         * tests/test-netinet_in.c: Likewise.
62170         * tests/test-open.c: Likewise.
62171         * tests/test-printf-frexp.c: Likewise.
62172         * tests/test-printf-frexpl.c: Likewise.
62173         * tests/test-printf-posix.c: Likewise.
62174         * tests/test-printf-posix.h: Likewise.
62175         * tests/test-rbtree_list.c: Likewise.
62176         * tests/test-rbtree_oset.c: Likewise.
62177         * tests/test-rbtreehash_list.c: Likewise.
62178         * tests/test-read-file.c: Likewise.
62179         * tests/test-rijndael.c: Likewise.
62180         * tests/test-search.c: Likewise.
62181         * tests/test-signbit.c: Likewise.
62182         * tests/test-sleep.c: Likewise.
62183         * tests/test-snprintf-posix.c: Likewise.
62184         * tests/test-snprintf-posix.h: Likewise.
62185         * tests/test-snprintf.c: Likewise.
62186         * tests/test-sprintf-posix.c: Likewise.
62187         * tests/test-sprintf-posix.h: Likewise.
62188         * tests/test-stat-time.c: Likewise.
62189         * tests/test-stdbool.c: Likewise.
62190         * tests/test-stdint.c: Likewise.
62191         * tests/test-stdio.c: Likewise.
62192         * tests/test-stdlib.c: Likewise.
62193         * tests/test-stpncpy.c: Likewise.
62194         * tests/test-strcasestr.c: Likewise.
62195         * tests/test-striconv.c: Likewise.
62196         * tests/test-striconveh.c: Likewise.
62197         * tests/test-striconveha.c: Likewise.
62198         * tests/test-string.c: Likewise.
62199         * tests/test-sys_select.c: Likewise.
62200         * tests/test-sys_socket.c: Likewise.
62201         * tests/test-sys_stat.c: Likewise.
62202         * tests/test-sys_time.c: Likewise.
62203         * tests/test-sysexits.c: Likewise.
62204         * tests/test-time.c: Likewise.
62205         * tests/test-tls.c: Likewise.
62206         * tests/test-trunc.c: Likewise.
62207         * tests/test-truncf.c: Likewise.
62208         * tests/test-truncl.c: Likewise.
62209         * tests/test-unistd.c: Likewise.
62210         * tests/test-vasnprintf-posix.c: Likewise.
62211         * tests/test-vasnprintf-posix2.c: Likewise.
62212         * tests/test-vasnprintf.c: Likewise.
62213         * tests/test-vasprintf-posix.c: Likewise.
62214         * tests/test-vasprintf.c: Likewise.
62215         * tests/test-verify.c: Likewise.
62216         * tests/test-vfprintf-posix.c: Likewise.
62217         * tests/test-vprintf-posix.c: Likewise.
62218         * tests/test-vsnprintf-posix.c: Likewise.
62219         * tests/test-vsnprintf.c: Likewise.
62220         * tests/test-vsprintf-posix.c: Likewise.
62221         * tests/test-wchar.c: Likewise.
62222         * tests/test-wctype.c: Likewise.
62223         * tests/test-wcwidth.c: Likewise.
62224         * tests/test-xstrtol.c: Likewise.
62225         * tests/test-xvasprintf.c: Likewise.
62226         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62227         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62228         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62229         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62230         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62231         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62232         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62233         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62234         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62235         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62236         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62237         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62238         * tests/uniname/test-uninames.c: Likewise.
62239         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
62240         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
62241         * tests/unistdio/test-u16-printf1.h: Likewise.
62242         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
62243         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
62244         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
62245         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
62246         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
62247         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
62248         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
62249         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
62250         * tests/unistdio/test-u32-printf1.h: Likewise.
62251         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
62252         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
62253         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62254         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62255         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62256         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62257         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62258         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62259         * tests/unistdio/test-u8-printf1.h: Likewise.
62260         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62261         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62262         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62263         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62264         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62265         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62266         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62267         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62268         * tests/unistdio/test-ulc-printf1.h: Likewise.
62269         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62270         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62271         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62272         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62273         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62274         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62275         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62276         * tests/uniwidth/test-u16-width.c: Likewise.
62277         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62278         * tests/uniwidth/test-u32-width.c: Likewise.
62279         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62280         * tests/uniwidth/test-u8-width.c: Likewise.
62281         * tests/uniwidth/test-uc_width.c: Likewise.
62282         * config/srclist-update: Likewise.
62283         (fixlicense): Update to GPLv3+.
62284
62285         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62286         * tests/test-tsearch.c: Change copyright notice.
62287
62288         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62289         * lib/c-strcaseeq.h: Change copyright notice.
62290         * lib/streq.h: Likewise.
62291         * lib/uniconv.h: Likewise.
62292         * lib/uniconv/u-conv-from-enc.h: Likewise.
62293         * lib/uniconv/u-conv-to-enc.h: Likewise.
62294         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62295         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62296         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62297         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62298         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62299         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62300         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62301         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62302         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62303         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62304         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62305         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62306         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62307         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62308         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62309         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62310         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62311         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62312         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62313         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62314         * lib/uniname.h: Likewise.
62315         * lib/uniname/uniname.c: Likewise.
62316         * lib/unistdio.h: Likewise.
62317         * lib/unistdio/u-asnprintf.h: Likewise.
62318         * lib/unistdio/u-asprintf.h: Likewise.
62319         * lib/unistdio/u-printf-args.c: Likewise.
62320         * lib/unistdio/u-printf-args.h: Likewise.
62321         * lib/unistdio/u-printf-parse.h: Likewise.
62322         * lib/unistdio/u-snprintf.h: Likewise.
62323         * lib/unistdio/u-sprintf.h: Likewise.
62324         * lib/unistdio/u-vasprintf.h: Likewise.
62325         * lib/unistdio/u-vsnprintf.h: Likewise.
62326         * lib/unistdio/u-vsprintf.h: Likewise.
62327         * lib/unistdio/u16-asnprintf.c: Likewise.
62328         * lib/unistdio/u16-asprintf.c: Likewise.
62329         * lib/unistdio/u16-printf-parse.c: Likewise.
62330         * lib/unistdio/u16-snprintf.c: Likewise.
62331         * lib/unistdio/u16-sprintf.c: Likewise.
62332         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62333         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62334         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62335         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62336         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62337         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62338         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62339         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62340         * lib/unistdio/u16-vasnprintf.c: Likewise.
62341         * lib/unistdio/u16-vasprintf.c: Likewise.
62342         * lib/unistdio/u16-vsnprintf.c: Likewise.
62343         * lib/unistdio/u16-vsprintf.c: Likewise.
62344         * lib/unistdio/u32-asnprintf.c: Likewise.
62345         * lib/unistdio/u32-asprintf.c: Likewise.
62346         * lib/unistdio/u32-printf-parse.c: Likewise.
62347         * lib/unistdio/u32-snprintf.c: Likewise.
62348         * lib/unistdio/u32-sprintf.c: Likewise.
62349         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62350         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62351         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62352         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62353         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62354         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62355         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62356         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62357         * lib/unistdio/u32-vasnprintf.c: Likewise.
62358         * lib/unistdio/u32-vasprintf.c: Likewise.
62359         * lib/unistdio/u32-vsnprintf.c: Likewise.
62360         * lib/unistdio/u32-vsprintf.c: Likewise.
62361         * lib/unistdio/u8-asnprintf.c: Likewise.
62362         * lib/unistdio/u8-asprintf.c: Likewise.
62363         * lib/unistdio/u8-printf-parse.c: Likewise.
62364         * lib/unistdio/u8-snprintf.c: Likewise.
62365         * lib/unistdio/u8-sprintf.c: Likewise.
62366         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62367         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62368         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62369         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62370         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62371         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62372         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62373         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62374         * lib/unistdio/u8-vasnprintf.c: Likewise.
62375         * lib/unistdio/u8-vasprintf.c: Likewise.
62376         * lib/unistdio/u8-vsnprintf.c: Likewise.
62377         * lib/unistdio/u8-vsprintf.c: Likewise.
62378         * lib/unistdio/ulc-asnprintf.c: Likewise.
62379         * lib/unistdio/ulc-asprintf.c: Likewise.
62380         * lib/unistdio/ulc-printf-parse.c: Likewise.
62381         * lib/unistdio/ulc-snprintf.c: Likewise.
62382         * lib/unistdio/ulc-sprintf.c: Likewise.
62383         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62384         * lib/unistdio/ulc-vasprintf.c: Likewise.
62385         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62386         * lib/unistdio/ulc-vsprintf.c: Likewise.
62387         * lib/unistr.h: Likewise.
62388         * lib/unistr/u-cpy-alloc.h: Likewise.
62389         * lib/unistr/u-cpy.h: Likewise.
62390         * lib/unistr/u-endswith.h: Likewise.
62391         * lib/unistr/u-move.h: Likewise.
62392         * lib/unistr/u-set.h: Likewise.
62393         * lib/unistr/u-startswith.h: Likewise.
62394         * lib/unistr/u-stpcpy.h: Likewise.
62395         * lib/unistr/u-stpncpy.h: Likewise.
62396         * lib/unistr/u-strcat.h: Likewise.
62397         * lib/unistr/u-strcpy.h: Likewise.
62398         * lib/unistr/u-strcspn.h: Likewise.
62399         * lib/unistr/u-strdup.h: Likewise.
62400         * lib/unistr/u-strlen.h: Likewise.
62401         * lib/unistr/u-strncat.h: Likewise.
62402         * lib/unistr/u-strncpy.h: Likewise.
62403         * lib/unistr/u-strnlen.h: Likewise.
62404         * lib/unistr/u-strpbrk.h: Likewise.
62405         * lib/unistr/u-strspn.h: Likewise.
62406         * lib/unistr/u-strstr.h: Likewise.
62407         * lib/unistr/u-strtok.h: Likewise.
62408         * lib/unistr/u16-check.c: Likewise.
62409         * lib/unistr/u16-chr.c: Likewise.
62410         * lib/unistr/u16-cmp.c: Likewise.
62411         * lib/unistr/u16-cpy-alloc.c: Likewise.
62412         * lib/unistr/u16-cpy.c: Likewise.
62413         * lib/unistr/u16-endswith.c: Likewise.
62414         * lib/unistr/u16-mblen.c: Likewise.
62415         * lib/unistr/u16-mbsnlen.c: Likewise.
62416         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62417         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62418         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62419         * lib/unistr/u16-mbtouc.c: Likewise.
62420         * lib/unistr/u16-mbtoucr.c: Likewise.
62421         * lib/unistr/u16-move.c: Likewise.
62422         * lib/unistr/u16-next.c: Likewise.
62423         * lib/unistr/u16-prev.c: Likewise.
62424         * lib/unistr/u16-set.c: Likewise.
62425         * lib/unistr/u16-startswith.c: Likewise.
62426         * lib/unistr/u16-stpcpy.c: Likewise.
62427         * lib/unistr/u16-stpncpy.c: Likewise.
62428         * lib/unistr/u16-strcat.c: Likewise.
62429         * lib/unistr/u16-strchr.c: Likewise.
62430         * lib/unistr/u16-strcmp.c: Likewise.
62431         * lib/unistr/u16-strcpy.c: Likewise.
62432         * lib/unistr/u16-strcspn.c: Likewise.
62433         * lib/unistr/u16-strdup.c: Likewise.
62434         * lib/unistr/u16-strlen.c: Likewise.
62435         * lib/unistr/u16-strmblen.c: Likewise.
62436         * lib/unistr/u16-strmbtouc.c: Likewise.
62437         * lib/unistr/u16-strncat.c: Likewise.
62438         * lib/unistr/u16-strncmp.c: Likewise.
62439         * lib/unistr/u16-strncpy.c: Likewise.
62440         * lib/unistr/u16-strnlen.c: Likewise.
62441         * lib/unistr/u16-strpbrk.c: Likewise.
62442         * lib/unistr/u16-strrchr.c: Likewise.
62443         * lib/unistr/u16-strspn.c: Likewise.
62444         * lib/unistr/u16-strstr.c: Likewise.
62445         * lib/unistr/u16-strtok.c: Likewise.
62446         * lib/unistr/u16-to-u32.c: Likewise.
62447         * lib/unistr/u16-to-u8.c: Likewise.
62448         * lib/unistr/u16-uctomb-aux.c: Likewise.
62449         * lib/unistr/u16-uctomb.c: Likewise.
62450         * lib/unistr/u32-check.c: Likewise.
62451         * lib/unistr/u32-chr.c: Likewise.
62452         * lib/unistr/u32-cmp.c: Likewise.
62453         * lib/unistr/u32-cpy-alloc.c: Likewise.
62454         * lib/unistr/u32-cpy.c: Likewise.
62455         * lib/unistr/u32-endswith.c: Likewise.
62456         * lib/unistr/u32-mblen.c: Likewise.
62457         * lib/unistr/u32-mbsnlen.c: Likewise.
62458         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62459         * lib/unistr/u32-mbtouc.c: Likewise.
62460         * lib/unistr/u32-mbtoucr.c: Likewise.
62461         * lib/unistr/u32-move.c: Likewise.
62462         * lib/unistr/u32-next.c: Likewise.
62463         * lib/unistr/u32-prev.c: Likewise.
62464         * lib/unistr/u32-set.c: Likewise.
62465         * lib/unistr/u32-startswith.c: Likewise.
62466         * lib/unistr/u32-stpcpy.c: Likewise.
62467         * lib/unistr/u32-stpncpy.c: Likewise.
62468         * lib/unistr/u32-strcat.c: Likewise.
62469         * lib/unistr/u32-strchr.c: Likewise.
62470         * lib/unistr/u32-strcmp.c: Likewise.
62471         * lib/unistr/u32-strcpy.c: Likewise.
62472         * lib/unistr/u32-strcspn.c: Likewise.
62473         * lib/unistr/u32-strdup.c: Likewise.
62474         * lib/unistr/u32-strlen.c: Likewise.
62475         * lib/unistr/u32-strmblen.c: Likewise.
62476         * lib/unistr/u32-strmbtouc.c: Likewise.
62477         * lib/unistr/u32-strncat.c: Likewise.
62478         * lib/unistr/u32-strncmp.c: Likewise.
62479         * lib/unistr/u32-strncpy.c: Likewise.
62480         * lib/unistr/u32-strnlen.c: Likewise.
62481         * lib/unistr/u32-strpbrk.c: Likewise.
62482         * lib/unistr/u32-strrchr.c: Likewise.
62483         * lib/unistr/u32-strspn.c: Likewise.
62484         * lib/unistr/u32-strstr.c: Likewise.
62485         * lib/unistr/u32-strtok.c: Likewise.
62486         * lib/unistr/u32-to-u16.c: Likewise.
62487         * lib/unistr/u32-to-u8.c: Likewise.
62488         * lib/unistr/u32-uctomb.c: Likewise.
62489         * lib/unistr/u8-check.c: Likewise.
62490         * lib/unistr/u8-chr.c: Likewise.
62491         * lib/unistr/u8-cmp.c: Likewise.
62492         * lib/unistr/u8-cpy-alloc.c: Likewise.
62493         * lib/unistr/u8-cpy.c: Likewise.
62494         * lib/unistr/u8-endswith.c: Likewise.
62495         * lib/unistr/u8-mblen.c: Likewise.
62496         * lib/unistr/u8-mbsnlen.c: Likewise.
62497         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62498         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62499         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62500         * lib/unistr/u8-mbtouc.c: Likewise.
62501         * lib/unistr/u8-mbtoucr.c: Likewise.
62502         * lib/unistr/u8-move.c: Likewise.
62503         * lib/unistr/u8-next.c: Likewise.
62504         * lib/unistr/u8-prev.c: Likewise.
62505         * lib/unistr/u8-set.c: Likewise.
62506         * lib/unistr/u8-startswith.c: Likewise.
62507         * lib/unistr/u8-stpcpy.c: Likewise.
62508         * lib/unistr/u8-stpncpy.c: Likewise.
62509         * lib/unistr/u8-strcat.c: Likewise.
62510         * lib/unistr/u8-strchr.c: Likewise.
62511         * lib/unistr/u8-strcmp.c: Likewise.
62512         * lib/unistr/u8-strcpy.c: Likewise.
62513         * lib/unistr/u8-strcspn.c: Likewise.
62514         * lib/unistr/u8-strdup.c: Likewise.
62515         * lib/unistr/u8-strlen.c: Likewise.
62516         * lib/unistr/u8-strmblen.c: Likewise.
62517         * lib/unistr/u8-strmbtouc.c: Likewise.
62518         * lib/unistr/u8-strncat.c: Likewise.
62519         * lib/unistr/u8-strncmp.c: Likewise.
62520         * lib/unistr/u8-strncpy.c: Likewise.
62521         * lib/unistr/u8-strnlen.c: Likewise.
62522         * lib/unistr/u8-strpbrk.c: Likewise.
62523         * lib/unistr/u8-strrchr.c: Likewise.
62524         * lib/unistr/u8-strspn.c: Likewise.
62525         * lib/unistr/u8-strstr.c: Likewise.
62526         * lib/unistr/u8-strtok.c: Likewise.
62527         * lib/unistr/u8-to-u16.c: Likewise.
62528         * lib/unistr/u8-to-u32.c: Likewise.
62529         * lib/unistr/u8-uctomb-aux.c: Likewise.
62530         * lib/unistr/u8-uctomb.c: Likewise.
62531         * lib/unitypes.h: Likewise.
62532         * lib/uniwidth.h: Likewise.
62533         * lib/uniwidth/cjk.h: Likewise.
62534         * lib/uniwidth/u16-strwidth.c: Likewise.
62535         * lib/uniwidth/u16-width.c: Likewise.
62536         * lib/uniwidth/u32-strwidth.c: Likewise.
62537         * lib/uniwidth/u32-width.c: Likewise.
62538         * lib/uniwidth/u8-strwidth.c: Likewise.
62539         * lib/uniwidth/u8-width.c: Likewise.
62540         * lib/uniwidth/width.c: Likewise.
62541
62542 2007-10-07  Bruno Haible  <bruno@clisp.org>
62543
62544         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62545         The file is still under LGPL (see modules/inttypes).
62546
62547 2007-10-06  Bruno Haible  <bruno@clisp.org>
62548
62549         * modules/trunc (Dependencies): Add 'extensions'.
62550         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62551         Reported by Ben Pfaff <blp@gnu.org>.
62552
62553 2007-10-06  Bruno Haible  <bruno@clisp.org>
62554
62555         * modules/freopen-tests: New file.
62556         * tests/test-freopen.c: New file.
62557
62558         * modules/fopen-tests: New file.
62559         * tests/test-fopen.c: New file.
62560
62561         * modules/fopen: New file.
62562         * lib/fopen.c: New file.
62563         * m4/fopen.m4: New file.
62564         * modules/freopen: New file.
62565         * lib/freopen.c: New file.
62566         * m4/freopen.m4: New file.
62567         * lib/stdio.in.h (fopen, freopen): New declarations.
62568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62569         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62570         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62571         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62572         * doc/functions/fopen.texi: Mention the 'fopen' module.
62573         * doc/functions/freopen.texi: Mention the 'freopen' module.
62574
62575 2007-10-06  Bruno Haible  <bruno@clisp.org>
62576
62577         * modules/open-tests: New file.
62578         * tests/test-open.c: New file.
62579
62580         * modules/open: New file.
62581         * lib/open.c: New file.
62582         * m4/open.m4: New file.
62583         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62584         lib/open.c does.
62585         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62586         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62587         macros.
62588         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62589         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62590         REPLACE_OPEN.
62591         * doc/functions/open.texi: Mention the 'open' module.
62592
62593 2007-10-04  Bruno Haible  <bruno@clisp.org>
62594
62595         * modules/ceill-tests: New file.
62596         * tests/test-ceill.c: New file.
62597
62598         * modules/ceill: New file.
62599         * lib/ceill.c: Replace entire file.
62600         * m4/ceill.m4: New file.
62601         * lib/math.in.h (ceill): Replace declaration.
62602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62603         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62604         * doc/functions/ceill.texi: Mention the 'ceill' module.
62605         * modules/mathl (Files): Remove lib/ceill.c.
62606         (Depends-on): Add ceill.
62607
62608 2007-10-04  Bruno Haible  <bruno@clisp.org>
62609
62610         * modules/ceilf-tests: New file.
62611         * tests/test-ceilf.c: New file.
62612
62613         * modules/ceilf: New file.
62614         * lib/ceil.c: New file.
62615         * lib/ceilf.c: New file.
62616         * m4/ceilf.m4: New file.
62617         * lib/math.in.h (ceilf): New declaration.
62618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62619         HAVE_DECL_CEILF.
62620         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62621         HAVE_DECL_CEILF.
62622         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62623
62624 2007-10-04  Bruno Haible  <bruno@clisp.org>
62625
62626         * modules/floorl-tests: New file.
62627         * tests/test-floorl.c: New file.
62628
62629         * modules/floorl: New file.
62630         * lib/floorl.c: Replace entire file.
62631         * m4/floorl.m4: New file.
62632         * lib/math.in.h (floorl): Replace declaration.
62633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62634         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62635         * doc/functions/floorl.texi: Mention the 'floorl' module.
62636         * modules/mathl (Files): Remove lib/floorl.c.
62637         (Depends-on): Add floorl.
62638
62639 2007-10-04  Bruno Haible  <bruno@clisp.org>
62640
62641         * modules/floorf-tests: New file.
62642         * tests/test-floorf.c: New file.
62643
62644         * modules/floorf: New file.
62645         * lib/floor.c: New file.
62646         * lib/floorf.c: New file.
62647         * m4/floorf.m4: New file.
62648         * lib/math.in.h (floorf): New declaration.
62649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62650         HAVE_DECL_FLOORF.
62651         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62652         HAVE_DECL_FLOORF.
62653         * doc/functions/floorf.texi: Mention the 'floorf' module.
62654
62655 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62656             Bruno Haible  <bruno@clisp.org>
62657
62658         Advertise for the Git server instead of the CVS server.
62659         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62660         repository instead of the CVS one.
62661         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62662         about all VCS systems generically.
62663         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62664
62665 2007-10-04  Bruno Haible  <bruno@clisp.org>
62666
62667         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62668         means.
62669         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62670
62671 2007-10-04  Bruno Haible  <bruno@clisp.org>
62672
62673         * modules/truncl-tests: New file.
62674         * tests/test-truncl.c: New file.
62675
62676         * modules/truncl: New file.
62677         * lib/truncl.c: New file.
62678         * m4/truncl.m4: New file.
62679         * lib/math.in.h (truncl): New declaration.
62680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62681         HAVE_DECL_TRUNCL.
62682         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62683         HAVE_DECL_TRUNCL.
62684         * doc/functions/truncl.texi: Mention the 'truncl' module.
62685
62686 2007-10-04  Bruno Haible  <bruno@clisp.org>
62687
62688         * modules/truncf-tests: New file.
62689         * tests/test-truncf.c: New file.
62690
62691         * modules/truncf: New file.
62692         * lib/trunc.c: Make paramerizable through USE_* macros.
62693         * lib/truncf.c: New file.
62694         * m4/truncf.m4: New file.
62695         * lib/math.in.h (truncf): New declaration.
62696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62697         HAVE_DECL_TRUNCF.
62698         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62699         HAVE_DECL_TRUNCF.
62700         * doc/functions/truncf.texi: Mention the 'truncf' module.
62701
62702 2007-10-03  Bruno Haible  <bruno@clisp.org>
62703
62704         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62705         augmentation also for tests modules.
62706         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62707         * modules/atexit-tests (Makefile.am): Likewise.
62708         * modules/binary-io-tests (Makefile.am): Likewise.
62709         * modules/c-strcase-tests (Makefile.am): Likewise.
62710         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62711         * modules/canonicalize-tests (Makefile.am): Likewise.
62712         * modules/closein-tests (Makefile.am): Likewise.
62713         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62714         * modules/freadahead-tests (Makefile.am): Likewise.
62715         * modules/fseek-tests (Makefile.am): Likewise.
62716         * modules/fseeko-tests (Makefile.am): Likewise.
62717         * modules/ftell-tests (Makefile.am): Likewise.
62718         * modules/ftello-tests (Makefile.am): Likewise.
62719         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62720         * modules/isnanl-tests (Makefile.am): Likewise.
62721         * modules/lseek-tests (Makefile.am): Likewise.
62722         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62723         * modules/mbscasestr-tests (Makefile.am): Likewise.
62724         * modules/mbschr-tests (Makefile.am): Likewise.
62725         * modules/mbscspn-tests (Makefile.am): Likewise.
62726         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62727         * modules/mbspbrk-tests (Makefile.am): Likewise.
62728         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62729         * modules/mbsrchr-tests (Makefile.am): Likewise.
62730         * modules/mbsspn-tests (Makefile.am): Likewise.
62731         * modules/mbsstr-tests (Makefile.am): Likewise.
62732         * modules/printf-posix-tests (Makefile.am): Likewise.
62733         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62734         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62735         * modules/tsearch-tests (Makefile.am): Likewise.
62736         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62737         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62738         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62739         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62740         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62741         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62742         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62743         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62744         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62745         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62746         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62747         * modules/xstrtol-tests (Makefile.am): Likewise.
62748         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62749         * modules/yesno-tests (Makefile.am): Likewise.
62750
62751 2007-10-03  Bruno Haible  <bruno@clisp.org>
62752
62753         * modules/trunc-tests: New file.
62754         * tests/test-trunc.c: New file.
62755
62756         * modules/trunc: New file.
62757         * lib/trunc.c: New file.
62758         * m4/trunc.m4: New file.
62759         * lib/math.in.h (trunc): New declaration.
62760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62761         HAVE_DECL_TRUNC.
62762         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62763         HAVE_DECL_TRUNC.
62764         * doc/functions/trunc.texi: Mention the 'trunc' module.
62765
62766 2007-10-03  Bruno Haible  <bruno@clisp.org>
62767
62768         * tests/test-fpending.c: New file, mostly copied
62769         from coreutils/lib/t-fpending.c.
62770         * modules/fpending-tests: New file.
62771
62772 2007-10-03  Bruno Haible  <bruno@clisp.org>
62773
62774         Port the stdio extensions to QNX (untested).
62775         * lib/fseterr.c (fseterr): Add support for QNX.
62776         * lib/fbufmode.c (fbufmode): Likewise.
62777         * lib/freadable.c (freadable): Likewise.
62778         * lib/fwritable.c (fwritable): Likewise.
62779         * lib/freading.c (freading): Likewise.
62780         * lib/fwriting.c (fwriting): Likewise.
62781         * lib/freadahead.c (freadahed): Likewise.
62782         * lib/fpurge.c (fpurge): Likewise.
62783         * lib/fseeko.c (rpl_fseeko): Likewise.
62784
62785 2007-10-03  Bruno Haible  <bruno@clisp.org>
62786             Jim Meyering  <jim@meyering.net>
62787             Eric Blake  <ebb9@byu.net>
62788
62789         * doc/relocatable.texi: Use @command instead of @program.
62790
62791 2007-10-02  Jim Meyering  <jim@meyering.net>
62792
62793         Perform one more "_.h" -> ".in.h" substitution.
62794         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62795         instead of unistd_.h here, too.
62796
62797 2007-10-01  Bruno Haible  <bruno@clisp.org>
62798
62799         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62800         Needed for the alloca-opt module.
62801
62802 2007-09-30  Bruno Haible  <bruno@clisp.org>
62803
62804         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62805         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62806         alloca_.h.
62807         * lib/argz.in.h: Renamed from lib/argz_.h.
62808         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62809         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62810         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62811         byteswap_.h.
62812         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62813         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62814         dirent_.h.
62815         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62816         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62817         fcntl_.h.
62818         * lib/float.in.h: Renamed from lib/float_.h.
62819         * modules/float (Files, Makefile.am): Use float.in.h instead of
62820         float_.h.
62821         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62822         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62823         fnmatch_.h.
62824         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62825         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62826         getopt_.h.
62827         * lib/glob.in.h: Renamed from lib/glob_.h.
62828         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62829         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62830         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62831         iconv_.h.
62832         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62833         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62834         inttypes_.h.
62835         * lib/locale.in.h: Renamed from lib/locale_.h.
62836         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62837         locale_.h.
62838         * lib/math.in.h: Renamed from lib/math_.h.
62839         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62840         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62841         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62842         of netinet_in_.h. Add dependency.
62843         * lib/poll.in.h: Renamed from lib/poll_.h.
62844         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62845         * lib/search.in.h: Renamed from lib/search_.h.
62846         * modules/search (Files, Makefile.am): Use search.in.h instead of
62847         search_.h.
62848         * lib/signal.in.h: Renamed from lib/signal_.h.
62849         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62850         _signal.h.
62851         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62852         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62853         stdbool_.h.
62854         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62855         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62856         stdint_.h.
62857         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62858         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62859         stdio_.h.
62860         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62861         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62862         stdlib_.h.
62863         * lib/string.in.h: Renamed from lib/string_.h.
62864         * modules/string (Files, Makefile.am): Use string.in.h instead of
62865         string_.h.
62866         * doc/gnulib-tool.texi (Initial import): Update.
62867         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62868         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62869         of sys_select_.h. Add dependency.
62870         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62871         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62872         of sys_socket_.h.
62873         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62874         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62875         sys_stat_.h.
62876         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62877         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62878         sys_time_.h.
62879         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62880         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62881         sysexits_.h.
62882         * lib/time.in.h: Renamed from lib/time_.h.
62883         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62884         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62885         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62886         unistd_.h.
62887         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62888         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62889         wchar_.h.
62890         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62891         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62892         wctype_.h.
62893         * build-aux/bootstrap (slurp): Update.
62894         * lib/.cppi-disable: Update.
62895
62896 2007-09-30  Bruno Haible  <bruno@clisp.org>
62897
62898         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62899         Needed on BeOS.
62900
62901 2007-09-30  Bruno Haible  <bruno@clisp.org>
62902
62903         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62904
62905 2007-09-29  Bruno Haible  <bruno@clisp.org>
62906
62907         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62908
62909 2007-09-29  Bruno Haible  <bruno@clisp.org>
62910
62911         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62912         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62913         * build-aux/install-reloc: Compile also areadlink.c.
62914         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62915
62916 2007-09-29  Bruno Haible  <bruno@clisp.org>
62917
62918         * gnulib-tool (func_emit_initmacro_done): Indentation.
62919
62920 2007-09-29  Bruno Haible  <bruno@clisp.org>
62921
62922         * README: Add CVS checkout update instructions.
62923         Info from Bob Proulx <bob@proulx.com>.
62924
62925 2007-09-28  Eric Blake  <ebb9@byu.net>
62926
62927         Provide move-if-change.
62928         * build-aux/move-if-change: New file, based on best practice
62929         rather than any canonical upstream location.
62930
62931 2007-09-28  Jim Meyering  <jim@meyering.net>
62932
62933         Fix canonicalize loop-detection corner case.
62934         Do not attempt to stat the symlink values stored via seen_triple.
62935         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62936         on linux-2.6.18, (but not 2.6.22).
62937         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62938         triple_compare.  The former compares dev,ino,filename, while the latter
62939         would actually stat dirname(filename) when dev and ino were equal.
62940         * lib/hash-triple.c: Install <string.h>.
62941         (STREQ): Define.
62942         (triple_compare_ino_str): New function.
62943         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62944
62945 2007-09-28  Eric Blake  <ebb9@byu.net>
62946
62947         Enforce that AC_REPLACE_FUNCS files exist.
62948         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62949         override check for typos.
62950
62951         Fix test-closein on Solaris 10.
62952         * tests/test-closein.c (main): Don't assume stdin can be inherited
62953         closed on all systems.
62954         * tests/test-closein.sh: Likewise.
62955         Reported by Piotr Tarnowski.
62956
62957 2007-09-28  Jim Meyering  <jim@meyering.net>
62958
62959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62960
62961 2007-09-27  Jim Meyering  <jim@meyering.net>
62962
62963         canonicalize: Avoid a false-positive cycle failure.
62964         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62965         Sort.  Remove cycle-check.
62966         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62967         not cycle-check.h.
62968         (seen_triple): New function.
62969         (canonicalize_filename_mode): Use it instead of cycle-check.
62970         * tests/test-canonicalize.c: Add a test for this bug.
62971         * tests/test-canonicalize.sh: Set up and run the test.
62972
62973         New module, file-set, from coreutils.
62974         * modules/file-set: Define it.
62975         * lib/file-set.c, lib/file-set.h: Implement.
62976
62977         New module, hash-triple, from coreutils.
62978         * modules/hash-triple: Define it.
62979         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62980
62981 2007-09-25  Eric Blake  <ebb9@byu.net>
62982
62983         Fix strerror on Interix.
62984         * lib/string_.h (strerror): Declare replacement.
62985         * doc/functions/strerror.texi (strerror): Document the Interix
62986         shortcoming.
62987         * modules/string (Makefile.am): Support new hooks.
62988         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62989         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62990         gl_FUNC_STRERROR_SEPARATE.
62991         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62992         * lib/strerror.c (rpl_strerror): Provide replacement.
62993         * modules/strerror (Depends-on): Add string.
62994         (configure.ac): Detect use of module.
62995         * tests/test-strerror.c: New file.
62996         * modules/strerror-tests: New test module.
62997         * modules/argp (Depends-on): Add strerror.
62998         * modules/error (Depends-on): Likewise.
62999         Reported by Martin Koeppe.
63000
63001 2007-09-24  Bruno Haible  <bruno@clisp.org>
63002
63003         * README: Update git instructions.
63004
63005 2007-09-24  Eric Blake  <ebb9@byu.net>
63006
63007         Revert fpending breakage from 2007-09-08.
63008         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63009         __fpending.c.
63010
63011 2007-09-24  Jim Meyering  <jim@meyering.net>
63012
63013         filenamecat.c: Add a test.
63014         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63015         showing how the function works when DIR is the empty string.
63016
63017 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63018
63019         * tests/test-canonicalize.sh: Turn on executable bit.
63020
63021 2007-09-19  Eric Blake  <ebb9@byu.net>
63022
63023         * README: Update CVS instructions.
63024
63025 2007-09-18  Bruno Haible  <bruno@clisp.org>
63026
63027         * modules/areadlink: New file.
63028         * lib/areadlink.h (areadlink): New declaration.
63029         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63030
63031 2007-09-17  Jim Meyering  <jim@meyering.net>
63032
63033         * lib/savewd.c (ESTALE) [!defined]: Define.
63034         Reported to be required on Interix by Martin Koeppe.
63035
63036 2007-09-17  Bruno Haible  <bruno@clisp.org>
63037
63038         * gnulib-tool (func_version): Use $version.
63039
63040 2007-09-16  Bruno Haible  <bruno@clisp.org>
63041
63042         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63043         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63044         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63045         Reported by Greg Schafer <gschafer@zip.com.au>.
63046
63047 2007-09-15  Bruno Haible  <bruno@clisp.org>
63048
63049         * gnulib-tool (sed): Try a little harder to make bash understand the
63050         alias.
63051         Reported by Bruce Korb <bruce.korb@gmail.com>.
63052
63053 2007-09-13  Eric Blake  <ebb9@byu.net>
63054
63055         * ChangeLog: Remove conflict markers.
63056
63057 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63058
63059         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63060         Reported by Bruno Haible <bruno@clisp.org>.
63061
63062 2007-09-12  Bruno Haible  <bruno@clisp.org>
63063
63064         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63065         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63066         is not defined.
63067
63068 2007-09-12  Eric Blake  <ebb9@byu.net>
63069
63070         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63071         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63072         Autoconf definition.
63073         * modules/euidaccess (Depends-on): Add extensions, for
63074         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63075         * modules/fnmatch (Depends-on): Likewise.
63076         * modules/getaddrinfo (Depends-on): Likewise.
63077         * modules/getdelim (Depends-on): Likewise.
63078         * modules/getline (Depends-on): Likewise.
63079         * modules/getsubopt (Depends-on): Likewise.
63080         * modules/gettext (Depends-on): Likewise.
63081         * modules/group-member (Depends-on): Likewise.
63082         * modules/mbchar (Depends-on): Likewise.
63083         * modules/memmem (Depends-on): Likewise.
63084         * modules/mempcpy (Depends-on): Likewise.
63085         * modules/memrchr (Depends-on): Likewise.
63086         * modules/pagealign_alloc (Depends-on): Likewise.
63087         * modules/readutmp (Depends-on): Likewise.
63088         * modules/stpcpy (Depends-on): Likewise.
63089         * modules/stpncpy (Depends-on): Likewise.
63090         * modules/strchrnul (Depends-on): Likewise.
63091         * modules/strndup (Depends-on): Likewise.
63092         * modules/strsep (Depends-on): Likewise.
63093         * modules/strverscmp (Depends-on): Likewise.
63094         * modules/vasprintf (Depends-on): Likewise.
63095         * modules/wcwidth (Depends-on): Likewise.
63096         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63097         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63098         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63099         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63100         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63101         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63102         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63103         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63104         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63105         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63106         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63107         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63108         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63109         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63110         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63111         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63112         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63113         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63114         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63115         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63116         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63117         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63118         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63119         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63120         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63121         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63122         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63123         so that lock.m4 can be used in gettext without extensions module.
63124
63125 2007-09-11  Bruno Haible  <bruno@clisp.org>
63126
63127         * m4/isc-posix.m4: Remove file.
63128         Suggested by Eric Blake.
63129
63130 2007-09-11  Eric Blake  <ebb9@byu.net>
63131
63132         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63133
63134 2007-09-10  Bruno Haible  <bruno@clisp.org>
63135
63136         * posix-modules: Fix typo in error message.
63137         Reported by Matt <mkraai@beckman.com>.
63138
63139 2007-09-09  Bruno Haible  <bruno@clisp.org>
63140
63141         * doc/functions/getdelim.texi: Update list of platforms lacking the
63142         function.
63143         * doc/functions/getline.texi: Likewise.
63144
63145 2007-09-09  Jim Meyering  <jim@meyering.net>
63146
63147         * lib/hash.c (hash_initialize): Detect calloc failure.
63148         Reported by Bruno Haible.
63149
63150 2007-09-09  Bruno Haible  <bruno@clisp.org>
63151
63152         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
63153         malloc or realloc fails.
63154
63155 2007-09-09  Bruno Haible  <bruno@clisp.org>
63156
63157         * modules/getcwd (Depends-on): Add malloc-posix.
63158         * modules/glob (Depends-on): Likewise.
63159         * modules/putenv (Depends-on): Likewise.
63160         * modules/strdup (Depends-on): Likewise.
63161         * modules/getdelim (Depends-on): Add realloc-posix.
63162         * modules/read-file (Depends-on): Likewise.
63163
63164 2007-09-09  Bruno Haible  <bruno@clisp.org>
63165
63166         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
63167         (gl_FUNC_MALLOC_POSIX): Require it.
63168         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
63169         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
63170         * modules/realloc (Files): Add m4/malloc.m4.
63171         * modules/calloc (Files): Likewise.
63172
63173 2007-09-09  Bruno Haible  <bruno@clisp.org>
63174
63175         * modules/malloc-posix: New file.
63176         * modules/malloc (Depends-on): Add malloc-posix.
63177         * lib/malloc.c: Include errno.h.
63178         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
63179         and a POSIX-compatible malloc into a single function. Set ENOMEM
63180         when returning NULL.
63181         * m4/malloc.m4: New file.
63182         * doc/functions/malloc.texi: Mention the malloc-posix module.
63183         * lib/stdlib_.h (malloc): New declaration.
63184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63185         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63186         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63187         and HAVE_MALLOC_POSIX.
63188
63189 2007-09-09  Bruno Haible  <bruno@clisp.org>
63190
63191         * modules/realloc-posix: New file.
63192         * modules/realloc (Depends-on): Add realloc-posix.
63193         * lib/realloc.c: Include errno.h.
63194         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63195         and a POSIX-compatible realloc into a single function. Set ENOMEM
63196         when returning NULL.
63197         * m4/realloc.m4: New file.
63198         * doc/functions/realloc.texi: Mention the realloc-posix module.
63199         * lib/stdlib_.h (realloc): New declaration.
63200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63201         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63202         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63203         and HAVE_REALLOC_POSIX.
63204
63205 2007-09-09  Bruno Haible  <bruno@clisp.org>
63206
63207         * modules/calloc-posix: New file.
63208         * modules/calloc (Depends-on): Add calloc-posix.
63209         * lib/calloc.c: Include errno.h.
63210         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63211         and a POSIX-compatible calloc into a single function. Set ENOMEM
63212         when returning NULL.
63213         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63214         * doc/functions/calloc.texi: Mention the calloc-posix module.
63215         * lib/stdlib_.h (calloc): New declaration.
63216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63217         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63218         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63219         and HAVE_CALLOC_POSIX.
63220
63221 2007-09-09  Bruno Haible  <bruno@clisp.org>
63222
63223         Allow for modules to show an arbitrary notice.
63224         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63225         * gnulib-tool: New option --extract-notice.
63226         (func_usage): Document it.
63227         (sed_extract_prog): Update.
63228         (func_get_notice): New function.
63229         (func_modules_notice): New function.
63230         (func_import, func_create_testdir): Invoke it.
63231         Suggested by Jim Meyering.
63232
63233 2007-09-09  Bruno Haible  <bruno@clisp.org>
63234
63235         * gnulib-tool: New options --verbose, --quiet.
63236         (func_usage): Document them.
63237         (verbose): New variable.
63238         (func_execute_command): New function.
63239         (func_import): Don't show the module list and the file list if
63240         $verbose < 0.
63241         (func_create_testdir): Likewise. Use func_execute_command.
63242         (func_create_megatestdir): Use func_execute_command.
63243
63244 2007-09-08  Bruno Haible  <bruno@clisp.org>
63245
63246         * gnulib-tool (func_import): Prefer rsync over wget when available,
63247         for fetching the PO files.
63248
63249 2007-09-08  Bruno Haible  <bruno@clisp.org>
63250
63251         * posix-modules: New file. Portions copied from gnulib-tool.
63252         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
63253
63254 2007-09-08  Jim Meyering  <jim@meyering.net>
63255
63256         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63257         * lib/fpending.h: Rename from __fpending.h.
63258         * lib/fpending.c: Rename from __fpending.c.
63259         Include "fpending.h", not "__fpending.h".
63260         * lib/__fpending.h, lib/__fpending.c: Remove files.
63261         * modules/fpending (Files): Reflect new file names.
63262         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63263
63264 2007-09-08  Bruno Haible  <bruno@clisp.org>
63265
63266         * m4/inttypes-h.m4: Remove stub file.
63267
63268 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63269
63270         * doc/headers/stdint.texi: Discuss #include_next issue.
63271
63272 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63273
63274         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63275
63276 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63277
63278         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63279         in variable name.
63280
63281 2007-09-03  Jim Meyering  <jim@meyering.net>
63282
63283         New module: git-version-gen.
63284         * modules/git-version-gen: New file.
63285
63286         Import changes from coreutils for bootstrap script.
63287
63288         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63289
63290         bootstrap: uses rsync to download the .po files
63291         * build-aux/bootstrap (po_download_command_format): New global.
63292         (download_po_files): Use rsync.
63293         (update_po_files): Don't remove .po files after download,
63294         so future rsync runs can take advantage of the copies.
63295
63296         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63297
63298         Solve the unnecessary-.po-file-regeneration problem once and for all.
63299         * build-aux/bootstrap (download_po_files): New function, renamed from
63300         get_translations.  Now, downloads, but doesn't update LINGUAS.
63301         (update_po_files): New function.
63302
63303         bootstrap: Ignore more.
63304         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63305         uniwidth to e.g., lib/.gitignore.
63306         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63307
63308         * build-aux/bootstrap: New setting: vc_ignore.
63309         (insert_sorted_if_absent): Create $file if absent.
63310         Adapt to new, possibly empty, list: $vc_ignore.
63311
63312         bootstrap: generate more ignorable names
63313         * build-aux/bootstrap (slurp): When generating ignorable names,
63314         also map .sin to .sed, .gperf to .c, and .y to .c.
63315
63316 2007-09-03  Jim Meyering  <jim@meyering.net>
63317
63318         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63319         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63320
63321 2007-09-02  Bruno Haible  <bruno@clisp.org>
63322
63323         Fix mis-recognition of 'mcs' on QNX 6.
63324         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63325         output contains the string "Mono".
63326         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63327         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63328
63329 2007-09-01  Bruno Haible  <bruno@clisp.org>
63330
63331         Fix collision between uniwidth/* and linebreak modules.
63332         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63333         u32_width): Remove declarations.
63334         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63335         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63336         streq3, streq2, streq1, streq0): Remove functions.
63337         (STREQ): Remove macro.
63338         (is_cjk_encoding): Remove function.
63339         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63340         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63341         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63342         * NEWS: Document the change.
63343
63344 2007-09-01  Bruno Haible  <bruno@clisp.org>
63345
63346         * lib/streq.h: Add double-inclusion guard.
63347
63348 2007-09-01  Karl Berry  <karl@gnu.org>
63349
63350         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63351
63352 2007-08-28  Jim Meyering  <jim@meyering.net>
63353
63354         Rename mreadlink_with_size to areadlink_with_size.
63355         * NEWS: Document the change.
63356         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63357         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63358         * lib/mreadlink.h: Rename this to...
63359         * lib/areadlink.h: ...this.
63360         * modules/mreadlink-with-size: Rename this to...
63361         * modules/areadlink-with-size: ...this.
63362         * lib/canonicalize.c: Reflect the renaming.
63363         * modules/canonicalize: Likewise.
63364
63365 2007-08-26  Bruno Haible  <bruno@clisp.org>
63366
63367         * gnulib-tool (func_import): When deciding which files to remove,
63368         consider also dangling symbolic links.
63369         Reported by Eric Blake.
63370
63371 2007-08-26  Bruno Haible  <bruno@clisp.org>
63372
63373         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63374
63375 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63376
63377         * lib/readline.c: Don't include getline.h, the prototype is now
63378         found in stdio.h.
63379
63380 2007-08-23  Jim Meyering  <jim@meyering.net>
63381
63382         Getdelim touchup.
63383         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63384         around the funlockfile call, since funlockfile never sets errno.
63385         Don't set errno upon failed realloc.
63386
63387 2007-08-22  Eric Blake  <ebb9@byu.net>
63388
63389         Getline touchups.
63390         * lib/getdelim.c (getdelim): Revert regression that required *n to
63391         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63392         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63393         getdelim, rather than whether implementation is missing.
63394         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63395         * lib/stdio_.h (getline): Also declare if replacement is
63396         required.
63397         * doc/functions/getdelim.texi: New file.
63398         * doc/functions/getline.texi: Likewise.
63399         * doc/gnulib.texi (Function Substitutes): Add new files.
63400         Reported by Bruno Haible.
63401
63402 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63403
63404         * users.txt: Add Guile.
63405
63406 2007-08-22  Eric Blake  <ebb9@byu.net>
63407
63408         * tests/test-getdelim.c (main): Use remove, not unlink.
63409         * tests/test-getline.c (main): Likewise.
63410
63411         Move getline and getdelim into stdio.h, per POSIX 200x.
63412         * modules/getline (Files): Remove getline.h.
63413         (Depends-on): Add stdio.
63414         (configure.ac): Add module indicator.
63415         * modules/getdelim (Files): Remove getdelim.h.
63416         (Depends-on): Add stdio.
63417         (configure.ac): Add module indicator.
63418         * modules/stdio (Makefile.am): Work with new indicators.
63419         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63420         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63421         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63422         * lib/getdelim.h: Delete.
63423         * lib/getline.h: Delete.
63424         * lib/stdio_.h (getdelim, getline): Declare.
63425         * modules/getdelim-tests: New module.
63426         * modules/getline-tests: Likewise.
63427         * tests/test-getdelim.c: New file.
63428         * tests/test-getline.c: Likewise.
63429         * NEWS: Document the change.
63430         * lib/getline.c: Update choice of header.
63431         * lib/csharpcomp.c: Likewise.
63432         * lib/getpass.c: Likewise.
63433         * lib/javacomp.c: Likewise.
63434         * lib/javaversion.c: Likewise.
63435         * lib/yesno.c: Likewise.
63436         * lib/getdelim.c: Likewise.
63437         (getdelim): Set errno on failure, and avoid memory leak.
63438
63439 2007-08-19  Bruno Haible  <bruno@clisp.org>
63440
63441         * modules/closein (Depends-on): Add freadahead.
63442         * lib/closein.c: Include freadahead.h.
63443         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63444         is zero.
63445
63446 2007-08-19  Bruno Haible  <bruno@clisp.org>
63447
63448         * modules/freadahead-tests: New file.
63449         * tests/test-freadahead.sh: New file.
63450         * tests/test-freadahead.c: New file.
63451
63452         * modules/freadahead: New file.
63453         * lib/freadahead.h: New file.
63454         * lib/freadahead.c: New file.
63455         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63456         fbufmode, fpurge, freadable, fwritable.
63457
63458 2007-08-19  Eric Blake  <ebb9@byu.net>
63459
63460         Test yesno in combination with closein.
63461         * lib/yesno.c (yesno): Document use of stdin.
63462         * modules/yesno-tests (Files): New module.
63463         * tests/test-yesno.c (main): New file.
63464         * tests/test-yesno.sh: Likewise.
63465
63466 2007-08-19  Bruno Haible  <bruno@clisp.org>
63467
63468         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63469         * lib/fseeko.c (rpl_fseeko): Likewise.
63470         * lib/fseterr.c (fseterr): Likewise.
63471
63472 2007-08-19  Bruno Haible  <bruno@clisp.org>
63473
63474         * tests/test-lseek.c (main): Disable a test for BeOS.
63475         * doc/functions/lseek.texi: Document the BeOS bug.
63476
63477 2007-08-19  Bruno Haible  <bruno@clisp.org>
63478             Eric Blake  <ebb9@byu.net>
63479
63480         * lib/lseek.c: Include <sys/stat.h>.
63481         (rpl_lseek): Add workaround code also for Unix platforms.
63482         Needed for BeOS.
63483         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63484         * doc/functions/lseek.texi: Document BeOS definiency.
63485
63486 2007-08-18  Bruno Haible  <bruno@clisp.org>
63487
63488         * modules/fstrcmp-tests: New file.
63489         * tests/test-fstrcmp.c: New file.
63490
63491 2007-08-18  Bruno Haible  <bruno@clisp.org>
63492
63493         * modules/fstrcmp: New file, from GNU gettext with modifications.
63494         * lib/fstrcmp.h: New file, from GNU gettext.
63495         * lib/fstrcmp.c: New file, from GNU gettext.
63496         * MODULES.html.sh (String handling): Add fstrcmp.
63497
63498 2007-08-18  Bruno Haible  <bruno@clisp.org>
63499
63500         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63501         'bool'.
63502         (diag, compareseq): Remove const from the ctxt argument.
63503         (USE_HEURISTIC): Undefine at the end.
63504
63505 2007-08-18  Jim Meyering  <jim@meyering.net>
63506
63507         New file: lib/idcache.h
63508         * NEWS: Mention the addition.
63509         * modules/idcache (Files): Add lib/idcache.h
63510         * lib/idcache.c: Include "idcache.h".
63511         Don't include <sys/types.h>.
63512         Add a FIXME comment.
63513         Move file-scoped "static" declarations to the top.
63514         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63515
63516 2007-08-17  Bruno Haible  <bruno@clisp.org>
63517         and Paul Eggert  <eggert@cs.ucla.edu>
63518
63519         * MODULES.html.sh: Add diffseq.
63520         * modules/diffseq: New file.
63521         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63522         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63523
63524 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63525
63526         Import changes from coreutils for bootstrap script.
63527
63528         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63529
63530         * build-aux/bootstrap (slurp): Work even in environments where
63531         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63532         current code does not slurp files whose names start with ".", and
63533         this looks like it might be a troublesome area.
63534
63535         2007-07-11  Jim Meyering  <jim@meyering.net>
63536
63537         If there's a GPL vN copyright comment, require that N == 3.
63538
63539         2007-07-08  Jim Meyering  <jim@meyering.net>
63540
63541         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63542         * build-aux/bootstrap (mam_template): Move definition out of loop.
63543
63544         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63545
63546         * build-aux/bootstrap (symlink_to_dir): Rename function from
63547         symlink_to_gnulib.  Add a directory parameter.  Update all
63548         callers.
63549         (cp_mark_as_generated): Also check for -- and link to -- files in
63550         gl/.
63551
63552         2007-07-08  Jim Meyering  <jim@meyering.net>
63553
63554         Adapt to deeper hierarchy in gnulib.
63555         * build-aux/bootstrap (symlink_to_dir): If the destination
63556         directory doesn't exist, create it. This is required at least for
63557         "lib/uniwidth/cjk.h".
63558
63559         2007-05-15  Jim Meyering  <jim@meyering.net>
63560
63561         * build-aux/bootstrap: Now that generated Makefile.am files
63562         are no longer under version control, they must be created at
63563         bootstrap time.
63564
63565 2007-08-14  Ben Pfaff  <blp@gnu.org>
63566
63567         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63568
63569 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63570
63571         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63572         given the changes below.
63573         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63574         even on hosts that have padding bits beyond the supported 64.
63575
63576 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63577
63578         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63579         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63580         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63581         depends on it.
63582         (xstrtol_error): Remove.
63583         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63584         but with a different signature.
63585         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63586         * lib/xstrtol-error.c: Include exitfail.h.
63587         (xstrtol_fatal): New function, with a different signature from the
63588         old xstrtol_error, so that the caller need not worry about passing
63589         in an exit status, or about storage management of the option argument.
63590         (xstrtol_error): Now a static function.  Redo signature to
63591         implement xstrtol_fatal.  Output the correct number of hyphens in
63592         front of the option so that the caller need not worry about
63593         storage management.
63594         (N_): New macro.
63595         (_): Remove; not used now.
63596         * modules/xstrtol: Depend on getopt.
63597         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63598         of old STRTOL_FATAL_ERROR macro.
63599         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63600         of test program.
63601         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63602         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63603
63604 2007-08-08  Eric Blake  <ebb9@byu.net>
63605
63606         * lib/xstrtol-error.c: Add missing include.
63607
63608         Move xstrtol messages into gnulib domain, when --pobase is used.
63609         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63610         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63611         * modules/xstrtol (Files): Distribute new file.
63612         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63613         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63614         * tests/test-xstrtol.c: ...into new file.
63615         * tests/test-xstrtoul.c: Also test xstrtoul.
63616         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63617         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63618         * tests/test-xstrtol.sh: Drive the tests.
63619         * tests/test-xstrtoimax.sh: Likewise.
63620         * tests/test-xstrtoumax.sh: Likewise.
63621         * modules/xstrtol-tests: New module.
63622         * modules/xstrtoimax-tests: Likewise.
63623         * modules/xstrtoumax-tests: Likewise.
63624
63625 2007-08-08  Jim Meyering  <jim@meyering.net>
63626
63627         New function: mfile_name_concat.
63628         * lib/filenamecat.c (mfile_name_concat): New function, just like
63629         file_name_concat, but return NULL upon failure rather than exiting
63630         with a diagnostic.
63631         * lib/filenamecat.h: Declare it.
63632
63633 2007-08-07  Bruno Haible  <bruno@clisp.org>
63634
63635         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63636         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63637         warning from gcc.
63638         Reported by Eric Blake.
63639
63640 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63641
63642         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63643         * modules/crypto/arcfour (License): Likewise.
63644         * modules/crypto/des-tests (License): Likewise.
63645         * modules/crypto/gc-arctwo-tests (License): Likewise.
63646         * modules/crypto/gc-des-tests (License): Likewise.
63647         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63648         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63649         * modules/crypto/gc-md2-tests (License): Likewise.
63650         * modules/crypto/gc-md4-tests (License): Likewise.
63651         * modules/crypto/gc-md5-tests (License): Likewise.
63652         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63653         * modules/crypto/gc-rijndael-tests (License): Likewise.
63654         * modules/crypto/gc-sha1-tests (License): Likewise.
63655         * modules/crypto/gc-tests (License): Likewise.
63656         * modules/crypto/hmac-md5 (License): Likewise.
63657         * modules/crypto/hmac-sha1 (License): Likewise.
63658         * modules/crypto/md2-tests (License): Likewise.
63659         * modules/crypto/md4-tests (License): Likewise.
63660         * modules/crypto/md5 (License): Likewise.
63661         * modules/crypto/rijndael (License): Likewise.
63662         * modules/crypto/sha1 (License): Likewise.
63663         * modules/memxor (License): Likewise.
63664
63665 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63666         and Bruno Haible  <bruno@clisp.org>
63667
63668         * NEWS: Describe interface changes to human, xstrtol.
63669         * lib/human.h: Include <xstrtol.h>.
63670         (human_options): Return enum strtol_error, not int.  Remove
63671         bool arg; take int * instead.
63672         * lib/human.c: Don't include "gettext.h".
63673         (_): Remove; no longer used.
63674         Don't include <xstrtol.h>, since human.h does it.
63675         (human_options): Adjust to abovementioned interface changes.
63676         Do not report error to stderr; that's now the caller's
63677         responsibility.
63678         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63679         interface change.
63680         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63681         Str, Argument_type_string.  All uses changed.  Put " argument"
63682         in diagnostics to make them clearer.  Change wording of suffix
63683         message for clarity.
63684         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63685         Argument_type_string.
63686         (STRTOL_FATAL_WARN): Remove; no longer used.
63687         * modules/human (Depends-on): Remove gettext-h.
63688
63689 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63690
63691         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63692
63693 2007-07-31  Bruno Haible  <bruno@clisp.org>
63694
63695         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63696         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63697         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63698
63699 2007-07-31  Bruno Haible  <bruno@clisp.org>
63700
63701         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63702         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63703
63704 2007-07-30  Bruno Haible  <bruno@clisp.org>
63705
63706         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63707         * modules/c-ctype (License): Likewise.
63708         * modules/c-strcase (License): Likewise.
63709         * modules/check-version (License): Likewise.
63710         * modules/iconv (License): Likewise.
63711         * modules/iconv_open (License): Likewise.
63712         * modules/read-file (License): Likewise.
63713         * modules/striconv (License): Likewise.
63714         * modules/strverscmp (License): Likewise.
63715         * modules/vasprintf (License): Likewise.
63716         * modules/crypto/des (License): Likewise.
63717         * modules/crypto/gc (License): Likewise.
63718         * modules/crypto/gc-arcfour (License): Likewise.
63719         * modules/crypto/gc-arctwo (License): Likewise.
63720         * modules/crypto/gc-des (License): Likewise.
63721         * modules/crypto/gc-hmac-md5 (License): Likewise.
63722         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63723         * modules/crypto/gc-md2 (License): Likewise.
63724         * modules/crypto/gc-md4 (License): Likewise.
63725         * modules/crypto/gc-md5 (License): Likewise.
63726         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63727         * modules/crypto/gc-random (License): Likewise.
63728         * modules/crypto/gc-rijndael (License): Likewise.
63729         * modules/crypto/gc-sha1 (License): Likewise.
63730         * modules/crypto/md2 (License): Likewise.
63731         * modules/crypto/md4 (License): Likewise.
63732
63733 2007-07-30  Jim Meyering  <jim@meyering.net>
63734
63735         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63736         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63737         it has valid stat data.  This bug would cause du not to count the
63738         sizes of inaccessible directories.
63739         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63740         in <http://bugzilla.redhat.com/250077>.
63741
63742 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63743             Bruno Haible  <bruno@clisp.org>
63744
63745         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63746         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63747         #include_next, gives a diagnostic about it, but reports no error in
63748         the exit code.
63749         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63750
63751 2007-07-24  Ben Pfaff  <blp@gnu.org>
63752
63753         Improve name: "count-one-bits" is better than "popcount".
63754         * MODULES.html.sh: Update name.
63755         * lib/popcount.h: Renamed lib/count-one-bits.h.
63756         (popcount): Renamed count_one_bits.
63757         (popcountl): Renamed count_one_bits_l.
63758         (popcountll): Renamed count_one_bits_ll.
63759         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63760         * modules/popcount: Renamed module/count-one-bits.
63761         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63762         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63763
63764 2007-07-23  Ben Pfaff  <blp@gnu.org>
63765
63766         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63767         better code generation, and add U to large constants to avoid
63768         warnings, in non-GCC case.
63769         Suggested by Bruno Haible.
63770
63771 2007-07-23  Ben Pfaff  <blp@gnu.org>
63772
63773         * lib/popcount.h: Use verify_true instead of if...abort.
63774         * modules/popcount: Depend on verify module.
63775         Suggested by Jim Meyering.
63776
63777 2007-07-23  Bruno Haible  <bruno@clisp.org>
63778
63779         * gnulib-tool (func_import): Create a .cvsignore file also when the
63780         directory is not yet in CVS but the toplevel directory is. When
63781         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63782         Reported by Karl Berry.
63783
63784 2007-07-22  Ben Pfaff  <blp@gnu.org>
63785
63786         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63787         case.
63788         Suggested by Eric Blake.
63789
63790 2007-07-22  Ben Pfaff  <blp@gnu.org>
63791
63792         New module: popcount.
63793         * MODULES.html.sh: Add popcount.
63794         * modules/popcount: New file.
63795         * modules/popcount-tests: New file.
63796         * tests/test-popcount.c: New file.
63797         * lib/popcount.h: New file.
63798         * m4/popcount.m4: New file.
63799
63800 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63801
63802         * build-aux/announce-gen: Update to GPLv3.
63803
63804         * build-aux/config.guess: Update from config.
63805
63806 2007-07-21  Bruno Haible  <bruno@clisp.org>
63807
63808         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63809         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63810
63811 2007-07-20  Jim Meyering  <jim@meyering.net>
63812
63813         * check-module: Diagnose a self-dependency.
63814
63815 2007-07-19  Bruno Haible  <bruno@clisp.org>
63816
63817         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63818         empty.
63819         Reported by Eric Blake.
63820
63821 2007-07-18  Bruno Haible  <bruno@clisp.org>
63822
63823         * gnulib-tool: New options --po-base, --po-domain.
63824         (func_usage): Document them.
63825         (pobase, po_domain): New variables.
63826         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63827         DEFAULT_TEXT_DOMAIN.
63828         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63829         (func_import): Consider pobase and po_domain. Create a po/ directory.
63830         (func_create_testdir): Set pobase and po_domain to empty.
63831         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63832         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63833
63834 2007-07-18  Bruno Haible  <bruno@clisp.org>
63835
63836         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63837         EXTRA_DIST augmentation for files in build-aux/.
63838
63839 2007-07-16  Bruno Haible  <bruno@clisp.org>
63840
63841         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63842         * modules/getdelim (License): Likewise.
63843
63844 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63845
63846         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63847         * modules/d-type (License): Likewise.
63848         * modules/extensions (License): Likewise.
63849         * modules/fnmatch (License): Likewise.
63850         * modules/fseeko (License): Likewise.
63851         * modules/getaddrinfo (License): Likewise.
63852         * modules/getline (License): Likewise.
63853         * modules/getlogin_r (License): Likewise.
63854         * modules/getpass (License): Likewise.
63855         * modules/gettimeofday (License): Likewise.
63856         * modules/glob (License): Likewise.
63857         * modules/inet_ntop (License): Likewise.
63858         * modules/malloc (License): Likewise.
63859         * modules/malloca (License): Likewise.
63860         * modules/memmem (License): Likewise.
63861         * modules/mempcpy (License): Likewise.
63862         * modules/memset (License): Likewise.
63863         * modules/minmax (License): Likewise.
63864         * modules/mktime (License): Likewise.
63865         * modules/netinet_in (License): Likewise.
63866         * modules/pathmax (License): Likewise.
63867         * modules/poll (License): Likewise.
63868         * modules/regex (License): Likewise.
63869         * modules/snprintf (License): Likewise.
63870         * modules/stdbool (License): Likewise.
63871         * modules/stdint (License): Likewise.
63872         * modules/stdio (License): Likewise.
63873         * modules/strcase (License): Likewise.
63874         * modules/strcasestr (License): Likewise.
63875         * modules/strdup (License): Likewise.
63876         * modules/string (License): Likewise.
63877         * modules/strndup (License): Likewise.
63878         * modules/strnlen (License): Likewise.
63879         * modules/strpbrk (License): Likewise.
63880         * modules/strptime (License): Likewise.
63881         * modules/strsep (License): Likewise.
63882         * modules/sys_select (License): Likewise.
63883         * modules/sys_socket (License): Likewise.
63884         * modules/sys_stat (License): Likewise.
63885         * modules/sys_time (License): Likewise.
63886         * modules/time (License): Likewise.
63887         * modules/time_r (License): Likewise.
63888         * modules/timegm (License): Likewise.
63889         * modules/unistd (License): Likewise.
63890         * modules/vsnprintf (License): Likewise.
63891         * modules/wctype (License): Likewise.
63892
63893 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63894
63895         * modules/argz (License): LGPLv2+.
63896
63897 2007-07-15  Karl Berry  <karl@gnu.org>
63898
63899         * doc/gnulib.texi: revise node structure per new fdl.texi.
63900
63901 2007-07-14  Bruno Haible  <bruno@clisp.org>
63902
63903         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63904         the output file.
63905         * lib/uniname/uninames.h: Regenerated.
63906
63907 2007-07-14  Karl Berry  <karl@gnu.org>
63908
63909         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63910         omitting sectioning and index commands.
63911
63912 2007-07-13  Bruno Haible  <bruno@clisp.org>
63913
63914         New gnulib-tool option --more-symlinks.
63915         * gnulib-tool (func_usage): Document --more-symlinks.
63916         (do_copyrights): New variable.
63917         Recognize option --more-symlinks.
63918         (func_import): Don't add a copyright notice transform to
63919         sed_transform_lib_file if do_copyrights is empty.
63920
63921 2007-07-13  Bruno Haible  <bruno@clisp.org>
63922
63923         * lib/vasnprintf.c (decimal_point_char): Define also if
63924         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63925         && !NEED_PRINTF_DIRECTIVE_A.
63926         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63927         Gary V. Vaughan <gary@gnu.org>.
63928
63929 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63930
63931         * lib/inttypes_.h: Undo previous change, since it was fixed
63932         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63933
63934 2007-07-13  Bruno Haible  <bruno@clisp.org>
63935
63936         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63937         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63938
63939 2007-07-13  Jim Meyering  <jim@meyering.net>
63940
63941         df: Don't fail for Tru64's "file-on-file mount".
63942         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63943         so we fall through and use statfs instead.  Details here:
63944         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63945         Reported by Albert Chin.
63946
63947 2007-07-13  Bruno Haible  <bruno@clisp.org>
63948
63949         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63950         * modules/configmake (License): Likewise.
63951         * modules/gettext (License): Likewise.
63952         * modules/gettext-h (License): Likewise.
63953         * modules/include_next (License): Likewise.
63954         * modules/link-warning (License): Likewise.
63955         * modules/localcharset (License): Likewise.
63956         * modules/localename (License): Likewise.
63957         * modules/lock (License): Likewise.
63958         * modules/relocatable-lib-lgpl (License): Likewise.
63959         * modules/size_max (License): Likewise.
63960         * modules/vasnprintf (License): Likewise.
63961         * modules/wchar (License): Likewise.
63962         * modules/xsize (License): Likewise.
63963
63964 2007-07-13  Bruno Haible  <bruno@clisp.org>
63965
63966         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63967         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63968
63969 2007-07-12  Bruno Haible  <bruno@clisp.org>
63970
63971         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63972         in the modules files.
63973
63974 2007-07-11  Karl Berry  <karl@gnu.org>
63975
63976         * MODULES.html.sh (func_module): use
63977          sed -e '\|^'"${includefile}"'$|d'
63978          instead of /.../d, to avoid errors on $includefile's containing /.
63979
63980 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63981
63982         * gnulib-tool (func_import): Avoid duplication of --avoid
63983         statements
63984         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63985         names to `_' in variable names.
63986
63987 2007-07-10  Eric Blake  <ebb9@byu.net>
63988
63989         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63990         * NEWS: Document this change.
63991
63992 2007-07-08  Bruno Haible  <bruno@clisp.org>
63993
63994         Update to Unicode 5.0.
63995         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63996         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63997         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63998         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63999         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
64000         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
64001         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
64002         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
64003         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
64004         U+10A3F, U+1D242..U+1D244.
64005         (nonspacing_table_ind): Update.
64006         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64007         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64008
64009 2007-07-08  Bruno Haible  <bruno@clisp.org>
64010
64011         Update to Unicode 5.0.
64012         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64013         code transform. Extend the name index field of unicode_name_to_code and
64014         unicode_code_to_name from 16 to 24 bits.
64015         * lib/uniname/uniname.c (unicode_character_name,
64016         unicode_name_character): Add the range 0x12xxx to the code transform.
64017         * lib/uniname/uninames.h: Regenerated.
64018         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64019
64020 2007-07-07  Bruno Haible  <bruno@clisp.org>
64021
64022         * modules/wcwidth-tests: New file.
64023         * tests/test-wcwidth.c: New file.
64024
64025         Work around MacOS X wcwidth() bug.
64026         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64027         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64028         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64029         original wcwidth in non-UTF-8 locales.
64030         * modules/wcwidth (Depends-on): Add localcharset, streq,
64031         uniwidth/width.
64032         * doc/functions/wcwidth.texi: Update.
64033
64034 2007-07-07  Bruno Haible  <bruno@clisp.org>
64035
64036         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64037         (wcwidth): New declaration.
64038         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64039         macros.
64040         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64041         here. Prepare for creating <wchar.h> unconditionally.
64042         * modules/wchar (Depends-on): Add link-warning.
64043         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64044         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64045         * lib/wcwidth.h: Remove file.
64046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64047         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64048         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64049         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64050         (Include): Replace wcwidth.h with <wchar.h>.
64051         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64052         * lib/mbchar.h: Don't include wcwidth.h.
64053         * lib/mbswidth.c: Likewise.
64054         * NEWS: Mention the change.
64055
64056 2007-07-07  Bruno Haible  <bruno@clisp.org>
64057
64058         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64059         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64060         definition with an external declaration.
64061         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64062         defined as a function. Remove AC_C_INLINE requirement.
64063         * modules/wcwidth (Files): Add lib/wcwidth.c.
64064         (Makefile.am): Remove redundant statement.
64065
64066 2007-07-07  Bruno Haible  <bruno@clisp.org>
64067
64068         * MODULES.html.sh (Unicode string functions): Add the new modules.
64069
64070         * tests/uniwidth/test-u32-strwidth.c: New file.
64071         * modules/uniwidth/u32-strwidth-tests: New file.
64072
64073         * lib/uniwidth/u32-strwidth.c: New file.
64074         * modules/uniwidth/u32-strwidth: New file.
64075
64076         * tests/uniwidth/test-u16-strwidth.c: New file.
64077         * modules/uniwidth/u16-strwidth-tests: New file.
64078
64079         * lib/uniwidth/u16-strwidth.c: New file.
64080         * modules/uniwidth/u16-strwidth: New file.
64081
64082         * tests/uniwidth/test-u8-strwidth.c: New file.
64083         * modules/uniwidth/u8-strwidth-tests: New file.
64084
64085         * lib/uniwidth/u8-strwidth.c: New file.
64086         * modules/uniwidth/u8-strwidth: New file.
64087
64088         * tests/uniwidth/test-u32-width.c: New file.
64089         * modules/uniwidth/u32-width-tests: New file.
64090
64091         * lib/uniwidth/u32-width.c: New file.
64092         * modules/uniwidth/u32-width: New file.
64093
64094         * tests/uniwidth/test-u16-width.c: New file.
64095         * modules/uniwidth/u16-width-tests: New file.
64096
64097         * lib/uniwidth/u16-width.c: New file.
64098         * modules/uniwidth/u16-width: New file.
64099
64100         * tests/uniwidth/test-u8-width.c: New file.
64101         * modules/uniwidth/u8-width-tests: New file.
64102
64103         * lib/uniwidth/u8-width.c: New file.
64104         * modules/uniwidth/u8-width: New file.
64105
64106         * tests/uniwidth/test-uc_width.c: New file.
64107         * modules/uniwidth/width-tests: New file.
64108
64109         * lib/uniwidth/width.c: New file, from GNU libiconv.
64110         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64111         * modules/uniwidth/width: New file.
64112
64113         * lib/uniwidth.h: New file, from GNU libiconv.
64114         * modules/uniwidth/base: New file.
64115
64116 2007-07-07  Bruno Haible  <bruno@clisp.org>
64117
64118         * lib/uniname.h: New file, from GNU gettext.
64119         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64120         * lib/uniname/uninames.h: New file, from GNU gettext.
64121         * lib/uniname/uniname.c: New file, from GNU gettext.
64122         * tests/uniname/test-uninames.sh: New file.
64123         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64124         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64125         * modules/uniname/base: New file.
64126         * modules/uniname/uniname: New file.
64127         * modules/uniname/uniname-tests: New file.
64128         * MODULES.html.sh (Unicode string functions): Add the new modules.
64129
64130 2007-07-06  Bruno Haible  <bruno@clisp.org>
64131
64132         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64133
64134 2007-07-06  Bruno Haible  <bruno@clisp.org>
64135
64136         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64137         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64138         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64139         include <sys/time.h>.
64140         Reported by Eric Blake.
64141
64142 2007-07-06  Eric Blake  <ebb9@byu.net>
64143
64144         Fix testing canonicalize on cygwin.
64145         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64146         Revert patch from 2007-06-19.
64147         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
64148         canonicalize module is also in use.
64149         * tests/test-canonicalize.c: New file.
64150         * tests/test-canonicalize.sh: Likewise.
64151         * modules/canonicalize-tests: Likewise.
64152
64153 2007-07-06  Jim Meyering  <jim@meyering.net>
64154
64155         * lib/getugroups.c (getugroups): Detect getgrent failure.
64156         Adjust comment to reflect reality: this function may return -1.
64157
64158 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64159
64160         * build-aux/bootstrap (TP_URL,get_translations): Update to use
64161         the new TP address.
64162         (usage): Fix typo
64163         (gnulib_mk): New variable.
64164
64165 2007-07-05  Jim Meyering  <jim@meyering.net>
64166
64167         Don't let endgrent clobber errno, no matter how improbable.
64168         * lib/getugroups.c (getugroups): Save and restore errno around
64169         endgrent call.
64170
64171         Close the group DB even when failing with 2^31 or more members.
64172         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
64173
64174 2007-07-04  Jim Meyering  <jim@meyering.net>
64175
64176         * lib/getugroups.h: New file.
64177         * lib/getugroups.c: Include "getugroups.h".
64178         Remove uses of "register" keyword.
64179         Move local variable, "cp", down into scope where used.
64180         Give "username" parameter the "const" attribute.
64181         * modules/getugroups (Files): Add lib/getugroups.h
64182
64183 2007-07-04  Karl Berry  <karl@gnu.org>
64184
64185         * MODULES.html.sh (func_all_modules): Complete rename of
64186         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64187
64188 2007-07-02  Bruno Haible  <bruno@clisp.org>
64189
64190         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64191         mode, when inttypes.h comes from gnulib.
64192         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64193
64194 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64195
64196         * NEWS: Mention lgpl module name change.
64197
64198         * modules/lgpl-2.1: Renamed from lgpl.
64199
64200         * NEWS: Mention gpl module name change.
64201
64202         * modules/gpl-3.0: New file, based on gpl-2.0.
64203
64204         * modules/gpl-2.0: Renamed from gpl.
64205
64206         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64207         doc/gpl-2.0.texi.
64208
64209 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64210
64211         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64212         #define __STDC_LIMIT_MACROS temporarily while including
64213         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64214         Problem reported by Joel E. Denny in
64215         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64216
64217 2007-07-01  Bruno Haible  <bruno@clisp.org>
64218
64219         * lib/unistdio.h: New file.
64220         * lib/unistdio/u-asnprintf.h: New file.
64221         * lib/unistdio/u-asprintf.h: New file.
64222         * lib/unistdio/u-printf-args.c: New file.
64223         * lib/unistdio/u-printf-args.h: New file.
64224         * lib/unistdio/u-printf-parse.h: New file.
64225         * lib/unistdio/u-snprintf.h: New file.
64226         * lib/unistdio/u-sprintf.h: New file.
64227         * lib/unistdio/u-vasprintf.h: New file.
64228         * lib/unistdio/u-vsnprintf.h: New file.
64229         * lib/unistdio/u-vsprintf.h: New file.
64230         * lib/unistdio/ulc-asnprintf.c: New file.
64231         * lib/unistdio/ulc-asprintf.c: New file.
64232         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64233         * lib/unistdio/ulc-printf-parse.c: New file.
64234         * lib/unistdio/ulc-snprintf.c: New file.
64235         * lib/unistdio/ulc-sprintf.c: New file.
64236         * lib/unistdio/ulc-vasnprintf.c: New file.
64237         * lib/unistdio/ulc-vasprintf.c: New file.
64238         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64239         * lib/unistdio/ulc-vsnprintf.c: New file.
64240         * lib/unistdio/ulc-vsprintf.c: New file.
64241         * lib/unistdio/u8-asnprintf.c: New file.
64242         * lib/unistdio/u8-asprintf.c: New file.
64243         * lib/unistdio/u8-printf-parse.c: New file.
64244         * lib/unistdio/u8-snprintf.c: New file.
64245         * lib/unistdio/u8-sprintf.c: New file.
64246         * lib/unistdio/u8-vasnprintf.c: New file.
64247         * lib/unistdio/u8-vasprintf.c: New file.
64248         * lib/unistdio/u8-vsnprintf.c: New file.
64249         * lib/unistdio/u8-vsprintf.c: New file.
64250         * lib/unistdio/u8-u8-asnprintf.c: New file.
64251         * lib/unistdio/u8-u8-asprintf.c: New file.
64252         * lib/unistdio/u8-u8-snprintf.c: New file.
64253         * lib/unistdio/u8-u8-sprintf.c: New file.
64254         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64255         * lib/unistdio/u8-u8-vasprintf.c: New file.
64256         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64257         * lib/unistdio/u8-u8-vsprintf.c: New file.
64258         * lib/unistdio/u16-asnprintf.c: New file.
64259         * lib/unistdio/u16-asprintf.c: New file.
64260         * lib/unistdio/u16-printf-parse.c: New file.
64261         * lib/unistdio/u16-snprintf.c: New file.
64262         * lib/unistdio/u16-sprintf.c: New file.
64263         * lib/unistdio/u16-vasnprintf.c: New file.
64264         * lib/unistdio/u16-vasprintf.c: New file.
64265         * lib/unistdio/u16-vsnprintf.c: New file.
64266         * lib/unistdio/u16-vsprintf.c: New file.
64267         * lib/unistdio/u16-u16-asnprintf.c: New file.
64268         * lib/unistdio/u16-u16-asprintf.c: New file.
64269         * lib/unistdio/u16-u16-snprintf.c: New file.
64270         * lib/unistdio/u16-u16-sprintf.c: New file.
64271         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64272         * lib/unistdio/u16-u16-vasprintf.c: New file.
64273         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64274         * lib/unistdio/u16-u16-vsprintf.c: New file.
64275         * lib/unistdio/u32-asnprintf.c: New file.
64276         * lib/unistdio/u32-asprintf.c: New file.
64277         * lib/unistdio/u32-printf-parse.c: New file.
64278         * lib/unistdio/u32-snprintf.c: New file.
64279         * lib/unistdio/u32-sprintf.c: New file.
64280         * lib/unistdio/u32-vasnprintf.c: New file.
64281         * lib/unistdio/u32-vasprintf.c: New file.
64282         * lib/unistdio/u32-vsnprintf.c: New file.
64283         * lib/unistdio/u32-vsprintf.c: New file.
64284         * lib/unistdio/u32-u32-asnprintf.c: New file.
64285         * lib/unistdio/u32-u32-asprintf.c: New file.
64286         * lib/unistdio/u32-u32-snprintf.c: New file.
64287         * lib/unistdio/u32-u32-sprintf.c: New file.
64288         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64289         * lib/unistdio/u32-u32-vasprintf.c: New file.
64290         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64291         * lib/unistdio/u32-u32-vsprintf.c: New file.
64292         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64293         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64294         * tests/unistdio/test-ulc-printf1.h: New file.
64295         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64296         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64297         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64298         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64299         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64300         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64301         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64302         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64303         * tests/unistdio/test-u8-asnprintf1.c: New file.
64304         * tests/unistdio/test-u8-asnprintf1.h: New file.
64305         * tests/unistdio/test-u8-printf1.h: New file.
64306         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64307         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64308         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64309         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64310         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64311         * tests/unistdio/test-u8-vasprintf1.c: New file.
64312         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64313         * tests/unistdio/test-u8-vsprintf1.c: New file.
64314         * tests/unistdio/test-u16-asnprintf1.c: New file.
64315         * tests/unistdio/test-u16-asnprintf1.h: New file.
64316         * tests/unistdio/test-u16-printf1.h: New file.
64317         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64318         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64319         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64320         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64321         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64322         * tests/unistdio/test-u16-vasprintf1.c: New file.
64323         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64324         * tests/unistdio/test-u16-vsprintf1.c: New file.
64325         * tests/unistdio/test-u32-asnprintf1.c: New file.
64326         * tests/unistdio/test-u32-asnprintf1.h: New file.
64327         * tests/unistdio/test-u32-printf1.h: New file.
64328         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64329         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64330         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64331         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64332         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64333         * tests/unistdio/test-u32-vasprintf1.c: New file.
64334         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64335         * tests/unistdio/test-u32-vsprintf1.c: New file.
64336         * modules/unistdio/base: New file.
64337         * modules/unistdio/u-printf-args: New file.
64338         * modules/unistdio/ulc-asnprintf: New file.
64339         * modules/unistdio/ulc-asprintf: New file.
64340         * modules/unistdio/ulc-fprintf: New file.
64341         * modules/unistdio/ulc-printf-parse: New file.
64342         * modules/unistdio/ulc-snprintf: New file.
64343         * modules/unistdio/ulc-sprintf: New file.
64344         * modules/unistdio/ulc-vasnprintf: New file.
64345         * modules/unistdio/ulc-vasprintf: New file.
64346         * modules/unistdio/ulc-vfprintf: New file.
64347         * modules/unistdio/ulc-vsnprintf: New file.
64348         * modules/unistdio/ulc-vsprintf: New file.
64349         * modules/unistdio/u8-asnprintf: New file.
64350         * modules/unistdio/u8-asprintf: New file.
64351         * modules/unistdio/u8-printf-parse: New file.
64352         * modules/unistdio/u8-snprintf: New file.
64353         * modules/unistdio/u8-sprintf: New file.
64354         * modules/unistdio/u8-vasnprintf: New file.
64355         * modules/unistdio/u8-vasprintf: New file.
64356         * modules/unistdio/u8-vsnprintf: New file.
64357         * modules/unistdio/u8-vsprintf: New file.
64358         * modules/unistdio/u8-u8-asnprintf: New file.
64359         * modules/unistdio/u8-u8-asprintf: New file.
64360         * modules/unistdio/u8-u8-snprintf: New file.
64361         * modules/unistdio/u8-u8-sprintf: New file.
64362         * modules/unistdio/u8-u8-vasnprintf: New file.
64363         * modules/unistdio/u8-u8-vasprintf: New file.
64364         * modules/unistdio/u8-u8-vsnprintf: New file.
64365         * modules/unistdio/u8-u8-vsprintf: New file.
64366         * modules/unistdio/u16-asnprintf: New file.
64367         * modules/unistdio/u16-asprintf: New file.
64368         * modules/unistdio/u16-printf-parse: New file.
64369         * modules/unistdio/u16-snprintf: New file.
64370         * modules/unistdio/u16-sprintf: New file.
64371         * modules/unistdio/u16-vasnprintf: New file.
64372         * modules/unistdio/u16-vasprintf: New file.
64373         * modules/unistdio/u16-vsnprintf: New file.
64374         * modules/unistdio/u16-vsprintf: New file.
64375         * modules/unistdio/u16-u16-asnprintf: New file.
64376         * modules/unistdio/u16-u16-asprintf: New file.
64377         * modules/unistdio/u16-u16-snprintf: New file.
64378         * modules/unistdio/u16-u16-sprintf: New file.
64379         * modules/unistdio/u16-u16-vasnprintf: New file.
64380         * modules/unistdio/u16-u16-vasprintf: New file.
64381         * modules/unistdio/u16-u16-vsnprintf: New file.
64382         * modules/unistdio/u16-u16-vsprintf: New file.
64383         * modules/unistdio/u32-asnprintf: New file.
64384         * modules/unistdio/u32-asprintf: New file.
64385         * modules/unistdio/u32-printf-parse: New file.
64386         * modules/unistdio/u32-snprintf: New file.
64387         * modules/unistdio/u32-sprintf: New file.
64388         * modules/unistdio/u32-vasnprintf: New file.
64389         * modules/unistdio/u32-vasprintf: New file.
64390         * modules/unistdio/u32-vsnprintf: New file.
64391         * modules/unistdio/u32-vsprintf: New file.
64392         * modules/unistdio/u32-u32-asnprintf: New file.
64393         * modules/unistdio/u32-u32-asprintf: New file.
64394         * modules/unistdio/u32-u32-snprintf: New file.
64395         * modules/unistdio/u32-u32-sprintf: New file.
64396         * modules/unistdio/u32-u32-vasnprintf: New file.
64397         * modules/unistdio/u32-u32-vasprintf: New file.
64398         * modules/unistdio/u32-u32-vsnprintf: New file.
64399         * modules/unistdio/u32-u32-vsprintf: New file.
64400         * modules/unistdio/ulc-asnprintf-tests: New file.
64401         * modules/unistdio/ulc-vasnprintf-tests: New file.
64402         * modules/unistdio/ulc-vasprintf-tests: New file.
64403         * modules/unistdio/ulc-vsnprintf-tests: New file.
64404         * modules/unistdio/ulc-vsprintf-tests: New file.
64405         * modules/unistdio/u8-asnprintf-tests: New file.
64406         * modules/unistdio/u8-vasnprintf-tests: New file.
64407         * modules/unistdio/u8-vasprintf-tests: New file.
64408         * modules/unistdio/u8-vsnprintf-tests: New file.
64409         * modules/unistdio/u8-vsprintf-tests: New file.
64410         * modules/unistdio/u16-asnprintf-tests: New file.
64411         * modules/unistdio/u16-vasnprintf-tests: New file.
64412         * modules/unistdio/u16-vasprintf-tests: New file.
64413         * modules/unistdio/u16-vsnprintf-tests: New file.
64414         * modules/unistdio/u16-vsprintf-tests: New file.
64415         * modules/unistdio/u32-asnprintf-tests: New file.
64416         * modules/unistdio/u32-vasnprintf-tests: New file.
64417         * modules/unistdio/u32-vasprintf-tests: New file.
64418         * modules/unistdio/u32-vsnprintf-tests: New file.
64419         * modules/unistdio/u32-vsprintf-tests: New file.
64420         * MODULES.html.sh (Unicode string functions): Add the new modules.
64421
64422 2007-07-01  Bruno Haible  <bruno@clisp.org>
64423
64424         * lib/sprintf.c (sprintf): Limit the available length estimation,
64425         to avoid address wraparound.
64426         * lib/vsprintf.c (vsprintf): Likewise.
64427         * modules/sprintf-posix (Dependencies): Add stdint.
64428         * modules/vsprintf-posix (Dependencies): Likewise.
64429
64430 2007-07-01  Bruno Haible  <bruno@clisp.org>
64431
64432         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64433         Windows PATH as well. Conservative double-quoting. Comments.
64434
64435 2007-07-01  Bruno Haible  <bruno@clisp.org>
64436             Eric Blake  <ebb9@byu.net>
64437             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64438
64439         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64440         empty components in $PATH, denoting '.'.
64441
64442 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64443
64444         * gnulib-tool: Fix indentation.
64445         (func_create_megatestdir): Likewise.
64446         Report by Bruno Haible.
64447
64448 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64449
64450         Sync from Automake.
64451         * build-aux/gnupload: Fix shell portability issues with for loops.
64452         Report by Karl Berry.
64453
64454 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64455
64456         * build-aux/maint.mk (POURL): Use translationproject.org.
64457
64458 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64459             Bruno Haible  <bruno@clisp.org>
64460
64461         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64462         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64463         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64464         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64465         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64466
64467 2007-06-27  Bruno Haible  <bruno@clisp.org>
64468
64469         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64470         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64471
64472 2007-06-26  Karl Berry  <karl@gnu.org>
64473
64474         * MODULES.html.sh: remove xreadlink-with-size.
64475
64476 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64477
64478         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64479         method that I hope also handles the double-include problem noted
64480         by Bruno Haible in
64481         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64482
64483 2007-06-23  Bruno Haible  <bruno@clisp.org>
64484
64485         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64486         Don't let the 'mostlyclean' target fail if the last subdirectory could
64487         not be removed.
64488         Reported by Karl Berry.
64489
64490 2007-06-23  Bruno Haible  <bruno@clisp.org>
64491
64492         * gnulib-tool (echo): Add a speedier workaround for ksh.
64493         * tests/test-echo.sh: Likewise.
64494
64495 2007-06-23  Bruno Haible  <bruno@clisp.org>
64496
64497         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64498         * tests/test-echo.sh: Likewise.
64499
64500 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64501
64502         * gnulib-tool (IFS): Initialize early, so we don't set it to
64503         empty later.
64504         (self_abspathname): Rewrite algorithm to set it, reindent.
64505         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64506         (func_create_megatestdir): Merge some sed scripts.
64507
64508 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64509
64510         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64511         exposed by Sun Studio 11 cc on Solaris 8.
64512
64513 2007-06-22  Bruno Haible  <bruno@clisp.org>
64514
64515         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64516         backslashes.
64517         * tests/test-echo.sh: New file.
64518
64519 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64520
64521         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64522         simplify `sed_replace_build_aux' scripts, they are portable but
64523         echoing them with `echo' is not.
64524         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64525
64526 2007-06-21  Karl Berry  <karl@gnu.org>
64527
64528         * config/srclist.txt: guess we can't handle the licenses via
64529         srclist at the moment.
64530
64531 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64532
64533         * MODULES.html.sh: Add include_next.
64534         * modules/include_next: New file.
64535
64536 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64537
64538         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64539         INCLUDE_NEXT.
64540         (gl_CHECK_NEXT_HEADERS): New macro.
64541         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64542         the obsolescent gl_ABSOLUTE_HEADER.
64543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64544         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64545         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64546         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64547         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64548         * m4/math_h.m4 (gl_MATH_H): Likewise.
64549         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64550         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64551         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64552         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64553         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64554         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64555         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64556         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64557         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64558         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64559         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64560         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64561         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64562         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64563         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64564         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64565         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64566         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64567         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64568         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64569         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64570         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64571         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64572         * lib/float_.h: Likewise.
64573         * lib/inttypes_.h: Likewise.
64574         * lib/math_.h: Likewise.
64575         * lib/search_.h: Likewise.
64576         * lib/signal_.h: Likewise.
64577         * lib/stdint_.h: Likewise.
64578         * lib/stdio_.h: Likewise.
64579         * lib/stdlib_.h: Likewise.
64580         * lib/string_.h: Likewise.
64581         * lib/sys_stat_.h: Likewise.
64582         * lib/sys_time_.h: Likewise.
64583         * lib/time_.h: Likewise.
64584         * lib/unistd_.h: Likewise.
64585         * lib/wchar_.h: Likewise.
64586         * lib/wctype_.h: Likewise.
64587         * lib/dirent_.h: Likewise.
64588         * lib/iconv_.h: Likewise.
64589         * lib/locale_.h: Likewise.
64590         * lib/netinet_in_.h: Likewise.
64591         * lib/sys_select_.h: Likewise.
64592         * lib/sys_socket_.h: Likewise.
64593         * lib/sysexits_.h: Likewise.
64594         * modules/fcntl (Depends-on): Depend on include_next, not
64595         absolute_header.
64596         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64597         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64598         * modules/fchdir: Likewise.
64599         * modules/float: Likewise.
64600         * modules/iconv_open: Likewise.
64601         * modules/inttypes: Likewise.
64602         * modules/locale: Likewise.
64603         * modules/math: Likewise.
64604         * modules/netinet_in: Likewise.
64605         * modules/search: Likewise.
64606         * modules/signal: Likewise.
64607         * modules/stdint: Likewise.
64608         * modules/stdio: Likewise.
64609         * modules/stdlib: Likewise.
64610         * modules/string: Likewise.
64611         * modules/sys_select: Likewise.
64612         * modules/sys_socket: Likewise.
64613         * modules/sys_stat: Likewise.
64614         * modules/sys_time: Likewise.
64615         * modules/sysexits: Likewise.
64616         * modules/time: Likewise.
64617         * modules/unistd: Likewise.
64618         * modules/wchar: Likewise.
64619         * modules/wctype: Likewise.
64620         * modules/sys_stat: Change maintainer to "all".
64621         * modules/unistd: Likewise.
64622
64623 2007-06-20  Karl Berry  <karl@gnu.org>
64624
64625         * config/srclist.txt: track www changes in license files.
64626
64627 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64628
64629         * build-aux/bootstrap: Remove stray dot.
64630         Make sure build_aux settings are honored when linking
64631         gnulib_extra_files.
64632
64633 2007-06-19  Eric Blake  <ebb9@byu.net>
64634
64635         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64636         Allow compilation on cygwin.
64637
64638 2007-06-19  Jim Meyering  <jim@meyering.net>
64639
64640         xreadlink-with-size: Remove module.  No longer used.
64641         Ex-callers now use xreadlink or mreadlink-with-size.
64642         * modules/xreadlink-with-size: Remove module.
64643         * lib/xreadlink-with-size.c: Remove file.
64644         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64645         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64646         just before the function definition *is* accurate.
64647
64648         Eliminate one way canonicalize_filename_mode could exit.
64649         * lib/canonicalize.c (canonicalize_filename_mode):
64650         Use mreadlink_with_size, not xreadlink_with_size.
64651
64652 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64653
64654         Detect porting problems to FreeBSD/arm, which has time_t wider than
64655         long int.  Original problem reported for GNU diff by Xin Li in
64656         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64657         * modules/getdate (Depends-on): Add intprops, verify.
64658         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64659         is an integer type no wider than long int.
64660
64661 2007-06-18  Jim Meyering  <jim@meyering.net>
64662
64663         New module: mreadlink-with-size.
64664         * MODULES.html.sh: Add mreadlink-with-size.
64665         * modules/mreadlink-with-size: New module
64666         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64667         not xreadlink-with-size.
64668         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64669
64670 2007-06-16  Bruno Haible  <bruno@clisp.org>
64671
64672         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64673         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64674         Reported by Gary V. Vaughan <gary@gnu.org>.
64675
64676 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64677
64678         Revamp lchown so that it lives in unistd.h where it belongs.
64679         * lib/lchown.h: Remove.
64680         * lib/dirchownmod.c: Don't include lib/lchown.h.
64681         * lib/fchownat.c: Likewise.
64682         * lib/openat.c: Likewise.
64683         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64684         does not follow symlinks.
64685         (EOPNOTSUPP): Define if not defined.
64686         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64687         is defined to 0.
64688         (lchown): New decl.
64689         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64690         Do not check for lchown decl.
64691         Set REPLACE_LCHOWN.
64692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64693         REPLACE_LCHOWN.
64694         * modules/chown: Make it clear it follows symlinks.
64695         * modules/lchown: Make it clear it doesn't follow symlinks.
64696         (Files): Remove lib/lchown.h
64697         (Depends-on): Add unistd.
64698         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64699         (Include): Include <unistd.h>, not "lchown.h".
64700         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64701         REPLACE_LCHOWN.
64702
64703 2007-06-15  Jim Meyering  <jim@meyering.net>
64704
64705         Change license (GPL to LGPL) of fsusage and dependents.
64706         * modules/fsusage (License): Change to LGPL.
64707         * modules/full-read (License): Likewise.
64708         * modules/full-write (License): Likewise.
64709         * modules/safe-read (License): Likewise.
64710         * modules/safe-write (License): Likewise.
64711
64712 2007-06-14  Ben Pfaff  <blp@gnu.org>
64713
64714         Missing part of allocsa -> malloca transition.
64715         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64716         gl_MALLOCA.
64717
64718 2007-06-12  Bruno Haible  <bruno@clisp.org>
64719
64720         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64721         to ia64, x86_64, i386.
64722         Reported by Eric Blake.
64723
64724 2007-06-12  Bruno Haible  <bruno@clisp.org>
64725
64726         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64727         cross-compiling to x86_64.
64728
64729 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64730
64731         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64732         glitch reported by Ralf Wildenhues in
64733         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64734
64735         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64736         Vin Shelton.
64737
64738 2007-06-11  Bruno Haible  <bruno@clisp.org>
64739
64740         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64741         replacement string.
64742         Reported by Eric Blake.
64743
64744 2007-06-10  Bruno Haible  <bruno@clisp.org>
64745
64746         Prepare vasnprintf code for use with Unicode strings.
64747         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64748         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64749         TYPE_U32_STRING.
64750         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64751         a_u32_string variants.
64752         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64753         * lib/printf-args.c: Don't include config.h and the specification
64754         header if PRINTF_FETCHARGS is already defined.
64755         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64756         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64757         TYPE_U16_STRING, TYPE_U32_STRING.
64758         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64759         u16_directive, u16_directives, u32_directive, u32_directives): New
64760         types.
64761         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64762         New declarations.
64763         * lib/printf-parse.c: Don't include config.h and the specification
64764         header if PRINTF_PARSE is already defined. Eliminate the set of
64765         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64766         them now. Include c-ctype.h.
64767         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64768         directive and CHAR_T_ONLY_ASCII.
64769         * lib/vasnprintf.c: Don't include config.h and the specification header
64770         if VASNPRINTF is already defined.
64771         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64772         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64773         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64774         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64775         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64776         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64777         code accordingly.
64778         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64779         pad_ourselves also in this case, with the 'c' and 's' directives, and
64780         with a different notion of "width".
64781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64782
64783 2007-06-10  Bruno Haible  <bruno@clisp.org>
64784
64785         * modules/unistr/u32-mbsnlen: New file.
64786         * lib/unistr/u32-mbsnlen.c: New file.
64787
64788         * modules/unistr/u16-mbsnlen: New file.
64789         * lib/unistr/u16-mbsnlen.c: New file.
64790
64791         * modules/unistr/u8-mbsnlen: New file.
64792         * lib/unistr/u8-mbsnlen.c: New file.
64793
64794         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64795         declarations.
64796
64797 2007-06-10  Bruno Haible  <bruno@clisp.org>
64798
64799         * lib/string_.h (mbsnlen): New declaration.
64800         * lib/mbsnlen.c: New file.
64801         * m4/mbsnlen.m4: New file.
64802         * modules/mbsnlen: New file.
64803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64804         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64805         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64806
64807 2007-06-10  Bruno Haible  <bruno@clisp.org>
64808
64809         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64810
64811 2007-06-10  Bruno Haible  <bruno@clisp.org>
64812
64813         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64814         * lib/mbuiter.h: Likewise.
64815
64816 2007-06-10  Bruno Haible  <bruno@clisp.org>
64817
64818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64819         declaration.
64820
64821 2007-06-10  Karl Berry  <karl@gnu.org>
64822
64823         * config/srclist.txt: remove gettext entries, Bruno prefers
64824         to update individually.
64825
64826 2007-06-10  Bruno Haible  <bruno@clisp.org>
64827
64828         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64829         'maxlen'. Ensure only length + width bytes are allocated, not
64830         length + 1 + width.
64831
64832 2007-06-09  Bruno Haible  <bruno@clisp.org>
64833
64834         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64835         (CHAR_T): Remove macro.
64836         (VASNPRINTF): Update.
64837
64838 2007-06-09  Bruno Haible  <bruno@clisp.org>
64839
64840         * MODULES.html.sh (Unicode string functions): Add the new modules.
64841
64842         * modules/uniconv/u32-conv-to-enc: New file.
64843         * lib/uniconv/u32-conv-to-enc.c: New file.
64844         * modules/uniconv/u32-conv-to-enc-tests: New file.
64845         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64846
64847         * modules/uniconv/u16-conv-to-enc: New file.
64848         * lib/uniconv/u16-conv-to-enc.c: New file.
64849         * lib/uniconv/u-conv-to-enc.h: New file.
64850         * modules/uniconv/u16-conv-to-enc-tests: New file.
64851         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64852
64853         * modules/uniconv/u8-conv-to-enc: New file.
64854         * lib/uniconv/u8-conv-to-enc.c: New file.
64855         * modules/uniconv/u8-conv-to-enc-tests: New file.
64856         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64857
64858         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64859         u32_conv_to_encoding): New declarations.
64860
64861 2007-06-09  Bruno Haible  <bruno@clisp.org>
64862
64863         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64864
64865 2007-06-09  Bruno Haible  <bruno@clisp.org>
64866
64867         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64868         * modules/malloca: Renamed from modules/allocsa, updated.
64869         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64870         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64871         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64872         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64873         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64874         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64875         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64876         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64877         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64878         * modules/c-strcasestr (Depends-on): Update.
64879         * lib/c-strcasestr.c: Update.
64880         * modules/c-strstr (Depends-on): Update.
64881         * lib/c-strstr.c: Update.
64882         * modules/canonicalize-lgpl (Depends-on): Update.
64883         * lib/canonicalize-lgpl.c: Update.
64884         * modules/clean-temp (Depends-on): Update.
64885         * lib/clean-temp.c: Update.
64886         * modules/csharpcomp (Depends-on): Update.
64887         * lib/csharpcomp.c: Update.
64888         * modules/csharpexec (Depends-on): Update.
64889         * lib/csharpexec.c: Update.
64890         * modules/javacomp (Depends-on): Update.
64891         * lib/javacomp.c: Update.
64892         * modules/javaexec (Depends-on): Update.
64893         * lib/javaexec.c: Update.
64894         * modules/mbscasestr (Depends-on): Update.
64895         * lib/mbscasestr.c: Update.
64896         * modules/mbsstr (Depends-on): Update.
64897         * lib/mbsstr.c: Update.
64898         * modules/setenv (Depends-on): Update.
64899         * lib/setenv.c: Update.
64900         * modules/strcasestr (Depends-on): Update.
64901         * lib/strcasestr.c: Update.
64902         * modules/striconveha (Depends-on): Update.
64903         * lib/striconveha.c: Update.
64904         * modules/relocatable-prog-wrapper (Files): Update.
64905         * lib/relocwrapper.c: Update.
64906         * build-aux/install-reloc: Update.
64907         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64908
64909 2007-06-08  Bruno Haible  <bruno@clisp.org>
64910
64911         Port to uClibc.
64912         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64913         * lib/fpurge.c (fpurge): Likewise.
64914         * lib/freading.c (freading): Likewise.
64915         * lib/fseeko.c (rpl_fseeko): Likewise.
64916         * lib/fseterr.c (fseterr): Likewise.
64917         * lib/fwriting.c (fwriting): Likewise.
64918         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64919
64920 2007-06-08  Bruno Haible  <bruno@clisp.org>
64921
64922         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64923         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64924         * modules/gettext (Files): Add m4/intlmacosx.m4.
64925
64926 2007-06-07  Bruno Haible  <bruno@clisp.org>
64927
64928         * modules/localename-tests: New file.
64929         * tests/test-localename.c: New file.
64930
64931         New module 'localename'.
64932         * lib/localename.h: New file.
64933         * lib/localename.c: New file, from GNU gettext.
64934         * m4/localename.m4: New file.
64935         * modules/localename: New file.
64936
64937 2007-06-07  Bruno Haible  <bruno@clisp.org>
64938
64939         Work around the lack of <wchar.h> on some builds of uClibc.
64940         * doc/headers/wchar.texi: Update.
64941         * lib/wchar_.h: Include <wchar.h> only if it exists.
64942         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64943         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64944         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64945         doesn't exist.
64946         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64947         * modules/mbfile (Depends-on): Add wchar.
64948         * modules/mbiter (Depends-on): Likewise.
64949         * modules/mbuiter (Depends-on): Likewise.
64950         Reported by Simon Josefsson.
64951
64952 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64953
64954         Work around problem reported by Steven M. Schweda in
64955         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64956         Tru64 5.1B with the Compaq compiler environment installed declares
64957         an 'isblank' function but does not define it in the C library.
64958         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64959         * lib/regex_internal.h (isblank): Likewise.
64960         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64961         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64962
64963 2007-06-05  Bruno Haible  <bruno@clisp.org>
64964
64965         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64966         ia64.
64967         * modules/printf-safe: New file.
64968         * modules/fprintf-posix (Depends-on): Add printf-safe.
64969         * modules/printf-posix (Depends-on): Likewise.
64970         * modules/snprintf-posix (Depends-on): Likewise.
64971         * modules/sprintf-posix (Depends-on): Likewise.
64972         * modules/vasnprintf-posix (Depends-on): Likewise.
64973         * modules/vasprintf-posix (Depends-on): Likewise.
64974         * modules/vfprintf-posix (Depends-on): Likewise.
64975         * modules/vprintf-posix (Depends-on): Likewise.
64976         * modules/vsnprintf-posix (Depends-on): Likewise.
64977         * modules/vsprintf-posix (Depends-on): Likewise.
64978         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64979         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64980         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64981         "no" on i386, x86_64, ia64.
64982         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64983         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64984         on i386, x86_64, ia64.
64985         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64986         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64987         on i386, x86_64, ia64.
64988         * tests/test-vasnprintf-posix.c: Include float.h.
64989         (LDBL80_WORDS): New macro.
64990         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64991         on i386, x86_64, ia64.
64992         * tests/test-vasprintf-posix.c: Include float.h.
64993         (LDBL80_WORDS): New macro.
64994         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64995         on i386, x86_64, ia64.
64996         * tests/test-snprintf-posix.c: Include float.h.
64997         * tests/test-sprintf-posix.c: Likewise.
64998         * tests/test-vsnprintf-posix.c: Likewise.
64999         * tests/test-vsprintf-posix.c: Likewise.
65000
65001 2007-06-05  Bruno Haible  <bruno@clisp.org>
65002
65003         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
65004         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
65005         non-IEEE numbers on i386, x86_64, ia64.
65006         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65007         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65008         * tests/test-isnanl.h: Include float.h.
65009         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65010
65011 2007-06-05  Bruno Haible  <bruno@clisp.org>
65012
65013         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65014         also the %a / %A. Handle the %a / %A code before this extra handling.
65015
65016 2007-06-05  Bruno Haible  <bruno@clisp.org>
65017
65018         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65019         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65020
65021 2007-06-05  Bruno Haible  <bruno@clisp.org>
65022
65023         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65024         typo in variable name.
65025
65026 2007-06-05  Eric Blake  <ebb9@byu.net>
65027
65028         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65029         Reported by Simon Josefsson.
65030
65031 2007-06-04  Bruno Haible  <bruno@clisp.org>
65032
65033         Avoid test failures on some PowerPC platforms.
65034         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65035         Define differently for PowerPC.
65036         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65037         Reported by Gary V. Vaughan <gary@gnu.org>.
65038
65039 2007-06-02  Bruno Haible  <bruno@clisp.org>
65040
65041         Fix test-stdint failure on FreeBSD/ia64.
65042         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65043         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65044         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65045         * doc/headers/stdint.texi: Update.
65046
65047 2007-06-01  Bruno Haible  <bruno@clisp.org>
65048
65049         * tests/test-binary-io.c (main): Pass a third argument to open().
65050         Reported by Gary V. Vaughan <gary@gnu.org>.
65051
65052 2007-06-01  Bruno Haible  <bruno@clisp.org>
65053
65054         * doc/functions/frexpl.texi: Update for mingw.
65055
65056 2007-06-01  Bruno Haible  <bruno@clisp.org>
65057
65058         * tests/test-lseek.c (main): Disable test of errno for invalid third
65059         argument.
65060         * doc/functions/lseek.texi: Update.
65061         Reported by Gary V. Vaughan <gary@gnu.org>.
65062
65063 2007-05-28  Bruno Haible  <bruno@clisp.org>
65064
65065         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65066
65067 2007-05-31  Eric Blake  <ebb9@byu.net>
65068
65069         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65070         cross compiling.
65071
65072 2007-05-30  Eric Blake  <ebb9@byu.net>
65073         and Bruno Haible  <bruno@clisp.org>
65074
65075         Work around mingw test failures exposed by m4-1.4.9b.
65076         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65077         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65078         moment.
65079
65080 2007-05-30  Bruno Haible  <bruno@clisp.org>
65081
65082         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65083         assuming that they are closed. Needed on HP-UX 11.
65084
65085 2007-05-29  Bruno Haible  <bruno@clisp.org>
65086
65087         Fix a problem with #include_next.
65088         * lib/dirent_.h: Split the double-inclusion guard.
65089         * lib/fcntl_.h: Likewise.
65090         * lib/float_.h: Likewise.
65091         * lib/iconv_.h: Likewise.
65092         * lib/inttypes_.h: Likewise.
65093         * lib/locale_.h: Likewise.
65094         * lib/math_.h: Likewise.
65095         * lib/netinet_in_.h: Likewise.
65096         * lib/search_.h: Likewise.
65097         * lib/signal_.h: Likewise.
65098         * lib/stdint_.h: Likewise.
65099         * lib/stdio_.h: Likewise.
65100         * lib/stdlib_.h: Likewise.
65101         * lib/string_.h: Likewise.
65102         * lib/sys_select_.h: Likewise.
65103         * lib/sys_socket_.h: Likewise.
65104         * lib/sys_stat_.h: Likewise.
65105         * lib/sys_time_.h: Likewise.
65106         * lib/sysexits_.h: Likewise.
65107         * lib/time_.h: Likewise.
65108         * lib/unistd_.h: Likewise.
65109         * lib/wchar_.h: Likewise.
65110         * lib/wctype_.h: Likewise.
65111
65112 2007-05-29  Bruno Haible  <bruno@clisp.org>
65113
65114         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65115         for the moment.
65116
65117 2007-05-29  Bruno Haible  <bruno@clisp.org>
65118
65119         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65120         invocation.
65121         Reported by Eric Blake.
65122
65123 2007-05-29  Bruno Haible  <bruno@clisp.org>
65124
65125         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65126         compiling case.
65127
65128 2007-05-29  Eric Blake  <ebb9@byu.net>
65129             Bruno Haible  <bruno@clisp.org>
65130
65131         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65132         cross compiles.
65133
65134 2007-05-28  Eric Blake  <ebb9@byu.net>
65135
65136         * modules/closein-tests (test_closein_LDADD): Support test on
65137         cygwin with libtool.
65138
65139 2007-05-28  Bruno Haible  <bruno@clisp.org>
65140
65141         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65142         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65143         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65144         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65145         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65146         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65147         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65148         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65149         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65150
65151 2007-05-28  Eric Blake  <ebb9@byu.net>
65152
65153         Unconditionally include <config.h> in unit tests.
65154         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
65155         * tests/test-allocsa.c, tests/test-arcfour.c,
65156         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
65157         tests/test-array_list.c, tests/test-array_oset.c,
65158         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
65159         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
65160         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
65161         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
65162         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
65163         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
65164         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
65165         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
65166         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
65167         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
65168         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
65169         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
65170         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
65171         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
65172         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
65173         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
65174         test-md5.c, test-memmem.c, test-printf-posix.c,
65175         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
65176         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
65177         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
65178         test-strcasestr.c, test-striconv.c, test-striconveh.c,
65179         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65180         test-vasnprintf-posix2.c, test-vasnprintf.c,
65181         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65182         test-vfprintf-posix.c, test-vprintf-posix.c,
65183         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65184         test-xvasprintf.c: Likewise.
65185
65186 2007-05-28  Bruno Haible  <bruno@clisp.org>
65187
65188         * gnulib-tool (func_import): Remember the --with-tests command-line
65189         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65190         Reported by Eric Blake.
65191
65192 2007-05-28  Bruno Haible  <bruno@clisp.org>
65193
65194         * modules/ftell-tests: New file.
65195         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65196         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65197
65198         * lib/ftell.c: New file.
65199         * modules/ftell: New file.
65200         * m4/ftell.m4: New file.
65201         * doc/functions/ftell.texi: Update.
65202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65203         REPLACE_FTELL.
65204         * lib/stdio_.h (rpl_ftell): New declaration.
65205         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65206         REPLACE_FTELL.
65207
65208 2007-05-28  Eric Blake  <ebb9@byu.net>
65209
65210         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65211
65212 2007-05-28  Bruno Haible  <bruno@clisp.org>
65213
65214         * modules/fseek-tests: New file.
65215         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65216         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65217
65218         * lib/fseek.c: New file.
65219         * modules/fseek: New file.
65220         * m4/fseek.m4: New file.
65221         * doc/functions/fseek.texi: Update.
65222         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65223         REPLACE_FSEEK.
65224         * lib/stdio_.h (rpl_fseek): New declaration.
65225         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65226         REPLACE_FSEEK.
65227
65228 2007-05-28  Bruno Haible  <bruno@clisp.org>
65229
65230         * lib/stdio_.h (fflush): More comments.
65231
65232 2007-05-28  Bruno Haible  <bruno@clisp.org>
65233
65234         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65235         runtime test.
65236
65237 2007-05-28  Eric Blake  <ebb9@byu.net>
65238
65239         Improve lseek module.
65240         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
65241         * lib/unistd_.h (lseek): Scale back link warning message.
65242         * tests/test-lseek.c: Beef up test.
65243         * tests/test-lseek.sh: Exercise more facets of lseek.
65244         Reported by Bruno Haible.
65245
65246 2007-05-28  Bruno Haible  <bruno@clisp.org>
65247
65248         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
65249         to define.
65250
65251 2007-05-27  Bruno Haible  <bruno@clisp.org>
65252
65253         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65254
65255 2007-05-27  Bruno Haible  <bruno@clisp.org>
65256
65257         * modules/openmp: New file.
65258         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65259         Noah Misch.
65260
65261 2007-05-26  Bruno Haible  <bruno@clisp.org>
65262
65263         * modules/chdir-long (Depends-on): Add fchdir.
65264         * modules/chdir-safer (Depends-on): Likewise.
65265         * modules/fts (Depends-on): Likewise.
65266         * modules/fts-lgpl (Depends-on): Likewise.
65267         * modules/openat (Depends-on): Likewise.
65268         * modules/savewd (Depends-on): Likewise.
65269
65270 2007-05-24  Eric Blake  <ebb9@byu.net>
65271
65272         Fix lseek on mingw.
65273         * modules/lseek: New module.
65274         * m4/lseek.m4: New file.
65275         * lib/lseek.c: New file.
65276         * modules/lseek-tests: New file.
65277         * tests/test-lseek.c: New file.
65278         * tests/test-lseek.sh: New file.
65279         * MODULES.html.sh: Document lseek module.
65280         * modules/fflush (Depends-on): Add lseek, fseeko.
65281         * modules/fseeko (Depends-on): Likewise.
65282         * modules/ftello (Depends-on): Likewise.
65283         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65284         broken.
65285         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65286         broken.
65287         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65288         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65289         * lib/ftello.c (rpl_ftello): Likewise.
65290         * tests/test-fseeko.c (main): Test this.
65291         * tests/test-fseeko.sh: Likewise.
65292         * tests/test-ftello.c (main): Likewise.
65293         * tests/test-ftello.sh: Likewise.
65294         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65295         implies replacing fseek.
65296         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65297         HAVE_FTELLO.
65298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65299         * modules/unistd (Makefile.am): Likewise.
65300         * lib/unistd_.h (lseek): Declare a replacement.
65301         * doc/functions/lseek.texi (lseek): Document this fix.
65302         * doc/functions/fseek.texi (fseek): Likewise.
65303         * doc/functions/ftell.texi (ftell): Likewise.
65304
65305 2007-05-24  Bruno Haible  <bruno@clisp.org>
65306
65307         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65308         in the printed representation of a NaN.
65309         * tests/test-vasprintf-posix.c (test_function): Likewise.
65310         * tests/test-snprintf-posix.h (test_function): Likewise.
65311         * tests/test-sprintf-posix.h (test_function): Likewise.
65312         Reported by Eric Blake.
65313
65314 2007-05-23  Eric Blake  <ebb9@byu.net>
65315
65316         Fix fseeko/ftello on cygwin 1.5.24.
65317         * doc/functions/fseeko.texi (fseeko): Document the fix.
65318         * doc/functions/ftello.texi (ftello): Document the fix.
65319         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65320         * doc/functions/stdout.text (stdout): New file.
65321         * doc/functions/stderr.text (stderr): New file.
65322         * doc/gnulib.texi (Function Substitutes): Use new files.
65323         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65324         prior to 1.7.0.
65325         * tests/test-ftello.c (main): Likewise for ftello.
65326         * tests/test-fseeko.sh: New file.
65327         * tests/test-ftello.sh: New file.
65328         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65329         with seekable stdin.
65330         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65331         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65332         (gl_REPLACE_FSEEKO): New macro.
65333         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65334         * modules/fseeko (Files): Distribute fseeko.c.
65335         * modules/ftello (Files): Distribute ftello.c.
65336         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65337         mode.
65338         * lib/ftello.c (rpl_ftello): New file.
65339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65340         fseeko, ftello.
65341         (gl_STDIN_LARGE_OFFSET): New macro.
65342         * modules/stdio (Makefile.am): Perform the replacement.
65343         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65344
65345 2007-05-23  Bruno Haible  <bruno@clisp.org>
65346
65347         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65348         GNULIB_POSIXCHECK is defined.
65349
65350 2007-05-21  Bruno Haible  <bruno@clisp.org>
65351
65352         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65353         Check also the output for NaN arguments. When cross-compiling, guess
65354         no on IRIX.
65355         * lib/vasnprintf.c: Update comments.
65356         * tests/test-vasnprintf-posix.c (strisnan): New function.
65357         (test_function): Use it.
65358         * tests/test-vasprintf-posix.c (strisnan): New function.
65359         (test_function): Use it.
65360         * tests/test-snprintf-posix.h (strisnan): New function.
65361         (test_function): Use it.
65362         * tests/test-sprintf-posix.h (strisnan): New function.
65363         (test_function): Use it.
65364         Reported by Eric Blake.
65365
65366 2007-05-20  Bruno Haible  <bruno@clisp.org>
65367
65368         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65369         numbers that fails on BeOS.
65370         * doc/functions/frexpl.texi: Update.
65371
65372 2007-05-20  Jim Meyering  <jim@meyering.net>
65373
65374         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65375         forced upon us by glibc-2.6.
65376
65377 2007-05-20  Bruno Haible  <bruno@clisp.org>
65378
65379         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65380         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65381         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65382         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65383         NEED_PRINTF_INFINITE.
65384         (is_infinitel): New function.
65385         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65386         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65387         gl_PREREQ_VASNPRINTF_INFINITE.
65388         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65389         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65390         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65391         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65392         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65393         gl_PREREQ_VASNPRINTF_INFINITE.
65394         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65395         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65396         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65397         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65398         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65399         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65400         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65401         * doc/functions/fprintf.texi: Update.
65402         * doc/functions/printf.texi: Update.
65403         * doc/functions/snprintf.texi: Update.
65404         * doc/functions/sprintf.texi: Update.
65405         * doc/functions/vfprintf.texi: Update.
65406         * doc/functions/vprintf.texi: Update.
65407         * doc/functions/vsnprintf.texi: Update.
65408         * doc/functions/vsprintf.texi: Update.
65409
65410 2007-05-20  Bruno Haible  <bruno@clisp.org>
65411
65412         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65413         was not found in libc.
65414         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65415
65416 2007-05-20  Bruno Haible  <bruno@clisp.org>
65417
65418         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65419         printed as "-nan" instead of "nan".
65420         * tests/test-vasprintf-posix.c (test_function): Likewise.
65421         * tests/test-snprintf-posix.h (test_function): Likewise.
65422         * tests/test-sprintf-posix.h (test_function): Likewise.
65423         Needed for HP-UX 11.
65424
65425 2007-05-20  Jim Meyering  <jim@meyering.net>
65426
65427         Fix buggy test for the fchownat-deref bug.
65428         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65429         symlink required for the run-test.  Without it, this test would
65430         always declare that fchownat doesn't work, and client code would
65431         unnecessarily use the replacement function with fixed libc.
65432         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65433         Reported by Greg Schafer.
65434
65435 2007-05-19  Bruno Haible  <bruno@clisp.org>
65436
65437         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65438         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65439         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65440         Needed for IRIX 6.5 and Solaris 2.5.1.
65441
65442 2007-05-19  Bruno Haible  <bruno@clisp.org>
65443
65444         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65445         (test_function): Skip tests involving -0.0 on platforms where
65446         -0.0 = 0.0.
65447         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65448         (test_function): Skip tests involving -0.0 on platforms where
65449         -0.0 = 0.0.
65450         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65451         (test_function): Skip tests involving -0.0 on platforms where
65452         -0.0 = 0.0.
65453         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65454         (test_function): Skip tests involving -0.0 on platforms where
65455         -0.0 = 0.0.
65456         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65457         tests.
65458         * tests/test-printf-posix.h (test_function): Likewise.
65459         * tests/test-printf-posix.output: Remove all -0.0 related results.
65460         Needed for IRIX 6.5.
65461
65462 2007-05-19  Bruno Haible  <bruno@clisp.org>
65463
65464         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65465         printed as "nan0x7fffffff" instead of "nan".
65466         * tests/test-vasprintf-posix.c (test_function): Likewise.
65467         * tests/test-snprintf-posix.h (test_function): Likewise.
65468         * tests/test-sprintf-posix.h (test_function): Likewise.
65469         * tests/test-fprintf-posix.h (NaN): Remove macro.
65470         (test_function): Remove all NaN related tests.
65471         * tests/test-printf-posix.h (NaN): Remove macro.
65472         (test_function): Remove all NaN related tests.
65473         * tests/test-printf-posix.output: Remove all NaN related results.
65474         Needed for IRIX 6.5.
65475
65476 2007-05-19  Bruno Haible  <bruno@clisp.org>
65477
65478         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65479         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65480
65481 2007-05-19  Bruno Haible  <bruno@clisp.org>
65482
65483         * lib/float_.h: New file.
65484         * m4/float_h.m4: New file.
65485         * modules/float: New file.
65486         * modules/isnanl (Dependencies): Add float.
65487         * modules/isnanl-nolibm (Dependencies): Likewise.
65488         * modules/mathl (Dependencies): Likewise.
65489         * modules/printf-frexpl (Dependencies): Likewise.
65490         * modules/signbit (Dependencies): Likewise.
65491         * modules/vasnprintf (Dependencies): Likewise.
65492         * doc/headers/float.texi: Update.
65493
65494 2007-05-19  Jim Meyering  <jim@meyering.net>
65495
65496         * lib/utimens.c (gl_futimens): Rename from futimens,
65497         now that glibc-2.6 declares futimens.
65498         * lib/utimens.h: Likewise.
65499
65500 2007-05-19  Bruno Haible  <bruno@clisp.org>
65501
65502         Avoid test failures on mingw.
65503         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65504         * tests/test-printf-posix.sh: Likewise.
65505         * tests/test-vfprintf-posix.sh: Likewise.
65506         * tests/test-vprintf-posix.sh: Likewise.
65507
65508 2007-05-19  Bruno Haible  <bruno@clisp.org>
65509
65510         Fix *printf result for NaN, Inf, -0.0 on mingw.
65511         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65512         * lib/vasnprintf.c: Include math.h and isnan.h.
65513         (is_infinite_or_zero): New function.
65514         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65515         values in the %f, %F, %e, %E, %g, %G directives.
65516         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65517         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65518         gl_PRINTF_INFINITE and test its result. Invoke
65519         gl_PREREQ_VASNPRINTF_INFINITE.
65520         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65521         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65522         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65523         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65524         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65525         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65526         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65527         * doc/functions/fprintf.texi: Update.
65528         * doc/functions/printf.texi: Update.
65529         * doc/functions/snprintf.texi: Update.
65530         * doc/functions/sprintf.texi: Update.
65531         * doc/functions/vfprintf.texi: Update.
65532         * doc/functions/vprintf.texi: Update.
65533         * doc/functions/vsnprintf.texi: Update.
65534         * doc/functions/vsprintf.texi: Update.
65535
65536 2007-05-19  Bruno Haible  <bruno@clisp.org>
65537
65538         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65539         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65540         Instead of multiplying with 10^k, set extra_zeroes to k.
65541         (scale10_round_long_double): Remove function.
65542
65543 2007-05-18  Bruno Haible  <bruno@clisp.org>
65544
65545         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65546         introduced on 2007-05-06.
65547
65548 2007-05-18  Bruno Haible  <bruno@clisp.org>
65549
65550         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65551         %g directives.
65552         * tests/test-vasprintf-posix.c (test_function): Likewise.
65553         * tests/test-snprintf-posix.h (test_function): Likewise.
65554         * tests/test-sprintf-posix.h (test_function): Likewise.
65555
65556 2007-05-18  Bruno Haible  <bruno@clisp.org>
65557
65558         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65559         (strmatch): New function.
65560         (test_function): Test the %f directive on numbers of various exponents.
65561         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65562         (strmatch): New function.
65563         (test_function): Test the %f directive on numbers of various exponents.
65564         * tests/test-snprintf-posix.h (strmatch): New function.
65565         (test_function): Test the %f directive on numbers of various exponents.
65566         * tests/test-sprintf-posix.h (strmatch): New function.
65567         (test_function): Test the %f directive on numbers of various exponents.
65568         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65569         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65570         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65571         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65572
65573 2007-05-18  Bruno Haible  <bruno@clisp.org>
65574
65575         Add support for 'long double' number output.
65576         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65577         * lib/vasnprintf.c: Include math.h and float+.h.
65578         (mp_limb_t): New type.
65579         (GMP_LIMB_BITS): New macro.
65580         (mp_twolimb_t): New type.
65581         (GMP_TWOLIMB_BITS): New macro.
65582         (mpn_t): New type.
65583         (multiply, divide, convert_to_decimal, decode_long_double,
65584         scale10_round_long_double, scale10_round_decimal_long_double,
65585         floorlog10l): New functions.
65586         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65587         for the %f, %F, %e, %E, %g, %G directives.
65588         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65589         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65590         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65591         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65592         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65593         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65594         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65595         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65596         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65597         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65598         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65599         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65600         * modules/snprintf-posix (Depends-on): Likewise.
65601         * modules/sprintf-posix (Depends-on): Likewise.
65602         * modules/vasnprintf-posix (Depends-on): Likewise.
65603         * modules/vasprintf-posix (Depends-on): Likewise.
65604         * modules/vfprintf-posix (Depends-on): Likewise.
65605         * modules/vsnprintf-posix (Depends-on): Likewise.
65606         * modules/vsprintf-posix (Depends-on): Likewise.
65607         * modules/vasnprintf (Files): Add lib/float+.h.
65608         * doc/functions/fprintf.texi: Update.
65609         * doc/functions/printf.texi: Update.
65610         * doc/functions/snprintf.texi: Update.
65611         * doc/functions/sprintf.texi: Update.
65612         * doc/functions/vfprintf.texi: Update.
65613         * doc/functions/vprintf.texi: Update.
65614         * doc/functions/vsnprintf.texi: Update.
65615         * doc/functions/vsprintf.texi: Update.
65616
65617 2007-05-18  Bruno Haible  <bruno@clisp.org>
65618
65619         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65620
65621 2007-05-18  Bruno Haible  <bruno@clisp.org>
65622
65623         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65624         for printing 64-bit integers. Needed for mingw.
65625
65626 2007-05-18  Bruno Haible  <bruno@clisp.org>
65627
65628         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65629         gl_FUNC_FREXPL_WORKS.
65630         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65631
65632 2007-05-18  Bruno Haible  <bruno@clisp.org>
65633
65634         * modules/frexpl-nolibm-tests: New file.
65635
65636         * modules/frexpl-nolibm: New file.
65637         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65638
65639 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65640
65641         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65642         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65643         GCC 4.2, which otherwise issues a lot of warnings.
65644         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65645         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65646         Likewise.
65647         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65648         * modules/iconv_open (iconv.h): Likewise.
65649         * modules/locale (locale.h): Likewise.
65650         * modules/netinet_in (netinet/in.h): Likewise.
65651         * modules/sys_select (sys_select.h): Likewise.
65652         * modules/sys_socket (sys/socket.h): Likewise.
65653         * modules/sys_stat (sys/stat.h): Likewise.
65654         * modules/sysexits (sysexits.h): Likewise.
65655         * modules/unistd (unistd.h): Likewise.
65656
65657 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65658
65659         * modules/closein-tests (Makefile.am): Distribute
65660         `test-closein.sh'.
65661
65662 2007-05-17  Bruno Haible  <bruno@clisp.org>
65663
65664         * tests/test-printf-posix.output: Renamed from
65665         tests/test-fprintf-posix.out.
65666         * modules/fprintf-posix-tests: Update.
65667         * modules/printf-posix-tests: Update.
65668         * modules/vfprintf-posix-tests: Update.
65669         * modules/vprintf-posix-tests: Update.
65670         * tests/test-fprintf-posix.sh: Update.
65671         * tests/test-printf-posix.sh: Update.
65672         * tests/test-vfprintf-posix.sh: Update.
65673         * tests/test-vprintf-posix.sh: Update.
65674         Reported by Ralf Wildenhues.
65675
65676 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65677
65678         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65679         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65680         GCC 4.2, which otherwise issues a lot of warnings.
65681         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65682         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65683         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65684         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65685         it should no longer be needed.
65686         * lib/string_.h: Likewise.
65687         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65688         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65689         * modules/inttypes (inttypes.h): Likewise.
65690         * modules/math (math.h): Likewise.
65691         * modules/search (search.h): Likewise.
65692         * modules/signal (signal.h): Likewise.
65693         * modules/stdint (stdint.h): Likewise.
65694         * modules/stdio (stdio.h): Likewise.
65695         * modules/stdlib (stdlib.h): Likewise.
65696         * modules/string (string.h): Likewise.
65697         * modules/sys_time (sys/time.h): Likewise.
65698         * modules/time (time.h): Likewise.
65699         * modules/wchar (wchar.h): Likewise.
65700         * modules/wctype (wtype.h): Likewise.
65701
65702 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65703
65704         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65705
65706 2007-05-13  Bruno Haible  <bruno@clisp.org>
65707
65708         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65709         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65710         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65711         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65712         (gl_PREREQ_STRTOK_R): Don't require it here.
65713
65714 2007-05-13  Bruno Haible  <bruno@clisp.org>
65715
65716         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65717         when used in C++ mode.
65718
65719 2007-05-12  Bruno Haible  <bruno@clisp.org>
65720
65721         * lib/linebuffer.h: Tweak doc.
65722         * lib/linebuffer.c: Likewise.
65723
65724 2007-05-12  James Youngman  <jay@gnu.org>
65725
65726         * lib/linebuffer.c (readlinebuffer_delim): New function,
65727         like readlinebuffer, but use a caller-specified delimiter.
65728         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65729         as the delimiter.
65730         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65731
65732 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65733
65734         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65735         * modules/openat (Files): Remove openat-die.c.
65736         (Depends-on): Add openat-die.
65737         * modules/openat-die: New module.
65738
65739 2007-05-06  Bruno Haible  <bruno@clisp.org>
65740
65741         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65742         Update with info about Cygwin.
65743         * doc/functions/fprintf.texi: Update.
65744         * doc/functions/printf.texi: Update.
65745         * doc/functions/snprintf.texi: Update.
65746         * doc/functions/sprintf.texi: Update.
65747         * doc/functions/vfprintf.texi: Update.
65748         * doc/functions/vprintf.texi: Update.
65749         * doc/functions/vsnprintf.texi: Update.
65750         * doc/functions/vsprintf.texi: Update.
65751         Reported by Eric Blake.
65752
65753 2007-05-06  Bruno Haible  <bruno@clisp.org>
65754
65755         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65756         padding ourselves for the floating-point directives.
65757         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65758         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65759         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65760         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65761         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65762         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65763         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65764         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65765         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65766         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65767         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65768         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65769         * tests/test-snprintf-posix.h (test_function): Also check the width
65770         and some flags in the %f directive.
65771         * tests/test-sprintf-posix.h (test_function): Likewise.
65772         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65773         * tests/test-vasprintf-posix.c (test_function): Likewise.
65774         * doc/functions/fprintf.texi: Update.
65775         * doc/functions/printf.texi: Update.
65776         * doc/functions/snprintf.texi: Update.
65777         * doc/functions/sprintf.texi: Update.
65778         * doc/functions/vfprintf.texi: Update.
65779         * doc/functions/vprintf.texi: Update.
65780         * doc/functions/vsnprintf.texi: Update.
65781         * doc/functions/vsprintf.texi: Update.
65782
65783 2007-05-06  Bruno Haible  <bruno@clisp.org>
65784
65785         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65786         pass the ' flag character to sprintf or snprintf.
65787         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65788         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65789         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65790         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65791         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65792         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65793         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65794         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65795         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65796         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65797         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65798         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65799         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65800         flag.
65801         * tests/test-sprintf-posix.h (test_function): Likewise.
65802         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65803         * tests/test-vasprintf-posix.c (test_function): Likewise.
65804         * doc/functions/fprintf.texi: Update.
65805         * doc/functions/printf.texi: Update.
65806         * doc/functions/snprintf.texi: Update.
65807         * doc/functions/sprintf.texi: Update.
65808         * doc/functions/vfprintf.texi: Update.
65809         * doc/functions/vprintf.texi: Update.
65810         * doc/functions/vsnprintf.texi: Update.
65811         * doc/functions/vsprintf.texi: Update.
65812
65813 2007-05-01  Bruno Haible  <bruno@clisp.org>
65814
65815         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65816
65817 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65818
65819         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65820         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65821
65822 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65823
65824         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65825         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65826         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65827
65828 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65829
65830         * lib/argp-help.c (struct hol_entry): New member `ord'.
65831         (HOL_ENTRY_PTRCMP): Use ord for comparison
65832         (hol_sort): Initialize ord.
65833
65834 2007-05-01  Bruno Haible  <bruno@clisp.org>
65835
65836         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65837         Reported by Eric Blake.
65838         * doc/gnulib.texi (Function Substitutes): Update.
65839
65840 2007-05-01  Bruno Haible  <bruno@clisp.org>
65841
65842         * doc/functions.texi: Remove file, now redundant through
65843         doc/functions/*.texi.
65844
65845 2007-05-01  Bruno Haible  <bruno@clisp.org>
65846
65847         * modules/argp (Depends-on): Add sleep.
65848
65849 2007-05-01  Bruno Haible  <bruno@clisp.org>
65850
65851         * modules/sleep-tests: New file.
65852         * tests/test-sleep.c: New file.
65853
65854         * modules/sleep: New file.
65855         * lib/sleep.c: New file.
65856         * m4/sleep.m4: New file.
65857         * lib/unistd_.h (sleep): New declaration.
65858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65859         HAVE_SLEEP.
65860         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65861         * doc/functions/sleep.texi: Document the sleep module.
65862
65863 2007-05-01  Bruno Haible  <bruno@clisp.org>
65864
65865         * lib/sigprocmask.h: Remove file.
65866         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65867         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65868         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65869         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65870         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65871         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65872         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65873         HAVE_SIGSET_T as a shell variable.
65874         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65875         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65876         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65877         (Depends-on): Add signal. Remove verify.
65878         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65879         (Include): Mention <signal.h> instead of sigprocmask.h.
65880         * NEWS: Mention the change.
65881         * lib/fatal-signal.c: Don't include sigprocmask.h.
65882
65883 2007-05-01  Bruno Haible  <bruno@clisp.org>
65884
65885         * modules/signal: New file.
65886         * lib/signal_.h: New file.
65887         * m4/signal_h.m4: New file.
65888
65889 2007-05-01  Bruno Haible  <bruno@clisp.org>
65890
65891         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65892         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65893         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65894         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65895
65896 2007-05-01  Bruno Haible  <bruno@clisp.org>
65897
65898         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65899         configure time.
65900         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65901         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65902         * modules/sys_stat (Makefile.am): Substitute their values into
65903         sys/stat.h.
65904
65905 2007-05-01  Bruno Haible  <bruno@clisp.org>
65906
65907         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65908         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65909         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65910
65911 2007-05-01  Bruno Haible  <bruno@clisp.org>
65912
65913         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65914         'assert' module here.
65915
65916 2007-05-01  Bruno Haible  <bruno@clisp.org>
65917
65918         * doc/functions/*.texi: New files.
65919         * doc/functions/google-ranking.txt: New file.
65920         * doc/gnulib.texi (Function Substitutes): New chapter.
65921         (ctime, inet_ntoa): Remove sections.
65922         * doc/ctime.texi: Remove file.
65923         * doc/inet_ntoa.texi: Remove file.
65924         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65925         dependencies.
65926         (%.info): New rule, specifying a --reference-limit.
65927
65928 2007-05-01  Bruno Haible  <bruno@clisp.org>
65929
65930         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65931
65932 2007-05-01  Bruno Haible  <bruno@clisp.org>
65933
65934         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65935         the portability of 'mkdir' to mingw systems.
65936
65937 2007-05-01  Bruno Haible  <bruno@clisp.org>
65938
65939         * doc/headers/google-ranking.txt: New file.
65940
65941 2007-04-30  Eric Blake  <ebb9@byu.net>
65942
65943         Prefer fseeko to fseek.
65944         * modules/getpass (Depends-on): Add fseeko.
65945         * lib/getpass.c (getpass): Use fseeko, not fseek.
65946
65947 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65948
65949         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65950         assumes the sorting is stable, while most qsort implementations
65951         are not.  Use argument addresses to ensure they never compare as
65952         equal.
65953
65954         * tests/test-argp-2.sh (usage-indent test): Fix output
65955         (func_compare): Restore diff options
65956         * tests/test-argp.c: Restore #include "progname.h"
65957
65958 2007-04-29  Bruno Haible  <bruno@clisp.org>
65959
65960         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65961         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65962         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65963         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65964         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65965         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65966         (TESTS, check_PROGRAMS): Add test-snprintf.
65967         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65968         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65969         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65970         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65971         assertions that fail on HP-UX, OSF/1, or IRIX.
65972         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65973
65974 2007-04-29  Bruno Haible  <bruno@clisp.org>
65975
65976         * MODULES.html.sh (posix_functions): Remove 'contents'.
65977
65978 2007-04-29  Karl Berry  <karl@gnu.org>
65979
65980         * config/srclist.txt (gendocs_template_min): new entry.
65981
65982 2007-04-29  Bruno Haible  <bruno@clisp.org>
65983
65984         Work around fpurge bug on BSD systems.
65985         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65986         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65987         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65988         fpurge to rpl_fpurge if the system already has this function.
65989         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65990         the case where the system already has this function. Correct invariants
65991         on BSD systems.
65992         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65993         BSD systems.
65994
65995 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65996
65997         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65998         proposed by Sven Verdoolaege.
65999
66000         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
66001         options.
66002         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
66003         (usage and help tests): Update
66004
66005 2007-04-29  Bruno Haible  <bruno@clisp.org>
66006
66007         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66008         Print more information in case of failure. Disable a test on BeOS.
66009
66010 2007-04-29  Bruno Haible  <bruno@clisp.org>
66011
66012         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66013         This helps debugging on systems on which no gdb is available.
66014
66015 2007-04-29  Bruno Haible  <bruno@clisp.org>
66016
66017         * lib/freading.h: Improve comments.
66018         * lib/fwriting.h: Likewise.
66019         * tests/test-freading.c (main): Don't check freading immediately after
66020         repositioning. Needed for glibc.
66021
66022 2007-04-29  Bruno Haible  <bruno@clisp.org>
66023
66024         * lib/freading.c (freading): Trivial simplification.
66025
66026 2007-04-28  Bruno Haible  <bruno@clisp.org>
66027
66028         * tests/test-fwriting.c (main): Also test the interaction between
66029         fflush and fwriting.
66030         * modules/fwriting-tests (Depends-on): Add fflush.
66031
66032         * tests/test-freading.c (main): Also test the interaction between
66033         fflush and freading.
66034         * modules/freading-tests (Depends-on): Add fflush.
66035
66036 2007-04-28  Bruno Haible  <bruno@clisp.org>
66037
66038         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66039         fseeko and ftello.
66040         Suggested by Eric Blake.
66041
66042 2007-04-28  Jim Meyering  <jim@meyering.net>
66043
66044         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66045         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66046         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66047
66048 2007-04-27  Eric Blake  <ebb9@byu.net>
66049
66050         * doc/headers/assert.texi (assert.h): Document assert module use.
66051
66052 2007-04-27  Bruno Haible  <bruno@clisp.org>
66053
66054         * doc/headers/*.texi: New files.
66055         * doc/gnulib.texi (Header File Substitutes): New chapter.
66056         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66057         dependencies.
66058         (standards.info ,standards.html, standards.dvi): Update dependencies.
66059         (mostlyclean, clean): New targets.
66060
66061 2007-04-27  Bruno Haible  <bruno@clisp.org>
66062
66063         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66064         * modules/sysexits (Files, Makefile.am): Update.
66065
66066         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66067         * modules/sys_socket (Files, Makefile.am): Update.
66068
66069         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66070         * modules/sys_stat (Files, Makefile.am): Update.
66071
66072 2007-04-27  Eric Blake  <ebb9@byu.net>
66073
66074         * lib/freading.h: Improve comments.
66075         * lib/fwriting.h: Likewise.
66076         * lib/fflush.c: Likewise.
66077
66078         Fix closein for mingw.
66079         * modules/closein-tests: Add tests for closein.
66080         * tests/test-closein.c: New file.
66081         * tests/test-closein.sh: Likewise.
66082         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66083         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66084
66085 2007-04-27  Bruno Haible  <bruno@clisp.org>
66086
66087         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66088         version is < 6.
66089         * lib/math_.h [__DECC]: Likewise.
66090         * lib/stdio_.h [__DECC]: Likewise.
66091         * lib/stdlib_.h [__DECC]: Likewise.
66092         * lib/string_.h [__DECC]: Likewise.
66093         * lib/time_.h [__DECC]: Likewise.
66094         * lib/wchar_.h [__DECC]: Likewise.
66095         * lib/wctype_.h [__DECC]: Likewise.
66096
66097 2007-04-27  Bruno Haible  <bruno@clisp.org>
66098
66099         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66100
66101 2007-04-27  Bruno Haible  <bruno@clisp.org>
66102
66103         * lib/fflush.c: Add comments.
66104         * modules/fpurge-tests (Depends-on): Add fflush.
66105         * modules/freadable-tests (Depends-on): Likewise.
66106         * modules/fwritable-tests (Depends-on): Likewise.
66107
66108 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66109
66110         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66111         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66112         Report by Bruno Haible <bruno@clisp.org>.
66113
66114 2007-04-26  Eric Blake  <ebb9@byu.net>
66115
66116         Fix fflush on mingw.
66117         * modules/fflush (Depends-on): Add freading.
66118         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66119         but unread data.
66120
66121 2007-04-26  Eric Blake  <ebb9@byu.net>
66122         and Bruno Haible  <bruno@clisp.org>
66123
66124         Implement freading and fwriting.
66125         * lib/freading.c: New file.
66126         * lib/freading.h: Likewise.
66127         * m4/freading.m4: Likewise.
66128         * modules/freading: Likewise.
66129         * modules/freading-tests: Likewise.
66130         * tests/test-freading.c: Likewise.
66131         * lib/fwriting.c: New file.
66132         * lib/fwriting.h: Likewise.
66133         * m4/fwriting.m4: Likewise.
66134         * modules/fwriting: Likewise.
66135         * modules/fwriting-tests: Likewise.
66136         * tests/test-fwriting.c: Likewise.
66137         * MODULES.html.sh (File stream based Input/Output): Mention them.
66138
66139 2007-04-26  Bruno Haible  <bruno@clisp.org>
66140
66141         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66142         'long' when we assume it.
66143         Suggested by Eric Blake.
66144
66145 2007-04-26  Bruno Haible  <bruno@clisp.org>
66146
66147         Ensure fseeko, ftello are declared on glibc systems.
66148         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
66149         * modules/fseeko (configure.ac-early): Likewise.
66150         * modules/ftello (configure.ac-early): Likewise.
66151         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
66152         AC_FUNC_FSEEKO for this.
66153         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
66154         (gl_CHECK_FSEEKO): Remove macro.
66155
66156 2007-04-26  Bruno Haible  <bruno@clisp.org>
66157
66158         * tests/test-fflush.c (main): Also check the ftell result after
66159         fflush and fseek/fseeko.
66160         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
66161         file descriptor position cache in the stream.
66162         * lib/fseeko.c (rpl_fseeko): Likewise.
66163
66164 2007-04-26  Bruno Haible  <bruno@clisp.org>
66165
66166         * modules/fflush-tests (Depends-on): Add fseeko.
66167
66168 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
66169             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66170
66171         * lib/argz_.h: ensure error_t definition is obtained in same
66172         mechanism system argz.h would have.
66173         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
66174         argz facilities are known bad.  Err on the side of caution if
66175         cross-compiling.
66176
66177 2007-04-25  Eric Blake  <ebb9@byu.net>
66178
66179         * lib/fpurge.c (includes): Use stdlib.h for free.
66180         * tests/test-fflush.c (main): Also test fflush-fseeko.
66181
66182 2007-04-25  Bruno Haible  <bruno@clisp.org>
66183
66184         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66185         * lib/fseeko.c: New file.
66186         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66187         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66188         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66189         gl_FUNC_FSEEKO.
66190         (gl_FUNC_FSEEKO): Invoke it.
66191         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66192         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66193         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66194
66195 2007-04-25  Bruno Haible  <bruno@clisp.org>
66196
66197         * modules/fflush (Depends-on): Add ftello.
66198
66199 2007-04-25  Bruno Haible  <bruno@clisp.org>
66200
66201         * modules/ftello-tests: New file.
66202         * tests/test-ftello.c: New file.
66203
66204         * modules/ftello: New file.
66205         * m4/ftello.m4: New file.
66206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66207         HAVE_FTELLO.
66208         * lib/stdio_.h (ftello): New declaration.
66209         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66210         HAVE_FTELLO.
66211
66212 2007-04-25  Bruno Haible  <bruno@clisp.org>
66213
66214         * modules/fseeko-tests: New file.
66215         * tests/test-fseeko.c: New file.
66216
66217         * modules/fseeko: New file.
66218         * m4/fseeko.m4: New file.
66219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66220         HAVE_FSEEKO.
66221         * lib/stdio_.h (fseeko): New declaration.
66222         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66223         HAVE_FSEEKO.
66224
66225 2007-04-25  Bruno Haible  <bruno@clisp.org>
66226
66227         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66228
66229 2007-04-25  Bruno Haible  <bruno@clisp.org>
66230
66231         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66232         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66233         * tests/test-unistd.c: Likewise.
66234         * tests/test-fcntl.c: Likewise.
66235
66236 2007-04-23  Eric Blake  <ebb9@byu.net>
66237
66238         * lib/fflush.c: Fix missing include.
66239         Reported by Bruno Haible.
66240
66241 2007-04-23  Bruno Haible  <bruno@clisp.org>
66242
66243         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
66244         Reported by Eric Blake.
66245
66246 2007-04-23  Bruno Haible  <bruno@clisp.org>
66247
66248         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
66249
66250 2007-04-23  Bruno Haible  <bruno@clisp.org>
66251
66252         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
66253
66254 2007-04-23  Bruno Haible  <bruno@clisp.org>
66255
66256         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66257         Needed on HP-UX 11.
66258
66259 2007-04-16  Eric Blake  <ebb9@byu.net>
66260
66261         Make fflush rely on fpurge.
66262         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66263         open coding all variants.
66264         * modules/fflush (Depends-on): Add fpurge and unistd.
66265         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66266         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66267
66268         Fix --with-tests compilation on cygwin.
66269         * modules/argmatch-tests (Makefile.am): List gnulib library first
66270         in LDADD.
66271         * modules/argp-tests (Makefile.am): Likewise.
66272         * modules/array-list-tests (Makefile.am): Likewise.
66273         * modules/array-oset-tests (Makefile.am): Likewise.
66274         * modules/avltree-list-tests (Makefile.am): Likewise.
66275         * modules/avltree-oset-tests (Makefile.am): Likewise.
66276         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66277         * modules/carray-list-tests (Makefile.am): Likewise.
66278         * modules/dirname-tests (Makefile.am): Likewise.
66279         * modules/frexp-tests (Makefile.am): Likewise.
66280         * modules/isnanl-tests (Makefile.am): Likewise.
66281         * modules/linked-list-tests (Makefile.am): Likewise.
66282         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66283         * modules/lock-tests (Makefile.am): Likewise.
66284         * modules/rbtree-list-tests (Makefile.am): Likewise.
66285         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66286         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66287         * modules/tls-tests (Makefile.am): Likewise.
66288         * modules/tsearch-tests (Makefile.am): Likewise.
66289         * modules/xvasprintf-tests (Makefile.am): Likewise.
66290
66291         Fix fpurge for cygwin.
66292         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66293         value.
66294         * modules/fpurge-tests (Depends-on): Clean up trash.
66295
66296 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66297
66298         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66299
66300         * m4/autobuild.m4: Re-indent.
66301
66302 2007-04-13  Bruno Haible  <bruno@clisp.org>
66303
66304         * modules/fpurge-tests: New file.
66305         * tests/test-fpurge.c: New file.
66306
66307         * modules/fpurge: New file.
66308         * lib/fpurge.h: New file.
66309         * lib/fpurge.c: New file.
66310         * m4/fpurge.m4: New file.
66311
66312 2007-04-13  Bruno Haible  <bruno@clisp.org>
66313
66314         * modules/fbufmode-tests: New file.
66315         * tests/test-fbufmode.c: New file.
66316
66317         * modules/fbufmode: New file.
66318         * lib/fbufmode.h: New file.
66319         * lib/fbufmode.c: New file.
66320         * m4/fbufmode.m4: New file.
66321
66322 2007-04-13  Bruno Haible  <bruno@clisp.org>
66323
66324         * modules/fwritable-tests: New file.
66325         * tests/test-fwritable.c: New file.
66326
66327         * modules/fwritable: New file.
66328         * lib/fwritable.h: New file.
66329         * lib/fwritable.c: New file.
66330         * m4/fwritable.m4: New file.
66331
66332 2007-04-13  Bruno Haible  <bruno@clisp.org>
66333
66334         * modules/freadable-tests: New file.
66335         * tests/test-freadable.c: New file.
66336
66337         * modules/freadable: New file.
66338         * lib/freadable.h: New file.
66339         * lib/freadable.c: New file.
66340         * m4/freadable.m4: New file.
66341
66342 2007-04-13  Bruno Haible  <bruno@clisp.org>
66343
66344         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66345         MOSTLYCLEANFILES.
66346
66347 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66348
66349         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66350         gzip bootstrap.conf to avoid dragging in i18n machinery.
66351         (gnulib_tool_option): Use it.
66352
66353 2007-04-13  Bruno Haible  <bruno@clisp.org>
66354
66355         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66356         %F directives.
66357         * tests/test-vasprintf-posix.c (test_function): Likewise.
66358         * tests/test-snprintf-posix.h (test_function): Likewise.
66359         * tests/test-sprintf-posix.h (test_function): Likewise.
66360         * tests/test-fprintf-posix.h (test_function): Likewise.
66361         * tests/test-printf-posix.h (test_function): Likewise.
66362         * tests/test-fprintf-posix.out: Likewise.
66363
66364 2007-04-13  Bruno Haible  <bruno@clisp.org>
66365
66366         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66367         * modules/tls-tests (configure.ac): Likewise.
66368         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66369
66370 2007-04-13  Bruno Haible  <bruno@clisp.org>
66371
66372         * lib/tls.c (glthread_tls_get): Fix return type.
66373         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66374
66375 2007-04-12  Eric Blake  <ebb9@byu.net>
66376
66377         * modules/gettime (Depends-on): Remove gettime.
66378         Reported by Dmitry V. Levin.
66379
66380 2007-04-12  Bruno Haible  <bruno@clisp.org>
66381
66382         * modules/fflush (Include): Mention <stdio.h>.
66383         * modules/strtoimax (Include): Mention <inttypes.h>.
66384         * modules/strtoumax (Include): Likewise.
66385
66386 2007-04-12  Eric Blake  <ebb9@byu.net>
66387
66388         * .cvsignore: New file.
66389         * .gitignore: Likewise.
66390
66391 2007-04-12  Bruno Haible  <bruno@clisp.org>
66392
66393         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66394         not before, since $(LDADD) often contains libgnu.a.
66395         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66396         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66397         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66398         Needed on Cygwin.
66399
66400 2007-04-12  Eric Blake  <ebb9@byu.net>
66401
66402         Work around glibc's failure to flush stdin on fclose.
66403         * lib/closein.c (close_stdin): Flush stdin before closing.
66404
66405         Work around glibc's failure to reset seekable stdin on exit.
66406         * modules/closein: New module.
66407         * lib/closein.c: New file.
66408         * lib/closein.h: Likewise.
66409         * m4/closein.m4: Likewise.
66410         * MODULES.html.sh (File stream based Input/Output): Document it.
66411
66412 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66413
66414         * gnulib-tool: Rename generated 'autobuild' script to
66415         'do-autobuild' in --create-megatestdir output.
66416
66417         * doc/gnulib.texi (Build robot for gnulib): Fix.
66418
66419 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66420
66421         * modules/sysexits (Depends-on): Add absolute-header.
66422
66423 2007-04-12  Eric Blake  <ebb9@byu.net>
66424
66425         No need to preserve errno on success.
66426         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66427         Reported by Bruno Haible.
66428
66429 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66430
66431         * MODULES.html.sh (Support for maintaining and releasing
66432         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66433
66434 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66435
66436         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66437
66438 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66439
66440         * modules/autobuild: New module.
66441
66442         * m4/autobuild.m4: New file.
66443
66444 2007-04-11  Bruno Haible  <bruno@clisp.org>
66445
66446         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66447         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66448         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66449         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66450         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66451         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66452         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66453         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66454         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66455         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66456         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66457         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66458         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66459         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66460         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66461         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66462         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66463         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66464         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66465         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66466         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66467         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66468         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66469         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66470         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66471         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66472         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66473         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66474         Reported by Eric Blake.
66475
66476 2007-04-11  Bruno Haible  <bruno@clisp.org>
66477
66478         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66479
66480 2007-04-10  Bruno Haible  <bruno@clisp.org>
66481
66482         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66483         for NaN and Infinity. Needed on FreeBSD 6.1.
66484         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66485         regarding results for "%010a" of Infinity and NaN.
66486         * tests/test-vasprintf-posix.c (test_function): Likewise.
66487         * tests/test-snprintf-posix.h (test_function): Likewise.
66488         * tests/test-sprintf-posix.h (test_function): Likewise.
66489         * tests/test-fprintf-posix.h (test_function): Likewise.
66490         * tests/test-printf-posix.h (test_function): Likewise.
66491         * tests/test-fprintf-posix.out: Likewise.
66492
66493 2007-04-10  Bruno Haible  <bruno@clisp.org>
66494
66495         * modules/locale-tests: New file.
66496         * tests/test-locale.c: New file.
66497
66498         * modules/locale: New file.
66499         * lib/locale_.h: New file.
66500         * m4/locale_h.m4: New file.
66501
66502 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66503             Bruno Haible  <bruno@clisp.org>
66504
66505         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66506         be determined, test for availability of the copysignf, copysign,
66507         copysignl functions.
66508         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66509         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66510         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66511
66512 2007-04-09  Eric Blake  <ebb9@byu.net>
66513
66514         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66515         * modules/stdio (Makefile.am): Support fflush.
66516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66517         * modules/fflush: New file.
66518         * lib/fflush.c: Likewise.
66519         * m4/fflush.m4: Likewise.
66520         * modules/fflush-tests: New test.
66521         * tests/test-fflush.c: Likewise.
66522         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66523
66524 2007-04-06  Bruno Haible  <bruno@clisp.org>
66525
66526         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66527         (VASNPRINTF): Use signbit for faster determination whether to print a
66528         minus sign.
66529         * modules/vasnprintf (Files): Remove lib/float+.h.
66530         * modules/fprintf-posix (Depends-on): Add signbit.
66531         * modules/snprintf-posix (Depends-on): Likewise.
66532         * modules/sprintf-posix (Depends-on): Likewise.
66533         * modules/vasnprintf-posix (Depends-on): Likewise.
66534         * modules/vasprintf-posix (Depends-on): Likewise.
66535         * modules/vfprintf-posix (Depends-on): Likewise.
66536         * modules/vsnprintf-posix (Depends-on): Likewise.
66537         * modules/vsprintf-posix (Depends-on): Likewise.
66538
66539 2007-04-06  Bruno Haible  <bruno@clisp.org>
66540
66541         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66542         * tests/test-frexpl.c (main): Likewise.
66543         * tests/test-ldexpl.c (main): Likewise.
66544         * modules/frexp-tests (Depends-on): Add signbit.
66545         * modules/frexpl-tests (Depdends-on): Likewise.
66546         * modules/ldexpl-tests (Depdends-on): Likewise.
66547
66548 2007-04-06  Bruno Haible  <bruno@clisp.org>
66549
66550         * modules/signbit-tests: New file.
66551         * tests/test-signbit.c: New file.
66552
66553         * modules/signbit: New file.
66554         * lib/signbitf.c: New file.
66555         * lib/signbitd.c: New file.
66556         * lib/signbitl.c: New file.
66557         * m4/signbit.m4: New file.
66558         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66559         (signbit): New macro.
66560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66561         REPLACE_SIGNBIT.
66562         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66563         REPLACE_FREXPL into math.h.
66564
66565 2007-04-06  Bruno Haible  <bruno@clisp.org>
66566
66567         * modules/isnanf-nolibm-tests: New file.
66568         * tests/test-isnanf.c: New file.
66569
66570         * modules/isnanf-nolibm: New file.
66571         * lib/isnanf.h: New file.
66572         * lib/isnanf.c: New file.
66573         * lib/isnan.c: Consider the USE_FLOAT macro.
66574         * m4/isnanf.m4: New file.
66575
66576 2007-04-06  Bruno Haible  <bruno@clisp.org>
66577
66578         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66579         (Link): New section.
66580
66581         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66582
66583 2007-04-06  Bruno Haible  <bruno@clisp.org>
66584
66585         Assume the 'long double' type.
66586         * m4/longdouble.m4: Remove file.
66587         * config/srclist.txt: Don't mention longdouble.m4.
66588         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66589         * lib/float+.h: Likewise.
66590         * lib/frexp.c: Likewise.
66591         * lib/printf-args.h: Likewise.
66592         * lib/printf-args.c: Likewise.
66593         * lib/printf-frexp.c: Likewise.
66594         * lib/printf-parse.c: Likewise.
66595         * lib/vasnprintf.c: Likewise.
66596         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66597         * m4/intl.m4: Likewise.
66598         * m4/isnanl.m4: Likewise.
66599         * m4/printf.m4: Likewise.
66600         * m4/printf-frexpl.m4: Likewise.
66601         * m4/vasnprintf.m4: Likewise.
66602         * modules/allocsa (Files): Remove m4/longdouble.m4.
66603         * modules/gettext (Files): Likewise.
66604         * modules/relocatable-prog-wrapper (Files): Likewise.
66605         * modules/vasnprintf (Files): Likewise.
66606         * modules/isnanl (Files): Likewise.
66607         (Include): Simplify.
66608         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66609         (Include): Simplify.
66610         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66611         (Include): Simplify.
66612         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66613         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66614         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66615         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66616         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66617         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66618         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66619         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66620         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66621         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66622         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66623         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66624         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66625         * tests/test-isnanl.c: Likewise.
66626         * tests/test-snprintf-posix.h: Likewise.
66627         * tests/test-sprintf-posix.h: Likewise.
66628         * tests/test-vasnprintf-posix.c: Likewise.
66629         * tests/test-vasnprintf-posix2.c: Likewise.
66630         * tests/test-vasprintf-posix.c: Likewise.
66631
66632 2007-04-06  Bruno Haible  <bruno@clisp.org>
66633
66634         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66635         * lib/math_.h [__DECC]: Include the overridden include file through
66636         #include_next, outside the double-inclusion guard.
66637         * lib/stdio_.h [__DECC]: Likewise.
66638         * lib/stdlib_.h [__DECC]: Likewise.
66639         * lib/string_.h [__DECC]: Likewise.
66640         * lib/time_.h [__DECC]: Likewise.
66641         * lib/wchar_.h [__DECC]: Likewise.
66642         * lib/wctype_.h [__DECC]: Likewise.
66643         * lib/inttypes_.h [__DECC]: Likewise.
66644         Reported by Albert Chin <china@thewrittenword.com> in
66645         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66646
66647 2007-04-04  Eric Blake  <ebb9@byu.net>
66648
66649         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66650         1.5.x.
66651
66652 2007-04-04  Bruno Haible  <bruno@clisp.org>
66653
66654         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66655         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66656
66657 2007-04-04  Bruno Haible  <bruno@clisp.org>
66658
66659         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66660         results for "%010a" of Infinity and NaN.
66661         * tests/test-vasprintf-posix.c (test_function): Likewise.
66662         * tests/test-snprintf-posix.h (test_function): Likewise.
66663         * tests/test-sprintf-posix.h (test_function): Likewise.
66664         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66665         * tests/test-printf-posix.h (test_function): Likewise.
66666         * tests/test-fprintf-posix.out: Update.
66667         Needed for FreeBSD 6.1.
66668
66669 2007-04-04  Bruno Haible  <bruno@clisp.org>
66670
66671         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66672         directly used by the gnulib modules nor by gnulib-tool.
66673
66674 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66675
66676         * DEPENDENCIES: Give overall description of version dependency
66677         desirability.  Use more-typical names for apps.
66678         Add shell, coreutils, diffutils, grep, tar, gzip.
66679
66680 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66681
66682         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66683
66684 2007-04-04  Karl Berry  <karl@gnu.org>
66685
66686         * MODULES.html.sh (func_module): missing '.
66687
66688 2007-04-03  Bruno Haible  <bruno@clisp.org>
66689
66690         * modules/argmatch-tests (Makefile.am): New variable
66691         test_argmatch_LDADD.
66692         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66693         * modules/array-list-tests (Makefile.am): New variable
66694         test_array_list_LDADD.
66695         * modules/array-oset-tests (Makefile.am): New variable
66696         test_array_oset_LDADD.
66697         * modules/avltree-list-tests (Makefile.am): New variable
66698         test_avltree_list_LDADD.
66699         * modules/avltree-oset-tests (Makefile.am): New variable
66700         test_avltree_oset_LDADD.
66701         * modules/avltreehash-list-tests (Makefile.am): New variable
66702         test_avltreehash_list_LDADD.
66703         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66704         test_canonicalize_lgpl_LDADD.
66705         * modules/carray-list-tests (Makefile.am): New variable
66706         test_carray_list_LDADD.
66707         * modules/dirname-tests (Makefile.am): New variable
66708         test_dirname_LDADD.
66709         * modules/linked-list-tests (Makefile.am): New variable
66710         test_linked_list_LDADD.
66711         * modules/linkedhash-list-tests (Makefile.am): New variable
66712         test_linkedhash_list_LDADD.
66713         * modules/rbtree-list-tests (Makefile.am): New variable
66714         test_rbtree_list_LDADD.
66715         * modules/rbtree-oset-tests (Makefile.am): New variable
66716         test_rbtree_oset_LDADD.
66717         * modules/rbtreehash-list-tests (Makefile.am): New variable
66718         test_rbtreehash_list_LDADD.
66719         * modules/xvasprintf-tests (Makefile.am): New variable
66720         test_xvasprintf_LDADD.
66721         Reported by Eric Blake.
66722
66723 2007-04-03  Eric Blake  <ebb9@byu.net>
66724
66725         * DEPENDENCIES: Weaken m4 requirements.
66726
66727 2007-04-03  Bruno Haible  <bruno@clisp.org>
66728
66729         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66730         * modules/isnanl-tests (configure.ac): Likewise.
66731
66732 2007-04-03  Ben Pfaff  <blp@gnu.org>
66733
66734         * modules/iconv_open: Add $(srcdir)/ to source directory
66735         references in Makefile fragments that call gperf, to fix VPATH
66736         builds.
66737
66738 2007-04-03  Bruno Haible  <bruno@clisp.org>
66739
66740         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66741         * lib/ldexpl.c: Undo last change.
66742
66743 2007-04-03  Bruno Haible  <bruno@clisp.org>
66744
66745         * modules/printf-frexpl (Depends-on): Undo last change.
66746         (Files): Add m4/ldexpl.m4.
66747
66748 2007-04-03  Bruno Haible  <bruno@clisp.org>
66749
66750         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66751         * modules/isnanl (Link): New section.
66752
66753         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66754         * modules/frexp (Link): New section.
66755
66756         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66757         * modules/frexpl (Link): New section.
66758
66759         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66760         * modules/ldexpl (Link): New section.
66761
66762 2007-04-03  Bruno Haible  <bruno@clisp.org>
66763
66764         * modules/TEMPLATE-EXTENDED: New file.
66765         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66766
66767 2007-04-03  Bruno Haible  <bruno@clisp.org>
66768
66769         * DEPENDENCIES: New file.
66770         Suggested by Simon Josefsson.
66771
66772 2007-04-03  Bruno Haible  <bruno@clisp.org>
66773
66774         * doc/gnulib.texi: Escape @.
66775
66776 2007-04-03  James Youngman  <jay@gnu.org>
66777         and Paul Eggert  <eggert@cs.ucla.edu>
66778
66779         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66780         birthtime on all systems that have birthtime, not just those which
66781         use st_birthtimensec rather than st_birthtim.  Putting zero in
66782         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66783         that the birth time is not available for files on an NFS mount.
66784
66785 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66786
66787         * modules/memxor: Move back from crypto/, suggested by Bruno.
66788         * modules/crypto/hmac-sha1: Fix memxor dependency.
66789
66790         * modules/crypto/gc: Moved from ../.
66791
66792 2007-04-02  Eric Blake  <ebb9@byu.net>
66793
66794         * lib/ldexpl.c (includes): Avoid libm.
66795
66796         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66797
66798 2007-04-02  Bruno Haible  <bruno@clisp.org>
66799
66800         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66801         on IRIX.
66802
66803 2007-04-02  Bruno Haible  <bruno@clisp.org>
66804
66805         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66806         x86 or x86_64 platforms running MacOS X.
66807         Reported by Ryan Schmidt <@ryandesign.com>.
66808
66809 2007-04-02  Bruno Haible  <bruno@clisp.org>
66810
66811         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66812         i386.
66813
66814 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66815
66816         * modules/crypto/arcfour: Moved from ../.
66817         * modules/crypto/arcfour-tests: Moved from ../.
66818         * modules/crypto/arctwo: Moved from ../.
66819         * modules/crypto/arctwo-tests: Moved from ../.
66820         * modules/crypto/des: Moved from ../.
66821         * modules/crypto/des-tests: Moved from ../.
66822         * modules/crypto/gc-arcfour: Moved from ../.
66823         * modules/crypto/gc-arcfour-tests: Moved from ../.
66824         * modules/crypto/gc-arctwo: Moved from ../.
66825         * modules/crypto/gc-arctwo-tests: Moved from ../.
66826         * modules/crypto/gc-des: Moved from ../.
66827         * modules/crypto/gc-des-tests: Moved from ../.
66828         * modules/crypto/gc-hmac-md5: Moved from ../.
66829         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66830         * modules/crypto/gc-hmac-sha1: Moved from ../.
66831         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66832         * modules/crypto/gc-md2: Moved from ../.
66833         * modules/crypto/gc-md2-tests: Moved from ../.
66834         * modules/crypto/gc-md4: Moved from ../.
66835         * modules/crypto/gc-md4-tests: Moved from ../.
66836         * modules/crypto/gc-md5: Moved from ../.
66837         * modules/crypto/gc-md5-tests: Moved from ../.
66838         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66839         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66840         * modules/crypto/gc-random: Moved from ../.
66841         * modules/crypto/gc-rijndael: Moved from ../.
66842         * modules/crypto/gc-rijndael-tests: Moved from ../.
66843         * modules/crypto/gc-sha1: Moved from ../.
66844         * modules/crypto/gc-sha1-tests: Moved from ../.
66845         * modules/crypto/gc-tests: Moved from ../.
66846         * modules/crypto/hmac-md5: Moved from ../.
66847         * modules/crypto/hmac-md5-tests: Moved from ../.
66848         * modules/crypto/hmac-sha1: Moved from ../.
66849         * modules/crypto/hmac-sha1-tests: Moved from ../.
66850         * modules/crypto/md2: Moved from ../.
66851         * modules/crypto/md2-tests: Moved from ../.
66852         * modules/crypto/md4: Moved from ../.
66853         * modules/crypto/md4-tests: Moved from ../.
66854         * modules/crypto/md5: Moved from ../.
66855         * modules/crypto/md5-tests: Moved from ../.
66856         * modules/crypto/memxor: Moved from ../.
66857         * modules/crypto/rijndael: Moved from ../.
66858         * modules/crypto/rijndael-tests: Moved from ../.
66859         * modules/crypto/sha1: Moved from ../.
66860
66861 2007-03-30  James Youngman  <jay@gnu.org>
66862
66863         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66864         rename() to change the ctime of a file (because ctime is unaffected
66865         by rename on jfs2 on AIX 5.1).
66866         (main): Start by doing cleanup, in case a previous run failed leaving
66867         test files behind.
66868
66869 2007-03-31  Bruno Haible  <bruno@clisp.org>
66870
66871         Support old proprietary implementations of iconv.
66872         * modules/iconv_open: New file.
66873         * lib/iconv_.h: New file.
66874         * m4/iconv_h.m4: New file.
66875         * lib/iconv_open.c: New file.
66876         * lib/iconv_open-aix.gperf: New file.
66877         * lib/iconv_open-hpux.gperf: New file.
66878         * lib/iconv_open-irix.gperf: New file.
66879         * lib/iconv_open-osf.gperf: New file.
66880         * m4/iconv_open.m4: New file.
66881         * modules/linebreak (Depends-on): Add iconv_open.
66882         * modules/striconv (Depends-on): Likewise.
66883         * modules/striconveh (Depends-on): Likewise.
66884         * modules/unicodeio (Depends-on): Likewise.
66885         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66886         (iconv_t)(-1).
66887         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66888         conversion if cd is (iconv_t)(-1).
66889         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66890         is not possible.
66891
66892 2007-03-31  Bruno Haible  <bruno@clisp.org>
66893
66894         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66895         work on Solaris either. Protect also second use of "autodetect_jp".
66896
66897 2007-03-31  Bruno Haible  <bruno@clisp.org>
66898
66899         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66900         the function is not present.
66901
66902 2007-03-31  Bruno Haible  <bruno@clisp.org>
66903
66904         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66905         the function is not present.
66906
66907 2007-03-31  Bruno Haible  <bruno@clisp.org>
66908
66909         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66910         a bug in HP-UX iconv_open().
66911
66912 2007-03-31  Bruno Haible  <bruno@clisp.org>
66913
66914         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66915         (Mathematics <math.h>): New section, add fpieee.
66916         (Input/output <stdio.h>): Add fseterr.
66917         (Mathematics <math.h>): New section, add printf-frexp.
66918         (Container data structures): Add sublist.
66919         (Core language properties): Add fpucw, inline.
66920         (Functions for greatest-width integer types <inttypes.h>): Add
66921         imaxabs, imaxdiv, inttypes.
66922         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66923         isnanl-nolibm, ldexp.
66924         (Mathematics <math.h>): New section, add printf-frexpl.
66925         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66926         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66927         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66928         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66929         (Unicode string functions): Add unistr/u*-mbtoucr.
66930         (Java): Add javacomp-script, javaexec-script.
66931         (C#): Add csharpcomp-script, csharpexec-script.
66932         (Support for building libraries and executables): Add havelib,
66933         relocatable-*.
66934         (Support for maintaining and releasing projects): Renamed from
66935         'Support for maintaining and release projects'. Add announce-gen.
66936
66937 2007-03-31  Bruno Haible  <bruno@clisp.org>
66938
66939         * README: Talk primarily about git.
66940         (git and CVS): Renamed from CVS.
66941         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66942         gnulib is available through git.
66943         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66944
66945 2007-03-30  Bruno Haible  <bruno@clisp.org>
66946
66947         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66948         * lib/poll_.h: Likewise.
66949         * lib/stat_.h: Likewise.
66950         * lib/sys_time_.h: Likewise.
66951         * lib/sysexit_.h: Likewise.
66952         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66953         * lib/stdbool_.h: Likewise.
66954         * lib/byteswap_.h: Add double-inclusion guard.
66955
66956 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66957
66958         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66959
66960 2007-03-30  Karl Berry  <karl@gnu.org>
66961
66962         * config/srclist-update: double space after USA in the license
66963         substitution, since that's how it's usually (?) written.
66964
66965 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66966
66967         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66968         reported by Bruno Haible.
66969
66970 2007-03-29  Bruno Haible  <bruno@clisp.org>
66971
66972         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66973         a bug in AIX iconv().
66974
66975 2007-03-29  Bruno Haible  <bruno@clisp.org>
66976
66977         * modules/ldexpl-tests: New file.
66978         * tests/test-ldexpl.c: New file.
66979
66980 2007-03-29  Bruno Haible  <bruno@clisp.org>
66981
66982         * lib/ldexpl.c: Include fpucw.h.
66983         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66984         multiplication.
66985         * modules/ldexpl (Depends-on): Add fpucw.
66986
66987 2007-03-29  Bruno Haible  <bruno@clisp.org>
66988
66989         * modules/ldexpl: New file.
66990         * m4/ldexpl.m4: New file.
66991         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66992         set.
66993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66994         REPLACE_LDEXPL.
66995         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66996         REPLACE_LDEXPL.
66997         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66998         gl_FUNC_LDEXPL_WORKS.
66999         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
67000         * modules/mathl (Files): Remove lib/ldexpl.c.
67001         (Depends-on): Add ldexpl.
67002
67003 2007-03-29  Bruno Haible  <bruno@clisp.org>
67004
67005         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
67006
67007 2007-03-29  Bruno Haible  <bruno@clisp.org>
67008
67009         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67010         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67011         and possibly also HP-UX.
67012         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67013         work on AIX, IRIX, HP-UX, OSF/1.
67014         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67015         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67016         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67017         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67018         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67019         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67020
67021 2007-03-29  Bruno Haible  <bruno@clisp.org>
67022
67023         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67024
67025 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67026
67027         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67028         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67029
67030 2007-03-29  Eric Blake  <ebb9@byu.net>
67031
67032         * lib/acl-internal.h: Remove redundant include.
67033         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67034         Cygwin when a file is locked.
67035
67036 2007-03-29  Bruno Haible  <bruno@clisp.org>
67037
67038         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67039         file.
67040         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67041
67042 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67043
67044         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67045         try to remove a parent directory if the child couldn't be removed
67046         (except for the first rmdir, which could fail because the child
67047         doesn't exist).  Problem reported by Jeff Blaine in
67048         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67049
67050 2007-03-28  Bruno Haible  <bruno@clisp.org>
67051
67052         * lib/striconveh.c (utf8conv_carefully): New function.
67053         (mem_cd_iconveh_internal): Invoke it.
67054
67055 2007-03-28  Bruno Haible  <bruno@clisp.org>
67056
67057         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67058         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67059         input.
67060         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67061         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67062         unistr/u8-uctomb.
67063
67064 2007-03-28  Bruno Haible  <bruno@clisp.org>
67065
67066         * modules/unistr/u8-mbtoucr: New file.
67067         * lib/unistr/u8-mbtoucr.c: New file.
67068         * modules/unistr/u16-mbtoucr: New file.
67069         * lib/unistr/u16-mbtoucr.c: New file.
67070         * modules/unistr/u16-mbtoucr: New file.
67071         * lib/unistr/u16-mbtoucr.c: New file.
67072         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67073
67074 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67075             Bruno Haible  <bruno@clisp.org>
67076
67077         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67078         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67079         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67080
67081         * m4/stdio_h.m4: Add stubs for vasprintf too.
67082
67083         * modules/stdio: Support vasprintf in sed command.
67084
67085         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67086         vasprintf.h.  Add stdio module indicator.
67087
67088         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67089         vasprintf.h.
67090
67091         * lib/vasprintf.h: File removed.
67092
67093         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67094         * lib/vasprintf.c: Ditto.
67095         * lib/xvasprintf.c: Ditto.
67096         * tests/test-vasprintf-posix.c: Ditto.
67097         * tests/test-vasprintf.c: Ditto.
67098
67099 2007-03-27  Bruno Haible  <bruno@clisp.org>
67100
67101         Make vasnprintf multithread-safe.
67102         * lib/vasnprintf.c (decimal_point_char): New function.
67103         (VASNPRINTF): Use it.
67104         Suggested by Simon Josefsson.
67105
67106 2007-03-27  Eric Blake  <ebb9@byu.net>
67107
67108         Support sub-second birthtime on cygwin.
67109         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67110         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67111         (get_stat_birthtime): Also work with st_birthtim.
67112
67113 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67114
67115         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67116         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67117         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67118         (get_stat_birthtime_ns): Simplify compile-time tests.
67119         (get_stat_birthtime): Change the API to look like
67120         get_stat_mtime etc., except return a negative tv_nsec on error.
67121         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67122         Don't check for "spare" fields.
67123         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67124         or for struct stat.st_birthtime, as these tests aren't used.
67125         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67126
67127 2007-03-27  Bruno Haible  <bruno@clisp.org>
67128
67129         * lib/stat-time.h: Include <sys/stat.h>.
67130
67131 2007-03-27  James Youngman  <jay@gnu.org>
67132
67133         * lib/stat-time.h (get_stat_birthtime): New function for
67134           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67135         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67136           and its variants.
67137         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67138         * modules/stat-time-test: New file.
67139         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67140
67141 2007-03-26  Bruno Haible  <bruno@clisp.org>
67142
67143         Better support of signalling NaNs.
67144         * lib/atanl.c: Include isnanl.h.
67145         (atanl): Perform test for NaN at the beginning of the function and
67146         through a call to isnanl.
67147         * lib/cosl.c: Include isnanl.h.
67148         (cosl): Perform test for NaN at the beginning of the function and
67149         through a call to isnanl.
67150         * lib/ldexpl.c: Include isnanl.h.
67151         (ldexpl): Perform test for NaN through a call to isnanl.
67152         * lib/logl.c: Include isnanl.h.
67153         (logl): Perform test for NaN at the beginning of the function and
67154         through a call to isnanl.
67155         * lib/sinl.c: Include isnanl.h.
67156         (sinl): Perform test for NaN at the beginning of the function and
67157         through a call to isnanl.
67158         * lib/sqrtl.c: Include isnanl.h.
67159         (sqrtl): Perform test for NaN at the beginning of the function and
67160         through a call to isnanl.
67161         * lib/tanl.c: Include isnanl.h.
67162         (tanl): Perform test for NaN at the beginning of the function and
67163         through a call to isnanl.
67164         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
67165         * modules/mathl (Depends-on): Add isnanl.
67166
67167 2007-03-26  Eric Blake  <ebb9@byu.net>
67168
67169         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
67170         regression in logic sense of previous patch.
67171
67172 2007-03-26  Bruno Haible  <bruno@clisp.org>
67173
67174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
67175         unportable shell command "if ! ...".
67176         Reported by Ralf Wildenhues.
67177
67178 2007-03-25  Bruno Haible  <bruno@clisp.org>
67179
67180         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67181         <sysexits.h> file, and only add EX_CONFIG.
67182         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67183         absolute file name and whether it is sufficient. Substitute also
67184         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67185         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67186         ABSOLUTE_SYSEXITS_H into sysexits.h.
67187
67188 2007-03-25  Bruno Haible  <bruno@clisp.org>
67189
67190         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67191         hints is NULL.
67192
67193 2007-03-25  Bruno Haible  <bruno@clisp.org>
67194
67195         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67196         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67197
67198 2007-03-25  Bruno Haible  <bruno@clisp.org>
67199
67200         * lib/vasnprintf.c: Include langinfo.h.
67201         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67202         multithread-safe.
67203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67204         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67205         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67206         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67207         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67208         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67209         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67210         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67211         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67212         Reported by Simon Josefsson.
67213
67214 2007-03-25  Bruno Haible  <bruno@clisp.org>
67215
67216         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67217         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67218         * modules/vasnprintf (Depends-on): Add stdint.
67219
67220 2007-03-25  Bruno Haible  <bruno@clisp.org>
67221
67222         * modules/fpieee: New file.
67223         * m4/fpieee.m4: New file.
67224         * modules/isnan-nolibm (Depends-on): Add fpieee.
67225         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67226         * modules/isnanl (Depends-on): Add fpieee.
67227
67228 2007-03-25  Bruno Haible  <bruno@clisp.org>
67229
67230         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67231
67232 2007-03-25  Bruno Haible  <bruno@clisp.org>
67233
67234         Avoid test failures on IRIX 6.5.
67235         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67236         (main): Use it.
67237         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67238         macros.
67239         (main): Use them.
67240
67241 2007-03-25  Bruno Haible  <bruno@clisp.org>
67242
67243         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
67244         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
67245         exists but doesn't work.
67246         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
67247         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
67248         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
67249         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
67250         math.h.
67251
67252 2007-03-25  Bruno Haible  <bruno@clisp.org>
67253
67254         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67255         returns inf. Needed on IRIX 6.5.
67256
67257 2007-03-25  Bruno Haible  <bruno@clisp.org>
67258
67259         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67260         (main): Use isnanl instead of x != x idiom.
67261         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67262
67263         * tests/test-frexp.c: Include isnan.h.
67264         (main): Use isnan instead of x != x idiom.
67265         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67266
67267 2007-03-25  Bruno Haible  <bruno@clisp.org>
67268
67269         * tests/test-frexp.c (NaN): New function/macro.
67270         (main): Use it instead of 0.0 / 0.0.
67271         * tests/test-isnan.c (NaN): New function/macro.
67272         (main): Use it instead of 0.0 / 0.0.
67273         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67274         (test_function): Use it instead of 0.0 / 0.0.
67275         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67276         (test_function): Use it instead of 0.0 / 0.0.
67277         * tests/test-snprintf-posix.h (NaN): New function/macro.
67278         (test_function): Use it instead of 0.0 / 0.0.
67279         * tests/test-sprintf-posix.h (NaN): New function/macro.
67280         (test_function): Use it instead of 0.0 / 0.0.
67281         * tests/test-fprintf-posix.h (NaN): New function/macro.
67282         (test_function): Use it instead of 0.0 / 0.0.
67283         * tests/test-printf-posix.h (NaN): New function/macro.
67284         (test_function): Use it instead of 0.0 / 0.0.
67285
67286         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67287
67288 2007-03-25  Bruno Haible  <bruno@clisp.org>
67289
67290         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67291
67292 2007-03-25  Bruno Haible  <bruno@clisp.org>
67293
67294         * lib/regexec.c (merge_state_with_log): Make static.
67295
67296 2007-03-25  Bruno Haible  <bruno@clisp.org>
67297
67298         * lib/trigl.c (kernel_rem_pio2): Make static.
67299
67300 2007-03-25  Bruno Haible  <bruno@clisp.org>
67301
67302         * lib/sincosl.c (sincosl_table): Make static.
67303
67304 2007-03-25  Bruno Haible  <bruno@clisp.org>
67305
67306         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67307         if the compiler does not support C99.
67308
67309 2007-03-25  Bruno Haible  <bruno@clisp.org>
67310
67311         * modules/time (Makefile.am): Ensure all rule action lines start with a
67312         tab.
67313
67314 2007-03-24  Bruno Haible  <bruno@clisp.org>
67315
67316         * modules/tsearch-tests: New file.
67317         * tests/test-tsearch.sh: New file.
67318         * tests/test-tsearch.c: New file, mostly copied from glibc.
67319
67320         * modules/search-tests: New file.
67321         * tests/test-search.c: New file.
67322
67323         * modules/search: New file.
67324         * lib/search_.h: New file, incorporating lib/tsearch.h.
67325         * m4/search_h.m4: New file.
67326         * lib/tsearch.h: Remove file.
67327         * lib/tsearch.c: Include search.h instead of tsearch.h.
67328         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67329         HAVE_TSEARCH.
67330         * modules/tsearch (Files): Remove lib/tsearch.h.
67331         (Depends-on): Add search.
67332         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67333         (Include): Change tsearch.h into search.h.
67334
67335 2007-03-24  Bruno Haible  <bruno@clisp.org>
67336
67337         * modules/fpucw: New file.
67338         * lib/fpucw.h: New file.
67339         * lib/frexp.c: Include fpucw.h.
67340         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67341         (FUNC): Use them.
67342         * lib/printf-frexp.c: Include fpucw.h.
67343         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67344         (FUNC): Use them.
67345         * lib/vasnprintf.c: Include fpucw.h.
67346         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67347         'long double' calculations.
67348         * tests/test-frexpl.c: Include fpucw.h.
67349         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67350         * tests/test-printf-frexpl.c: Include fpucw.h.
67351         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67352         * modules/frexpl (Depends-on): Add fpucw.
67353         * modules/printf-frexpl (Depends-on): Likewise.
67354         * modules/fprintf-posix (Depends-on): Likewise.
67355         * modules/snprintf-posix (Depends-on): Likewise.
67356         * modules/sprintf-posix (Depends-on): Likewise.
67357         * modules/vasnprintf-posix (Depends-on): Likewise.
67358         * modules/vasprintf-posix (Depends-on): Likewise.
67359         * modules/vfprintf-posix (Depends-on): Likewise.
67360         * modules/vsnprintf-posix (Depends-on): Likewise.
67361         * modules/vsprintf-posix (Depends-on): Likewise.
67362         * modules/frexpl-tests (Depends-on): Likewise.
67363         * modules/printf-frexpl-tests (Depends-on): Likewise.
67364
67365 2007-03-24  Bruno Haible  <bruno@clisp.org>
67366
67367         * lib/float+.h: New file.
67368         * lib/isnan.c: Include float+.h.
67369         (SIZE): New macro.
67370         (FUNC): Compare only SIZE bytes of the value.
67371         * lib/vasnprintf.c: Include float+.h.
67372         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
67373         SIZEOF_LDBL or SIZEOF_DBL bytes.
67374         * modules/isnan-nolibm (Files): Add lib/float+.h.
67375         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67376         * modules/isnanl (Files): Add lib/float+.h.
67377         * modules/vasnprintf (Files): Add lib/float+.h.
67378
67379 2007-03-24  Bruno Haible  <bruno@clisp.org>
67380
67381         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67382         include isnanl-nolibm.h.
67383
67384 2007-03-24  Bruno Haible  <bruno@clisp.org>
67385
67386         * tests/test-read-file.c (main): Don't produce spurious output for
67387         expected situations. Make the test fail if it encountered unexpected
67388         results.
67389
67390 2007-03-24  Bruno Haible  <bruno@clisp.org>
67391
67392         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67393         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67394
67395 2007-03-24  Bruno Haible  <bruno@clisp.org>
67396
67397         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67398
67399 2007-03-24  Bruno Haible  <bruno@clisp.org>
67400
67401         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67402         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67403
67404         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67405         * modules/utf8-ucs4: Turn into a symbolic link to module
67406         unistr/u8-mbtouc.
67407
67408         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67409         utf8-ucs4-unsafe.
67410         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67411         unistr/u8-mbtouc-unsafe.
67412
67413         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67414         * modules/utf16-ucs4: Turn into a symbolic link to module
67415         unistr/u16-mbtouc.
67416
67417         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67418         utf16-ucs4-unsafe.
67419         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67420         unistr/u16-mbtouc-unsafe.
67421
67422         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67423         * modules/ucs4-utf8: Turn into a symbolic link to module
67424         unistr/u8-ubtomb.
67425
67426         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67427         * modules/ucs4-utf16: Turn into a symbolic link to module
67428         unistr/u16-ubtomb.
67429
67430 2007-03-24  Bruno Haible  <bruno@clisp.org>
67431
67432         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67433         Enable the function only if HAVE_INLINE.
67434         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67435         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67436         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67437         Enable the function only if HAVE_INLINE.
67438         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67439         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67440         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67441         Enable the function only if HAVE_INLINE.
67442         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67443         Enable the function only if HAVE_INLINE.
67444         * modules/utf8-ucs4: Update.
67445         * modules/utf8-ucs4-unsafe: Update.
67446         * modules/utf16-ucs4: Update.
67447         * modules/utf16-ucs4-unsafe: Update.
67448         * modules/ucs4-utf8: Update.
67449         * modules/ucs4-utf16: Update.
67450
67451 2007-03-24  Bruno Haible  <bruno@clisp.org>
67452
67453         * lib/utf8-ucs4.h: Remove file.
67454         * lib/utf8-ucs4-unsafe.h: Remove file.
67455         * lib/utf16-ucs4.h: Remove file.
67456         * lib/utf16-ucs4-unsafe.h: Remove file.
67457         * lib/ucs4-utf8.h: Remove file.
67458         * lib/ucs4-utf16.h: Remove file.
67459         * lib/unistr.h: Include their previous contents.
67460         * m4/utf-ucs4.m4: Remove file.
67461         * m4/ucs4-utf.m4: Remove file.
67462         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67463         (Depends-on): Add unistr/base.
67464         (configure.ac): Remove gl_UTF_UCS4.
67465         (Makefile.am): Update.
67466         (Include): Change to unistr.h.
67467         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67468         (Depends-on): Add unistr/base.
67469         (configure.ac): Remove gl_UTF_UCS4.
67470         (Makefile.am): Update.
67471         (Include): Change to unistr.h.
67472         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67473         (Depends-on): Add unistr/base.
67474         (configure.ac): Remove gl_UTF_UCS4.
67475         (Makefile.am): Update.
67476         (Include): Change to unistr.h.
67477         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67478         (Depends-on): Add unistr/base.
67479         (configure.ac): Remove gl_UTF_UCS4.
67480         (Makefile.am): Update.
67481         (Include): Change to unistr.h.
67482         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67483         (Depends-on): Add unistr/base.
67484         (configure.ac): Remove gl_UCS4_UTF.
67485         (Makefile.am): Update.
67486         (Include): Change to unistr.h.
67487         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67488         (Depends-on): Add unistr/base.
67489         (configure.ac): Remove gl_UCS4_UTF.
67490         (Makefile.am): Update.
67491         (Include): Change to unistr.h.
67492         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67493         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67494         utf8-ucs4-unsafe.h.
67495         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67496         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67497         utf16-ucs4-unsafe.h.
67498         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67499         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67500         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67501         * lib/unistr/u8-strchr.c: Likewise.
67502         * lib/unistr/u8-strrchr.c: Likewise.
67503         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67504         * lib/unistr/u16-strchr.c: Likewise.
67505         * lib/unistr/u16-strrchr.c: Likewise.
67506         * lib/striconveh.c: Update.
67507         * lib/linebreak.c: Update.
67508
67509 2007-03-24  Bruno Haible  <bruno@clisp.org>
67510
67511         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67512         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67513
67514 2007-03-22  Bruno Haible  <bruno@clisp.org>
67515
67516         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67517
67518 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67519
67520         * MODULES.html.sh (File system functions): New module write-any-file.
67521         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67522         * m4/write-any-file.m4: New files.
67523
67524 2007-03-23  Eric Blake  <ebb9@byu.net>
67525
67526         * gnulib-tool: Rearrange space-tab sequences, since some editors
67527         like to eat them.
67528
67529 2007-03-23  Eric Blake  <ebb9@byu.net>
67530
67531         * lib/version-etc.c (version_etc_va): Update license wording to
67532         be more concise.  Recommended by Richard Stallman.
67533
67534 2007-03-22  Bruno Haible  <bruno@clisp.org>
67535
67536         * lib/poll.c (MSG_PEEK): New fallback definition.
67537
67538 2007-03-22  Bruno Haible  <bruno@clisp.org>
67539
67540         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67541         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67542         (main): Update.
67543         Fixes a compilation error on BeOS.
67544
67545 2007-03-22  Bruno Haible  <bruno@clisp.org>
67546
67547         * modules/frexpl-tests: New file.
67548         * tests/test-frexpl.c: New file.
67549
67550         * modules/frexpl: New file.
67551         * m4/frexpl.m4: New file.
67552         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67553         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67554         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67555         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67556         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67557         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67558
67559 2007-03-22  Bruno Haible  <bruno@clisp.org>
67560
67561         * lib/frexpl.c: Share code with lib/frexp.c.
67562         * modules/mathl (Files): Add lib/frexp.c.
67563         (Depends-on): Add isnanl-nolibm.
67564
67565 2007-03-22  Bruno Haible  <bruno@clisp.org>
67566
67567         * modules/printf-frexp (Files): Add m4/frexp.m4.
67568         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67569         only if the found frexp function actually works.
67570
67571 2007-03-22  Bruno Haible  <bruno@clisp.org>
67572
67573         * lib/frexp.c: Remove older implementation that uses divisions.
67574
67575 2007-03-21  Bruno Haible  <bruno@clisp.org>
67576
67577         * modules/frexp-tests: New file.
67578         * tests/test-frexp.c: New file.
67579
67580         * modules/frexp: New file.
67581         * lib/frexp.c: New file.
67582         * m4/frexp.m4: New file.
67583         * lib/math_.h (frexp): New declaration.
67584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67585         REPLACE_FREXP.
67586         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67587
67588 2007-03-21  Bruno Haible  <bruno@clisp.org>
67589
67590         * modules/isnanl-tests: New file.
67591         * tests/test-isnanl.c: New file.
67592
67593         * modules/isnanl: New file.
67594         * lib/isnanl.h: New file.
67595         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67596         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67597         gl_FUNC_ISNANL_WORKS.
67598         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67599         New macros.
67600
67601 2007-03-21  Bruno Haible  <bruno@clisp.org>
67602
67603         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67604         lib/isnanl.h.
67605         (Include): Update.
67606         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67607         * lib/vasnprintf.c: Update.
67608         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67609         tests/test-isnanl.h, remove tests/test-isnanl.c.
67610         (Makefile.am): Update.
67611         * tests/test-isnanl-nolibm.c: New file.
67612         * tests/test-isnanl.h: New file.
67613         * tests/test-isnanl.c: Remove file.
67614
67615 2007-03-21  Jim Meyering  <jim@meyering.net>
67616
67617         When trying to open ".", treat ESTALE like EACCES.
67618         * lib/savewd.c (savewd_save): Resort to forking not just upon
67619         failure with EACCES, but also when errno is ESTALE.
67620
67621 2007-03-20  Bruno Haible  <bruno@clisp.org>
67622
67623         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67624         Needed on AIX 5.1. Reported by Matthew Woehlke.
67625
67626 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67627
67628         Suggestions by Bruno Haible:
67629         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67630         our own.
67631         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67632         * modules/acl (Depends-on): Add gettext.
67633
67634 2007-03-19  Bruno Haible  <bruno@clisp.org>
67635
67636         * modules/iconvme: Remove file.
67637         * lib/iconvme.h: Remove file.
67638         * lib/iconvme.c: Remove file.
67639         * m4/iconvme.m4: Remove file.
67640
67641 2007-03-19  Bruno Haible  <bruno@clisp.org>
67642
67643         * doc/relocatable-maint.texi: Break long shell script line.
67644         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67645
67646 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67647
67648         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67649         handle file_has_acl.
67650         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67651         * lib/acl.c: Move header inclusions and related macro defns into
67652         lib/acl-internal.h.
67653         (S_ISLNK): Remove defn, since that's now done for us.
67654         (file_has_acl): Move to lib/file-has-acl.c.
67655         Call acl_trivial if available.  This is the crucial part of the fix.
67656         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67657         shared within the library.  Rewrite a bit, partly to make it compatible
67658         with the GNU coding style.
67659         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67660         Remove unnecessary double-quotes.
67661         Don't test for acl_to_text; the build will catch that.
67662         Replace acl_entries if it doesn't exist and it is needed.
67663         Check for -lsec and acl_trivial (as used on Solaris 10).
67664         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67665         lib/file-has-acl.c.
67666         (Depends-on): Add sys_stat, for S_ISLNK.
67667
67668 2007-03-19  Ben Pfaff  <blp@gnu.org>
67669
67670         * doc/gnulib.texi: Fix typos.
67671         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67672
67673 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67674
67675         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67676         If size is zero here, buf must be zero.
67677
67678 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67679
67680         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67681         <bruno@clisp.org>.
67682
67683 2007-03-18  Bruno Haible  <bruno@clisp.org>
67684
67685         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67686         Suggested by Eric Blake.
67687
67688 2007-03-18  Ben Pfaff  <blp@gnu.org>
67689
67690         * doc/relocatable.texi: Recommend using as prefix a directory
67691         that does not exist and will never be created.  Based on
67692         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67693         and others.
67694
67695 2007-03-17  Bruno Haible  <bruno@clisp.org>
67696
67697         * lib/fchownat.c: Include lchown.h.
67698
67699 2007-03-17  Bruno Haible  <bruno@clisp.org>
67700
67701         Fix endless loop when the given allocated size was > INT_MAX.
67702         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67703         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67704         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67705         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67706         * lib/sprintf.c (sprintf): Likewise.
67707
67708 2007-03-17  Bruno Haible  <bruno@clisp.org>
67709
67710         * tests/test-argp-2.sh (func_compare): Output a context diff.
67711
67712 2007-03-17  Bruno Haible  <bruno@clisp.org>
67713
67714         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67715         locale's decimal-point character.
67716
67717 2007-03-17  Bruno Haible  <bruno@clisp.org>
67718
67719         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67720         before comparing it. Needed because on some platforms (e.g. x86) a
67721         'long double' occupies less bytes than sizeof (long double).
67722
67723 2007-03-17  Bruno Haible  <bruno@clisp.org>
67724
67725         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67726         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67727         * tests/test-getaddrinfo.c (simple): Likewise.
67728         * tests/test-read-file.c (main): Likewise.
67729
67730 2007-03-17  Bruno Haible  <bruno@clisp.org>
67731
67732         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67733
67734 2007-03-17  Bruno Haible  <bruno@clisp.org>
67735
67736         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67737         unused variable.
67738
67739 2007-03-17  Bruno Haible  <bruno@clisp.org>
67740
67741         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67742         * tests/test-c-strncasecmp.c: Likewise.
67743
67744 2007-03-17  Bruno Haible  <bruno@clisp.org>
67745
67746         * modules/stdlib (Depends-on): Add unistd.
67747         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67748         Needed for MacOS X 10.3.
67749
67750 2007-03-17  Bruno Haible  <bruno@clisp.org>
67751
67752         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67753
67754 2007-03-17  Bruno Haible  <bruno@clisp.org>
67755
67756         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67757
67758 2007-03-17  Bruno Haible  <bruno@clisp.org>
67759
67760         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67761         to reflect files copied from gnulib (with or without modifications).
67762         Suggested by Jim Meyering.
67763
67764 2007-03-17  Eric Blake  <ebb9@byu.net>
67765
67766         * NEWS: Document stdlib change from 2007-02-18.
67767
67768 2007-03-17  Jim Meyering  <jim@meyering.net>
67769
67770         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67771         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67772         someone uses a name containing shell meta-characters.
67773         Reported by Alfred M. Szmidt.
67774
67775         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67776
67777 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67778
67779         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67780         and copy gettext configuration files only if configure.ac contains
67781         a use of AM_GNU_GETTEXT_VERSION.
67782
67783 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67784
67785         * build-aux/bootstrap (gnulib_name): New variable.
67786         (gnulib_tool_options): Use it.
67787
67788 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67789
67790         * tests/test-des.c: Use new namespace.
67791
67792 2007-03-15  Bruno Haible  <bruno@clisp.org>
67793
67794         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67795         Reported by James Youngman <jay@gnu.org>.
67796
67797 2007-03-15  Bruno Haible  <bruno@clisp.org>
67798
67799         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67800         declared prototype. Needed with cc on OSF/1 5.1.
67801
67802 2007-03-15  Bruno Haible  <bruno@clisp.org>
67803
67804         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67805         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67806         (struct gl_list_implementation): Add dispose_fn argument to the
67807         'create_empty', 'create' methods.
67808         (struct gl_list_impl_base): Add field 'dispose_fn'.
67809         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67810         argument.
67811         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67812         dispose_fn argument.
67813         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67814         dispose_fn on the dropped values.
67815         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67816         dispose_fn argument.
67817         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67818         dropped values.
67819         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67820         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67821         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67822         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67823         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67824         argument.
67825         (gl_tree_list_free): Call dispose_fn on the dropped values.
67826         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67827         the dropped values.
67828         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67829         Add dispose_fn argument.
67830         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67831         Call dispose_fn on the dropped values.
67832         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67833         Add dispose_fn argument.
67834         (gl_sublist_create): Initialize the 'dispose_fn' field.
67835         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67836         * tests/test-array_list.c (main): Update.
67837         * tests/test-carray_list.c (main): Update.
67838         * tests/test-avltree_list.c (main): Update.
67839         * tests/test-rbtree_list.c (main): Update.
67840         * tests/test-avltreehash_list.c (main): Update.
67841         * tests/test-rbtreehash_list.c (main): Update.
67842         * tests/test-linked_list.c (main): Update.
67843         * tests/test-linkedhash_list.c (main): Update.
67844         * tests/test-array_oset.c (main): Update.
67845
67846 2007-03-15  Bruno Haible  <bruno@clisp.org>
67847
67848         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67849         (gl_oset_create_empty): Add dispose_fn argument.
67850         (struct gl_oset_implementation): Add dispose_fn argument to
67851         'create_empty' method.
67852         (struct gl_oset_impl_base): Add dispose_fn field.
67853         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67854         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67855         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67856         values.
67857         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67858         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67859         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67860         dropped value.
67861         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67862         dropped value.
67863         * tests/test-array_oset.c (main): Update.
67864         * tests/test-avltree_oset.c (main): Update.
67865         * tests/test-rbtree_oset.c (main): Update.
67866         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67867
67868 2007-03-13  Bruno Haible  <bruno@clisp.org>
67869
67870         * tests/test-stdbool.c (i): Update after last patch.
67871
67872 2007-03-12  Bruno Haible  <bruno@clisp.org>
67873
67874         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67875         the iswprint macro. Needed on Solaris 2.5.1.
67876
67877 2007-03-12  Bruno Haible  <bruno@clisp.org>
67878
67879         * tests/test-printf-frexp.c (main): Declare x as volatile.
67880
67881 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67882
67883         * doc/gnulib.texi (Build robot for gnulib): New section.
67884
67885 2007-03-12  Jim Meyering  <jim@meyering.net>
67886
67887         * build-aux/bootstrap: New file.
67888         * build-aux/bootstrap.conf: New file, from coreutils.
67889
67890 2007-03-11  Bruno Haible  <bruno@clisp.org>
67891
67892         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67893
67894 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67895
67896         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67897         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67898         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67899
67900 2007-03-11  Bruno Haible  <bruno@clisp.org>
67901
67902         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67903         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67904
67905 2007-03-11  Bruno Haible  <bruno@clisp.org>
67906
67907         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67908         formula. Needed for SunPRO C 5.0.
67909
67910 2007-03-11  Bruno Haible  <bruno@clisp.org>
67911
67912         * modules/long-options (Depends-on): Add getopt.
67913
67914 2007-03-11  Bruno Haible  <bruno@clisp.org>
67915
67916         * modules/modechange (Depends-on): Add stdbool.
67917
67918 2007-03-11  Bruno Haible  <bruno@clisp.org>
67919
67920         * modules/i-ring (Depends-on): Add stdbool.
67921
67922 2007-03-11  Bruno Haible  <bruno@clisp.org>
67923
67924         * modules/gc-des (Depends-on): Add stdbool.
67925
67926 2007-03-11  Bruno Haible  <bruno@clisp.org>
67927
67928         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67929
67930 2007-03-11  Bruno Haible  <bruno@clisp.org>
67931
67932         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67933
67934 2007-03-11  Bruno Haible  <bruno@clisp.org>
67935
67936         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67937
67938 2007-03-11  Bruno Haible  <bruno@clisp.org>
67939
67940         * lib/vasnprintf.c (sprintf): Undefine.
67941
67942 2007-03-11  Bruno Haible  <bruno@clisp.org>
67943
67944         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67945         initializers in SunPRO C and Compaq C compilers.
67946
67947 2007-03-11  Bruno Haible  <bruno@clisp.org>
67948
67949         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67950         decrementing code ANSI C compliant.
67951
67952 2007-03-11  Bruno Haible  <bruno@clisp.org>
67953
67954         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67955         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67956
67957 2007-03-11  Bruno Haible  <bruno@clisp.org>
67958
67959         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67960         <stdbool.h> substitute doesn't pass.
67961
67962 2007-03-11  Bruno Haible  <bruno@clisp.org>
67963
67964         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67965
67966 2007-03-11  Bruno Haible  <bruno@clisp.org>
67967
67968         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67969         script, for submission to autobuild.josefsson.org.
67970
67971 2007-03-10  Bruno Haible  <bruno@clisp.org>
67972
67973         * modules/canonicalize-lgpl-tests: New file.
67974         * tests/test-canonicalize-lgpl.sh: New file.
67975         * tests/test-canonicalize-lgpl.c: New file.
67976
67977         * modules/c-strcase-tests: New file.
67978         * tests/test-c-strcase.sh: New file.
67979         * tests/test-c-strcasecmp.c: New file.
67980         * tests/test-c-strncasecmp.c: New file.
67981
67982         * modules/atexit-tests: New file.
67983         * tests/test-atexit.sh: New file.
67984         * tests/test-atexit.c: New file.
67985
67986 2007-03-10  Bruno Haible  <bruno@clisp.org>
67987
67988         * tests/test-binary-io.sh: Use temporary filenames that are not so
67989         likely to clash with those of other tests (in a parallel make).
67990         * tests/test-binary-io.c: Likewise.
67991
67992 2007-03-10  Bruno Haible  <bruno@clisp.org>
67993
67994         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67995         fallback; use #error instead.
67996         Suggested by Simon Josefsson.
67997
67998 2007-03-10  Bruno Haible  <bruno@clisp.org>
67999
68000         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
68001         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
68002         first and the last.
68003
68004 2007-03-10  Bruno Haible  <bruno@clisp.org>
68005
68006         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68007
68008 2007-03-10  Bruno Haible  <bruno@clisp.org>
68009
68010         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68011         "make distcheck".
68012         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68013         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68014         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68015
68016 2007-03-10  Bruno Haible  <bruno@clisp.org>
68017
68018         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68019         variable.
68020         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68021         variable.
68022
68023 2007-03-09  Eric Blake  <ebb9@byu.net>
68024         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68025
68026         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68027         types are not being provided by gnulib.
68028         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68029         types are supported.
68030
68031 2007-03-10  Bruno Haible  <bruno@clisp.org>
68032
68033         * lib/stdio_.h (__attribute__): New macro.
68034         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68035         vsprintf): Specify __attribute__ __format__ for GCC.
68036         Suggested by Eric Blake.
68037
68038 2007-03-09  Bruno Haible  <bruno@clisp.org>
68039
68040         * modules/printf-posix-tests: New file.
68041         * tests/test-printf-posix.sh: New file.
68042         * tests/test-printf-posix.c: New file.
68043
68044         * modules/printf-posix: New file.
68045         * lib/printf.c: New file.
68046         * m4/printf-posix-rpl.m4: New file.
68047         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68048         REPLACE_PRINTF.
68049         * lib/stdio_.h (printf): New declaration.
68050         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68051         ____strfmon____): New macros.
68052         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68053         REPLACE_PRINTF.
68054
68055 2007-03-09  Bruno Haible  <bruno@clisp.org>
68056
68057         * tests/test-vasnprintf-posix2.sh: New file.
68058         * tests/test-vasnprintf-posix2.c: New file.
68059         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68060         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68061         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68062
68063         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68064         a locale dependent decimal point, rather than always '.'.
68065
68066 2007-03-09  Eric Blake  <ebb9@byu.net>
68067
68068         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68069         spite of platforms like Tandem/NSK that define it to -1.
68070
68071 2007-03-08  Bruno Haible  <bruno@clisp.org>
68072
68073         * modules/vprintf-posix-tests: New file.
68074         * tests/test-vprintf-posix.sh: New file.
68075         * tests/test-vprintf-posix.c: New file.
68076         * tests/test-printf-posix.h: New file.
68077
68078         * modules/vprintf-posix: New file.
68079         * lib/vprintf.c: New file.
68080         * m4/vprintf-posix.m4: New file.
68081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68082         REPLACE_VPRINTF.
68083         * lib/stdio_.h (vprintf): New declaration.
68084         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68085         REPLACE_VPRINTF.
68086
68087 2007-03-08  Bruno Haible  <bruno@clisp.org>
68088
68089         * modules/fprintf-posix-tests: New file.
68090         * tests/test-fprintf-posix.sh: New file.
68091         * tests/test-fprintf-posix.c: New file.
68092
68093         * modules/fprintf-posix: New file.
68094         * lib/fprintf.c: New file.
68095         * m4/fprintf-posix.m4: New file.
68096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68097         REPLACE_FPRINTF.
68098         * lib/stdio_.h (fprintf): New declaration.
68099         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68100         REPLACE_FPRINTF.
68101
68102 2007-03-08  Bruno Haible  <bruno@clisp.org>
68103
68104         * modules/vfprintf-posix-tests: New file.
68105         * tests/test-vfprintf-posix.sh: New file.
68106         * tests/test-vfprintf-posix.c: New file.
68107         * tests/test-fprintf-posix.h: New file.
68108         * tests/test-fprintf-posix.out: New file.
68109
68110         * modules/vfprintf-posix: New file.
68111         * lib/vfprintf.c: New file.
68112         * m4/vfprintf-posix.m4: New file.
68113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68114         REPLACE_VFPRINTF.
68115         * lib/stdio_.h (vfprintf): New declaration.
68116         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68117         REPLACE_VFPRINTF.
68118
68119 2007-03-08  Bruno Haible  <bruno@clisp.org>
68120
68121         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68122
68123 2007-03-08  Bruno Haible  <bruno@clisp.org>
68124
68125         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68126         instead of 'expr' invocations.
68127         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68128         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68129         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68130         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68131         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68132         Suggested by Paul Eggert.
68133
68134 2007-03-08  Bruno Haible  <bruno@clisp.org>
68135
68136         * modules/fseterr-tests: New file.
68137         * tests/test-fseterr.c: New file.
68138
68139         * modules/fseterr: New file.
68140         * lib/fseterr.h: New file.
68141         * lib/fseterr.c: New file.
68142
68143 2007-03-08  Bruno Haible  <bruno@clisp.org>
68144
68145         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
68146         * lib/getopt_.h: Likewise.
68147         * lib/mbswidth.h: Likewise.
68148         * lib/setenv.h: Likewise.
68149         * lib/vasnprintf.h: Likewise.
68150         * lib/vasprintf.h: Likewise.
68151         * lib/verror.h: Likewise.
68152         * lib/xsetenv.h: Likewise.
68153         * lib/xvasprintf.h: Likewise.
68154
68155 2007-03-08  Jim Meyering  <jim@meyering.net>
68156
68157         * users.txt: Add parted.
68158
68159         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
68160
68161 2007-03-07  Bruno Haible  <bruno@clisp.org>
68162
68163         * m4/printf.m4: Make the shell script snippets copy&pastable.
68164
68165 2007-03-02  Bruno Haible  <bruno@clisp.org>
68166
68167         * lib/netinet_in_.h: New file.
68168         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68169         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
68170         * modules/netinet_in (Files): Add lib/netinet_in_.h.
68171         (Depends-on): Add absolute-header.
68172         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
68173         into netinet/in.h.
68174
68175 2007-03-03  Bruno Haible  <bruno@clisp.org>
68176
68177         * lib/sys_select_.h: New file.
68178         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
68179         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68180         * modules/sys_select (Files): Add lib/sys_select_.h.
68181         (Depends-on): Add absolute-header.
68182         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68183         into sys/select.h.
68184
68185 2007-03-02  Bruno Haible  <bruno@clisp.org>
68186
68187         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68188         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68189         values.
68190         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68191         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68192         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68193         * modules/sys_socket (Depends-on): Add absolute-header.
68194         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68195         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68196         (Include): Remove requirement of inclusion of <sys/types.h>.
68197
68198 2007-03-02  Bruno Haible  <bruno@clisp.org>
68199
68200         * lib/byteswap_.h (bswap_32): Fix formula.
68201
68202 2007-03-06  Bruno Haible  <bruno@clisp.org>
68203
68204         * modules/sprintf-posix-tests: New file.
68205         * tests/test-sprintf-posix.c: New file.
68206
68207         * modules/sprintf-posix: New file.
68208         * lib/sprintf.c: New file.
68209         * m4/sprintf-posix.m4: New file.
68210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68211         REPLACE_SPRINTF.
68212         * lib/stdio_.h (sprintf): New declaration.
68213         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68214         REPLACE_SPRINTF.
68215
68216 2007-03-06  Bruno Haible  <bruno@clisp.org>
68217
68218         * modules/vsprintf-posix-tests: New file.
68219         * tests/test-vsprintf-posix.c: New file.
68220         * tests/test-sprintf-posix.h: New file.
68221
68222         * modules/vsprintf-posix: New file.
68223         * lib/vsprintf.c: New file.
68224         * m4/vsprintf-posix.m4: New file.
68225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68226         REPLACE_VSPRINTF.
68227         * lib/stdio_.h (vsprintf): New declaration.
68228         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68229         REPLACE_VSPRINTF.
68230
68231 2007-03-06  Bruno Haible  <bruno@clisp.org>
68232
68233         * modules/vsnprintf (Depend-on): Remove minmax.
68234
68235 2007-03-06  Bruno Haible  <bruno@clisp.org>
68236
68237         * modules/snprintf-posix-tests: New file.
68238         * tests/test-snprintf-posix.c: New file.
68239
68240         * modules/snprintf-posix: New file.
68241         * m4/snprintf-posix.m4: New file.
68242         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
68243         gl_FUNC_SNPRINTF.
68244         (gl_FUNC_SNPRINTF): Invoke it.
68245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
68246         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
68247         is set.
68248         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
68249
68250 2007-03-06  Bruno Haible  <bruno@clisp.org>
68251
68252         * modules/vsnprintf-posix-tests: New file.
68253         * tests/test-vsnprintf-posix.c: New file.
68254         * tests/test-snprintf-posix.h: New file.
68255
68256         * modules/vsnprintf-posix: New file.
68257         * m4/vsnprintf-posix.m4: New file.
68258         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68259         gl_FUNC_VSNPRINTF.
68260         (gl_FUNC_VSNPRINTF): Invoke it.
68261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68262         * lib/stdio_.h (vsnprintf): Define as a replacement if
68263         REPLACE_VSNPRINTF is set.
68264         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68265
68266 2007-03-06  Bruno Haible  <bruno@clisp.org>
68267
68268         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68269         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68270
68271 2007-03-06  Bruno Haible  <bruno@clisp.org>
68272
68273         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68274         (asinl): Declare also if HAVE_DECL_ASINL is set.
68275         (atanl): Declare also if HAVE_DECL_ATANL is set.
68276         (ceill): Declare also if HAVE_DECL_CEILL is set.
68277         (cosl): Declare also if HAVE_DECL_COSL is set.
68278         (expl): Declare also if HAVE_DECL_EXPL is set.
68279         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68280         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68281         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68282         (logl): Declare also if HAVE_DECL_LOGL is set.
68283         (sinl): Declare also if HAVE_DECL_SINL is set.
68284         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68285         (tanl): Declare also if HAVE_DECL_TANL is set.
68286         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68288         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68289         declaration of frexpl, ldexpl.
68290         * modules/printf-frexpl (Depends-on): Add math.
68291         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68292
68293 2007-03-05  Bruno Haible  <bruno@clisp.org>
68294
68295         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68296         frexpl and ldexpl are declared.
68297         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68298
68299 2007-03-05  Bruno Haible  <bruno@clisp.org>
68300
68301         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68302         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68303
68304 2007-03-05  Bruno Haible  <bruno@clisp.org>
68305
68306         * lib/stdio_.h: Include <stddef.h>.
68307
68308 2007-03-05  Bruno Haible  <bruno@clisp.org>
68309
68310         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68311
68312 2007-03-05  Bruno Haible  <bruno@clisp.org>
68313
68314         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68315         NetBSD 4, from Ralf Wildenhues.
68316
68317 2007-03-04  Bruno Haible  <bruno@clisp.org>
68318
68319         * lib/vasprintf.h: Update #if logic for the case when the functions
68320         exist but are overridden.
68321
68322 2007-03-04  Bruno Haible  <bruno@clisp.org>
68323
68324         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68325         implementations: glibc-2.4 and MacOS X 10.3.
68326         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68327         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68328         * tests/test-vasprintf-posix.c (test_function): Likewise.
68329
68330 2007-03-04  Bruno Haible  <bruno@clisp.org>
68331
68332         * modules/vasprintf-posix-tests: New file.
68333         * tests/test-vasprintf-posix.c: New file.
68334
68335         * modules/vasprintf-posix: New file.
68336         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68337         defined.
68338         * m4/vasprintf-posix.m4: New file.
68339         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68340         gl_FUNC_VASPRINTF.
68341         (gl_FUNC_VASPRINTF): Invoke it.
68342         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68343         here.
68344         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68345
68346 2007-03-04  Bruno Haible  <bruno@clisp.org>
68347
68348         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68349         REPLACE_GETTIMEOFDAY.
68350         * modules/sys_time (Makefile.am): Likewise.
68351         * m4/sys_time_h.m4: Likewise.
68352         * m4/gettimeofday.m4: Likewise.
68353
68354 2007-03-04  Bruno Haible  <bruno@clisp.org>
68355
68356         * modules/vasnprintf-posix-tests: New file.
68357         * tests/test-vasnprintf-posix.c: New file.
68358
68359         * modules/vasnprintf-posix: New file.
68360         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68361         printf-frexpl.h.
68362         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68363         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68364         REPLACE_VASNPRINTF is defined.
68365         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68366         gl_FUNC_VASNPRINTF.
68367         (gl_FUNC_VASNPRINTF): Invoke it.
68368         * m4/vasnprintf-posix.m4: New file.
68369         * m4/printf.m4: New file.
68370
68371 2007-03-04  Bruno Haible  <bruno@clisp.org>
68372
68373         Compile progreloc.c only if --enable-relocatable is specified.
68374         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68375         if --enable-relocatable was specified.
68376         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68377         lib_SOURCES.
68378
68379 2007-03-04  Jim Meyering  <jim@meyering.net>
68380
68381         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68382         Use it consistently, rather than enumerating errno constants.
68383
68384 2007-03-04  Bruno Haible  <bruno@clisp.org>
68385
68386         * modules/xvasprintf-tests: New file.
68387         * tests/test-xvasprintf.c: New file.
68388
68389         * modules/vasprintf-tests: New file.
68390         * tests/test-vasprintf.c: New file.
68391
68392         * modules/vasnprintf-tests: New file.
68393         * tests/test-vasnprintf.c: New file.
68394
68395         * modules/vsnprintf-tests: New file.
68396         * tests/test-vsnprintf.c: New file.
68397
68398         * modules/snprintf-tests: New file.
68399         * tests/test-snprintf.c: New file.
68400
68401 2007-03-04  Bruno Haible  <bruno@clisp.org>
68402
68403         Compile relocatable.c only if --enable-relocatable is specified.
68404         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68405         gl_RELOCATABLE_LIBRARY.
68406         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68407         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68408         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68409         gl_RELOCATABLE_LIBRARY.
68410         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68411         (Makefile.am): Remove lib_SOURCES.
68412         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68413         gl_RELOCATABLE_LIBRARY.
68414         (Makefile.am): Remove lib_SOURCES.
68415         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68416         always.
68417         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68418         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68419
68420 2007-03-04  Bruno Haible  <bruno@clisp.org>
68421
68422         * modules/argmatch-tests: New file.
68423         * tests/test-argmatch.c: New file.
68424
68425         * tests/test-allocsa.c (main): Halve the number of loop runs.
68426
68427         * modules/alloca-opt-tests: New file.
68428         * tests/test-alloca-opt.c: New file.
68429
68430 2007-03-04  Jim Meyering  <jim@meyering.net>
68431
68432         Work around difference between Linux ACLs and Solaris 10 ZFS.
68433         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68434         for EINVAL.
68435
68436 2007-03-03  Bruno Haible  <bruno@clisp.org>
68437
68438         * modules/relocatable-prog (Depends-on): Add back progreloc's
68439         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68440
68441 2007-03-03  Bruno Haible  <bruno@clisp.org>
68442
68443         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68444         * modules/relocatable-lib: New file.
68445
68446 2007-03-03  Bruno Haible  <bruno@clisp.org>
68447
68448         * modules/relocatable-prog: Renamed from modules/relocatable.
68449         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68450
68451 2007-03-03  Bruno Haible  <bruno@clisp.org>
68452
68453         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68454         m4/relocatable-lib.m4.
68455         (Depends-on): Remove 'relocatable'.
68456         (configure.ac): Add gl_RELOCATABLE_NOP.
68457
68458 2007-03-03  Bruno Haible  <bruno@clisp.org>
68459
68460         * modules/relocatable-prog-wrapper: New file.
68461         * modules/relocatable (Depends-on): Add it. Remove all other
68462         dependencies except progname.
68463         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68464
68465         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68466         (gl_FUNC_STRERROR): Nop.
68467         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68468
68469         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68470         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68471
68472         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68473         (gl_FUNC_READLINK): Update.
68474
68475         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68476
68477 2007-03-03  Bruno Haible  <bruno@clisp.org>
68478
68479         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68480         * modules/xreadlink (Depends-on): Add unistd.
68481         * modules/xreadlink-with-size (Depends-on): Likewise.
68482
68483 2007-03-03  Bruno Haible  <bruno@clisp.org>
68484
68485         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68486         extracted from gt_FUNC_SETENV.
68487         (gt_FUNC_SETENV): Remove macro.
68488         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68489         remove gt_FUNC_SETENV.
68490
68491 2007-03-03  Bruno Haible  <bruno@clisp.org>
68492
68493         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68494         ENABLE_RELOCATABLE here.
68495         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68496
68497 2007-03-03  Bruno Haible  <bruno@clisp.org>
68498
68499         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68500         * tests/test-rbtreehash_list.c: Include progname.h.
68501         (main): Call set_program_name.
68502
68503         * modules/rbtree-oset-tests (Depends-on): Add progname.
68504         * tests/test-rbtree_oset.c: Include progname.h.
68505         (main): Call set_program_name.
68506
68507         * modules/rbtree-list-tests (Depends-on): Add progname.
68508         * tests/test-rbtree_list.c: Include progname.h.
68509         (main): Call set_program_name.
68510
68511         * modules/linked-list-tests (Depends-on): Add progname.
68512         * tests/test-linked_list.c: Include progname.h.
68513         (main): Call set_program_name.
68514
68515 2007-03-03  Bruno Haible  <bruno@clisp.org>
68516
68517         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68518         All uses of __restrict changed to _Restrict_.
68519         * lib/glob_.h (__restrict): Remove macro.
68520
68521 2007-03-02  Bruno Haible  <bruno@clisp.org>
68522
68523         * modules/gettext (configure.ac): Require gettext infrastructure
68524         from version 0.16.1.
68525
68526 2007-03-02  Bruno Haible  <bruno@clisp.org>
68527
68528         * modules/linkedhash-list-tests (Depends-on): Add progname.
68529         * tests/test-linkedhash_list.c: Include progname.h.
68530         (main): Call set_program_name.
68531
68532         * modules/carray-list-tests (Depends-on): Add progname.
68533         * tests/test-carray_list.c: Include progname.h.
68534         (main): Call set_program_name.
68535
68536         * modules/avltreehash-list-tests (Depends-on): Add progname.
68537         * tests/test-avltreehash_list.c: Include progname.h.
68538         (main): Call set_program_name.
68539
68540         * modules/avltree-oset-tests (Depends-on): Add progname.
68541         * tests/test-avltree_oset.c: Include progname.h.
68542         (main): Call set_program_name.
68543
68544         * modules/avltree-list-tests (Depends-on): Add progname.
68545         * tests/test-avltree_list.c: Include progname.h.
68546         (main): Call set_program_name.
68547
68548         * modules/array-oset-tests (Depends-on): Add progname.
68549         * tests/test-array_oset.c: Include progname.h.
68550         (main): Call set_program_name.
68551
68552         * modules/array-list-tests (Depends-on): Add progname.
68553         * tests/test-array_list.c: Include progname.h.
68554         (main): Call set_program_name.
68555
68556         * modules/argp-tests (Depends-on): Add progname.
68557         * tests/test-argp.c: Include argp.h first. Include progname.h.
68558         (main): Call set_program_name.
68559
68560 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68561
68562         * doc/gnulib-tool.texi (Initial import): Reword description of
68563         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68564         limited effect even if defined after the first system include.
68565
68566 2007-03-01  Bruno Haible  <bruno@clisp.org>
68567
68568         * build-aux/config.libpath: Update to libtool-1.5.22.
68569         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68570
68571 2007-03-01  Bruno Haible  <bruno@clisp.org>
68572
68573         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68574         foo_CFLAGS.
68575         Reported by Ralf Wildenhues.
68576
68577 2007-03-01  Bruno Haible  <bruno@clisp.org>
68578
68579         * build-aux/install-reloc: Remove object files left over by some
68580         compilers.
68581         Reported by Ralf Wildenhues.
68582
68583 2007-03-01  Bruno Haible  <bruno@clisp.org>
68584
68585         * build-aux/install-reloc: Break long lines.
68586
68587 2007-03-01  Bruno Haible  <bruno@clisp.org>
68588
68589         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68590         Reported by Ralf Wildenhues.
68591
68592 2007-03-01  Bruno Haible  <bruno@clisp.org>
68593
68594         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68595         include ordering constraints.
68596
68597 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68598
68599         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68600         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68601         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68602         as another example.
68603         * lib/time_.h: Fix misspelling.
68604         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68605         Require gl_HEADER_TIME_H_DEFAULTS.
68606         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68607         * m4/time_r.m4 (gl_TIME_R): Likewise.
68608         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68609
68610 2007-03-01  Bruno Haible  <bruno@clisp.org>
68611
68612         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68613         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68614
68615 2007-03-01  Jim Meyering  <jim@meyering.net>
68616
68617         * modules/xreadlink (Maintainer): Add my name.
68618         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68619
68620 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68621             Bruno Haible  <bruno@clisp.org>
68622
68623         * build-aux/install-reloc: Compile also c-ctype.c.
68624         * build-aux/relocatable.sh.in: New file.
68625         * doc/relocatable.texi: New file.
68626         * doc/relocatable-maint.texi: New file.
68627         * doc/gnulib.texi: Include relocatable-maint.texi.
68628         * lib/progreloc.c: Include unistd.h unconditionally.
68629         * lib/relocwrapper.c: Include unistd.h unconditionally.
68630         Include c-ctype.h.
68631         (add_dotbin): Use c_tolower.
68632         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68633         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68634         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68635         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68636         to m4/relocatable-lib.m4.
68637         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68638         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68639         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68640         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68641         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68642         * modules/relocatable: New file.
68643         * modules/relocatable-lib: New file.
68644         * modules/relocatable-script: New file.
68645
68646 2007-02-28  Bruno Haible  <bruno@clisp.org>
68647
68648         Import --enable-relocatable infrastructure.
68649         * build-aux/config.libpath: New file, from GNU gettext.
68650         * build-aux/install-reloc: New file, from GNU gettext.
68651         * build-aux/reloc-ldflags: New file, from GNU gettext.
68652         * lib/relocatable.h: New file, from GNU gettext.
68653         * lib/relocatable.c: New file, from GNU gettext.
68654         * lib/relocwrapper.c: New file, from GNU gettext.
68655         * m4/relocatable.m4: New file, from GNU gettext.
68656
68657 2007-02-28  Bruno Haible  <bruno@clisp.org>
68658
68659         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68660
68661         * modules/xreadlink: New file, from GNU gettext with modifications.
68662         * lib/xreadlink.c: New file, from GNU gettext.
68663         * lib/xreadlink.h: Add comments.
68664         (xreadlink): New declaration.
68665
68666         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68667         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68668         lib/xreadlink-with-size.c.
68669         (configure.ac): Remove gl_XREADLINK invocation.
68670         (Makefile.am): Augment lib_SOURCES.
68671         * m4/xreadlink.m4: Remove file.
68672         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68673         (xreadlink_with_size): Renamed from xreadink.
68674         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68675         * modules/canonicalize (Depends-on): Replace xreadlink with
68676         xreadlink-with-size.
68677         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68678
68679 2007-02-25  Jim Meyering  <jim@meyering.net>
68680
68681         * build-aux/announce-gen: When complaining about excess arguments,
68682         list them.
68683
68684 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68685
68686         * README: Document signed integer overflow situation more
68687         accurately.
68688
68689 2007-02-25  Bruno Haible  <bruno@clisp.org>
68690
68691         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68692         'a' or 'A' conversion.
68693
68694 2007-02-25  Bruno Haible  <bruno@clisp.org>
68695
68696         * modules/filename: Renamed from modules/pathname.
68697         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68698         lib/concatpath.c with lib/concat-filename.c.
68699         (Makefile.am): Update.
68700         (Include): Replace pathname.h with filename.h.
68701         * lib/filename.h: Renamed from lib/pathname.h.
68702         (concatenated_filename): Renamed from concatenated_pathname.
68703         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68704         (concatenated_filename): Renamed from concatenated_pathname.
68705         * lib/findprog.c: Include filename.h instead of pathname.h.
68706         (find_in_path): Update.
68707         * lib/javacomp.c: Include filename.h instead of pathname.h.
68708         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68709         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68710         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68711         is_oldgcj_14_13_usable, is_javac_usable): Update.
68712         * lib/javaexec.c: Include filename.h instead of pathname.h.
68713         (execute_java_class): Update.
68714         * modules/findprog: Update.
68715         * modules/javacomp: Update.
68716         * modules/javaexec: Update.
68717         * MODULES.html.sh (File system functions): Add 'filename', remove
68718         'pathname'.
68719
68720 2007-02-25  Bruno Haible  <bruno@clisp.org>
68721
68722         * modules/printf-frexpl-tests: New file.
68723         * tests/test-printf-frexpl.c: New file.
68724
68725         * modules/printf-frexpl: New file.
68726         * lib/printf-frexpl.h: New file.
68727         * lib/printf-frexpl.c: New file.
68728         * m4/printf-frexpl.m4: New file.
68729
68730 2007-02-25  Bruno Haible  <bruno@clisp.org>
68731
68732         * modules/printf-frexp-tests: New file.
68733         * tests/test-printf-frexp.c: New file.
68734
68735         * modules/printf-frexp: New file.
68736         * lib/printf-frexp.h: New file.
68737         * lib/printf-frexp.c: New file.
68738         * m4/printf-frexp.m4: New file.
68739
68740 2007-02-25  Bruno Haible  <bruno@clisp.org>
68741
68742         Assume automake >= 1.10 for the tests.
68743         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68744         * modules/arctwo-tests: Likewise.
68745         * modules/argp-tests: Likewise.
68746         * modules/avltree-list-tests: Likewise.
68747         * modules/avltree-oset-tests: Likewise.
68748         * modules/avltreehash-list-tests: Likewise.
68749         * modules/carray-list-tests: Likewise.
68750         * modules/crc-tests: Likewise.
68751         * modules/des-tests: Likewise.
68752         * modules/gc-arcfour-tests: Likewise.
68753         * modules/gc-arctwo-tests: Likewise.
68754         * modules/gc-des-tests: Likewise.
68755         * modules/gc-hmac-md5-tests: Likewise.
68756         * modules/gc-hmac-sha1-tests: Likewise.
68757         * modules/gc-md2-tests: Likewise.
68758         * modules/gc-md4-tests: Likewise.
68759         * modules/gc-md5-tests: Likewise.
68760         * modules/gc-pbkdf2-sha1-tests: Likewise.
68761         * modules/gc-rijndael-tests: Likewise.
68762         * modules/gc-sha1-tests: Likewise.
68763         * modules/gc-tests: Likewise.
68764         * modules/getaddrinfo-tests: Likewise.
68765         * modules/hmac-md5-tests: Likewise.
68766         * modules/hmac-sha1-tests: Likewise.
68767         * modules/linked-list-tests: Likewise.
68768         * modules/linkedhash-list-tests: Likewise.
68769         * modules/lock-tests: Likewise.
68770         * modules/md2-tests: Likewise.
68771         * modules/md4-tests: Likewise.
68772         * modules/md5-tests: Likewise.
68773         * modules/rbtree-list-tests: Likewise.
68774         * modules/rbtree-oset-tests: Likewise.
68775         * modules/rbtreehash-list-tests: Likewise.
68776         * modules/read-file-tests: Likewise.
68777         * modules/rijndael-tests: Likewise.
68778         * modules/stdint-tests: Likewise.
68779         * modules/tls-tests: Likewise.
68780
68781 2007-02-24  Bruno Haible  <bruno@clisp.org>
68782
68783         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68784         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68785         function; instead check whether isnan with a double argument links.
68786         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68787         function; instead check whether isnan with a 'long double' argument
68788         links.
68789         Reported by Eric Blake <ebb9@byu.net>.
68790
68791 2007-02-24  Bruno Haible  <bruno@clisp.org>
68792
68793         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68794         defined.
68795         * lib/isnanl.c: Remove all code. Just include isnan.c.
68796         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68797
68798 2007-02-25  Jim Meyering  <jim@meyering.net>
68799
68800         Avoid conflicting types for 'unsetenv' on FreeBSD.
68801         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68802         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68803         in stdlib.h.
68804
68805 2007-02-24  Bruno Haible  <bruno@clisp.org>
68806
68807         * modules/isnanl-nolibm-tests: New file.
68808         * tests/test-isnanl.c: New file.
68809
68810         * modules/isnanl-nolibm: New file.
68811         * lib/isnanl.h: New file.
68812         * lib/isnanl.c: New file.
68813         * m4/isnanl.m4: New file.
68814
68815 2007-02-24  Bruno Haible  <bruno@clisp.org>
68816
68817         * modules/isnan-nolibm-tests: New file.
68818         * tests/test-isnan.c: New file.
68819
68820         * modules/isnan-nolibm: New file.
68821         * lib/isnan.h: New file.
68822         * lib/isnan.c: New file.
68823         * m4/isnan.m4: New file.
68824
68825 2007-02-24  Bruno Haible  <bruno@clisp.org>
68826
68827         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68828         assume that an exponent fits in 20 bits.
68829
68830 2007-02-24  Jim Meyering  <jim@meyering.net>
68831
68832         * m4/regex.m4: Update the description of the configure-time option,
68833         --without-included-regex, to state accurately what the defaults are,
68834         and perhaps to give people an idea why using this option is risky.
68835
68836 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68837
68838         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68839         loops on small arguments.  This attempts to avoid the problem
68840         Bruno Haible reported for AIX 4.3.2 in
68841         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68842
68843 2007-02-23  Bruno Haible  <bruno@clisp.org>
68844
68845         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68846         Needed for help2man.
68847
68848 2007-02-23  Karl Berry  <karl@gnu.org>
68849
68850         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68851         exists, foo.h should be cvs-ignored, not committed.
68852
68853 2007-02-23  Eric Blake  <ebb9@byu.net>
68854
68855         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68856         * lib/stat-time.h (includes): Likewise.
68857         * lib/utimecmp.c (includes): Likewise.
68858         * lib/utimens.h (includes): Likewise.
68859         * lib/getdate.y (includes): Also include "timespec.h" for use
68860         internal to the module.
68861         * modules/utimens (Depends-on): Revert yesterday's patch.
68862         * modules/nanosleep (Depends-on): Add missing dependency.
68863
68864 2007-02-22  Bruno Haible  <bruno@clisp.org>
68865
68866         * lib/glob.c: Don't include getlogin_r.h.
68867
68868 2007-02-22  Jim Meyering  <jim@meyering.net>
68869
68870         * modules/utimens (Depends-on): Add timespec, required for
68871         utimens.h's inclusion of timespec.h.
68872
68873 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68874
68875         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68876         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68877         Schwab in
68878         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68879         I'll try to think of a better way to fix the Solaris problem.
68880
68881         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68882         like glibc; on Solaris 10, it fails with errno == EINVAL.
68883         POSIX says the behavior is unspecified if the first argument is NULL,
68884         so play it safe and never pass NULL to the system getcwd.
68885
68886 2007-02-21  Jim Meyering  <jim@meyering.net>
68887
68888         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68889         of gettimeofday.  It would conflict with the one now always
68890         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68891         an IRIX 6.5 build failure.
68892
68893 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68894
68895         Minor fixups to port to Solaris 10 with Sun C 5.8.
68896         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68897         * modules/getcwd (Depends-on): Add dirfd.
68898         * lib/putenv.c (putenv): #undef it.
68899         (rpl_putenv): New decl.
68900         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68901
68902 2007-02-20  Bruno Haible  <bruno@clisp.org>
68903
68904         * modules/stdio-tests: New file.
68905         * tests/test-stdio.c: New file.
68906
68907         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68908         (Depends-on): Add stdio.
68909         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68910         (Include): Use <stdio.h> instead of vsnprintf.h.
68911         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68912         HAVE_DECL_VSNPRINTF.
68913         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68914
68915         * modules/snprintf (Files): Remove lib/snprintf.h.
68916         (Depends-on): Add stdio.
68917         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68918         (Include): Use <stdio.h> instead of snprintf.h.
68919         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68920         HAVE_DECL_SNPRINTF.
68921         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68922         * lib/getaddrinfo.c: Likewise.
68923
68924         * modules/stdio: New file.
68925         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68926         * lib/snprintf.h: Remove file.
68927         * lib/vsnprintf.h: Remove file.
68928         * lib/.cppi-disable: Remove snprintf.h.
68929         * m4/stdio_h.m4: New file.
68930         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68931
68932 2007-02-20  Jim Meyering  <jim@meyering.net>
68933
68934         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68935         used by e.g., mingw.  From Bruno Haible.
68936
68937 2007-02-19  Bruno Haible  <bruno@clisp.org>
68938
68939         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68940         warnings.
68941         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68942
68943 2007-02-19  Bruno Haible  <bruno@clisp.org>
68944
68945         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68946         from mingw users.
68947
68948 2007-02-19  Bruno Haible  <bruno@clisp.org>
68949
68950         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68951         warnings.
68952         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68953
68954 2007-02-19  Jim Meyering  <jim@meyering.net>
68955
68956         Don't use FD after a successful "fdopendir (fd)".
68957         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68958         Reset it by calling dirfd on the just-obtained DIR*.
68959
68960         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68961         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68962
68963 2007-02-18  Bruno Haible  <bruno@clisp.org>
68964
68965         * lib/readlink.c: Include <unistd.h>.
68966         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68967         HAVE_READLINK.
68968         * modules/readlink (Depends-on): Add unistd.
68969         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68970         (Include): Add <unistd.h>.
68971
68972         * lib/getlogin_r.h: Remove file.
68973         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68974         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68975         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68976         HAVE_DECL_GETLOGIN_R.
68977         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68978         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68979         (Include): Use <unistd.h> instead of getlogin_r.h.
68980
68981         * lib/getcwd.h: Remove file.
68982         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68983         * lib/xgetcwd.c: Likewise.
68984         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68985         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68986         * modules/getcwd (Files): Remove lib/getcwd.h.
68987         (Depends-on): Add unistd.
68988         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68989         (Include): Use <unistd.h> instad of getcwd.h.
68990
68991         * lib/ftruncate.c: Include <unistd.h> first.
68992         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68993         Set HAVE_FTRUNCATE.
68994         * modules/ftruncate (Depends-on): Add unistd.
68995         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68996
68997         * lib/fchdir.c: Include <unistd.h> first.
68998         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68999         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
69000         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
69001         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69002         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
69003
69004         * lib/dup2.c: Include <unistd.h> first.
69005         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
69006         HAVE_DUP2.
69007         * modules/dup2 (Depends-on): Add unistd.
69008         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69009
69010         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69011         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69012         REPLACE_CHOWN. Don't define chown as a macro here.
69013         * modules/chown (Depends-on): Add unistd.
69014         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69015
69016         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69017         Add definition for GL_LINK_WARNING.
69018         (chown, dup2): New declarations.
69019         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69020         link warning.
69021         (ftruncate): New declaration.
69022         (getcwd): New declaration, taken from old getcwd.h.
69023         (getlogin_r): New declaration, taken from old getlogin_r.h.
69024         (readlink): New declaration.
69025         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69026         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69027         (gl_PREREQ_UNISTD): Remove macro.
69028         (gl_UNISTD_MODULE_INDICATOR): New macro.
69029         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69030         many new variables. Don't set UNISTD_H.
69031         * modules/unistd (Description): Change.
69032         (Depends-on): Add link-warning.
69033         (configure.ac): Update.
69034         (Makefile.am): Create unistd.h always. Substitute many new variables
69035         into it.
69036
69037 2007-02-18  Bruno Haible  <bruno@clisp.org>
69038
69039         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69040         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69041         HAVE_GETSUBOPT.
69042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69043         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69044         * lib/getsubopt.h: Remove file.
69045         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69046         (Depends-on): Add stdlib.
69047         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69048         (Includes): Use <stdlib.h> instead of getsubopt.h.
69049         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69050         Set HAVE_GETSUBOPT.
69051         * lib/getsubopt.c: Don't include getsubopt.h.
69052
69053 2007-02-18  Bruno Haible  <bruno@clisp.org>
69054
69055         * modules/fchdir (Depends-on): Add dup2.
69056
69057 2007-02-18  Bruno Haible  <bruno@clisp.org>
69058
69059         * lib/stdlib_.h: Handle glibc's special invocation convention
69060         specially.
69061
69062 2007-02-18  Bruno Haible  <bruno@clisp.org>
69063
69064         * modules/stdlib-tests: New file.
69065         * tests/test-stdlib.c: New file.
69066
69067         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69068         (Depends-on): Add stdlib.
69069         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69070         (Includes): Use <stdlib.h> instead of mkstemp.h.
69071         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69072         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69073         * lib/mkstemp.c: Don't include mkstemp.h.
69074         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69075         * lib/stdlib--.h: Don't include mkstemp.h.
69076
69077         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69078         (Depends-on): Add stdlib.
69079         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69080         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69081         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69082         HAVE_MKDTEMP.
69083         * lib/mkdtemp.c: Don't include mkdtemp.h.
69084         * lib/clean-temp.c: Don't include mkdtemp.h.
69085
69086         * modules/exit (Files): Remove lib/exit.h.
69087         (Depends-on): Add stdlib.
69088         (Makefile.am): Remove lib_SOURCES.
69089         (Include): Use <stdlib.h> instead of exit.h.
69090         * lib/argmatch.c: Don't include exit.h.
69091         * lib/execute.c: Likewise.
69092         * lib/pagealign_alloc.c: Likewise.
69093         * lib/pipe.c: Likewise.
69094         * lib/wait-process.c: Likewise.
69095         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69096         * lib/exitfail.c: Likewise.
69097         * lib/savewd.c: Likewise.
69098         * lib/xsetenv.c: Likewise.
69099
69100         * modules/stdlib: New file.
69101         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69102         and extra comments about mkstemp().
69103         * lib/exit.h: Remove file.
69104         * lib/mkdtemp.h: Remove file.
69105         * lib/mkstemp.h: Remove file.
69106         * m4/stdlib_h.m4: New file.
69107         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69108
69109 2007-02-18  Bruno Haible  <bruno@clisp.org>
69110
69111         * modules/math-tests: New file.
69112         * tests/test-math.c: New file.
69113
69114         * modules/math: New file.
69115         * modules/mathl (Files): Remove lib/mathl.h.
69116         (Depends-on): Add math.
69117         (Makefile.am): Don't mention mathl.h.
69118         (Include): Use <math.h> instead of mathl.h.
69119         * lib/math_.h: New file.
69120         * lib/mathl.h: Remove file.
69121         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69122         mathl.h.
69123         * lib/asinl.c: Likewise.
69124         * lib/atanl.c: Likewise.
69125         * lib/ceill.c: Likewise.
69126         * lib/cosl.c: Likewise.
69127         * lib/expl.c: Likewise.
69128         * lib/floorl.c: Likewise.
69129         * lib/frexpl.c: Likewise.
69130         * lib/ldexpl.c: Likewise.
69131         * lib/logl.c: Likewise.
69132         * lib/sincosl.c: Likewise.
69133         * lib/sinl.c: Likewise.
69134         * lib/sqrtl.c: Likewise.
69135         * lib/tanl.c: Likewise.
69136         * lib/trigl.c: Likewise.
69137         * m4/math_h.m4: New file.
69138         * MODULES.html.sh (Mathematics): Add math.
69139
69140 2007-02-17  Bruno Haible  <bruno@clisp.org>
69141
69142         * modules/wctype-tests: New file.
69143         * tests/test-wctype.c: New file.
69144
69145         * modules/wchar-tests: New file.
69146         * tests/test-wchar.c: New file.
69147
69148         * modules/unistd-tests: New file.
69149         * tests/test-unistd.c: New file.
69150
69151         * modules/time-tests: New file.
69152         * tests/test-time.c: New file.
69153
69154         * modules/sysexits-tests: New file.
69155         * tests/test-sysexits.c: New file.
69156
69157         * modules/sys_time-tests: New file.
69158         * tests/test-sys_time.c: New file.
69159
69160         * modules/sys_stat-tests: New file.
69161         * tests/test-sys_stat.c: New file.
69162
69163         * modules/sys_socket-tests: New file.
69164         * tests/test-sys_socket.c: New file.
69165
69166         * modules/sys_select-tests: New file.
69167         * tests/test-sys_select.c: New file.
69168
69169         * modules/string-tests: New file.
69170         * tests/test-string.c: New file.
69171
69172         * modules/stdbool-tests: New file.
69173         * tests/test-stdbool.c: New file.
69174
69175         * modules/netinet_in-tests: New file.
69176         * tests/test-netinet_in.c: New file.
69177
69178         * modules/inttypes-tests: New file.
69179         * tests/test-inttypes.c: New file.
69180
69181         * modules/fcntl-tests: New file.
69182         * tests/test-fcntl.c: New file.
69183
69184         * modules/byteswap-tests: New file.
69185         * tests/test-byteswap.c: New file.
69186
69187         * modules/arpa_inet-tests: New file.
69188         * tests/test-arpa_inet.c: New file.
69189
69190 2007-02-17  Bruno Haible  <bruno@clisp.org>
69191
69192         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69193         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69194         if the corresponding module is not enabled. Emit link warnings if
69195         the function is used nevertheless.
69196         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69197         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69198         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69199         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69200         * modules/inttypes (Depends-on): Add link-warning.
69201         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69202         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69203         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69204         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69205         * modules/imaxdiv (configure.ac): Likewise.
69206         * modules/strtoimax (configure.ac): Likewise.
69207         * modules/strtoumax (configure.ac): Likewise.
69208
69209 2007-02-17  Bruno Haible  <bruno@clisp.org>
69210
69211         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69212         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69213         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69214         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69215
69216 2007-02-17  Bruno Haible  <bruno@clisp.org>
69217
69218         * modules/link-warning: New file.
69219         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69220         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69221         * modules/string (Depends-on): Add link-warning.
69222         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69223         string.h.
69224         * MODULES.html.sh (Support for building libraries and executables): Add
69225         link-warning.
69226
69227 2007-02-17  Bruno Haible  <bruno@clisp.org>
69228
69229         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69230         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69231         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69232         long lines.
69233
69234 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69235             Bruno Haible  <bruno@clisp.org>
69236
69237         * modules/tmpfile: New file.
69238         * lib/tmpfile.c: New file.
69239         * m4/tmpfile.m4: New file.
69240         * MODULES.html.sh (func_all_modules): New section "Input/output".
69241
69242 2007-02-15  Bruno Haible  <bruno@clisp.org>
69243
69244         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
69245         (supports_delete_on_close): New function.
69246         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
69247
69248 2007-02-14  Bruno Haible  <bruno@clisp.org>
69249
69250         * modules/mbspcasecmp-tests: New file.
69251         * tests/test-mbspcasecmp.sh: New file.
69252         * tests/test-mbspcasecmp.c: New file.
69253
69254         New module mbspcasecmp.
69255         * modules/mbspcasecmp: New file.
69256         * lib/mbspcasecmp.c: New file.
69257         * lib/string_.h (strncasecmp): Change warning message.
69258         (mbspcasecmp): New declaration.
69259         * m4/mbspcasecmp.m4: New file.
69260         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69261         GNULIB_MBSPCASECMP.
69262         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69263         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69264
69265 2007-02-14  Bruno Haible  <bruno@clisp.org>
69266
69267         * modules/mbsncasecmp-tests: New file.
69268         * tests/test-mbsncasecmp.sh: New file.
69269         * tests/test-mbsncasecmp.c: New file.
69270
69271         New module mbsncasecmp.
69272         * modules/mbsncasecmp: New file.
69273         * lib/mbsncasecmp.c: New file.
69274         * lib/string_.h (mbsncasecmp): New declaration.
69275         * m4/mbsncasecmp.m4: New file.
69276         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69277         GNULIB_MBSNCASECMP.
69278         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69279         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69280
69281 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69282
69283         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69284         Verify that it doesn't overlap with our flags.
69285         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69286         do not have the desired effect in multibyte locales; instead, use
69287         mbscasecmp.
69288         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69289         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69290         we don't require GNU fnmatch ourselves (if our users require it, they
69291         should do so explicitly).
69292
69293         Fix regex code so it doesn't rely on strcasecmp.
69294         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69295         Otherwise, include gnulib's langinfo.h.
69296         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69297         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69298         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69299         * modules/regex (FILES): Remove m4/codeset.m4.
69300         (Depends-on): Add localcharset.  Remove strcase.
69301
69302 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69303
69304         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69305         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69306
69307 2007-02-13  Bruno Haible  <bruno@clisp.org>
69308
69309         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69310         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69311
69312 2007-02-12  Bruno Haible  <bruno@clisp.org>
69313
69314         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69315         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69316         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69317         time warning rather than a link error.
69318
69319 2007-02-12  Bruno Haible  <bruno@clisp.org>
69320
69321         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69322         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69323         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69324
69325 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69326
69327         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69328         args, not 2.
69329
69330 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69331
69332         New module 'time', so that apps can include <time.h> as per
69333         POSIX and GNU instead of separate include files like time_r.h
69334         and timegm.h.  This implementation tries out a simpler approach
69335         for replacing decls in standard include files (as compared to
69336         the string module), somewhat as an experiment.
69337
69338         * config/srclist.txt: Comment out mktime.c for now.
69339         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69340         since it doesn't apply any more.  Use generic wording instead.
69341         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69342         'time'.
69343         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69344         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69345         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69346         Don't include <sys/types.h>; no longer needed since we assume C89.
69347         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69348         * lib/strftime.c: Likewise.
69349         * lib/time_r.c: Likewise.
69350         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69351         * lib/nanosleep.c: Include <time.h> first, to check interface.
69352         * lib/strptime.c: Likewise.
69353         * lib/time_r.c: Likewise.
69354         * lib/timegm.c: Likewise.
69355         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69356         needed.
69357         * lib/timegm.c: Don't include timegm.h; no longer needed.
69358         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69359         time.h now handles any problems in that area.
69360         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69361         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69362         that time.h defines struct timespec.
69363         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69364         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69365         handles that.
69366         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69367         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69368         needed.  Set REPLACE_LOCALTIME.
69369         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69370         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69371         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69372         nanosleep; time_h.m4 now does that.  Don't require
69373         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69374         module handles this now.
69375         * modules/getdate (Depends-on): Remove timespec.  Add time.
69376         * modules/nanosleep (Depends-on): Likewise.
69377         * modules/stat-time (Depends-on): Likewise.
69378         * modules/nanosleep (Include): Include time.h, not timespec.h.
69379         * modules/strptime (Files): Remove lib/strptime.h.
69380         (Depends-on): Add extensions, time.
69381         (Include): Include time.h, not strptime.h.
69382         * modules/time_r (Files): Remove lib/time_r.h.
69383         (Depends-on): Add time.
69384         (Include): Include time.h, not time_r.h.
69385         * modules/timegm: Likewise.
69386         * modules/timespec (Description): Now does timespec-related decls
69387         of our own, instead of struct timespec itself.
69388         (Depends-on): Add time; remove extensions.
69389         (Maintainer): Add self.
69390         * modules/utimecmp (Depends-on): Add time; remove timespec.
69391         * modules/utimens (Depends-on): Likewise.
69392         * modules/xnanosleep (Depends-on): Likewise.
69393
69394 2007-02-11  Bruno Haible  <bruno@clisp.org>
69395
69396         * lib/c-strstr.c: Include allocsa.h.
69397         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69398         * lib/c-strcasestr.c: Include allocsa.h.
69399         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69400         * lib/strcasestr.c: Include allocsa.h.
69401         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69402         * lib/mbsstr.c: Include allocsa.h.
69403         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69404         allocsa/freesa instead of malloc/free.
69405         * lib/mbscasestr.c: Include allocsa.h.
69406         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69407         allocsa/freesa instead of malloc/free.
69408         * modules/c-strstr (Depends-on): Add allocsa.
69409         * modules/c-strcasestr (Depends-on): Likewise.
69410         * modules/strcasestr (Depends-on): Likewise.
69411         * modules/mbsstr (Depends-on): Likewise.
69412         * modules/mbscasestr (Depends-on): Likewise.
69413
69414 2007-02-11  Bruno Haible  <bruno@clisp.org>
69415
69416         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69417
69418         * modules/mbsspn-tests: New file.
69419         * tests/test-mbsspn.sh: New file.
69420         * tests/test-mbsspn.c: New file.
69421
69422 2007-02-11  Bruno Haible  <bruno@clisp.org>
69423
69424         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69425
69426         * modules/mbspbrk-tests: New file.
69427         * tests/test-mbspbrk.sh: New file.
69428         * tests/test-mbspbrk.c: New file.
69429
69430 2007-02-11  Bruno Haible  <bruno@clisp.org>
69431
69432         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69433         unneeded cast.
69434
69435         * modules/mbscspn-tests: New file.
69436         * tests/test-mbscspn.sh: New file.
69437         * tests/test-mbscspn.c: New file.
69438
69439 2007-02-11  Bruno Haible  <bruno@clisp.org>
69440
69441         * modules/mbscasecmp-tests: New file.
69442         * tests/test-mbscasecmp.sh: New file.
69443         * tests/test-mbscasecmp.c: New file.
69444
69445 2007-02-11  Bruno Haible  <bruno@clisp.org>
69446
69447         Ensure O(n) worst-case complexity of mbscasestr.
69448         * lib/mbscasestr.c: Include stdbool.h.
69449         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69450         functions.
69451         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69452         the bookkeeping indicates that it's worth it.
69453         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69454
69455         * modules/mbscasestr-tests: New file.
69456         * tests/test-mbscasestr1.c: New file.
69457         * tests/test-mbscasestr2.sh: New file.
69458         * tests/test-mbscasestr2.c: New file.
69459         * tests/test-mbscasestr3.sh: New file.
69460         * tests/test-mbscasestr3.c: New file.
69461         * tests/test-mbscasestr4.sh: New file.
69462         * tests/test-mbscasestr4.c: New file.
69463         * m4/locale-tr.m4: New file.
69464
69465 2007-02-11  Bruno Haible  <bruno@clisp.org>
69466
69467         Ensure O(n) worst-case complexity of mbsstr.
69468         * lib/mbsstr.c: Include stdbool.h.
69469         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69470         functions.
69471         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69472         bookkeeping indicates that it's worth it.
69473         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69474
69475         * modules/mbsstr-tests: New file.
69476         * tests/test-mbsstr1.c: New file.
69477         * tests/test-mbsstr2.sh: New file.
69478         * tests/test-mbsstr2.c: New file.
69479         * tests/test-mbsstr3.sh: New file.
69480         * tests/test-mbsstr3.c: New file.
69481         * m4/locale-fr.m4: New file.
69482
69483 2007-02-11  Bruno Haible  <bruno@clisp.org>
69484
69485         * lib/mbsrchr.c (mbsrchr): Fix bug.
69486
69487         * modules/mbsrchr-tests: New file.
69488         * tests/test-mbsrchr.sh: New file.
69489         * tests/test-mbsrchr.c: New file.
69490
69491 2007-02-11  Bruno Haible  <bruno@clisp.org>
69492
69493         * lib/mbschr.c (mbschr): Fix bug.
69494
69495         * modules/mbschr-tests: New file.
69496         * tests/test-mbschr.sh: New file.
69497         * tests/test-mbschr.c: New file.
69498         * m4/locale-zh.m4: New file.
69499
69500 2007-02-11  Bruno Haible  <bruno@clisp.org>
69501
69502         Support for copying multibyte string iterators.
69503         * lib/mbiter.h: Include <string.h>.
69504         (mbiter_multi_copy): New function.
69505         (mbi_copy): New macro.
69506         * lib/mbuiter.h: Include <string.h>.
69507         (mbuiter_multi_copy): New function.
69508         (mbui_copy): New macro.
69509
69510 2007-02-11  Bruno Haible  <bruno@clisp.org>
69511
69512         New module mbslen.
69513         * modules/mbslen: New file.
69514         * lib/mbslen.c: New file.
69515         * lib/string_.h (mbslen): New declaration.
69516         * m4/mbslen.m4: New file.
69517         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69518         GNULIB_MBSLEN.
69519         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69520         * MODULES.html.sh (Internationalization functions): Add mbslen.
69521
69522 2007-02-11  Bruno Haible  <bruno@clisp.org>
69523
69524         Ensure O(n) worst-case complexity of strcasestr substitute.
69525         * lib/strcasestr.c: Include stdbool.h.
69526         (knuth_morris_pratt): New function.
69527         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69528         bookkeeping indicates that it's worth it.
69529         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69530
69531         * modules/strcasestr-tests: New file.
69532         * tests/test-strcasestr.c: New file.
69533
69534 2007-02-11  Bruno Haible  <bruno@clisp.org>
69535
69536         Ensure O(n) worst-case complexity of c_strcasestr.
69537         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69538         (knuth_morris_pratt): New function.
69539         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69540         the bookkeeping indicates that it's worth it.
69541         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69542
69543         * modules/c-strcasestr-tests: New file.
69544         * tests/test-c-strcasestr.c: New file.
69545
69546 2007-02-11  Bruno Haible  <bruno@clisp.org>
69547
69548         Ensure O(n) worst-case complexity of c_strstr.
69549         * lib/c-strstr.c: Include stdbool.h, string.h.
69550         (knuth_morris_pratt): New function.
69551         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69552         bookkeeping indicates that it's worth it.
69553         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69554
69555         * lib/c-strstr.c: Complete rewrite for maintainability.
69556
69557         * modules/c-strstr-tests: New file.
69558         * tests/test-c-strstr.c: New file.
69559
69560 2007-02-11  Bruno Haible  <bruno@clisp.org>
69561
69562         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69563         5.2.1 and earlier, whereby \055 was treated just like the range
69564         delimiter '-'.
69565         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69566
69567 2007-02-08  Bruno Haible  <bruno@clisp.org>
69568
69569         * modules/regex (Depends-on): Add stdbool.
69570         Reported by Dalibor Topic <robilad@kaffe.org>.
69571
69572 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69573
69574         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69575         Prefer returning from main to exiting from it.
69576         Remove unnecessary parens after sizeof.
69577
69578 2007-02-05  Bruno Haible  <bruno@clisp.org>
69579
69580         New module mbssep.
69581         * modules/mbssep: New file.
69582         * lib/mbssep.c: New file.
69583         * lib/string_.h (strsep): Add a conditional link warning.
69584         (mbssep): New declaration.
69585         * m4/mbssep.m4: New file.
69586         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69587         GNULIB_MBSSEP.
69588         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69589         * MODULES.html.sh (Internationalization functions): Add mbssep.
69590
69591 2007-02-05  Bruno Haible  <bruno@clisp.org>
69592
69593         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69594         Optimize search in case of 1 delimiter.
69595
69596 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69597
69598         * lib/acl.h: Include sys/types.h before sys/acl.h.
69599
69600 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69601
69602         Merge upstream fix for glibc bugzilla #3957:
69603
69604         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69605
69606         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69607         bit for RE_HAT_LISTS_NOT_NEWLINE.
69608         (build_charclass_op): Remove bogus comment.
69609
69610 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69611
69612         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69613
69614 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69615
69616         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69617         * lib/memmem.c [!defined _LIBC]: Include config.h.
69618
69619 2007-02-04  Bruno Haible  <bruno@clisp.org>
69620
69621         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69622         warning message.
69623
69624 2007-02-04  Bruno Haible  <bruno@clisp.org>
69625
69626         New module mbstok_r.
69627         * modules/mbstok_r: New file.
69628         * lib/mbstok_r.c: New file.
69629         * lib/string_.h (strtok_r): Change argument names to match the
69630         comments. Add a conditional link warning.
69631         (mbstok_r): New declaration.
69632         * m4/mbstok_r.m4: New file.
69633         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69634         GNULIB_MBSTOK_R.
69635         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69636         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69637
69638 2007-02-04  Bruno Haible  <bruno@clisp.org>
69639
69640         New module mbsspn.
69641         * modules/mbsspn: New file.
69642         * lib/mbsspn.c: New file.
69643         * lib/string_.h (strspn): Add a conditional link warning.
69644         (mbsspn): New declaration.
69645         * m4/mbsspn.m4: New file.
69646         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69647         GNULIB_MBSSPN.
69648         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69649         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69650
69651 2007-02-04  Bruno Haible  <bruno@clisp.org>
69652
69653         New module mbspbrk.
69654         * modules/mbspbrk: New file.
69655         * lib/mbspbrk.c: New file.
69656         * lib/string_.h (strpbrk): Add a conditional link warning.
69657         (mbspbrk): New declaration.
69658         * m4/mbspbrk.m4: New file.
69659         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69660         GNULIB_MBSPBRK.
69661         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69662         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69663
69664 2007-02-04  Bruno Haible  <bruno@clisp.org>
69665
69666         New module mbscspn.
69667         * modules/mbscspn: New file.
69668         * lib/mbscspn.c: New file.
69669         * lib/string_.h (strcspn): Add a conditional link warning.
69670         (mbscspn): New declaration.
69671         * m4/mbscspn.m4: New file.
69672         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69673         GNULIB_MBSCSPN.
69674         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69675         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69676
69677 2007-02-04  Bruno Haible  <bruno@clisp.org>
69678
69679         New module mbscasestr, reduced goal of strcasestr.
69680         * modules/mbscasestr: New file.
69681         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69682         (mbscasestr): Renamed from strcasestr.
69683         * lib/strcasestr.c: Don't include mbuiter.h.
69684         (strcasestr): Remove support for multibyte locales.
69685         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69686         Change the conditional link warning.
69687         (mbscasestr): New declaration.
69688         * m4/mbscasestr.m4: New file.
69689         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69690         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69691         REPLACE_STRCASESTR.
69692         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69693         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69694         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69695         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69696         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69697         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69698         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69699         (Depends-on): Remove mbuiter.
69700         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69701
69702 2007-02-04  Bruno Haible  <bruno@clisp.org>
69703
69704         Simplify handling of strncasecmp.
69705         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69706         the conditional link warning.
69707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69708         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69709         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69710         * modules/strcase (configure.ac): Don't invoke
69711         gl_STRING_MODULE_INDICATOR.
69712         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69713
69714 2007-02-04  Bruno Haible  <bruno@clisp.org>
69715
69716         New module mbscasecmp, reduced goal of strcasecmp.
69717         * modules/mbscasecmp: New file.
69718         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69719         (mbscasecmp): Renamed from strcasecmp.
69720         * lib/strcasecmp.c: Don't include mbuiter.h.
69721         (strcasecmp): Remove support for multibyte locales.
69722         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69723         Change the conditional link warning.
69724         (mbscasecmp): New declaration.
69725         * m4/mbscasecmp.m4: New file.
69726         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69727         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69728         REPLACE_STRCASECMP.
69729         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69730         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69731         GNULIB_MBSCASECMP.
69732         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69733         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69734         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69735         (Depends-on): Remove mbuiter.
69736         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69737
69738 2007-02-04  Bruno Haible  <bruno@clisp.org>
69739
69740         New module mbsstr. Remove module strstr.
69741         * modules/mbsstr: New file.
69742         * modules/strstr: Remove file.
69743         * lib/mbsstr.c: Renamed from lib/strstr.c.
69744         (mbsstr): Renamed from strstr.
69745         * lib/string_.h (strstr): Remove declaration. Change the conditional
69746         link warning.
69747         (mbsstr): New declaration.
69748         * m4/mbsstr.m4: New file.
69749         * m4/strstr.m4: Remove file.
69750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69751         REPLACE_STRSTR.
69752         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69753         Don't initialize GNULIB_STRSTR.
69754         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69755         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69756         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69757         (Support for systems lacking ANSI C 89): Remove strstr.
69758
69759 2007-02-04  Bruno Haible  <bruno@clisp.org>
69760
69761         New module mbsrchr.
69762         * modules/mbsrchr: New file.
69763         * lib/mbsrchr.c: New file.
69764         * lib/string_.h (strrchr): Add a conditional link warning.
69765         (mbsrchr): New declaration.
69766         * m4/mbsrchr.m4: New file.
69767         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69768         GNULIB_MBSRCHR.
69769         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69770         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69771
69772 2007-02-04  Bruno Haible  <bruno@clisp.org>
69773
69774         New module mbschr.
69775         * modules/mbschr: New file.
69776         * lib/mbschr.c: New file.
69777         * lib/string_.h (strchr): Add a conditional link warning.
69778         (mbschr): New declaration.
69779         * m4/mbschr.m4: New file.
69780         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69781         GNULIB_MBSCHR.
69782         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69783         * MODULES.html.sh (Internationalization functions): Add mbschr.
69784
69785 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69786
69787         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69788
69789         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69790
69791 2007-02-04  Bruno Haible  <bruno@clisp.org>
69792
69793         New module description section 'configure.ac-early'.
69794         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69795         (func_get_autoconf_early_snippet): New function.
69796         (func_import, func_create_testdir): Use it. Remove special cases for
69797         modules 'extensions' and 'lock'.
69798         * modules/extensions (configure.ac-early): Require
69799         gl_USE_SYSTEM_EXTENSIONS.
69800         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69801
69802 2007-02-04  Bruno Haible  <bruno@clisp.org>
69803
69804         Make use of gcj-4.3's -fsource and -ftarget option.
69805         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69806         and if so try the options -fsource and -ftarget.
69807         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69808         source_version, ftarget_option, target_version arguments.
69809         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69810         (is_envjavac_oldgcj_14_14_usable): Renamed from
69811         is_envjavac_gcj_14_14_usable.
69812         (is_envjavac_oldgcj_14_13_usable): Renamed from
69813         is_envjavac_gcj_14_13_usable.
69814         (is_gcj_present): Update.
69815         (is_gcj_43, is_gcj43_usable): New functions.
69816         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69817         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69818         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69819         try the options -fsource and -ftarget.
69820
69821 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69822
69823         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69824         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69825         larger value.
69826
69827 2007-02-03  Jim Meyering  <jim@meyering.net>
69828
69829         Give tools a better chance to allocate space for very large buffers.
69830         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69831
69832         Make pwd and readlink work also when run with an unreadable parent dir
69833         on systems with openat support.
69834         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69835         provided getcwd function, even when we have openat support.
69836         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69837
69838 2007-02-02  Bruno Haible  <bruno@clisp.org>
69839
69840         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69841         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69842         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69843         portability problems if one of these functions is only used on specific
69844         platforms.
69845         Reported by Paul Eggert.
69846
69847 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69848
69849         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69850         is causing more trouble than it's curing.
69851         * lib/regex_internal.h (__mempcpy): Remove.
69852         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69853         (and make the code a tad smaller to boot).
69854         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69855
69856 2007-02-02  Jim Meyering  <jim@meyering.net>
69857
69858         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69859         section, not in the Makefile.am: one.
69860
69861 2007-02-02  Eric Blake  <ebb9@byu.net>
69862
69863         * lib/strchrnul.c: Always include config.h first.
69864
69865         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69866         gnulib strstr is not necessary here.
69867
69868 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69869
69870         * m4/socklen.m4: Fix typo.
69871
69872 2007-02-02  Eric Blake  <ebb9@byu.net>
69873
69874         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69875         * modules/netinet_in (Makefile.am): Likewise.
69876
69877 2007-02-01  Bruno Haible  <bruno@clisp.org>
69878
69879         * lib/string_.h (GL_LINK_WARNING): New macro.
69880         (strcasecmp, strstr, strcasestr): If provided by the system,
69881         conditionally define as a macro that leads to a warning instead of to
69882         an error.
69883         (strncasecmp): Conditionally define as a macro that leads to a warning.
69884
69885 2007-02-01  Karl Berry  <karl@gnu.org>
69886
69887         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69888
69889 2007-02-01  Bruno Haible  <bruno@clisp.org>
69890
69891         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69892         renamings.
69893
69894 2007-02-01  Eric Blake  <ebb9@byu.net>
69895
69896         * modules/regex (Depends-on): Revert dependence on mempcpy.
69897         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69898         module's definition of mempcpy.
69899         Reported by Paul Eggert.
69900
69901 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69902
69903         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69904         the symbol XYZ before redefining it.  This fixes a problem with
69905         programs that don't use XYZ, when compiled on systems that define
69906         XYZ to something else.
69907
69908 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69909
69910         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69911         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69912         writeable to group or other and (2) is intended to have a special
69913         mode bit that is set or cleared.  In such a case, the directory
69914         should be neither group- nor other-writeable until the special
69915         mode bits are right.
69916
69917 2007-01-31  Eric Blake  <ebb9@byu.net>
69918
69919         * modules/mountlist (Depends-on): Add strstr.
69920
69921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69922         bug.
69923         * modules/string (Makefile.am): Remove redundant replacement.
69924         * modules/regex (Depends-on): Add mempcpy.
69925
69926 2007-01-31  Bruno Haible  <bruno@clisp.org>
69927
69928         New module description field 'Link'.
69929         * gnulib-tool (func_usage): Document --extract-link-directive.
69930         (sed_extract_prog): Recognize 'Link' directive.
69931         (func_get_link_directive): New function.
69932         (func_import): Show summary of link directives.
69933         Handle --extract-link-directive option.
69934         * modules/acl (Link): New section.
69935         * modules/clock-time (Link): New section.
69936         * modules/euidaccess (Link): New section.
69937         * modules/gettext (Link): New section.
69938         * modules/iconv (Link): New section.
69939         * modules/lock (Link): New section.
69940         * modules/nanosleep (Link): New section.
69941         * modules/readline (Link): New section.
69942
69943 2007-01-27  Bruno Haible  <bruno@clisp.org>
69944
69945         Enforce the use of gnulib modules for unportable <string.h> functions.
69946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69947         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69948         (gl_HEADER_STRING_H_BODY): Require it.
69949         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69950         the symbol XYZ to one that gives a link error.
69951         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69952         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69953         * modules/mempcpy (configure.ac): Likewise.
69954         * modules/memrchr (configure.ac): Likewise.
69955         * modules/stpcpy (configure.ac): Likewise.
69956         * modules/stpncpy (configure.ac): Likewise.
69957         * modules/strcase (configure.ac): Likewise.
69958         * modules/strcasestr (configure.ac): Likewise.
69959         * modules/strchrnul (configure.ac): Likewise.
69960         * modules/strdup (configure.ac): Likewise.
69961         * modules/strndup (configure.ac): Likewise.
69962         * modules/strnlen (configure.ac): Likewise.
69963         * modules/strpbrk (configure.ac): Likewise.
69964         * modules/strsep (configure.ac): Likewise.
69965         * modules/strstr (configure.ac): Likewise.
69966         * modules/strtok_r (configure.ac): Likewise.
69967
69968 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69969
69970         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69971
69972 2007-01-30  Jim Meyering  <jim@meyering.net>
69973
69974         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69975
69976 2007-01-29  Bruno Haible  <bruno@clisp.org>
69977
69978         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69979         * lib/execute.c: Likewise.
69980         * lib/pipe.c: Likewise.
69981         * lib/printf-args.h: Likewise.
69982         * lib/printf-args.c: Likewise.
69983         * lib/printf-parse.c: Likewise.
69984         * lib/vasnprintf.c: Likewise.
69985
69986 2007-01-29  Eric Blake  <ebb9@byu.net>
69987
69988         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69989         declaration.
69990
69991 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69992
69993         * lib/strptime.h (strptime): Use 'restrict' for args where
69994         POSIX requires this.
69995         * lib/strptime.c (strptime): Likewise.
69996         Change license notice from LGPL to GPL, since gnulib-tool will
69997         change this as needed.
69998         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69999         defined.
70000         Include "strptime.h" first, to check interface.
70001         Do not #undef _LIBC and _NL_CURRENT.
70002         Do not include <stdlib.h>; no longer needed.
70003         Include "time_r.h" and declare ptime_locale_status
70004         only if _LIBC is not defined.
70005         (__P): Remove unused macro.
70006         (match_string): Bring back glibc version, but use it only if _LIBC
70007         is defined.
70008         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70009         Remove unnecessary assertion and abort() call.
70010         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70011         * m4/strptime.m4: Fix serial number comment.
70012         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70013         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70014         (Depends-on): Add time_r.
70015
70016 2007-01-29  Bruno Haible  <bruno@clisp.org>
70017
70018         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70019         strptime.
70020         * modules/strptime (Depends-on): Add stdbool.
70021         * lib/strptime.h: Include <time.h> always. Add comments.
70022
70023 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70024
70025         * modules/strptime: New file.
70026         * lib/strptime.h: New file.
70027         * lib/strptime.c: New file.
70028         * m4/strptime.m4: New file.
70029
70030 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70031
70032         * MODULES.html.sh: New module mpsort.
70033         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70034
70035         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70036         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70037         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70038         All uses changed.
70039         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70040         All uses changed.
70041         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70042         to _Restrict_.
70043         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70044         the parameter matches the prototype.
70045
70046 2007-01-28  Jim Meyering  <jim@meyering.net>
70047
70048         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70049         sys/time.h here, reverting that part of the previous patch:
70050         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70051
70052 2007-01-28  Bruno Haible  <bruno@clisp.org>
70053
70054         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70055         value of $(SYS_TIME_H).
70056         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70057         remove it conditionally, too. [added by Jim Meyering]
70058         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70059         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70060         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70061         GETTIMEOFDAY_REPLACEMENT to 1.
70062
70063 2007-01-28  Bruno Haible  <bruno@clisp.org>
70064
70065         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70066         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70067         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70068         Set UNISTD_H instead of UNISTD_H2.
70069         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70070
70071 2007-01-28  Bruno Haible  <bruno@clisp.org>
70072
70073         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70074         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70075
70076 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70077
70078         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70079         (func_create_testdir): Ensure C locale for `grep' and `tr'
70080         character ranges.
70081         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70082         ACLOCAL_AMFLAGS parsing state machine.
70083
70084 2007-01-27  Bruno Haible  <bruno@clisp.org>
70085
70086         * modules/unistr/base: Update.
70087
70088 2007-01-27  Bruno Haible  <bruno@clisp.org>
70089
70090         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70091         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70092         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70093         modules/unistr/u32-mbtouc.
70094         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70095         * lib/unistr.h: Update.
70096         * lib/linebreak.c: Update.
70097         * modules/unistr/u32-mbtouc: Renamed from
70098         modules/unistr/u32-mbtouc-safe.
70099         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70100         * lib/unistr.h: Update.
70101         * lib/unistr/u32-to-u8.c: Update.
70102         * lib/unistr/u32-to-u16.c: Update.
70103
70104 2007-01-27  Bruno Haible  <bruno@clisp.org>
70105
70106         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70107         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70108         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70109         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70110         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70111         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70112         modules/unistr/u16-mbtouc.
70113         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70114         * lib/unistr.h: Update.
70115         * lib/linebreak.c: Update.
70116         * modules/linebreak: Update.
70117         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70118         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70119         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70120         * modules/unistr/u16-mbtouc: Renamed from
70121         modules/unistr/u16-mbtouc-safe.
70122         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70123         * lib/unistr.h: Update.
70124         * lib/unistr/u16-to-u8.c: Update.
70125         * modules/unistr/u16-to-u8: Update.
70126         * lib/unistr/u16-to-u32.c: Update.
70127         * modules/unistr/u16-to-u32: Update.
70128
70129 2007-01-27  Bruno Haible  <bruno@clisp.org>
70130
70131         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70132         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70133         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70134         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70135         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70136         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70137         modules/unistr/u8-mbtouc.
70138         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70139         * lib/unistr.h: Update.
70140         * lib/striconveh.c: Update.
70141         * modules/striconveh: Update.
70142         * lib/linebreak.c: Update.
70143         * modules/linebreak: Update.
70144         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
70145         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
70146         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
70147         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
70148         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
70149         * lib/unistr.h: Update.
70150         * lib/striconveh.c: Update.
70151         * modules/striconveh: Update.
70152         * lib/unistr/u8-to-u16.c: Update.
70153         * modules/unistr/u8-to-u16: Update.
70154         * lib/unistr/u8-to-u32.c: Update.
70155         * modules/unistr/u8-to-u32: Update.
70156
70157 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70158
70159         Sync from Libtool.
70160         * lib/argz.c: Do not include strings.h nor memory.h, include
70161         string.h unconditionally.  Patch by Simon Josefsson.
70162
70163 2007-01-27  Bruno Haible  <bruno@clisp.org>
70164
70165         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
70166         from gl_HEADER_STRING_H_BODY.
70167         (gl_HEADER_STRING_H_BODY): Require it.
70168         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
70169         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
70170         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
70171         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
70172         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70173         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
70174         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70175         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
70176         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
70177         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70178         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
70179         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70180         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70181         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70182         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70183
70184 2007-01-27  Bruno Haible  <bruno@clisp.org>
70185
70186         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70187         check_PROGRAMS into noinst_PROGRAMS.
70188         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70189         check_PROGRAMS in this case.
70190         (func_import): Set for_test to false.
70191         (func_create_testdir): Set for_test to true.
70192
70193 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70194             Bruno Haible  <bruno@clisp.org>
70195
70196         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70197         (Depends-on): Add string.
70198         (Includes): Use <string.h> instead of strcasestr.h.
70199         * modules/string (Makefile.am): Also substitute the value of
70200         REPLACE_STRCASESTR.
70201         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70202         assume strcasestr is declared in <string.h> not <strings.h>. Also
70203         set REPLACE_STRCASESTR.
70204         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70205         REPLACE_STRCASESTR.
70206         * lib/strcasestr.h: Remove file.
70207         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70208         * lib/string_.h (strcasestr): New declaration.
70209
70210 2007-01-27  Bruno Haible  <bruno@clisp.org>
70211
70212         * lib/string_.h: Use 'extern'.
70213
70214 2007-01-27  Jim Meyering  <jim@meyering.net>
70215
70216         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70217         of set-but-not-used local, "q".
70218
70219         * lib/mempcpy.c: Include <config.h> before <string.h>.
70220         This fixes a compilation error on HP-UX, due to the system's
70221         "restrict"-using mempcpy prototype.
70222
70223 2007-01-26  Bruno Haible  <bruno@clisp.org>
70224
70225         Small optimization.
70226         * lib/javacomp.c: Include c-strstr.h.
70227          (is_envjavac_gcj): Use c_strstr instead of strstr.
70228         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70229
70230 2007-01-26  Bruno Haible  <bruno@clisp.org>
70231
70232         * MODULES.html.sh (Unicode string functions): Add the new modules.
70233
70234         * modules/uniconv/u32-strconv-to-locale: New file.
70235         * lib/uniconv/u32-strconv-to-locale.c: New file.
70236
70237         * modules/uniconv/u16-strconv-to-locale: New file.
70238         * lib/uniconv/u16-strconv-to-locale.c: New file.
70239
70240         * modules/uniconv/u8-strconv-to-locale: New file.
70241         * lib/uniconv/u8-strconv-to-locale.c: New file.
70242
70243         * modules/uniconv/u32-strconv-from-locale: New file.
70244         * lib/uniconv/u32-strconv-from-locale.c: New file.
70245
70246         * modules/uniconv/u16-strconv-from-locale: New file.
70247         * lib/uniconv/u16-strconv-from-locale.c: New file.
70248
70249         * modules/uniconv/u8-strconv-from-locale: New file.
70250         * lib/uniconv/u8-strconv-from-locale.c: New file.
70251
70252         * modules/uniconv/u32-strconv-to-enc: New file.
70253         * lib/uniconv/u32-strconv-to-enc.c: New file.
70254         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70255         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70256
70257         * modules/uniconv/u16-strconv-to-enc: New file.
70258         * lib/uniconv/u16-strconv-to-enc.c: New file.
70259         * lib/uniconv/u-strconv-to-enc.h: New file.
70260         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70261         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70262
70263         * modules/uniconv/u8-strconv-to-enc: New file.
70264         * lib/uniconv/u8-strconv-to-enc.c: New file.
70265         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70266         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70267
70268         * modules/uniconv/u32-strconv-from-enc: New file.
70269         * lib/uniconv/u32-strconv-from-enc.c: New file.
70270         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70271         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70272
70273         * modules/uniconv/u16-strconv-from-enc: New file.
70274         * lib/uniconv/u16-strconv-from-enc.c: New file.
70275         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70276         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70277
70278         * modules/uniconv/u8-strconv-from-enc: New file.
70279         * lib/uniconv/u8-strconv-from-enc.c: New file.
70280         * lib/uniconv/u-strconv-from-enc.h: New file.
70281         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70282         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70283
70284         * modules/uniconv/u32-conv-from-enc: New file.
70285         * lib/uniconv/u32-conv-from-enc.c: New file.
70286         * modules/uniconv/u32-conv-from-enc-tests: New file.
70287         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70288
70289         * modules/uniconv/u16-conv-from-enc: New file.
70290         * lib/uniconv/u16-conv-from-enc.c: New file.
70291         * lib/uniconv/u-conv-from-enc.h: New file.
70292         * modules/uniconv/u16-conv-from-enc-tests: New file.
70293         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70294
70295         * modules/uniconv/u8-conv-from-enc: New file.
70296         * lib/uniconv/u8-conv-from-enc.c: New file.
70297         * modules/uniconv/u8-conv-from-enc-tests: New file.
70298         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70299
70300         * modules/uniconv/base: New file.
70301         * lib/uniconv.h: New file.
70302
70303 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70304
70305         * doc/gnulib-tool.texi (Initial import): Update to match current
70306         behavior with strdup module.
70307         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70308         * lib/memmem.h: Remove; all uses removed.  This is now done
70309         by <string.h>.
70310         * lib/mempcpy.h: Likewise.
70311         * lib/memrchr.h: Likewise.
70312         * lib/stpcpy.h: Likewise.
70313         * lib/stpncpy.h: Likewise.
70314         * lib/strcase.h: Likewise.
70315         * lib/strchrnul.h: Likewise.
70316         * lib/strdup.h: Likewise.
70317         * lib/strndup.h: Likewise.
70318         * lib/strnlen.h: Likewise.
70319         * lib/strpbrk.h: Likewise.
70320         * lib/strsep.h: Likewise.
70321         * lib/strstr.h: Likewise.
70322         * lib/strtok_r.h: Likewise.
70323         * lib/string_.h: New file.
70324         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70325         Rely on <string.h> instead.
70326         * lib/canon-host.c: Likewise.
70327         * lib/chdir-long.c: Likewise.
70328         * lib/concatpath.c: Likewise.
70329         * lib/exclude.c: Likewise.
70330         * lib/fchdir.c: Likewise.
70331         * lib/getaddrinfo.c: Likewise.
70332         * lib/getcwd.c: Likewise.
70333         * lib/getsubopt.c: Likewise.
70334         * lib/glob.c: Likewise.
70335         * lib/hard-locale.c: Likewise.
70336         * lib/iconvme.c: Likewise.
70337         * lib/javacomp.c: Likewise.
70338         * lib/mempcpy.c: Likewise.
70339         * lib/memrchr.c: Likewise.
70340         * lib/regex_internal.h: Likewise.
70341         * lib/stpncpy.c: Likewise.
70342         * lib/strcasecmp.c: Likewise.
70343         * lib/strchrnul.c: Likewise.
70344         * lib/strdup.c: Likewise.
70345         * lib/striconv.c: Likewise.
70346         * lib/striconveh.c: Likewise.
70347         * lib/striconveha.c: Likewise.
70348         * lib/strncasecmp.c: Likewise.
70349         * lib/strndup.c: Likewise.
70350         * lib/strnlen.c: Likewise.
70351         * lib/strsep.c: Likewise.
70352         * lib/strstr.c: Likewise.
70353         * lib/strtok_r.c: Likewise.
70354         * lib/userspec.c: Likewise.
70355         * lib/w32spawn.h: Likewise.
70356         * lib/xstrndup.c: Likewise.
70357         * lib/mountlist.c (strstr): Remove decl.
70358         * m4/string_h.m4: New file.
70359         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70360         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70361         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70362         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70363         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70364         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70365         Set REPLACE_STRCASECMP if necessary.
70366         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70367         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70368         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70369         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70370         HAVE_DECL_STRDUP if necessary.
70371         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70372         since gl_FUNC_STRNDUP does that now.
70373         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70374         Check for decl here...
70375         (gl_PREREQ_STRNLEN): ... not here.
70376         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70377         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70378         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70379         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70380         necessary.
70381         * modules/string: New file.
70382         * modules/memmem (Files): Remove special-purpose include file.
70383         (Depends-on): Add string.
70384         (Include): Include <string.h>, not the removed file.
70385         * modules/mempcpy: Likewise.
70386         * modules/memrchr: Likewise.
70387         * modules/stpcpy: Likewise.
70388         * modules/stpncpy: Likewise.
70389         * modules/strcase: Likewise.
70390         * modules/strchrnul: Likewise.
70391         * modules/strdup: Likewise.
70392         * modules/strndup: Likewise.
70393         * modules/strnlen: Likewise.
70394         * modules/strpbrk: Likewise.
70395         * modules/strsep: Likewise.
70396         * modules/strstr: Likewise.
70397         * modules/strtok_r: Likewise.
70398         * tests/test-dirname.c: Don't include "strdup.h", since
70399         <string.h> now suffices.
70400         * tests/test-memmem.c: Don't include "memmem.h", since
70401         <string.h> now suffices.
70402
70403 2007-01-25  Bruno Haible  <bruno@clisp.org>
70404
70405         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70406         *resultp is 0.
70407
70408         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70409         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70410         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70411         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70412
70413         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70414         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70415         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70416         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70417         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70418         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70419
70420 2007-01-24  Bruno Haible  <bruno@clisp.org>
70421
70422         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70423         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70424         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70425         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70426         gl_FUNC_FTS_CORE.
70427         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70428         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70429         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70430         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70431         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70432         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70433         gl_FUNC_FCHOWNAT.
70434         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70435         gl_FUNC_STRFTIME.
70436         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70437         Reported by Ralf Wildenhues.
70438
70439 2007-01-24  Bruno Haible  <bruno@clisp.org>
70440
70441         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70442         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70443         gl_GETADDRINFO.
70444         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70445         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70446         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70447
70448 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70449
70450         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70451         Don't use 'exit'; just return from 'main'.
70452         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70453
70454         * lib/fnmatch_.h: Readjust white space and comments to match
70455         glibc, to avoid spurious diffs.
70456
70457 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70458
70459         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70460         2004-12-01 change by Jakub Jelinek, since this code won't compile
70461         if !LIBC.  Problem reported by Bob Proulx.
70462
70463 2007-01-23  Bruno Haible  <bruno@clisp.org>
70464
70465         * lib/striconveh.c: Include c-strcaseeq.h.
70466         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70467         * modules/striconveh (Depends-on): Add c-strcaseeq.
70468
70469 2007-01-23  Bruno Haible  <bruno@clisp.org>
70470
70471         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70472
70473         * modules/c-strcaseeq: New file.
70474         * lib/c-strcaseeq.h: New file.
70475
70476         * modules/streq: New file.
70477         * lib/streq.h: New file.
70478
70479 2007-01-23  Bruno Haible  <bruno@clisp.org>
70480
70481         * modules/striconveha-tests: New file.
70482         * tests/test-striconveha.c: New file.
70483
70484         * lib/striconveha.h: Include <stdbool.h>.
70485         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70486         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70487         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70488         (mem_iconveha): New function.
70489         (str_iconveha_notranslit): Renamed from str_iconveha.
70490         (str_iconveha): New function.
70491         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70492         c-strcase.
70493
70494 2007-01-23  Bruno Haible  <bruno@clisp.org>
70495
70496         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70497         encodings without forgiving before trying any encoding with handler.
70498         (str_iconveha): Try all encodings without forgiving before trying any
70499         encoding with handler.
70500
70501 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70502
70503         Import the following changes from libc.
70504
70505         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70506
70507         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70508
70509         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70510
70511         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70512         normal_bracket label.
70513
70514         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70515
70516         [BZ #361]
70517         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70518         to normal_bracket after fetching the next character.
70519
70520 2007-01-22  Bruno Haible  <bruno@clisp.org>
70521
70522         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70523         argument.
70524         * lib/striconveh.c (iconv_carefully_1): New function.
70525         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70526         argument.
70527         (str_cd_iconveh): Update.
70528         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70529         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70530         * tests/test-striconveh.c (MAGIC): New macro.
70531         (new_offsets): New function.
70532         (main): Test call with and without offsets.
70533
70534 2007-01-22  Bruno Haible  <bruno@clisp.org>
70535
70536         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70537         * modules/sys_select (Makefile.am): Likewise.
70538         * modules/sys_socket (Makefile.am): Likewise.
70539         * modules/sys_time (Makefile.am): Likewise.
70540
70541 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70542
70543         * modules/gettimeofday (License): Change from GPL to LGPL, since
70544         gettimeofday is a library function.
70545
70546 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70547
70548         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70549
70550 2007-01-21  Bruno Haible  <bruno@clisp.org>
70551
70552         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70553
70554 2007-01-21  Bruno Haible  <bruno@clisp.org>
70555
70556         * modules/striconveha: New file.
70557         * lib/striconveha.h: New file.
70558         * lib/striconveha.c: New file.
70559         * MODULES.html.sh (Internationalization functions): Add striconveha.
70560         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70561         string.
70562         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70563
70564 2007-01-21  Bruno Haible  <bruno@clisp.org>
70565
70566         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70567         * lib/striconveh.c (str_iconveh): Likewise.
70568
70569 2007-01-21  Bruno Haible  <bruno@clisp.org>
70570
70571         * lib/striconveh.h (mem_iconveh): New declaration.
70572         * lib/striconveh.c (mem_iconveh): New function.
70573         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70574
70575 2007-01-21  Bruno Haible  <bruno@clisp.org>
70576
70577         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70578
70579         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70580         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70581         original result buffer.
70582         (str_cd_iconveh): Update.
70583         * tests/test-striconveh.c (main): Update.
70584
70585         * lib/striconv.h (mem_cd_iconv): Change specification.
70586         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70587         result buffer.
70588         (str_cd_iconv): Update.
70589         * tests/test-striconv.c (main): Update.
70590
70591 2007-01-21  Bruno Haible  <bruno@clisp.org>
70592
70593         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70594
70595 2007-01-20  Jim Meyering  <jim@meyering.net>
70596
70597         * lib/userspec.c (parse_with_separator): If a user or group string
70598         starts with "+", skip the corresponding name-to-ID look-up, since
70599         such a look-up must fail: user and group names may not include "+".
70600
70601 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70602
70603         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70604         since we now assume the sys_time module.
70605         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70606         check for sys/time.h; no longer needed.
70607         * modules/poll (Depends-on): Depend on sys_time.
70608
70609 2007-01-18  Bruno Haible  <bruno@clisp.org>
70610
70611         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70612         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70613
70614         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70615         gettimeofday.
70616
70617         * tests/test-gettimeofday.c: Include <time.h>.
70618         (dummy): Remove variable.
70619
70620         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70621         gl_HEADER_SYS_TIME_H.
70622         (gl_HEADER_SYS_TIME_H): New macro.
70623
70624         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70625         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70626         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70627         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70628         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70629         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70630         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70631         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70632         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70633         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70634         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70635
70636         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70637         last change; it caused a compilation error when cross-compiling to
70638         Cygwin.
70639
70640 2007-01-18  Jim Meyering  <jim@meyering.net>
70641
70642         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70643         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70644         than the race-prone "test -d sys || mkdir sys".
70645         (configure.ac): Use AC_PROG_MKDIR_P.
70646         * modules/sys_select: Likewise.
70647         * modules/sys_socket: Likewise.
70648         * modules/sys_time: Likewise.
70649
70650 2007-01-18  Eric Blake  <ebb9@byu.net>
70651
70652         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70653         replace gettimeofday.
70654         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70655         name, to avoid infinite recursion.
70656
70657 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70658
70659         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70660         module sys_time.
70661         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70662         assume timespec.h defines struct timeval.
70663         * lib/settime.c: Likewise.
70664         * lib/utimens.c: Likewise.
70665         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70666         since we now assume the gettimeofday module.
70667         * lib/tempname.c (__gen_tempname): Likewise.
70668         * lib/gettimeofday.h: Remove.
70669         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70670         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70671         Include <time.h>, for 'time()'.
70672         (localtime_buffer_addr): Also use this workaround if
70673         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70674         to simplify the uses.  All uses changed.
70675         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70676         that #undef is inside {}, and 'const' follows type name consistently.
70677         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70678         (gettimeofday): Do not use the maximum possible value for
70679         tv->tv_usec, since that might break usages other than ls.c.
70680         Instead, we'll leave ls.c alone.  This undoes today's patch
70681         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70682         we've never observed the problem but might as well keep the
70683         canary.
70684         * lib/nanosleep.c: Include timespec.h first, for interface check.
70685         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70686         now assume the sys_time module.
70687         * lib/tempname.c: Likewise.
70688         * lib/timespec.h: Likewise.
70689         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70690         needed.
70691         * lib/strftime.c: Likewise.
70692         * lib/timespec.h: Likewise.
70693         * lib/posixtm.c: Include posixtm.h first, for interface check.
70694         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70695         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70696         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70697         * lib/sys_time_.h: New file.
70698         * lib/timespec.h (struct timespec): Use long int, not long.
70699         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70700         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70701         Remove obsolescent call to AC_HEADER_TIME.
70702         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70703         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70704         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70705         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70706         Likewise.
70707         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70708         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70709         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70710         into the sys_time module.  Check for gettimeofday just once.
70711         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70712         for gettimeofday signature to just check the signature.  Merely
70713         compile it, since linking doesn't test signature.  Improve test for
70714         whether gettimeofday.o is actually needed.
70715         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70716         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70717         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70718         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70719         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70720         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70721         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70722         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70723         than worrying about sys/time.h.
70724         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70725         Don't bother worrying about TIME_WITH_SYS_TIME.
70726         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70727         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70728         * m4/sys_time_h.m4: New file.
70729         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70730         Don't include sys/time.h.  Return from main rather than exiting.
70731         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70732         all uses changed.
70733         * modules/gethrxtime (Depends-on): Add sys_time.
70734         * modules/gettime (Depends-on): Likewise.
70735         * modules/gettimeofday (Depends-on): Likewise.
70736         * modules/nanosleep (Depends-on): Likewise.
70737         * modules/settime (Depends-on): Likewise.
70738         * modules/tempname (Depends-on): Likewise.
70739         * modules/utimens (Depends-on): Likewise.
70740         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70741         (Include): Change back to <sys/time.h>.
70742         (Maintainer): Add self.
70743         * modules/sys_time: New file.
70744         * modules/tempname (Depends-on): Add gettimeofday.
70745         * tests/test-gettimeofday.c: Include <sys/time.h>
70746         rather than gettimeofday.h.
70747
70748 2007-01-17  Bruno Haible  <bruno@clisp.org>
70749
70750         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70751         the license default to GPL.
70752         (func_create_testdir): Don't complain if a module is LGPL and its
70753         tests module depends on GPLed modules.
70754
70755 2007-01-17  Bruno Haible  <bruno@clisp.org>
70756
70757         * lib/gettimeofday.c (gettimeofday): Add code for the case
70758         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70759         maximum possible value for tv->tv_usec, rather than the minimum one.
70760
70761 2005-10-08  Martin Lambers  <marlam@marlam.de>
70762 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70763 2007-01-16  Bruno Haible  <bruno@clisp.org>
70764
70765         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70766         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70767         gl_FUNC_GETTIMEOFDAY.
70768         (Include): Add gettimeofday.h.
70769         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70770         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70771         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70772         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70773         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70774         * lib/gettimeofday.h: New file.
70775         * lib/gettimeofday.c: Include <sys/timeb.h>.
70776         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70777         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70778         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70779         fall back on time().
70780
70781         * tests/test-gettimeofday.c: New file.
70782         * modules/gettimeofday-tests: New file.
70783
70784 2007-01-16  Eric Blake  <ebb9@byu.net>
70785
70786         * modules/fnmatch (Depends-on): Depend on wchar.
70787         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70788         * m4/fnmatch.m4: Likewise.
70789         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70790         * m4/mbchar.m4: Likewise.
70791         * modules/mbswidth (Depends-on): Depend on wchar.
70792         * lib/mbswidth.c: Assume <wchar.h>.
70793         * m4/mbswidth.m4: Likewise.
70794         * modules/quotearg (Depends-on): Depend on wchar.
70795         * lib/quotearg.c: Assume <wchar.h>.
70796         * m4/quotearg.m4: Likewise.
70797         * modules/regex (Depends-on): Depend on wchar.
70798         * lib/regex_internal.h: Assume <wchar.h>.
70799         * m4/regex.m4: Likewise.
70800         * modules/stdint (Depends-on): Depend on wchar.
70801         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70802         * m4/stdint.m4: Likewise.
70803         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70804         * modules/strftime (Depends-on): Depend on wchar.
70805         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70806         * modules/strtol (Depends-on): Depend on wchar.
70807         * lib/strtol.c: Assume <wchar.h>.
70808         * modules/wcwidth (Depends-on): Depend on wchar.
70809         * lib/wcwidth.h: Assume <wchar.h>.
70810         * m4/wcwidth.m4: Likewise.
70811
70812 2007-01-16  Bruno Haible  <bruno@clisp.org>
70813
70814         * modules/csharpexec-script: New, created from...
70815         * modules/csharpexec: ... this.
70816
70817 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70818
70819         * modules/javaexec-script: New, created from...
70820         * modules/javaexec: ... this.
70821
70822 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70823
70824         * modules/poll (Dependencies): Add sys_select.
70825
70826 2007-01-15  Jim Meyering  <jim@meyering.net>
70827
70828         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70829         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70830         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70831         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70832
70833 2007-01-15  Bruno Haible  <bruno@clisp.org>
70834
70835         * modules/striconveh: New file.
70836         * lib/striconveh.h: New file.
70837         * lib/striconveh.c: New file.
70838         * MODULES.html.sh (Internationalization functions): Add striconveh.
70839
70840         * modules/striconveh-tests: New file.
70841         * tests/test-striconveh.c: New file.
70842
70843 2007-01-15  Bruno Haible  <bruno@clisp.org>
70844
70845         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70846         not from GNU libiconv or GNU libc.
70847
70848 2007-01-15  Bruno Haible  <bruno@clisp.org>
70849
70850         * doc/gnulib-intro.texi (Copyright): Explain the different license
70851         terms for module descriptions, autoconf macros, tests, documentation.
70852
70853 2007-01-14  Bruno Haible  <bruno@clisp.org>
70854
70855         * modules/striconv-tests: New file.
70856         * tests/test-striconv.c: New file.
70857
70858 2007-01-14  Bruno Haible  <bruno@clisp.org>
70859
70860         * modules/iconv-tests: New file.
70861         * tests/test-iconv.c: New file.
70862
70863 2007-01-14  Bruno Haible  <bruno@clisp.org>
70864
70865         * gnulib-tool (func_get_license): For test modules, use the license of
70866         the main module.
70867
70868 2007-01-14  Bruno Haible  <bruno@clisp.org>
70869
70870         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70871         if iconv is found to exist.
70872
70873 2007-01-14  Bruno Haible  <bruno@clisp.org>
70874
70875         * modules/c-ctype-tests: New file.
70876         * tests/test-c-ctype.c: New file.
70877
70878 2007-01-14  Bruno Haible  <bruno@clisp.org>
70879
70880         * modules/binary-io-tests: New file.
70881         * tests/test-binary-io.sh: New file.
70882         * tests/test-binary-io.c: New file.
70883
70884 2007-01-14  Bruno Haible  <bruno@clisp.org>
70885
70886         * modules/array-oset-tests: New file.
70887         * tests/test-array_oset.c: New file.
70888
70889 2007-01-14  Bruno Haible  <bruno@clisp.org>
70890
70891         * modules/array-list-tests: New file.
70892         * tests/test-array_list.c: New file.
70893
70894 2007-01-14  Bruno Haible  <bruno@clisp.org>
70895
70896         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70897         and make.
70898         Reported by Simon Josefsson in
70899         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70900
70901 2007-01-14  Bruno Haible  <bruno@clisp.org>
70902
70903         * modules/allocsa-tests: New file.
70904         * tests/test-allocsa.c: New file.
70905
70906 2007-01-14  Bruno Haible  <bruno@clisp.org>
70907
70908         * modules/fchdir (Depends-on): Add absolute-header.
70909         * modules/unistd (Depends-on): Likewise.
70910
70911 2006-12-30  Bruno Haible  <bruno@clisp.org>
70912
70913         * modules/fchdir: New file.
70914         * modules/unistd (Files): Add lib/unistd_.h.
70915         (Makefile.am): Generate unistd.h from unistd_.h.
70916         * lib/fchdir.c: New file.
70917         * lib/dirent_.h: New file.
70918         * lib/unistd_.h: New file.
70919         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70920         * m4/fchdir.m4: New file.
70921         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70922         (gl_HEADER_UNISTD): Invoke it.
70923         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70924         function.
70925         * lib/backupfile.c (opendir, closedir): Undefine.
70926         * lib/chown.c (open, close): Undefine.
70927         * lib/clean-temp.c (open, close): Undefine.
70928         * lib/copy-file.c (open, close): Undefine.
70929         * lib/execute.c (open, close): Undefine.
70930         * lib/fsusage.c (open, close): Undefine.
70931         * lib/gc-gnulib.c (open, close): Undefine.
70932         * lib/getcwd.c (opendir, closedir): Undefine.
70933         * lib/glob.c (opendir, closedir): Undefine.
70934         * lib/javacomp.c (open, close): Undefine.
70935         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70936         * lib/openat-proc.c (open, close): Undefine.
70937         * lib/pagealign_alloc.c (open, close): Undefine.
70938         * lib/pipe.c (open, close): Undefine.
70939         * lib/progreloc.c (open, close): Undefine.
70940         * lib/savedir.c (opendir, closedir): Undefine.
70941         * lib/utime.c (open, close): Undefine.
70942         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70943
70944 2007-01-10  Bruno Haible  <bruno@clisp.org>
70945
70946         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70947
70948 2007-01-12  Eric Blake  <ebb9@byu.net>
70949
70950         Provide a robust <wchar.h>.  Further simplifications are now
70951         possible in other modules, but not included here.
70952         * modules/wchar: New module.
70953         * m4/wchar.m4: New file.
70954         * lib/wchar_.h: Likewise.
70955         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70956         of the new module.
70957         * MODULES.html.sh (Extended multibyte and wide character utilities):
70958         New section.
70959
70960 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70961
70962         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70963         to a reasonable default for memory allocation.
70964         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70965         file system that reports garbage st_size values for symlinks.
70966         Problem reported by Liyang Hu.
70967
70968 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70969
70970         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70971         Emacs .#* auto-save files).
70972
70973 2007-01-11  Bruno Haible  <bruno@clisp.org>
70974
70975         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70976         directory.
70977
70978 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70979
70980         Use @...@ consistently in lib/wctype_.h.
70981         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70982         on it being set to 1 or 0.
70983         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70984         go back to AC_SUBSTing it.
70985         * modules/wctype (Makefile.am): Undo previous change.
70986
70987 2007-01-10  Eric Blake  <ebb9@byu.net>
70988
70989         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70990         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70991         * modules/wctype (Makefile.am): Likewise.
70992         Reported by Chris McGuire.
70993
70994 2007-01-10  Jim Meyering  <jim@meyering.net>
70995
70996         fts.c: a small readability/maintainability improvement
70997         * lib/fts.c (fts_read): Make this code slightly more readable and
70998         maintainable by hoisting the "sp->fts_cur = p" assignments to
70999         immediately follow the statements that set P.  Derived from
71000         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
71001
71002 2007-01-10  Eric Blake  <ebb9@byu.net>
71003
71004         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
71005         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
71006         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71007         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71008         Reported by Chris McGuire.
71009
71010 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71011
71012         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71013         in sed script.
71014
71015 2007-01-09  Bruno Haible  <bruno@clisp.org>
71016
71017         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71018         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71019         variables.
71020         (func_module): Use them.
71021
71022 2007-01-09  Bruno Haible  <bruno@clisp.org>
71023
71024         * modules/unistr/base: New file.
71025         * lib/unistr.h: New file.
71026
71027         * modules/unistr/u8-to-u16: New file.
71028         * lib/unistr/u8-to-u16.c: New file.
71029
71030         * modules/unistr/u8-to-u32: New file.
71031         * lib/unistr/u8-to-u32.c: New file.
71032
71033         * modules/unistr/u16-to-u8: New file.
71034         * lib/unistr/u16-to-u8.c: New file.
71035
71036         * modules/unistr/u16-to-u32: New file.
71037         * lib/unistr/u16-to-u32.c: New file.
71038
71039         * modules/unistr/u32-to-u8: New file.
71040         * lib/unistr/u32-to-u8.c: New file.
71041
71042         * modules/unistr/u32-to-u16: New file.
71043         * lib/unistr/u32-to-u16.c: New file.
71044
71045         * modules/unistr/u8-check: New file.
71046         * modules/unistr/u16-check: New file.
71047         * modules/unistr/u32-check: New file.
71048         * lib/unistr/u8-check.c: New file.
71049         * lib/unistr/u16-check.c: New file.
71050         * lib/unistr/u32-check.c: New file.
71051
71052         * modules/unistr/u8-chr: New file.
71053         * modules/unistr/u16-chr: New file.
71054         * modules/unistr/u32-chr: New file.
71055         * lib/unistr/u8-chr.c: New file.
71056         * lib/unistr/u16-chr.c: New file.
71057         * lib/unistr/u32-chr.c: New file.
71058
71059         * modules/unistr/u8-cmp: New file.
71060         * modules/unistr/u16-cmp: New file.
71061         * modules/unistr/u32-cmp: New file.
71062         * lib/unistr/u8-cmp.c: New file.
71063         * lib/unistr/u16-cmp.c: New file.
71064         * lib/unistr/u32-cmp.c: New file.
71065
71066         * modules/unistr/u8-cpy: New file.
71067         * modules/unistr/u16-cpy: New file.
71068         * modules/unistr/u32-cpy: New file.
71069         * lib/unistr/u8-cpy.c: New file.
71070         * lib/unistr/u16-cpy.c: New file.
71071         * lib/unistr/u32-cpy.c: New file.
71072         * lib/unistr/u-cpy.h: New file.
71073
71074         * modules/unistr/u8-cpy-alloc: New file.
71075         * modules/unistr/u16-cpy-alloc: New file.
71076         * modules/unistr/u32-cpy-alloc: New file.
71077         * lib/unistr/u8-cpy-alloc.c: New file.
71078         * lib/unistr/u16-cpy-alloc.c: New file.
71079         * lib/unistr/u32-cpy-alloc.c: New file.
71080         * lib/unistr/u-cpy-alloc.h: New file.
71081
71082         * modules/unistr/u8-endswith: New file.
71083         * modules/unistr/u16-endswith: New file.
71084         * modules/unistr/u32-endswith: New file.
71085         * lib/unistr/u8-endswith.c: New file.
71086         * lib/unistr/u16-endswith.c: New file.
71087         * lib/unistr/u32-endswith.c: New file.
71088         * lib/unistr/u-endswith.h: New file.
71089
71090         * modules/unistr/u8-mblen: New file.
71091         * modules/unistr/u16-mblen: New file.
71092         * modules/unistr/u32-mblen: New file.
71093         * lib/unistr/u8-mblen.c: New file.
71094         * lib/unistr/u16-mblen.c: New file.
71095         * lib/unistr/u32-mblen.c: New file.
71096
71097         * modules/unistr/u8-mbtouc: New file.
71098         * modules/unistr/u16-mbtouc: New file.
71099         * modules/unistr/u32-mbtouc: New file.
71100         * lib/unistr/u8-mbtouc.c: New file.
71101         * lib/unistr/u16-mbtouc.c: New file.
71102         * lib/unistr/u32-mbtouc.c: New file.
71103
71104         * modules/unistr/u8-mbtouc-safe: New file.
71105         * modules/unistr/u16-mbtouc-safe: New file.
71106         * modules/unistr/u32-mbtouc-safe: New file.
71107         * lib/unistr/u8-mbtouc-safe.c: New file.
71108         * lib/unistr/u16-mbtouc-safe.c: New file.
71109         * lib/unistr/u32-mbtouc-safe.c: New file.
71110
71111         * modules/unistr/u8-move: New file.
71112         * modules/unistr/u16-move: New file.
71113         * modules/unistr/u32-move: New file.
71114         * lib/unistr/u8-move.c: New file.
71115         * lib/unistr/u16-move.c: New file.
71116         * lib/unistr/u32-move.c: New file.
71117         * lib/unistr/u-move.h: New file.
71118
71119         * modules/unistr/u8-next: New file.
71120         * modules/unistr/u16-next: New file.
71121         * modules/unistr/u32-next: New file.
71122         * lib/unistr/u8-next.c: New file.
71123         * lib/unistr/u16-next.c: New file.
71124         * lib/unistr/u32-next.c: New file.
71125
71126         * modules/unistr/u8-prev: New file.
71127         * modules/unistr/u16-prev: New file.
71128         * modules/unistr/u32-prev: New file.
71129         * lib/unistr/u8-prev.c: New file.
71130         * lib/unistr/u16-prev.c: New file.
71131         * lib/unistr/u32-prev.c: New file.
71132
71133         * modules/unistr/u8-set: New file.
71134         * modules/unistr/u16-set: New file.
71135         * modules/unistr/u32-set: New file.
71136         * lib/unistr/u8-set.c: New file.
71137         * lib/unistr/u16-set.c: New file.
71138         * lib/unistr/u32-set.c: New file.
71139         * lib/unistr/u-set.h: New file.
71140
71141         * modules/unistr/u8-startswith: New file.
71142         * modules/unistr/u16-startswith: New file.
71143         * modules/unistr/u32-startswith: New file.
71144         * lib/unistr/u8-startswith.c: New file.
71145         * lib/unistr/u16-startswith.c: New file.
71146         * lib/unistr/u32-startswith.c: New file.
71147         * lib/unistr/u-startswith.h: New file.
71148
71149         * modules/unistr/u8-stpcpy: New file.
71150         * modules/unistr/u16-stpcpy: New file.
71151         * modules/unistr/u32-stpcpy: New file.
71152         * lib/unistr/u8-stpcpy.c: New file.
71153         * lib/unistr/u16-stpcpy.c: New file.
71154         * lib/unistr/u32-stpcpy.c: New file.
71155         * lib/unistr/u-stpcpy.h: New file.
71156
71157         * modules/unistr/u8-stpncpy: New file.
71158         * modules/unistr/u16-stpncpy: New file.
71159         * modules/unistr/u32-stpncpy: New file.
71160         * lib/unistr/u8-stpncpy.c: New file.
71161         * lib/unistr/u16-stpncpy.c: New file.
71162         * lib/unistr/u32-stpncpy.c: New file.
71163         * lib/unistr/u-stpncpy.h: New file.
71164
71165         * modules/unistr/u8-strcat: New file.
71166         * modules/unistr/u16-strcat: New file.
71167         * modules/unistr/u32-strcat: New file.
71168         * lib/unistr/u8-strcat.c: New file.
71169         * lib/unistr/u16-strcat.c: New file.
71170         * lib/unistr/u32-strcat.c: New file.
71171         * lib/unistr/u-strcat.h: New file.
71172
71173         * modules/unistr/u8-strchr: New file.
71174         * modules/unistr/u16-strchr: New file.
71175         * modules/unistr/u32-strchr: New file.
71176         * lib/unistr/u8-strchr.c: New file.
71177         * lib/unistr/u16-strchr.c: New file.
71178         * lib/unistr/u32-strchr.c: New file.
71179
71180         * modules/unistr/u8-strcmp: New file.
71181         * modules/unistr/u16-strcmp: New file.
71182         * modules/unistr/u32-strcmp: New file.
71183         * lib/unistr/u8-strcmp.c: New file.
71184         * lib/unistr/u16-strcmp.c: New file.
71185         * lib/unistr/u32-strcmp.c: New file.
71186
71187         * modules/unistr/u8-strcpy: New file.
71188         * modules/unistr/u16-strcpy: New file.
71189         * modules/unistr/u32-strcpy: New file.
71190         * lib/unistr/u8-strcpy.c: New file.
71191         * lib/unistr/u16-strcpy.c: New file.
71192         * lib/unistr/u32-strcpy.c: New file.
71193         * lib/unistr/u-strcpy.h: New file.
71194
71195         * modules/unistr/u8-strcspn: New file.
71196         * modules/unistr/u16-strcspn: New file.
71197         * modules/unistr/u32-strcspn: New file.
71198         * lib/unistr/u8-strcspn.c: New file.
71199         * lib/unistr/u16-strcspn.c: New file.
71200         * lib/unistr/u32-strcspn.c: New file.
71201         * lib/unistr/u-strcspn.h: New file.
71202
71203         * modules/unistr/u8-strdup: New file.
71204         * modules/unistr/u16-strdup: New file.
71205         * modules/unistr/u32-strdup: New file.
71206         * lib/unistr/u8-strdup.c: New file.
71207         * lib/unistr/u16-strdup.c: New file.
71208         * lib/unistr/u32-strdup.c: New file.
71209         * lib/unistr/u-strdup.h: New file.
71210
71211         * modules/unistr/u8-strlen: New file.
71212         * modules/unistr/u16-strlen: New file.
71213         * modules/unistr/u32-strlen: New file.
71214         * lib/unistr/u8-strlen.c: New file.
71215         * lib/unistr/u16-strlen.c: New file.
71216         * lib/unistr/u32-strlen.c: New file.
71217         * lib/unistr/u-strlen.h: New file.
71218
71219         * modules/unistr/u8-strmblen: New file.
71220         * modules/unistr/u16-strmblen: New file.
71221         * modules/unistr/u32-strmblen: New file.
71222         * lib/unistr/u8-strmblen.c: New file.
71223         * lib/unistr/u16-strmblen.c: New file.
71224         * lib/unistr/u32-strmblen.c: New file.
71225
71226         * modules/unistr/u8-strmbtouc: New file.
71227         * modules/unistr/u16-strmbtouc: New file.
71228         * modules/unistr/u32-strmbtouc: New file.
71229         * lib/unistr/u8-strmbtouc.c: New file.
71230         * lib/unistr/u16-strmbtouc.c: New file.
71231         * lib/unistr/u32-strmbtouc.c: New file.
71232
71233         * modules/unistr/u8-strncat: New file.
71234         * modules/unistr/u16-strncat: New file.
71235         * modules/unistr/u32-strncat: New file.
71236         * lib/unistr/u8-strncat.c: New file.
71237         * lib/unistr/u16-strncat.c: New file.
71238         * lib/unistr/u32-strncat.c: New file.
71239         * lib/unistr/u-strncat.h: New file.
71240
71241         * modules/unistr/u8-strncmp: New file.
71242         * modules/unistr/u16-strncmp: New file.
71243         * modules/unistr/u32-strncmp: New file.
71244         * lib/unistr/u8-strncmp.c: New file.
71245         * lib/unistr/u16-strncmp.c: New file.
71246         * lib/unistr/u32-strncmp.c: New file.
71247
71248         * modules/unistr/u8-strncpy: New file.
71249         * modules/unistr/u16-strncpy: New file.
71250         * modules/unistr/u32-strncpy: New file.
71251         * lib/unistr/u8-strncpy.c: New file.
71252         * lib/unistr/u16-strncpy.c: New file.
71253         * lib/unistr/u32-strncpy.c: New file.
71254         * lib/unistr/u-strncpy.h: New file.
71255
71256         * modules/unistr/u8-strnlen: New file.
71257         * modules/unistr/u16-strnlen: New file.
71258         * modules/unistr/u32-strnlen: New file.
71259         * lib/unistr/u8-strnlen.c: New file.
71260         * lib/unistr/u16-strnlen.c: New file.
71261         * lib/unistr/u32-strnlen.c: New file.
71262         * lib/unistr/u-strnlen.h: New file.
71263
71264         * modules/unistr/u8-strpbrk: New file.
71265         * modules/unistr/u16-strpbrk: New file.
71266         * modules/unistr/u32-strpbrk: New file.
71267         * lib/unistr/u8-strpbrk.c: New file.
71268         * lib/unistr/u16-strpbrk.c: New file.
71269         * lib/unistr/u32-strpbrk.c: New file.
71270         * lib/unistr/u-strpbrk.h: New file.
71271
71272         * modules/unistr/u8-strrchr: New file.
71273         * modules/unistr/u16-strrchr: New file.
71274         * modules/unistr/u32-strrchr: New file.
71275         * lib/unistr/u8-strrchr.c: New file.
71276         * lib/unistr/u16-strrchr.c: New file.
71277         * lib/unistr/u32-strrchr.c: New file.
71278
71279         * modules/unistr/u8-strspn: New file.
71280         * modules/unistr/u16-strspn: New file.
71281         * modules/unistr/u32-strspn: New file.
71282         * lib/unistr/u8-strspn.c: New file.
71283         * lib/unistr/u16-strspn.c: New file.
71284         * lib/unistr/u32-strspn.c: New file.
71285         * lib/unistr/u-strspn.h: New file.
71286
71287         * modules/unistr/u8-strstr: New file.
71288         * modules/unistr/u16-strstr: New file.
71289         * modules/unistr/u32-strstr: New file.
71290         * lib/unistr/u8-strstr.c: New file.
71291         * lib/unistr/u16-strstr.c: New file.
71292         * lib/unistr/u32-strstr.c: New file.
71293         * lib/unistr/u-strstr.h: New file.
71294
71295         * modules/unistr/u8-strtok: New file.
71296         * modules/unistr/u16-strtok: New file.
71297         * modules/unistr/u32-strtok: New file.
71298         * lib/unistr/u8-strtok.c: New file.
71299         * lib/unistr/u16-strtok.c: New file.
71300         * lib/unistr/u32-strtok.c: New file.
71301         * lib/unistr/u-strtok.h: New file.
71302
71303         * modules/unistr/u8-uctomb: New file.
71304         * modules/unistr/u16-uctomb: New file.
71305         * modules/unistr/u32-uctomb: New file.
71306         * lib/unistr/u8-uctomb.c: New file.
71307         * lib/unistr/u16-uctomb.c: New file.
71308         * lib/unistr/u32-uctomb.c: New file.
71309
71310         * MODULES.html.sh (Unicode string functions): Add the new modules.
71311
71312 2007-01-08  Bruno Haible  <bruno@clisp.org>
71313
71314         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71315         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71316         subdirectories.
71317
71318 2007-01-08  Karl Berry  <karl@gnu.org>
71319
71320         * doc/error.texi: mention that main() fns must set program_name
71321         when progname is used.
71322
71323 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71324
71325         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71326         WCTYPE_H is empty, for the benefit of builds from non-distclean
71327         directories.  Problem reported by Eric Blake in
71328         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71329
71330 2007-01-08  Bruno Haible  <bruno@clisp.org>
71331
71332         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71333         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71334         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71335         PROVIDE_CANONICALIZE_FILENAME_MODE.
71336         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71337
71338 2007-01-08  Bruno Haible  <bruno@clisp.org>
71339
71340         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71341         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71342         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71343         * lib/fts.c: Likewise.
71344         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71345
71346 2006-12-25  Bruno Haible  <bruno@clisp.org>
71347
71348         * modules/utf8-ucs4-safe: New file.
71349         * lib/utf8-ucs4-safe.h: New file.
71350         * lib/unistr/utf8-ucs4-safe.c: New file.
71351
71352         * modules/utf16-ucs4-safe: New file.
71353         * lib/utf16-ucs4-safe.h: New file.
71354         * lib/unistr/utf16-ucs4-safe.c: New file.
71355
71356         * MODULES.html.sh (Unicode string functions): Add the new modules.
71357
71358 2007-01-08  Bruno Haible  <bruno@clisp.org>
71359
71360         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71361         (Depends-on): Add unitypes.
71362         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71363         (u8_mbtouc_aux): Move out to separate file.
71364         (u8_mbtouc): Use ucs4_t, uint8_t types.
71365         * lib/unistr/utf8-ucs4.c: New file.
71366
71367         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71368         (Depends-on): Add unitypes.
71369         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71370         (u16_mbtouc_aux): Move out to separate file.
71371         (u16_mbtouc): Use ucs4_t, uint16_t types.
71372         * lib/unistr/utf16-ucs4.c: New file.
71373
71374         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71375         (Depends-on): Add unitypes.
71376         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71377         (u8_uctomb_aux): Move out to separate file.
71378         (u8_uctomb): Use ucs4_t, uint8_t types.
71379         * lib/unistr/ucs4-utf8.c: New file.
71380
71381         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71382         (Depends-on): Add unitypes.
71383         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71384         (u16_uctomb_aux): Move out to separate file.
71385         (u16_uctomb): Use ucs4_t, uint16_t types.
71386         * lib/unistr/ucs4-utf16.c: New file.
71387
71388 2006-12-25  Bruno Haible  <bruno@clisp.org>
71389
71390         * modules/unitypes: New file.
71391         * lib/unitypes.h: New file.
71392         * MODULES.html.sh (func_all_modules): New section "Unicode string
71393         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71394         this section. Add unitypes.
71395
71396 2007-01-08  Bruno Haible  <bruno@clisp.org>
71397
71398         Avoid variable names that conflict with those from libtool.
71399         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71400         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71401         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71402         library_names_spec to acl_library_names_spec, hardcode_* to
71403         acl_hardcode_*.
71404         Reported by Ralf Wildenhues.
71405
71406 2007-01-08  Bruno Haible  <bruno@clisp.org>
71407
71408         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71409         definition.
71410         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71411         definition.
71412         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71413         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71414         definition.
71415         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71416         definition.
71417         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71418         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71419         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71420         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71421         definition.
71422         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71423         definition.
71424         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71425         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71426         GC_USE_<algorithm>.
71427         * lib/gc-libgcrypt.c: Likewise.
71428         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71429         * modules/gc-arctwo (configure.ac): Likewise.
71430         * modules/gc-des (configure.ac): Likewise.
71431         * modules/gc-hmac-md5 (configure.ac): Likewise.
71432         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71433         * modules/gc-md2 (configure.ac): Likewise.
71434         * modules/gc-md4 (configure.ac): Likewise.
71435         * modules/gc-md5 (configure.ac): Likewise.
71436         * modules/gc-random (configure.ac): Likewise.
71437         * modules/gc-rijndael (configure.ac): Likewise.
71438         * modules/gc-sha1 (configure.ac): Likewise.
71439
71440 2007-01-08  Bruno Haible  <bruno@clisp.org>
71441
71442         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71443         macro definition.
71444         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71445         definition.
71446         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71447         definition.
71448         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71449         * modules/fcntl-safer (configure.ac): Likewise.
71450         * modules/fopen-safer (configure.ac): Likewise.
71451         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71452         GNULIB_FWRITEERROR macro definition.
71453
71454 2007-01-08  Bruno Haible  <bruno@clisp.org>
71455
71456         * m4/gnulib-common.m4: New file.
71457         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71458         (func_get_filelist): Add m4/gnulib-common.m4.
71459
71460 2007-01-08  Bruno Haible  <bruno@clisp.org>
71461
71462         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71463         command.
71464
71465 2007-01-08  Jim Meyering  <jim@meyering.net>
71466
71467         Use a more robust test for a "can't happen" condition.
71468         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71469         narrowed the st_size value.  Presuming the "can't happen" condition
71470         is true, that narrowing could conceivably convert an invalid st_size
71471         value into a valid one.  Instead, use a change based on Matthew
71472         Woehlke's original patch.
71473
71474         Slight readability improvement: use an assert-like macro
71475         in place of literal "abort ()" uses.
71476         * lib/fts.c (fts_assert): Define.
71477         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71478         Use this macro instead of a bare 'abort'.
71479
71480 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71481
71482         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71483         simply work around them.
71484         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71485         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71486         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71487         declaring.
71488         Don't bother to define as macros, since the standard doesn't require it.
71489         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71490         longer worry about IRIX 5.3.
71491         (HAVE_WCTYPE_CTMP_BUG): Remove.
71492
71493 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71494
71495         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71496         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71497         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71498         Problems reported by Georg Schwarz for IRIX 5.3.
71499
71500         * gnulib-tool (autoconf_minversion): Take the maximum version number
71501         found, not the minimum.  Problem reported by James Youngman.
71502
71503 2007-01-03  Karl Berry  <karl@gnu.org>
71504
71505         * doc/error.texi: new file, explaining interaction with progname.
71506         * doc/gnulib.texi: include it.  Update copyright.
71507
71508 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71509
71510         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71511         AC_CANONICAL_HOST, to improve autobuild outputs.
71512
71513 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71514             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71515
71516         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71517         sockets, server sockets, and other file descriptors.  Count errors
71518         to compute the return value.  Reorder the code a bit to be easier
71519         to follow.  Don't set event bits that were not requested (except
71520         POLLERR and POLLHUP).
71521
71522 2007-01-01  Bruno Haible  <bruno@clisp.org>
71523
71524         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71525
71526 2007-01-03  Jim Meyering  <jim@meyering.net>
71527
71528         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71529
71530 2007-01-02  Bruno Haible  <bruno@clisp.org>
71531
71532         * modules/settime (Include): Require timespec.h.
71533         * modules/nanosleep (Include): Likewise.
71534
71535 2007-01-01  Bruno Haible  <bruno@clisp.org>
71536
71537         * gnulib-tool (func_emit_copyright_notice): Bump year.
71538         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71539
71540 2007-01-01  Bruno Haible  <bruno@clisp.org>
71541
71542         Improve support for OpenBSD.
71543         * build-aux/config.rpath (libname_spec): Export.
71544         (library_names_spec): New variable. Export.
71545         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71546         library_names_spec from the config.rpath output. Locate shared library
71547         through the name pattern in library_names_spec.
71548
71549 2007-01-01  Eric Blake  <ebb9@byu.net>
71550
71551         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71552
71553 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71554
71555         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71556         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71557         assume the C locale, and avoid an "eval" that could cause trouble.
71558         Problem with SORT reported by Bob Proulx.
71559
71560         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71561         Define.  Trivial patch from Henning Nielsen Lund, originally
71562         sent to bug-grep@gnu.org today.
71563
71564 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71565
71566         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71567         struct stat.  Problem reported by Henning Nielsen Lund.
71568         * lib/acl.c: Include acl.h first, to check interface.  Don't
71569         bother to include sys/types.h and sys/stat.h again.
71570
71571 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71572
71573         Import the following change from libc; problem reported by
71574         Sven Verdoolaege.
71575
71576         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71577
71578         [BZ #1373]
71579         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71580
71581 2006-12-28  Jim Meyering  <jim@meyering.net>
71582
71583         * build-aux/announce-gen: Do not assume that the package
71584         builds any of tar.gz, tar.bz2, and .xdelta files.
71585         Suggestion from Simon Josefsson.
71586
71587 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71588
71589         * modules/announce-gen: New file.
71590
71591 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71592
71593         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71594         handles its gotchas now.
71595         * lib/mbswidth.c: Likewise.
71596         * lib/wcwidth.h: Likewise.
71597         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71598         and iswcntrl; the wctype module does this stuff now.
71599         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71600         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71601         * modules/mbchar (Depends-on): Add wctype.
71602         * modules/mbswidth (Depends-on): Likewise.
71603         * modules/wcwidth (Depends-on): Likewise.
71604
71605 2006-12-27  Eric Blake  <ebb9@byu.net>
71606
71607         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71608         module uses more than what <wctype.h> is required to provide.
71609
71610 2006-12-26  Eric Blake  <ebb9@byu.net>
71611
71612         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71613
71614 2006-12-26  Eric Blake  <ebb9@byu.net>
71615
71616         * modules/absolute-header: New module.
71617         * modules/fcntl (Depends-on): Depend on it.
71618         * modules/inttypes (Depends-on): Likewise.
71619         * modules/stdint (Depends-on): Likewise.
71620         * modules/sys_stat (Depends-on): Likewise.
71621         * modules/wctype (Depends-on): Likewise.
71622         * MODULES.html.sh (Support for building libraries and
71623         executables): Document it.
71624
71625 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71626
71627         * gnulib-tool (SED): Remove, undoing previous change.
71628         The problem was that it broke coreutils on Solaris, because
71629         "sed --posix" leaked into a makefile.
71630         (sed): New alias, if 'alias' and GNU sed.
71631
71632 2006-12-24  Jim Meyering  <jim@meyering.net>
71633
71634         Work around an fchownat bug in glibc-2.4:
71635         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71636         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71637         in spite of the -P option.
71638         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71639         New macros.
71640         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71641         * modules/openat (Files): Add lib/fchownat.c.
71642         * lib/openat.c (fchownat): Don't define here.  Move to...
71643         * lib/fchownat.c: ...this new file.
71644
71645 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71646
71647         Fix bug reported by Bruno Haible in
71648         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71649         where quotearg.c didn't compile on Mac OS X 10.2 because it
71650         lacks <wchar.h> and wint_t.
71651         * lib/wctype_.h (__wctype_wint_t): New type.
71652         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71653         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71654         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71655         Arg is now of type __wctype_wint_t, not wint_t.
71656         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71657         substitute HAVE_WINT_T.
71658         * modules/wctype (Files): Add m4/wint_t.m4.
71659         (wctype.h): Substitute HAVE_WINT_T.
71660
71661 2006-12-23  Bruno Haible  <bruno@clisp.org>
71662
71663         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71664
71665 2006-12-23  Bruno Haible  <bruno@clisp.org>
71666
71667         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71668         S_ISLNK.
71669         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71670         mingw.
71671
71672 2006-12-22  Bruno Haible  <bruno@clisp.org>
71673
71674         * lib/copy-file.c: Include acl.h.
71675         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71676         Close the file descriptors only after being done with copy_acl.
71677         * modules/copy-file (Depends-on): Add acl.
71678
71679 2006-12-22  Bruno Haible  <bruno@clisp.org>
71680
71681         * gnulib-tool (SED): New variable.
71682         Use $SED instead of sed everywhere.
71683
71684 2006-12-22  Bruno Haible  <bruno@clisp.org>
71685
71686         * modules/no-c++: New file.
71687         * m4/no-c++.m4: New file.
71688         * MODULES.html.sh (Support for building libraries and executables):
71689         Add no-c++.
71690
71691 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71692
71693         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71694         Include <limits.h>, and use its INT_MAX to rewrite the
71695         j loop so that it does not overflow 'int'.  Problem reported by
71696         Ralf Wildenhues in
71697         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71698         Play it safe by shifting left by 1 rather than multiplying by 2,
71699         as GCC is less likely to optimize this away when the value
71700         is signed (when it assumes overflow leads to undefined behavior).
71701         Also, don't assume time_t uses two's complement.
71702
71703 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71704
71705         * MODULES.html.sh: New module wctype.
71706         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71707         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71708         <wctype.h>, since the new wctype module should fix this.
71709         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71710         the wctype module should arrange for it.
71711         * lib/regex_internal.h: Likewise.
71712         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71713         since the wctype module should handle this now.
71714         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71715         * modules/fnmatch (Depends-on): Add wctype.
71716         * modules/quotearg (Depends-on): Likewise.
71717         * modules/regex (Depends-on): Likewise.
71718
71719 2006-12-19  Bruno Haible  <bruno@clisp.org>
71720
71721         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71722         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71723
71724 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71725
71726         * modules/savewd (Depends-on): Fix dependency on fcntl.
71727
71728 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71729
71730         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71731         conforms to C99, rather than relying on the user's environment
71732         setting of STDINT_H.
71733
71734 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71735         and Eric Blake  <ebb9@byu.net>
71736
71737         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71738         This is more consistent with the other defines here.
71739         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71740         Port to z/OS.  Problem reported by Paul Gilmartin.
71741         Change local vars to use gl_ prefix rather than ac_.
71742         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71743         with other defines.
71744         * modules/double-slash-root: New module.
71745         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71746         (Depends-on): Add double-slash-root.
71747         * MODULES.html.sh (File system functions): Mention new module.
71748
71749 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71750
71751         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71752         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71753         This is for the benefit of gzip, which doesn't do i18n.
71754
71755 2006-12-12  Jim Meyering  <jim@meyering.net>
71756
71757         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71758         Reported by Andreas Schwab <schwab@suse.de>.
71759
71760 2006-12-12  Bruno Haible  <bruno@clisp.org>
71761
71762         Merge these changes.
71763         2006-09-05  Bruno Haible  <bruno@clisp.org>
71764         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71765         iconv_alloc succeeded.
71766         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71767         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71768         test for " && dest " at the end - dest is always != NULL there. Call
71769         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71770         with 2xNULL arguments, also to flush the state storage. Handle the
71771         IRIX iconv behaviour. Realloc the final result, to throw away unused
71772         memory.
71773
71774 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71775
71776         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71777         and fchmodat unconditionally, since glibc 2.4 has them.
71778         Problem reported by Arkadiusz Miskiewicz.
71779
71780 2006-12-10  Bruno Haible  <bruno@clisp.org>
71781
71782         * gnulib-tool (func_import): Show the include files only for those
71783         modules that are copied and specified.
71784         Reported by Karl Berry.
71785
71786 2006-12-08  Jim Meyering  <jim@meyering.net>
71787
71788         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71789         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71790
71791         * build-aux/announce-gen: Add two new options, both optional:
71792         --bootstrap-tools=TOOL_LIST
71793               a comma-separated list of tools, e.g.,
71794               autoconf,automake,bison,gnulib
71795         --gnulib-snapshot-date=DATE
71796               if gnulib is in the bootstrap tool list,
71797               then report this as the snapshot date.
71798               If not specified, use the current date/time.
71799               If you specify a date here, be sure it's UTC.
71800
71801 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71802
71803         * tests/test-argp-2.sh: Fix test to match actual output.
71804         (func_compare): Fix sed script to be portable.
71805
71806 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71807
71808         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71809         workaround for this case.  It is not autoconfigured now; offhand
71810         it's hard to see how to autoconfigure it.
71811
71812 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71813
71814         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71815         a directory that is about to be chowned.  Such a directory's
71816         initial file permissions should permit the owner only and this
71817         should not be changed until after the chown, since the group and
71818         other bits would be incorrect if they granted permission before
71819         the chown.
71820
71821         Fix porting problem for iswctype reported by Georg Schwarz in:
71822         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71823         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71824         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71825         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71826         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71827
71828 2006-12-03  Jim Meyering  <jim@meyering.net>
71829
71830         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71831         p->fts_statp may not yet be defined.
71832         (fts_read): Instead, set it in the caller, once p->fts_statp is
71833         sure to be defined, and corresponds to a top-level directory.
71834         This bug made du -x fail.  Here's the coreutils test case:
71835         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71836         Reported by Mike Frysinger.
71837
71838 2006-12-01  Jim Meyering  <jim@meyering.net>
71839
71840         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71841         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71842         Reported by Simon Josefsson.
71843
71844 2006-11-30  Jim Meyering  <jim@meyering.net>
71845
71846         * m4/warning.m4: Use the all-permissive copyright notice
71847         recommended by RMS (rather than LGPL).
71848         * m4/vararrays.m4: Likewise.
71849         * m4/flexmember.m4: Likewise.
71850
71851 2006-11-29  Bruno Haible  <bruno@clisp.org>
71852
71853         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71854         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71855         using +=.
71856         Reported by Simon Josefsson <simon@josefsson.org>.
71857
71858 2006-11-28  James Youngman <jay@gnu.org>
71859
71860         * README: Advise users that they might find the bug-gnulib@gnu.org
71861         and autotools-announce@gnu.org mailing lists useful.
71862
71863 2006-11-28  Bruno Haible  <bruno@clisp.org>
71864
71865         * m4/ptrdiff_max.m4: Remove file.
71866
71867 2006-11-21  Bruno Haible  <bruno@clisp.org>
71868
71869         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71870         _AC_COMPUTE_INT.
71871         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71872         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71873         _AC_COMPUTE_INT.
71874         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71875         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71876         _AC_COMPUTE_INT.
71877         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71878
71879 2006-11-28  Jim Meyering  <jim@meyering.net>
71880
71881         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71882         warning from "gcc -Wshadow" about shadowing the builtin.
71883
71884 2006-11-27  Bruno Haible  <bruno@clisp.org>
71885
71886         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71887         _AC_COMPUTE_INT.
71888         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71889
71890 2006-11-27  Bruno Haible  <bruno@clisp.org>
71891             Paul Eggert  <eggert@cs.ucla.edu>
71892
71893         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71894
71895 2006-11-26  Bruno Haible  <bruno@clisp.org>
71896
71897         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71898         noinst_LTLIBRARIES.
71899
71900 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71901             Bruno Haible  <bruno@clisp.org>
71902
71903         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71904         if compiling with "gcc -ansi".
71905
71906 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71907
71908         Fix some incompatibilities with gcc -ansi -pedantic.
71909         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71910         if compiling pedantically with GCC, unless it's C99 or later.
71911         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71912         it mishandles gcc -ansi -pedantic as well.
71913         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71914         if gcc -pedantic.
71915         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71916         initializers for struct if -pedantic, unless it's C99 or later.
71917
71918 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71919
71920         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71921         Don't close an fd more than once. Identical atimes indicate
71922         success, not failure.
71923
71924 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71925
71926         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71927
71928 2006-11-23  Jim Meyering  <jim@meyering.net>
71929
71930         * build-aux/announce-gen: New file.  From coreutils.
71931
71932 2006-11-22  Jim Meyering  <jim@meyering.net>
71933
71934         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71935         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71936         (fts_read): Use a temporary to narrow the overused st_size member
71937         before using it in a switch statement.  Reported by Matthew Woehlke.
71938
71939         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71940         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71941
71942 2006-11-20  Bruno Haible  <bruno@clisp.org>
71943
71944         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71945         changequote instead of pairs of brackets.
71946         Reported by Andreas Schwab <schwab@suse.de>.
71947
71948 2006-11-21  Jim Meyering  <jim@meyering.net>
71949
71950         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71951         so as to remain compatible with older compilers.
71952         Patch from Michael Deutschmann.
71953
71954 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71955
71956         * MODULES.html.sh (File system functions): Add openat.
71957
71958         * lib/openat.h (rpl_fstatat): New macro, if
71959         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71960         (fstatat): Define to rpl_fstatat under the same conditions,
71961         unless COMPILING_FSTATAT.
71962         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71963         seems to have the bug.
71964         * lib/fstatat.c: New file.
71965         * modules/openat (Files): Add it.
71966
71967 2006-11-20  Bruno Haible  <bruno@clisp.org>
71968
71969         * Makefile: New file.
71970
71971 2006-11-20  Jim Meyering  <jim@meyering.net>
71972
71973         The beginnings of syntax-related checks for gnulib.
71974         * lib/Makefile: New file.
71975         * lib/t-idcache: New script.  Ensure that the two halves of
71976         idcache.c stay in sync.
71977
71978         * lib/idcache.c: Adjust comments in user- and group- portions to
71979         be more accurate, and to be consistent with one another.
71980
71981 2006-11-20  Jim Meyering  <jim@meyering.net>
71982
71983         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71984         continue using the flexible array member (thus, this module performs
71985         half as many malloc calls), with the addition that...
71986         (getgroup, getuser): Consistently record a non-match via an empty
71987         "name" string, and map an empty string match to a NULL return value.
71988         * modules/idcache (Depends-on): Re-add flexmember.
71989
71990         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71991         (getuidbyname, getgroup, getgidbyname): Likewise.
71992
71993         Use cleaner syntax: NULL rather than 0.
71994         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71995
71996 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71997
71998         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71999         It mishandled the case where the group was missing.
72000         Problem reported by Greg Schafer.
72001         * modules/idcache: Likewise.
72002
72003 2006-11-18  Jim Meyering  <jim@meyering.net>
72004
72005         * check-module (%exempt_header): Add exception for some
72006         conditionally-included headers.
72007
72008         * modules/i-ring (Depends-on): Add verify.
72009         (License): Change to LGPL.
72010
72011 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72012
72013         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72014         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72015         and inttostr.h.  Use snprintf rather than uinttostr, so that
72016         LGPLed code doesn't depend on GPLed.
72017
72018 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72019
72020         * modules/inline (License): Change from GPL to LGPL.
72021
72022 2006-11-17  Jim Meyering  <jim@meyering.net>
72023
72024         * modules/d-type (License): Switch to LGPL.
72025
72026 2006-11-15  Bruno Haible  <bruno@clisp.org>
72027
72028         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72029
72030 2006-11-15  Eric Blake  <ebb9@byu.net>
72031
72032         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72033         the module dependency.
72034
72035 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72036             Bruno Haible  <bruno@clisp.org>
72037
72038         * gnulib-tool (func_create_testdir): Add license consistency check.
72039
72040 2006-11-15  Eric Blake  <ebb9@byu.net>
72041
72042         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72043         random "(cached)" in configure output.
72044
72045 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72046
72047         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72048         test for conforming inttypes.h is both announced and cached.
72049
72050         * MODULES.html.sh (seen_modules, seen_files): New variables.
72051         (func_module): Rewrite to use a few less gnulib-tool and sed
72052         invocations.  Avoid a couple of quadratic algorithms for ...
72053         (missed_modules, missed_files): ... these, with ...
72054         (func_append, func_tmpdir): ... these new functions, from
72055         gnulib-tool.  Analogously, install traps for cleanup.
72056
72057         * tests/test-gc.c (main): Remove unused variables.
72058         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72059
72060 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72061
72062         * modules/inttostr (License): Change to LGPL.
72063
72064 2006-11-14  Eric Blake  <ebb9@byu.net>
72065
72066         * modules/tempname (License): Change to LGPL.
72067
72068 2006-11-14  Eric Blake  <ebb9@byu.net>
72069
72070         * doc/functions.texi (Function Portability): *printf functions on
72071         Cygwin now understand all POSIX size specifiers.
72072
72073 2006-11-14  Bruno Haible  <bruno@clisp.org>
72074
72075         * modules/c-ctype (License): Change to LGPL.
72076
72077 2006-11-12  Bruno Haible  <bruno@clisp.org>
72078
72079         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72080         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72081         for GNOME libraries, for which the include files are installed in
72082         subdirectories of $prefix/include.
72083
72084 2006-11-12  Bruno Haible  <bruno@clisp.org>
72085
72086         * m4/lib-link.m4: Require at least autoconf-2.54.
72087         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72088         name to underscores for the --with option.
72089
72090 2006-11-13  Bruno Haible  <bruno@clisp.org>
72091
72092         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72093         the tests directory.
72094         Reported by Ralf Wildenhues.
72095
72096 2006-11-13  Bruno Haible  <bruno@clisp.org>
72097
72098         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72099         (func_emit_initmacro_end): Undo the override here.
72100         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72101         Works around the famous automake error in coreutils.
72102
72103 2006-11-13  Eric Blake  <ebb9@byu.net>
72104
72105         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72106         element, not its node.
72107
72108 2006-11-12  Bruno Haible  <bruno@clisp.org>
72109
72110         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72111         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72112
72113 2006-11-12  Bruno Haible  <bruno@clisp.org>
72114
72115         * gnulib-tool: New option --local-symlink.
72116         (func_usage): Document it.
72117         (lsymbolic): New variable.
72118         (func_import, func_create_testdir): If --symlink was not specified,
72119         test whether --local-symlink was specified and the file comes from
72120         the local_gnulib_dir.
72121
72122 2006-11-12  Bruno Haible  <bruno@clisp.org>
72123
72124         * gnulib-tool (func_ln): New function.
72125         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72126
72127 2006-11-12  Bruno Haible  <bruno@clisp.org>
72128
72129         Finish support for source files in subdirectories.
72130         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72131         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72132         AUTOMAKE_OPTIONS.
72133         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72134
72135 2006-11-12  Bruno Haible  <bruno@clisp.org>
72136
72137         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72138         EXTRA_lib_SOURCES augmentation.
72139         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72140
72141 2006-11-12  Jim Meyering  <jim@meyering.net>
72142
72143         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
72144         file descriptors.  This also averts a failure on systems with
72145         native openat support when a traversed directory lacks "x" access.
72146         * lib/fts_.h: Include "i-ring.h"
72147         (struct FTS) [fts_fd_ring]: New member.
72148         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
72149         (FCHDIR): Add parentheses.
72150         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
72151         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
72152         When descending, rather than simply closing the previous
72153         fts_cwd_fd value, push that file descriptor onto the ring.
72154         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
72155         (fts_open): Initialize the new fd_ring member.
72156         (fts_close): Clear the ring.
72157         (fts_safe_changedir): When possible, use our new fd_ring to skip
72158         the diropen and fstat and dev/ino comparison that would normally
72159         accompany a virtual `chdir ("..")'.
72160
72161         * modules/fts (Depends-on): Add i-ring.
72162         * modules/i-ring: New module.
72163         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
72164         * m4/i-ring.m4: New file.
72165
72166 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72167
72168         * gnulib-tool (func_create_testdir): Fix replacement of
72169         `build-aux' in configure.ac.  Run autotools in gltests
72170         subdirectory.
72171         (func_create_testdir, func_create_megatestdir, test): There is
72172         no need for '--force' in most autotool invocations in a new
72173         tree.  Actually fail the whole test if any of the tools, or the
72174         configure or make stages fail.
72175
72176         Sync from Automake.
72177         * build-aux/gnupload: Revert last change.  Add pointer to upload
72178         instructions of the GNU Maintenance Instructions.
72179         Suggestion by Karl Berry.
72180
72181 2006-11-10  Jim Meyering  <jim@meyering.net>
72182
72183         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72184
72185 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72186
72187         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72188         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72189         (bind_textdomain_codeset) [! ENABLE_NLS]:
72190         Evaluate all the arguments.  That way, callers get compatible behavior
72191         if the arguments have side effects.  Also, it avoids some GCC
72192         diagnostics in some cases; Joel E. Denny reported problems when Bison
72193         was configured with --enable-gcc-warnigs.
72194
72195 2006-11-10  Jim Meyering  <jim@meyering.net>
72196
72197         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72198         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72199         account.
72200
72201 2006-11-10  Jim Meyering  <jim@meyering.net>
72202
72203         * modules/inline: New file/module.
72204         * modules/xalloc (Files): Remove m4/inline.m4.
72205         (Depends-on): Add inline, instead.
72206         * modules/oset: Likewise.
72207         * modules/list: Likewise.
72208
72209 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72210
72211         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72212         Problem reported by Matthew Woehlke.
72213
72214 2006-11-09  Bruno Haible  <bruno@clisp.org>
72215
72216         * lib/tempname.c (gen_tempname): Remove variant that invokes
72217         __gen_tempname.
72218         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72219         __gen_tempname.
72220
72221 2006-11-08  Bruno Haible  <bruno@clisp.org>
72222
72223         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72224         to 'yes' instead of 'cross-compiling'.
72225
72226 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72227
72228         * lib/quotearg.h (quotearg_free): New decl.
72229         * lib/quotearg.c (quotearg_free): New function.
72230         (slot0, nslots, slotvec0, slotvec):
72231         Now file-scope so that quotearg_free can get at them.
72232
72233 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72234
72235         Sync from Automake.
72236         * build-aux/gnupload: Add missing 'gnu' to example URL.
72237         Report by Karl Berry.
72238
72239 2006-11-08  Bruno Haible  <bruno@clisp.org>
72240
72241         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
72242         Suggested by Paul Eggert.
72243
72244 2006-11-08  Jim Meyering  <jim@meyering.net>
72245
72246         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
72247         It's already included if !_LIBC.
72248         (fts_safe_changedir): Add a comment.
72249
72250 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72251
72252         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
72253         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72254         Matthew Woehlke.
72255
72256         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72257         definitions up, to avoid colliding with change below.
72258         (static_inline) [HAVE_INLINE]: New macro.
72259         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72260         Provide extern decls when !HAVE_INLINE.  Do not define unless
72261         static_inline is defined, either by us or by xmalloc.c.  Use
72262         static_inline rather than static inline.
72263         (XCALLOC): Optimize sizeof(T) = 1 case.
72264         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72265
72266 2006-11-07  Bruno Haible  <bruno@clisp.org>
72267
72268         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72269         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72270         AC_C_INLINE.
72271         * modules/xalloc (Files): Add m4/inline.m4.
72272
72273 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72274
72275         * README: Fix typo.
72276         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72277         (Miscellanous Notes): ...from this.
72278
72279 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72280
72281         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72282         Mention that offsetof should be used instead of sizeof.
72283         From Bruno Haible.
72284
72285 2006-11-07  Bruno Haible  <bruno@clisp.org>
72286
72287         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72288
72289 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72290
72291         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72292         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72293         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72294         (gl_tree_add_before, gl_tree_add_after):
72295         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72296         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72297         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72298         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72299         (gl_linked_add_after, gl_linked_add_at): Likewise.
72300         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72301         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72302         (gl_tree_add_before, gl_tree_add_after): Likewise.
72303         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72304         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72305         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72306
72307 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72308
72309         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72310
72311 2006-11-06  Bruno Haible  <bruno@clisp.org>
72312
72313         * m4/inline.m4: New file.
72314         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72315         * modules/list (Files): Add m4/inline.m4.
72316         * modules/oset (Files): Likewise.
72317
72318 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72319
72320         * lib/idcache.c: Include <stddef.h>, for offsetof.
72321         (struct userid.name): Change from char * to a flexible array member.
72322         All uses changed.
72323         * modules/idcache (Depends-on): Add flexmember.
72324
72325         * MODULES.html.sh (Core language properties): New module flexmember.
72326         * modules/flexmember, m4/flexmember.m4: New files.
72327
72328         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72329         inline functions that are identical with the old xnmalloc_inline,
72330         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72331         that we can avoid some unnecessary integer multiplications and
72332         divisions in the common case where the element size is known at
72333         compile time.
72334         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72335         needed.
72336         (xnboundedmalloc): Remove.
72337         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72338         arguments, for consistency with rest of this header.
72339         (xcharalloc): Rewrite using XNMALLOC.
72340         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72341         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72342         versions have been moved to lib/xalloc.h and renamed to be the
72343         non-*_inline versions.
72344         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72345         and xnrealloc functions, since those functions are now inline and
72346         now call us.
72347         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72348         renaming described above.
72349         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72350         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72351         captures the dependency in AC_C_INLINE.
72352
72353         New module canonicalize-lgpl, proposed by Charles Wilson in
72354         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72355         with a few small changes afterwards.
72356         * MODULES.html.sh (File system functions): New module
72357         canonicalize-lgpl.
72358         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72359         and canonicalize_file_name.
72360         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72361         * modules/canonicalize-lgpl: New files.
72362
72363 2006-11-05  Bruno Haible  <bruno@clisp.org>
72364
72365         * gnulib-tool (func_import, func_create_testdir): Create directories
72366         also for files in subdirectories of lib/.
72367
72368 2006-11-05  Bruno Haible  <bruno@clisp.org>
72369
72370         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72371         ANSI C compliant.
72372
72373 2006-11-03  Bruno Haible  <bruno@clisp.org>
72374
72375         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72376         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72377         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72378         (xnboundedmalloc): New inline function.
72379         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72380         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72381         xmalloc.
72382         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72383         xmalloc.
72384         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72385         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72386         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72387         xmalloc.
72388         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72389         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72390         xmalloc.
72391         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72392         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72393         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72394         xmalloc.
72395         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72396         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72397         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72398         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72399         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72400         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72401         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72402
72403 2006-11-03  Bruno Haible  <bruno@clisp.org>
72404
72405         * lib/c-ctype.h [C++]: Define functions without name mangling.
72406         * lib/fwriteerror.h [C++]: Likewise.
72407         * lib/gcd.h [C++]: Likewise.
72408         * lib/linebreak.h [C++]: Likewise.
72409
72410 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72411
72412         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72413         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72414         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72415         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72416         Check for functions and headers just once.
72417         Check for declaration of canonicalize_file_name.
72418         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72419
72420 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72421
72422         * gnulib-tool (func_import): Fix typo in actioncmd.
72423
72424 2006-11-02  Bruno Haible  <bruno@clisp.org>
72425
72426         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72427         newline sequence in the Makefile.am snippet as a space, like "make"
72428         does.
72429         Reported by Roger Persson <perrog@gmail.com>.
72430
72431 2006-11-01  Bruno Haible  <bruno@clisp.org>
72432
72433         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72434         already declared in <string.h>.
72435         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72436
72437 2006-11-01  Bruno Haible  <bruno@clisp.org>
72438
72439         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72440         * lib/strcase.h: Include <string.h>.
72441         (strcasecmp): Define to rpl_strcasecmp here.
72442
72443 2006-11-01  Bruno Haible  <bruno@clisp.org>
72444
72445         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72446
72447 2006-11-01  Eric Blake  <ebb9@byu.net>
72448
72449         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72450
72451         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72452
72453 2006-10-29  Bruno Haible  <bruno@clisp.org>
72454
72455         Make it compile in C++ mode.
72456         * lib/full-write.c (full_rw): Add a cast.
72457
72458 2006-11-01  Bruno Haible  <bruno@clisp.org>
72459
72460         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72461         be POSIX compliant.
72462         Reported by Roger Persson <perrog@gmail.com>.
72463
72464 2006-11-01  Eric Blake  <ebb9@byu.net>
72465
72466         * lib/getopt_.h: Fix comments.
72467
72468 2006-10-31  Eric Blake  <ebb9@byu.net>
72469
72470         * modules/tmpdir (Depends-on): Add sys_stat.
72471         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72472         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72473         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72474         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72475         tempname.
72476
72477 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72478
72479         Avoid some C++ diagnostics reported by Bruno Haible.
72480         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72481         xmalloc.
72482         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72483         (struct slotvec): Move to top level.
72484         (quotearg_n_options): Rewrite to avoid xmalloc.
72485         * lib/xalloc.h (xcharalloc): New function.
72486         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72487         [defined __cplusplus]: Add function template that provides result
72488         type propagation.  This part of the change is from Bruno Haible.
72489
72490 2006-10-29  Bruno Haible  <bruno@clisp.org>
72491
72492         Make it compile in C++ mode.
72493         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72494         * lib/strnlen1.c (strnlen1): Cast memchr result.
72495         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72496         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72497         (create_temp_dir): Rename local variable 'template'.
72498         (compile_csharp_using_sscli): Add cast.
72499         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72500         * lib/findprog.c (find_in_path): Likewise.
72501         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72502         * lib/wait-process.c (register_slave_subprocess): Likewise.
72503
72504 2006-10-22  Bruno Haible  <bruno@clisp.org>
72505
72506         * modules/tsearch: New file.
72507         * lib/tsearch.h: New file.
72508         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72509         * m4/tsearch.m4: New file.
72510         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72511
72512 2006-10-29  Eric Blake  <ebb9@byu.net>
72513
72514         * lib/arcfour.c: Assume config.h.
72515         * lib/arctwo.c: Likewise.
72516         * lib/base64.c: Likewise.
72517         * lib/check-version.c: Likewise.
72518         * lib/crc.c: Likewise.
72519         * lib/des.c: Likewise.
72520         * lib/gc-gnulib.c: Likewise.
72521         * lib/gc-libgcrypt.c: Likewise.
72522         * lib/gc-pbkdf2-sha1.c: Likewise.
72523         * lib/getaddrinfo.c: Likewise.
72524         * lib/getdelim.c: Likewise.
72525         * lib/getline.c: Likewise.
72526         * lib/hmac-md5.c: Likewise.
72527         * lib/hmac-sha1.c: Likewise.
72528         * lib/iconvme.c: Likewise.
72529         * lib/md2.c: Likewise.
72530         * lib/md4.c: Likewise.
72531         * lib/memxor.c: Likewise.
72532         * lib/read-file.c: Likewise.
72533         * lib/readline.c: Likewise.
72534         * lib/rijndael-alg-fst.c: Likewise.
72535         * lib/rijndael-api-fst.c: Likewise.
72536         * lib/xgetdomainname.c: Likewise.
72537
72538 2006-10-28  Eric Blake  <ebb9@byu.net>
72539
72540         * lib/xstrndup.c: Assume config.h.
72541
72542 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72543
72544         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72545         stat-macros.h is now for our own macros, whereas stat_h is for
72546         macros in the <sys/stat.h> name space.
72547         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72548         (STAT_MACROS_H): Remove.
72549         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72550         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72551         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72552         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72553         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72554         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72555         Move these macros to ...
72556         * lib/stat_.h: here.  Don't include stat-macros.h.
72557         * lib/canonicalize.c: Don't include stat-macros.h.
72558         * lib/chown.c: Likewise.
72559         * lib/euidaccess.c: Likewise.
72560         * lib/file-type.c: Likewise.
72561         * lib/filemode.c: Likewise.
72562         * lib/glob.c: Likewise.
72563         * lib/isapipe.c: Likewise.
72564         * lib/lchown.c: Likewise.
72565         * lib/lstat.c: Likewise.
72566         * lib/mkdir-p.c: Likewise.
72567         * lib/rmdir.c: Likewise.
72568         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72569         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72570         unless mkdir isn't declared, to speed up 'configure'.
72571         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72572         would define all the S_* symbols.
72573         * modules/canonicalize (Depends-on):
72574         Depend on sys_stat, not stat-macros.
72575         * modules/chown: Likewise.
72576         * modules/euidaccess: Likewise.
72577         * modules/filemode: Likewise.
72578         * modules/file-type: Likewise.
72579         * modules/glob: Likewise.
72580         * modules/isapipe: Likewise.
72581         * modules/lchown: Likewise.
72582         * modules/lstat: Likewise.
72583         * modules/mkancesdirs: Likewise.
72584         * modules/rmdir: Likewise.
72585         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72586         * modules/modechange: Likewise.
72587         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72588         (configure.ac): Remove gl_STAT_MACROS.
72589         * modules/sys_stat (Depends-on): Remove stat-macros.
72590
72591 2006-10-27  Bruno Haible  <bruno@clisp.org>
72592
72593         * m4/signed.m4: Remove file.
72594         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72595         invocation.
72596         * modules/vasnprintf (Files): Remove m4/signed.m4.
72597
72598 2006-10-27  Bruno Haible  <bruno@clisp.org>
72599
72600         Update to GNU gettext 0.16.
72601         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72602         m4/inttypes-h.m4, m4/signed.m4.
72603         * m4/gettext.m4: Update to GNU gettext 0.16.
72604         * m4/intl.m4: New file, from GNU gettext.
72605         * m4/intldir.m4: New file, from GNU gettext.
72606         * config/srclist.txt: Update
72607
72608 2006-10-27  Eric Blake  <ebb9@byu.net>
72609
72610         * MODULES.html.sh: Document tempname.
72611         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72612         dependencies.
72613         (Files): Move lib/tempname.c...
72614         * modules/tempname: ...to this new module.
72615         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72616         (gl_PREREQ_TEMPNAME): Move...
72617         * m4/tempname.m4: ...to this new file.
72618         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72619         * modules/sys_stat (Depends-on): Add stat-macros.
72620         * lib/stat_.h (includes): Pick up stat macros.
72621         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72622         if stat macros are broken.
72623         * lib/tempname.c (includes): No need to include "stat-macros.h".
72624         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72625         (direxists, __path_search) [!_LIBC]: Don't compile these in
72626         gnulib; the tmpdir module covers that.
72627         * lib/tempname.h: New file.
72628
72629 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72630
72631         * COPYING: Explain how gnulib-tool converts licence headers.
72632         Almost all wording by Eric Blake.
72633
72634 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72635
72636         * lib/mbchar.h (is_basic_table): Make read-only.
72637         * lib/mbchar.c (is_basic_table): Likewise.
72638         Reported by John Darrington.
72639
72640 2006-10-25  Bruno Haible  <bruno@clisp.org>
72641
72642         * lib/progname.h (set_program_name): Undefine before defining.
72643
72644 2006-10-25  Bruno Haible  <bruno@clisp.org>
72645
72646         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72647         false for non-gcc C++ compilers.
72648         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72649
72650 2006-10-24  Bruno Haible  <bruno@clisp.org>
72651
72652         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72653         iconv implementations like Irix iconv.
72654
72655 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72656
72657         * modules/vararrays: New file.
72658         * m4/vararrays.m4: New file, taken from diffutils.
72659         * MODULES.html.sh: New module vararrays.
72660
72661 2006-10-24  Karl Berry  <karl@gnu.org>
72662
72663         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72664         Don't call GNU Unix.
72665
72666 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72667
72668         * users.txt: Add Libtool.
72669
72670         Sync from Libtool:
72671
72672         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72673
72674         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72675         to gnulib's policy of including config.h unconditionally.
72676
72677 2006-10-24  Bruno Haible  <bruno@clisp.org>
72678
72679         * modules/wcwidth (Files): Add m4/wint_t.m4.
72680         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72681         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72682
72683 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72684
72685         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72686         to pacify GCC with some -W flags enabled.  Problem reported by
72687         Bruno Haible.
72688
72689 2006-10-24  Jim Meyering  <jim@meyering.net>
72690
72691         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72692         Reported by Karl Berry.
72693
72694 2006-10-23  Bruno Haible  <bruno@clisp.org>
72695
72696         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72697
72698 2006-10-24  Bruno Haible  <bruno@clisp.org>
72699
72700         * lib/gl_list.h: Use C comment style, not C++ comment style.
72701
72702 2006-10-23  Eric Blake  <ebb9@byu.net>
72703
72704         * lib/getaddrinfo.c (includes): Add missing include.
72705
72706 2006-10-23  Bruno Haible  <bruno@clisp.org>
72707             Paul Eggert  <eggert@cs.ucla.edu>
72708
72709         Ability to rename obstack_free.
72710         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72711         obstack_free.
72712         (obstack_free): Invoke the __obstack_free macro.
72713         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72714
72715 2006-10-23  Bruno Haible  <bruno@clisp.org>
72716             Paul Eggert  <eggert@cs.ucla.edu>
72717
72718         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72719         __argc, __argv from the declaration. (They are defined as macros on
72720         mingw.)
72721
72722 2006-10-22  Bruno Haible  <bruno@clisp.org>
72723
72724         * doc/gnulib-intro.texi: New file.
72725         * doc/gnulib.texi: Include it.
72726
72727 2006-10-21  Bruno Haible  <bruno@clisp.org>
72728
72729         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72730         "Introduction", "Miscellanous Notes", "Particular Modules".
72731
72732 2006-10-21  Bruno Haible  <bruno@clisp.org>
72733
72734         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72735         Change mostlyclean-local rule to avoid sh syntax error from bash
72736         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72737
72738 2006-10-23  Jim Meyering  <jim@meyering.net>
72739
72740         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72741         in place of snprintf.
72742
72743         * modules/inttostr (Files): Add lib/uinttostr.c.
72744         * lib/uinttostr.c (inttostr): New file/function.
72745         * lib/inttostr.h (uinttostr): Declare.
72746         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72747         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72748         Add uinttostr.
72749         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72750
72751 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72752
72753         * lib/canonicalize.c (ELOOP): Define if not already defined.
72754         Problem reported by Bruno Haible in
72755         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72756
72757 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72758
72759         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72760         Problem reported by Perry Smith and Ville Laurikari.
72761
72762         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72763         uses.
72764
72765 2006-10-19  Bruno Haible  <bruno@clisp.org>
72766
72767         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72768         for mingw.
72769
72770 2006-10-19  Bruno Haible  <bruno@clisp.org>
72771
72772         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72773         Needed for mingw.
72774
72775 2006-10-19  Bruno Haible  <bruno@clisp.org>
72776
72777         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72778
72779 2006-10-19  Bruno Haible  <bruno@clisp.org>
72780
72781         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72782         it.
72783
72784 2006-10-19  Bruno Haible  <bruno@clisp.org>
72785
72786         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72787         invocation.
72788
72789 2006-10-19  Bruno Haible  <bruno@clisp.org>
72790
72791         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72792         mountlist by default.
72793
72794 2006-10-16  Bruno Haible  <bruno@clisp.org>
72795
72796         * lib/c-strstr.c: Include c-strstr.h.
72797
72798 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72799
72800         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72801         in a slash.
72802
72803 2006-10-18  Bruno Haible  <bruno@clisp.org>
72804
72805         * lib/lock.h [C++]: Wrap definitions in extern "C".
72806
72807 2006-10-18  Bruno Haible  <bruno@clisp.org>
72808
72809         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72810         gl_LIBOBJS list.
72811
72812 2006-10-18  Bruno Haible  <bruno@clisp.org>
72813
72814         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72815
72816 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72817
72818         * lib/xstrtol.h: Include gettext.h.
72819         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72820         Problem reported by Eric Blake.
72821         * modules/xstrtol (Depends-on): Add gettext-h.
72822
72823 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72824
72825         * lib/strftime.c (advance): New macro.
72826         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72827         incomplete type, so you can't add 0 to it.  Problem and patch
72828         reported by Eelco Dolstra for dietlibc.
72829
72830 2006-10-18  Jim Meyering  <jim@meyering.net>
72831
72832         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72833         type for a local, and rename it: s/up/user_proc/.
72834
72835 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72836
72837         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72838         READ_UTMP_USER_PROCESS.
72839         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72840
72841 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72842
72843         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72844         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72845
72846 2006-10-17  Eric Blake  <ebb9@byu.net>
72847
72848         * lib/sigprocmask.c (sigprocmask): Fix typo.
72849
72850         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72851
72852         * modules/clean-temp (Makefile.am): Don't add to make output...
72853         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72854         config.h.
72855
72856 2006-10-17  Bruno Haible  <bruno@clisp.org>
72857
72858         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72859         differently if DEFAULT_TEXT_DOMAIN is set.
72860
72861 2006-10-16  Bruno Haible  <bruno@clisp.org>
72862
72863         * lib/clean-temp.c: Include fwriteerror.h.
72864
72865 2006-10-16  Bruno Haible  <bruno@clisp.org>
72866
72867         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72868
72869 2006-10-16  Bruno Haible  <bruno@clisp.org>
72870
72871         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72872         * lib/sigprocmask.h: Include <sys/types.h>.
72873         (sigset_t): Use the system's definition if present.
72874
72875 2006-10-17  Eric Blake  <ebb9@byu.net>
72876
72877         * lib/xvasprintf.c (includes): Assume config.h.
72878         * lib/xasprintf.c (includes): Likewise.
72879
72880 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72881
72882         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72883         at least as wide as intmax_t.
72884
72885 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72886
72887         (Imported from Automake.)
72888         * build-aux/gnupload: Update to version 1.1 of directive file.
72889
72890 2006-10-16  Eric Blake  <ebb9@byu.net>
72891
72892         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72893         match Automake 1.10a.
72894
72895 2006-10-14  Bruno Haible  <bruno@clisp.org>
72896
72897         * modules/sigprocmask: New file.
72898         * lib/sigprocmask.h: New file.
72899         * lib/sigprocmask.c: New file.
72900         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72901         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72902         request sigprocmask.o.
72903         (gl_PREREQ_SIGPROCMASK): New macro.
72904         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72905         (Depends-on): Add sigprocmask.
72906         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72907         gt_SIGNALBLOCKING. Test for 'raise' only once.
72908         * lib/fatal-signal.c: Include sigprocmask.h.
72909         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72910         unblock_fatal_signals): Define always.
72911         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72912         sigprocmask.
72913
72914 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72915
72916         Sync from Automake.
72917         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72918         which incorrectly sets the mode of an existing destination
72919         directory.  In some cases the unpatched install-sh could do the
72920         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72921         system.  We hope this is rare in practice, but it's clearly worth
72922         fixing.  Problem reported by Alex Unleashed in
72923         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72924         Also, don't bother to check for -m bugs unless we're using -m;
72925         suggested by Stepan Kasal.
72926
72927 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72928
72929         Sync from Automake.
72930         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72931         `-c' flag, so they appear at the same position as in %FASTDEP%
72932         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72933         which ignores unknown options only after the first non-option.
72934         Bug report against M4 by Nelson H. F. Beebe.
72935
72936 2006-10-13  Jim Meyering  <jim@meyering.net>
72937
72938         Fix a bug in yesterday's change.
72939         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72940         p->fts_statp->st_dev would be used uninitialized.
72941         Ensures that we always call fts_stat on the very first entry.
72942         Miklos Szeredi reported that find -xdev stopped working.
72943
72944 2006-10-12  Bruno Haible  <bruno@clisp.org>
72945
72946         * gnulib-tool (func_get_automake_snippet): Append an automatically
72947         computed EXTRA_DIST augmentation.
72948         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72949         * modules/alloca-opt (Makefile.am): Likewise.
72950         * modules/allocsa (Makefile.am): Likewise.
72951         * modules/arcfour (Makefile.am): Likewise.
72952         * modules/arctwo (Makefile.am): Likewise.
72953         * modules/argmatch (Makefile.am): Likewise.
72954         * modules/argz (Makefile.am): Likewise.
72955         * modules/atexit (Makefile.am): Likewise.
72956         * modules/backupfile (Makefile.am): Likewise.
72957         * modules/byteswap (Makefile.am): Likewise.
72958         * modules/c-strtod (Makefile.am): Likewise.
72959         * modules/c-strtold (Makefile.am): Likewise.
72960         * modules/calloc (Makefile.am): Likewise.
72961         * modules/canon-host (Makefile.am): Likewise.
72962         * modules/canonicalize (Makefile.am): Likewise.
72963         * modules/chdir-long (Makefile.am): Likewise.
72964         * modules/chdir-safer (Makefile.am): Likewise.
72965         * modules/check-version (Makefile.am): Likewise.
72966         * modules/chown (Makefile.am): Likewise.
72967         * modules/cloexec (Makefile.am): Likewise.
72968         * modules/close-stream (Makefile.am): Likewise.
72969         * modules/closeout (Makefile.am): Likewise.
72970         * modules/crc (Makefile.am): Likewise.
72971         * modules/csharpexec (Makefile.am): Likewise.
72972         * modules/cycle-check (Makefile.am): Likewise.
72973         * modules/des (Makefile.am): Likewise.
72974         * modules/dev-ino (Makefile.am): Likewise.
72975         * modules/dirfd (Makefile.am): Likewise.
72976         * modules/dirname (Makefile.am): Likewise.
72977         * modules/dup2 (Makefile.am): Likewise.
72978         * modules/eealloc (Makefile.am): Likewise.
72979         * modules/error (Makefile.am): Likewise.
72980         * modules/euidaccess (Makefile.am): Likewise.
72981         * modules/exclude (Makefile.am): Likewise.
72982         * modules/exitfail (Makefile.am): Likewise.
72983         * modules/fcntl-safer (Makefile.am): Likewise.
72984         * modules/fcntl (Makefile.am): Likewise.
72985         * modules/file-type (Makefile.am): Likewise.
72986         * modules/fileblocks (Makefile.am): Likewise.
72987         * modules/filemode (Makefile.am): Likewise.
72988         * modules/filenamecat (Makefile.am): Likewise.
72989         * modules/fnmatch (Makefile.am): Likewise.
72990         * modules/fopen-safer (Makefile.am): Likewise.
72991         * modules/fpending (Makefile.am): Likewise.
72992         * modules/fprintftime (Makefile.am): Likewise.
72993         * modules/free (Makefile.am): Likewise.
72994         * modules/fsusage (Makefile.am): Likewise.
72995         * modules/ftruncate (Makefile.am): Likewise.
72996         * modules/fts (Makefile.am): Likewise.
72997         * modules/gc-arcfour (Makefile.am): Likewise.
72998         * modules/gc-des (Makefile.am): Likewise.
72999         * modules/gc-hmac-md5 (Makefile.am): Likewise.
73000         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
73001         * modules/gc-md4 (Makefile.am): Likewise.
73002         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73003         * modules/gc-sha1 (Makefile.am): Likewise.
73004         * modules/gc (Makefile.am): Likewise.
73005         * modules/getaddrinfo (Makefile.am): Likewise.
73006         * modules/getcwd (Makefile.am): Likewise.
73007         * modules/getdelim (Makefile.am): Likewise.
73008         * modules/getdomainname (Makefile.am): Likewise.
73009         * modules/getgroups (Makefile.am): Likewise.
73010         * modules/gethostname (Makefile.am): Likewise.
73011         * modules/gethrxtime (Makefile.am): Likewise.
73012         * modules/getline (Makefile.am): Likewise.
73013         * modules/getloadavg (Makefile.am): Likewise.
73014         * modules/getlogin_r (Makefile.am): Likewise.
73015         * modules/getndelim2 (Makefile.am): Likewise.
73016         * modules/getopt (Makefile.am): Likewise.
73017         * modules/getpagesize (Makefile.am): Likewise.
73018         * modules/getpass-gnu (Makefile.am): Likewise.
73019         * modules/getpass (Makefile.am): Likewise.
73020         * modules/getsubopt (Makefile.am): Likewise.
73021         * modules/gettime (Makefile.am): Likewise.
73022         * modules/gettimeofday (Makefile.am): Likewise.
73023         * modules/getugroups (Makefile.am): Likewise.
73024         * modules/getusershell (Makefile.am): Likewise.
73025         * modules/glob (Makefile.am): Likewise.
73026         * modules/group-member (Makefile.am): Likewise.
73027         * modules/hard-locale (Makefile.am): Likewise.
73028         * modules/hash (Makefile.am): Likewise.
73029         * modules/hmac-md5 (Makefile.am): Likewise.
73030         * modules/hmac-sha1 (Makefile.am): Likewise.
73031         * modules/human (Makefile.am): Likewise.
73032         * modules/idcache (Makefile.am): Likewise.
73033         * modules/imaxabs (Makefile.am): Likewise.
73034         * modules/imaxdiv (Makefile.am): Likewise.
73035         * modules/inet_ntop (Makefile.am): Likewise.
73036         * modules/inet_pton (Makefile.am): Likewise.
73037         * modules/intprops (Makefile.am): Likewise.
73038         * modules/inttostr (Makefile.am): Likewise.
73039         * modules/inttypes (Makefile.am): Likewise.
73040         * modules/isapipe (Makefile.am): Likewise.
73041         * modules/javaversion (Makefile.am): Likewise.
73042         * modules/lchmod (Makefile.am): Likewise.
73043         * modules/lchown (Makefile.am): Likewise.
73044         * modules/localcharset (Makefile.am): Likewise.
73045         * modules/long-options (Makefile.am): Likewise.
73046         * modules/lstat (Makefile.am): Likewise.
73047         * modules/malloc (Makefile.am): Likewise.
73048         * modules/mathl (Makefile.am): Likewise.
73049         * modules/mbchar (Makefile.am): Likewise.
73050         * modules/md2 (Makefile.am): Likewise.
73051         * modules/md4 (Makefile.am): Likewise.
73052         * modules/md5 (Makefile.am): Likewise.
73053         * modules/memcasecmp (Makefile.am): Likewise.
73054         * modules/memchr (Makefile.am): Likewise.
73055         * modules/memcmp (Makefile.am): Likewise.
73056         * modules/memcoll (Makefile.am): Likewise.
73057         * modules/memcpy (Makefile.am): Likewise.
73058         * modules/memmem (Makefile.am): Likewise.
73059         * modules/memmove (Makefile.am): Likewise.
73060         * modules/mempcpy (Makefile.am): Likewise.
73061         * modules/memrchr (Makefile.am): Likewise.
73062         * modules/memset (Makefile.am): Likewise.
73063         * modules/memxor (Makefile.am): Likewise.
73064         * modules/mkancesdirs (Makefile.am): Likewise.
73065         * modules/mkdir-p (Makefile.am): Likewise.
73066         * modules/mkdir (Makefile.am): Likewise.
73067         * modules/mkdtemp (Makefile.am): Likewise.
73068         * modules/mkstemp (Makefile.am): Likewise.
73069         * modules/mktime (Makefile.am): Likewise.
73070         * modules/modechange (Makefile.am): Likewise.
73071         * modules/mountlist (Makefile.am): Likewise.
73072         * modules/nanosleep (Makefile.am): Likewise.
73073         * modules/obstack (Makefile.am): Likewise.
73074         * modules/openat (Makefile.am): Likewise.
73075         * modules/pagealign_alloc (Makefile.am): Likewise.
73076         * modules/pathmax (Makefile.am): Likewise.
73077         * modules/physmem (Makefile.am): Likewise.
73078         * modules/poll (Makefile.am): Likewise.
73079         * modules/posixtm (Makefile.am): Likewise.
73080         * modules/posixver (Makefile.am): Likewise.
73081         * modules/putenv (Makefile.am): Likewise.
73082         * modules/quote (Makefile.am): Likewise.
73083         * modules/quotearg (Makefile.am): Likewise.
73084         * modules/raise (Makefile.am): Likewise.
73085         * modules/read-file (Makefile.am): Likewise.
73086         * modules/readline (Makefile.am): Likewise.
73087         * modules/readlink (Makefile.am): Likewise.
73088         * modules/readtokens (Makefile.am): Likewise.
73089         * modules/readutmp (Makefile.am): Likewise.
73090         * modules/realloc (Makefile.am): Likewise.
73091         * modules/regex (Makefile.am): Likewise.
73092         * modules/rename-dest-slash (Makefile.am): Likewise.
73093         * modules/rename (Makefile.am): Likewise.
73094         * modules/rijndael (Makefile.am): Likewise.
73095         * modules/rmdir (Makefile.am): Likewise.
73096         * modules/rpmatch (Makefile.am): Likewise.
73097         * modules/safe-read (Makefile.am): Likewise.
73098         * modules/safe-write (Makefile.am): Likewise.
73099         * modules/same-inode (Makefile.am): Likewise.
73100         * modules/same (Makefile.am): Likewise.
73101         * modules/save-cwd (Makefile.am): Likewise.
73102         * modules/savedir (Makefile.am): Likewise.
73103         * modules/setenv (Makefile.am): Likewise.
73104         * modules/settime (Makefile.am): Likewise.
73105         * modules/sha1 (Makefile.am): Likewise.
73106         * modules/sig2str (Makefile.am): Likewise.
73107         * modules/snprintf (Makefile.am): Likewise.
73108         * modules/stat-macros (Makefile.am): Likewise.
73109         * modules/stat-time (Makefile.am): Likewise.
73110         * modules/stdbool (Makefile.am): Likewise.
73111         * modules/stdint (Makefile.am): Likewise.
73112         * modules/stdlib-safer (Makefile.am): Likewise.
73113         * modules/stpcpy (Makefile.am): Likewise.
73114         * modules/stpncpy (Makefile.am): Likewise.
73115         * modules/strcase (Makefile.am): Likewise.
73116         * modules/strcasestr (Makefile.am): Likewise.
73117         * modules/strchrnul (Makefile.am): Likewise.
73118         * modules/strcspn (Makefile.am): Likewise.
73119         * modules/strdup (Makefile.am): Likewise.
73120         * modules/strerror (Makefile.am): Likewise.
73121         * modules/strftime (Makefile.am): Likewise.
73122         * modules/strndup (Makefile.am): Likewise.
73123         * modules/strnlen (Makefile.am): Likewise.
73124         * modules/strpbrk (Makefile.am): Likewise.
73125         * modules/strsep (Makefile.am): Likewise.
73126         * modules/strstr (Makefile.am): Likewise.
73127         * modules/strtod (Makefile.am): Likewise.
73128         * modules/strtoimax (Makefile.am): Likewise.
73129         * modules/strtok_r (Makefile.am): Likewise.
73130         * modules/strtol (Makefile.am): Likewise.
73131         * modules/strtoll (Makefile.am): Likewise.
73132         * modules/strtoul (Makefile.am): Likewise.
73133         * modules/strtoull (Makefile.am): Likewise.
73134         * modules/strtoumax (Makefile.am): Likewise.
73135         * modules/strverscmp (Makefile.am): Likewise.
73136         * modules/sys_socket (Makefile.am): Likewise.
73137         * modules/sys_stat (Makefile.am): Likewise.
73138         * modules/sysexits (Makefile.am): Likewise.
73139         * modules/time_r (Makefile.am): Likewise.
73140         * modules/timegm (Makefile.am): Likewise.
73141         * modules/timespec (Makefile.am): Likewise.
73142         * modules/tmpfile-safer (Makefile.am): Likewise.
73143         * modules/trim (Makefile.am): Likewise.
73144         * modules/unistd-safer (Makefile.am): Likewise.
73145         * modules/unlinkdir (Makefile.am): Likewise.
73146         * modules/unlocked-io (Makefile.am): Likewise.
73147         * modules/userspec (Makefile.am): Likewise.
73148         * modules/utime (Makefile.am): Likewise.
73149         * modules/utimecmp (Makefile.am): Likewise.
73150         * modules/utimens (Makefile.am): Likewise.
73151         * modules/vasnprintf (Makefile.am): Likewise.
73152         * modules/vasprintf (Makefile.am): Likewise.
73153         * modules/vsnprintf (Makefile.am): Likewise.
73154         * modules/xalloc (Makefile.am): Likewise.
73155         * modules/xgetcwd (Makefile.am): Likewise.
73156         * modules/xnanosleep (Makefile.am): Likewise.
73157         * modules/xreadlink (Makefile.am): Likewise.
73158         * modules/xstrtod (Makefile.am): Likewise.
73159         * modules/xstrtol (Makefile.am): Likewise.
73160         * modules/xstrtold (Makefile.am): Likewise.
73161         * modules/yesno (Makefile.am): Likewise.
73162         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
73163
73164 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73165
73166         * modules/error (Makefile.am): Distribute files through
73167         EXTRA_DIST, not lib_SOURCES.
73168
73169 2006-10-12  Eric Blake  <ebb9@byu.net>
73170
73171         * modules/error (Makefile.am): Distribute files in /lib.
73172         * modules/obstack (Makefile.am): Likewise.
73173
73174 2006-10-12  Bruno Haible  <bruno@clisp.org>
73175
73176         * modules/acl (Makefile.am): Distribute all files in lib/ through
73177         EXTRA_DIST.
73178         * modules/arcfour (Makefile.am): Likewise.
73179         * modules/arctwo (Makefile.am): Likewise.
73180         * modules/argmatch (Makefile.am): Likewise.
73181         * modules/argz (Makefile.am): Likewise.
73182         * modules/atexit (Makefile.am): Likewise.
73183         * modules/backupfile (Makefile.am): Likewise.
73184         * modules/c-strtod (Makefile.am): Likewise.
73185         * modules/c-strtold (Makefile.am): Likewise.
73186         * modules/calloc (Makefile.am): Likewise.
73187         * modules/canon-host (Makefile.am): Likewise.
73188         * modules/canonicalize (Makefile.am): Likewise.
73189         * modules/chdir-long (Makefile.am): Likewise.
73190         * modules/chdir-safer (Makefile.am): Likewise.
73191         * modules/check-version (Makefile.am): Likewise.
73192         * modules/chown (Makefile.am): Likewise.
73193         * modules/cloexec (Makefile.am): Likewise.
73194         * modules/close-stream (Makefile.am): Likewise.
73195         * modules/closeout (Makefile.am): Likewise.
73196         * modules/crc (Makefile.am): Likewise.
73197         * modules/cycle-check (Makefile.am): Likewise.
73198         * modules/des (Makefile.am): Likewise.
73199         * modules/dirfd (Makefile.am): Likewise.
73200         * modules/dirname (Makefile.am): Likewise.
73201         * modules/dup2 (Makefile.am): Likewise.
73202         * modules/euidaccess (Makefile.am): Likewise.
73203         * modules/exclude (Makefile.am): Likewise.
73204         * modules/exitfail (Makefile.am): Likewise.
73205         * modules/fcntl-safer (Makefile.am): Likewise.
73206         * modules/file-type (Makefile.am): Likewise.
73207         * modules/fileblocks (Makefile.am): Likewise.
73208         * modules/filemode (Makefile.am): Likewise.
73209         * modules/filenamecat (Makefile.am): Likewise.
73210         * modules/fnmatch (Makefile.am): Likewise.
73211         * modules/fopen-safer (Makefile.am): Likewise.
73212         * modules/fpending (Makefile.am): Likewise.
73213         * modules/fprintftime (Makefile.am): Likewise.
73214         * modules/free (Makefile.am): Likewise.
73215         * modules/fsusage (Makefile.am): Likewise.
73216         * modules/ftruncate (Makefile.am): Likewise.
73217         * modules/fts (Makefile.am): Likewise.
73218         * modules/gc (Makefile.am): Likewise.
73219         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73220         * modules/getaddrinfo (Makefile.am): Likewise.
73221         * modules/getcwd (Makefile.am): Likewise.
73222         * modules/getdelim (Makefile.am): Likewise.
73223         * modules/getdomainname (Makefile.am): Likewise.
73224         * modules/getgroups (Makefile.am): Likewise.
73225         * modules/gethostname (Makefile.am): Likewise.
73226         * modules/gethrxtime (Makefile.am): Likewise.
73227         * modules/getline (Makefile.am): Likewise.
73228         * modules/getloadavg (Makefile.am): Likewise.
73229         * modules/getlogin_r (Makefile.am): Likewise.
73230         * modules/getopt (Makefile.am): Likewise.
73231         * modules/getpass (Makefile.am): Likewise.
73232         * modules/getpass-gnu (Makefile.am): Likewise.
73233         * modules/getsubopt (Makefile.am): Likewise.
73234         * modules/gettime (Makefile.am): Likewise.
73235         * modules/gettimeofday (Makefile.am): Likewise.
73236         * modules/getugroups (Makefile.am): Likewise.
73237         * modules/getusershell (Makefile.am): Likewise.
73238         * modules/glob (Makefile.am): Likewise.
73239         * modules/group-member (Makefile.am): Likewise.
73240         * modules/hard-locale (Makefile.am): Likewise.
73241         * modules/hash (Makefile.am): Likewise.
73242         * modules/hmac-md5 (Makefile.am): Likewise.
73243         * modules/hmac-sha1 (Makefile.am): Likewise.
73244         * modules/human (Makefile.am): Likewise.
73245         * modules/idcache (Makefile.am): Likewise.
73246         * modules/imaxabs (Makefile.am): Likewise.
73247         * modules/imaxdiv (Makefile.am): Likewise.
73248         * modules/inet_ntop (Makefile.am): Likewise.
73249         * modules/inet_pton (Makefile.am): Likewise.
73250         * modules/inttostr (Makefile.am): Likewise.
73251         * modules/isapipe (Makefile.am): Likewise.
73252         * modules/lchown (Makefile.am): Likewise.
73253         * modules/long-options (Makefile.am): Likewise.
73254         * modules/lstat (Makefile.am): Likewise.
73255         * modules/malloc (Makefile.am): Likewise.
73256         * modules/mathl (Makefile.am): Likewise.
73257         * modules/mbchar (Makefile.am): Likewise.
73258         * modules/md2 (Makefile.am): Likewise.
73259         * modules/md4 (Makefile.am): Likewise.
73260         * modules/md5 (Makefile.am): Likewise.
73261         * modules/memcasecmp (Makefile.am): Likewise.
73262         * modules/memchr (Makefile.am): Likewise.
73263         * modules/memcmp (Makefile.am): Likewise.
73264         * modules/memcoll (Makefile.am): Likewise.
73265         * modules/memcpy (Makefile.am): Likewise.
73266         * modules/memmem (Makefile.am): Likewise.
73267         * modules/memmove (Makefile.am): Likewise.
73268         * modules/mempcpy (Makefile.am): Likewise.
73269         * modules/memrchr (Makefile.am): Likewise.
73270         * modules/memset (Makefile.am): Likewise.
73271         * modules/memxor (Makefile.am): Likewise.
73272         * modules/mkancesdirs (Makefile.am): Likewise.
73273         * modules/mkdir (Makefile.am): Likewise.
73274         * modules/mkdir-p (Makefile.am): Likewise.
73275         * modules/mkdtemp (Makefile.am): Likewise.
73276         * modules/mkstemp (Makefile.am): Likewise.
73277         * modules/mktime (Makefile.am): Likewise.
73278         * modules/modechange (Makefile.am): Likewise.
73279         * modules/mountlist (Makefile.am): Likewise.
73280         * modules/nanosleep (Makefile.am): Likewise.
73281         * modules/openat (Makefile.am): Likewise.
73282         * modules/pagealign_alloc (Makefile.am): Likewise.
73283         * modules/physmem (Makefile.am): Likewise.
73284         * modules/poll (Makefile.am): Likewise.
73285         * modules/posixtm (Makefile.am): Likewise.
73286         * modules/posixver (Makefile.am): Likewise.
73287         * modules/putenv (Makefile.am): Likewise.
73288         * modules/quote (Makefile.am): Likewise.
73289         * modules/quotearg (Makefile.am): Likewise.
73290         * modules/raise (Makefile.am): Likewise.
73291         * modules/read-file (Makefile.am): Likewise.
73292         * modules/readline (Makefile.am): Likewise.
73293         * modules/readlink (Makefile.am): Likewise.
73294         * modules/readtokens (Makefile.am): Likewise.
73295         * modules/readutmp (Makefile.am): Likewise.
73296         * modules/realloc (Makefile.am): Likewise.
73297         * modules/regex (Makefile.am): Likewise.
73298         * modules/rename (Makefile.am): Likewise.
73299         * modules/rename-dest-slash (Makefile.am): Likewise.
73300         * modules/rijndael (Makefile.am): Likewise.
73301         * modules/rmdir (Makefile.am): Likewise.
73302         * modules/rpmatch (Makefile.am): Likewise.
73303         * modules/safe-read (Makefile.am): Likewise.
73304         * modules/safe-write (Makefile.am): Likewise.
73305         * modules/same (Makefile.am): Likewise.
73306         * modules/save-cwd (Makefile.am): Likewise.
73307         * modules/savedir (Makefile.am): Likewise.
73308         * modules/setenv (Makefile.am): Likewise.
73309         * modules/settime (Makefile.am): Likewise.
73310         * modules/sha1 (Makefile.am): Likewise.
73311         * modules/sig2str (Makefile.am): Likewise.
73312         * modules/snprintf (Makefile.am): Likewise.
73313         * modules/stdlib-safer (Makefile.am): Likewise.
73314         * modules/stpcpy (Makefile.am): Likewise.
73315         * modules/stpncpy (Makefile.am): Likewise.
73316         * modules/strcase (Makefile.am): Likewise.
73317         * modules/strcasestr (Makefile.am): Likewise.
73318         * modules/strchrnul (Makefile.am): Likewise.
73319         * modules/strcspn (Makefile.am): Likewise.
73320         * modules/strdup (Makefile.am): Likewise.
73321         * modules/strerror (Makefile.am): Likewise.
73322         * modules/strftime (Makefile.am): Likewise.
73323         * modules/strndup (Makefile.am): Likewise.
73324         * modules/strnlen (Makefile.am): Likewise.
73325         * modules/strpbrk (Makefile.am): Likewise.
73326         * modules/strsep (Makefile.am): Likewise.
73327         * modules/strstr (Makefile.am): Likewise.
73328         * modules/strtod (Makefile.am): Likewise.
73329         * modules/strtoimax (Makefile.am): Likewise.
73330         * modules/strtok_r (Makefile.am): Likewise.
73331         * modules/strtol (Makefile.am): Likewise.
73332         * modules/strtoll (Makefile.am): Likewise.
73333         * modules/strtoul (Makefile.am): Likewise.
73334         * modules/strtoull (Makefile.am): Likewise.
73335         * modules/strtoumax (Makefile.am): Likewise.
73336         * modules/strverscmp (Makefile.am): Likewise.
73337         * modules/time_r (Makefile.am): Likewise.
73338         * modules/timegm (Makefile.am): Likewise.
73339         * modules/tmpfile-safer (Makefile.am): Likewise.
73340         * modules/unistd-safer (Makefile.am): Likewise.
73341         * modules/unlinkdir (Makefile.am): Likewise.
73342         * modules/userspec (Makefile.am): Likewise.
73343         * modules/utime (Makefile.am): Likewise.
73344         * modules/utimecmp (Makefile.am): Likewise.
73345         * modules/utimens (Makefile.am): Likewise.
73346         * modules/vasnprintf (Makefile.am): Likewise.
73347         * modules/vasprintf (Makefile.am): Likewise.
73348         * modules/vsnprintf (Makefile.am): Likewise.
73349         * modules/xalloc (Makefile.am): Likewise.
73350         * modules/xgetcwd (Makefile.am): Likewise.
73351         * modules/xnanosleep (Makefile.am): Likewise.
73352         * modules/xreadlink (Makefile.am): Likewise.
73353         * modules/xstrtod (Makefile.am): Likewise.
73354         * modules/xstrtol (Makefile.am): Likewise.
73355         * modules/xstrtold (Makefile.am): Likewise.
73356         * modules/yesno (Makefile.am): Likewise.
73357
73358 2006-10-12  Jim Meyering  <jim@meyering.net>
73359
73360         * m4/getloadavg.m4: Revert the change below.
73361
73362         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73363         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73364         fail with a symlink, which is what coreutils' ./bootstrap now
73365         creates by default.
73366
73367 2006-10-12  Bruno Haible  <bruno@clisp.org>
73368
73369         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73370         mingw.
73371         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73372         MSVC and mingw explicitly.
73373
73374 2006-10-11  Simon Josefsson  <jas@extundo.com>
73375             Bruno Haible  <bruno@clisp.org>
73376
73377         Add support for multiple gnulib-tool invocations in the scope of a
73378         single configure.ac file.
73379         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73380         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73381         with the same contents as the _LIBADD variable.
73382         (func_emit_initmacro_start, func_emit_initmacro_end,
73383         func_emit_initmacro_done): New functions.
73384         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73385         gl_LIBOBJS and gl_LTLIBOBJS.
73386
73387 2006-10-11  Bruno Haible  <bruno@clisp.org>
73388
73389         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73390         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73391         autoreconf. Instead, invoke autopoint explicitly but move back the
73392         *.m4 files from gnulib.
73393
73394 2006-10-11  Bruno Haible  <bruno@clisp.org>
73395
73396         * gnulib-tool (func_usage): Make module names after --create-testdir
73397         optional.
73398         (func_create_testdir): If no module was specified, use nearly all
73399         modules.
73400
73401 2006-10-12  Jim Meyering  <jim@meyering.net>
73402
73403         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73404         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73405         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73406         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73407         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73408         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73409         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73410         (fts_set_stat_required): New function.
73411         (fts_open): Defer the calls to fts_stat, if possible or requested.
73412         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73413         into fts_stat itself.
73414         (fts_read): Perform any required (deferred) fts_stat call.
73415         (fts_build): Likewise, for the directory we're about to open and read.
73416         In the readdir loop, carefully decide whether each entry will require
73417         an eventual call to fts_stat, using dirent.d_type info if available.
73418         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73419         a command line argument into this function.  Update all callers.
73420         Map a return value of FTS_DOT to FTS_D for a command line argument.
73421         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73422         Thanks to Miklos Szeredi for his tenacity and for the initial
73423         bug report about "find" failing on a FUSE-based file system.
73424
73425         * lib/fts.c (fts_open): Use consistent indentation.
73426
73427 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73428
73429         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73430         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73431         reported by Jim Meyering.  All uses of cache variables renamed
73432         to match Autoconf's.
73433         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73434         the other one.
73435
73436         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73437         Fix misspelling in diagnostic.
73438
73439 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73440
73441         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73442         defined.  Problem reported by Matthew Woehlke.
73443
73444         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73445         Add support for Tandem NonStop R series.
73446         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73447         Use new macro.
73448
73449         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73450         (has_trailing_slash): Omit size arg; all callers changed.
73451         Omit 'inline', since it doesn't help performance and we'd
73452         need to configure it.
73453         Don't count //, ///, etc. as having a trailing slash.
73454         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73455         (rpl_rename_dest_slash): On failure, use rename's errno rather
73456         than (in some cases) an incorrect or junk errno.
73457         Simplify code by removing need to compute length; this does
73458         cause it to make two passes instead of one over the file name,
73459         but it's worth it.
73460
73461         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73462         change, since Autoconf's version may no longer be appropriate now
73463         that we are using CVS Autoconf's version.  Add support for Tandem.
73464
73465 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73466             Bruno Haible  <bruno@clisp.org>
73467
73468         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73469         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73470         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73471         gl_AC_TYPE_LONG_LONG.
73472
73473         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73474         instead of HAVE_LONG_LONG.
73475         * lib/printf-args.c (printf_fetchargs): Likewise.
73476         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73477         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73478         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73479         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73480         gl_AC_TYPE_LONG_LONG.
73481
73482 2006-10-11  Bruno Haible  <bruno@clisp.org>
73483
73484         * m4/longlong.m4: Add comments.
73485         * m4/ulonglong.m4: Likewise.
73486
73487 2006-10-10  Bruno Haible  <bruno@clisp.org>
73488
73489         Make it possible to #define stpcpy, strdup to aliases.
73490         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73491         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73492
73493 2006-10-10  Bruno Haible  <bruno@clisp.org>
73494
73495         Make it possible to #define gcd to an alias.
73496         * lib/gcd.c: Include config.h.
73497
73498 2006-10-10  Bruno Haible  <bruno@clisp.org>
73499
73500         Make it possible to #define c_isascii to an alias.
73501         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73502         defined. Undefine the macros before defining them, to avoid gcc
73503         warnings.
73504         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73505         define NO_C_CTYPE_MACROS early.
73506
73507 2006-10-10  Bruno Haible  <bruno@clisp.org>
73508
73509         Make it possible to #define set_program_name to an alias.
73510         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73511         ENABLE_RELOCATABLE early.
73512
73513 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73514
73515         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73516         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73517         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73518         More generally, don't assume that 64-bit signed int is available
73519         if unsigned int is, and vice versa.
73520         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73521         unsigned symbols, not on their signed counterparts.
73522         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73523         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73524         (UINT64_C, UINTMAX_C):
73525         Likewise.
73526         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73527         unsigned counterparts.
73528         (Have_long_long, Unsigned): New macros.
73529         (Int): Renamed from INT.
73530         (strtoimax): Use the new macros.
73531         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73532         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73533         * modules/inttypes (inttypes.h): Substitute
73534         HAVE_UNSIGNED_LONG_LONG_INT.
73535         * modules/stdint (stdint.h): Likewise.
73536         (Files): Add m4/ulonglong.m4.
73537
73538 2006-10-10  Bruno Haible  <bruno@clisp.org>
73539
73540         Fix a gcc -Wshadow warning.
73541         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73542         to 'bucket'.
73543         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73544         gl_linked_indexof_from_to): Likewise.
73545         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73546         Likewise.
73547         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73548         Likewise.
73549         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73550         Reported by Eric Blake.
73551
73552 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73553
73554         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73555         for NetBSD.  Problem reported by Bruno Haible.
73556
73557 2006-10-09  Jim Meyering  <jim@meyering.net>
73558
73559         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73560         Patch from Bruno Haible.
73561
73562 2006-10-09  Jim Meyering  <jim@meyering.net>
73563
73564         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73565         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73566         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73567
73568 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73569
73570         Don't include <config.h> twice; this doesn't work in some cases,
73571         e.g., when config.h has "#define intmax_t long long int" and
73572         we include <config.h>, <inttypes.h>, <config.h> in that order.
73573         Problem reported by Matthew Woehlke in:
73574         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73575         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73576         * lib/fts-cycle.c: Don't include config.h.
73577         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73578         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73579         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73580         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73581         inttypes.h.
73582         * lib/xstrtoumax.c: Likewise.
73583         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73584         __strtol and the like, so that this module is more like its siblings.
73585         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73586         Remove; no longer needed now that we assume gnulib inttypes.h.
73587
73588 2006-10-08  Bruno Haible  <bruno@clisp.org>
73589
73590         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73591         option.
73592
73593 2006-10-07  Jim Meyering  <jim@meyering.net>
73594
73595         * modules/inttypes (inttypes.h): Revert what seems to have been
73596         an inadvertent part of today's change: use "|", not "/" in the
73597         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73598
73599 2006-10-07  Bruno Haible  <bruno@clisp.org>
73600
73601         * modules/sublist: New file.
73602
73603 2006-10-07  Bruno Haible  <bruno@clisp.org>
73604
73605         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73606         * modules/argz (argz.h): Likewise.
73607         * modules/arpa_inet (arpa/inet.h): Likewise.
73608         * modules/byteswap (byteswap.h): Likewise.
73609         * modules/configmake (configmake.h): Likewise.
73610         * modules/fcntl (fcntl.h): Likewise.
73611         * modules/fnmatch (fnmatch.h): Likewise.
73612         * modules/getopt (getopt.h): Likewise.
73613         * modules/glob (glob.h): Likewise.
73614         * modules/inttypes (inttypes.h): Likewise.
73615         * modules/netinet_in (netinet/in.h): Likewise.
73616         * modules/poll (poll.h): Likewise.
73617         * modules/stdbool (stdbool.h): Likewise.
73618         * modules/stdint (stdint.h): Likewise.
73619         * modules/sys_select (sys/select.h): Likewise.
73620         * modules/sys_socket (sys/socket.h): Likewise.
73621         * modules/sys_stat (sys/stat.h): Likewise.
73622         * modules/sysexits (sysexits.h): Likewise.
73623         * modules/unistd (unistd.h): Likewise.
73624         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73625         Add a "DO NOT EDIT" comment to the generated file.
73626         (func_import): Likewise for gnulib-comp.m4.
73627
73628 2006-10-07  Bruno Haible  <bruno@clisp.org>
73629
73630         * lib/gl_sublist.h: New file.
73631         * lib/gl_sublist.c: New file.
73632
73633 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73634
73635         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73636         name (relative to the original working directory) and the file
73637         name component (relative to the temporary working directory).  All
73638         callers changed.
73639         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73640         * lib/mkdir-p.c (make_dir_parents): Likewise.
73641         * lib/mkdir-p.h (make_dir_parents): Likewise.
73642
73643 2006-10-06  Eric Blake  <ebb9@byu.net>
73644
73645         Define several macros for use by the clean-temp module.
73646         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73647         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73648         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73649
73650         * lib/clean-temp.h (close_stream_temp): New declaration.
73651         * lib/clean-temp.c (includes): Pull in headers according to what
73652         other modules are in use.
73653         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73654
73655 2006-10-06  Bruno Haible  <bruno@clisp.org>
73656
73657         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73658         instead of fopen, fwriteerror.
73659
73660 2006-10-06  Bruno Haible  <bruno@clisp.org>
73661
73662         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73663         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73664         int.
73665         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73666         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73667         Return an error indicator.
73668         Suggested by Eric Blake.
73669
73670 2006-10-06  Bruno Haible  <bruno@clisp.org>
73671
73672         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73673         Reported by Eric Blake.
73674
73675 2006-10-06  Bruno Haible  <bruno@clisp.org>
73676
73677         * modules/closeout (Description): Mention stderr too.
73678
73679 2006-10-06  Bruno Haible  <bruno@clisp.org>
73680         and Paul Eggert  <eggert@cs.ucla.edu>
73681
73682         * lib/closeout.c (close_stdout): Also close stderr.
73683         * lib/closeout.h: Update comment.
73684
73685 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73686
73687         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73688         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73689         * lib/dirchownmod.c: Include lchown.h.
73690         * lib/lchown.c: Don't include files that lchown.h now includes.
73691         Don't declare chown, since lchown.h now does that.
73692         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73693         (lchown): Define to rpl_chown if lchown is declared but
73694         does not exist.  Declare using a prototype if lchown is not
73695         declared.  Add a copyright notice.
73696         * lib/mkstemp.h: Include <unistd.h>.
73697         * lib/openat.c: Include lchown.h.
73698
73699         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73700         we now test for that separately.
73701         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73702         rather than O_NOFOLLOW, when testing whether it's possible to
73703         avoid a race condition reliably.
73704         * lib/savewd.c (savewd_chdir): Likewise.
73705
73706         Remove macros that are no longer needed now that stdint.h is
73707         reliable.
73708         * lib/fsusage.c (UINTMAX_MAX): Remove.
73709         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73710         * lib/utimecmp.c (SIZE_MAX): Remove.
73711
73712         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73713
73714         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73715         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73716         O_NOATIME works.
73717
73718 2006-10-05  Bruno Haible  <bruno@clisp.org>
73719
73720         * lib/gl_list.h (gl_sortedlist_search_from_to,
73721         gl_sortedlist_indexof_from_to): New declarations.
73722         (gl_list_implementation): New fields sortedlist_search_from_to,
73723         sortedlist_indexof_from_to.
73724         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73725         inline functions.
73726         * lib/gl_list.c (gl_sortedlist_search_from_to,
73727         gl_sortedlist_indexof_from_to): New functions.
73728         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73729         function.
73730         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73731         (gl_array_sortedlist_search_from_to): New function.
73732         (gl_array_list_implementation): Update.
73733         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73734         function.
73735         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73736         (gl_carray_sortedlist_search_from_to): New function.
73737         (gl_carray_list_implementation): Update.
73738         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73739         gl_linked_sortedlist_indexof_from_to): New functions.
73740         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73741         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73742         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73743         gl_tree_sortedlist_indexof_from_to): New functions.
73744         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73745         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73746         Update.
73747         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73748         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73749         Update.
73750
73751 2006-10-05  Bruno Haible  <bruno@clisp.org>
73752
73753         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73754         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73755         (struct gl_list_implementation): Add fields search_from_to,
73756         indexof_from_to. Remove fields search, indexof.
73757         (gl_list_search): Use the search_from_to method.
73758         (gl_list_search_from, gl_list_search_from_to): New functions.
73759         (gl_list_indexof): Use the indexof_from_to method.
73760         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73761         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73762         (gl_list_search_from, gl_list_search_from_to): New functions.
73763         (gl_list_indexof): Use the indexof_from_to method.
73764         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73765         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73766         gl_array_indexof. Add start_index, end_index arguments.
73767         (gl_array_search_from_to): Renamed from gl_array_search. Add
73768         start_index, end_index arguments.
73769         (gl_array_remove, gl_array_list_implementation): Update.
73770         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73771         gl_carray_indexof. Add start_index, end_index arguments.
73772         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73773         start_index, end_index arguments.
73774         (gl_carray_remove, gl_carray_list_implementation): Update.
73775         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73776         gl_linked_search. Add start_index, end_index arguments.
73777         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73778         start_index, end_index arguments.
73779         (gl_linked_remove): Update.
73780         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73781         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73782         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73783         field to 'size_t'.
73784         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73785         gl_tree_search. Add start_index, end_index arguments.
73786         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73787         start_index, end_index arguments.
73788         (gl_tree_remove): Update.
73789         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73790         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73791         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73792         function.
73793         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73794         gl_tree_search. Add start_index, end_index arguments.
73795         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73796         start_index, end_index arguments.
73797         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73798         Update.
73799         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73800
73801 2006-10-05  Bruno Haible  <bruno@clisp.org>
73802
73803         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73804
73805         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73806         fwriteerror_temp): New declarations.
73807         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73808         (descriptors): New variable.
73809         (cleanup): First, close the descriptors.
73810         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73811         fclose_temp, fwriteerror_temp): New functions.
73812
73813 2006-10-04  Jim Meyering  <jim@meyering.net>
73814
73815         * lib/fts.c (fts_open): Tiny comment change.
73816
73817 2006-10-04  Bruno Haible  <bruno@clisp.org>
73818
73819         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73820         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73821         gl_LOCK_BODY.
73822         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73823         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73824         gl_LOCK_EARLY_BODY.
73825         (gl_LOCK): Require gl_LOCK_BODY.
73826
73827 2006-10-04  Bruno Haible  <bruno@clisp.org>
73828
73829         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73830         (gl_oset_search_atleast): New declaration.
73831         (struct gl_oset_implementation): Add field 'search_atleast'.
73832         (gl_oset_search_atleast): New inline function.
73833         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73834         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73835         (gl_array_oset_implementation): Update.
73836         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73837         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73838         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73839
73840 2006-10-04  Bruno Haible  <bruno@clisp.org>
73841
73842         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73843
73844 2006-10-03  Bruno Haible  <bruno@clisp.org>
73845
73846         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73847         from gl_avltreehash_list_implementation.
73848
73849 2006-10-03  Bruno Haible  <bruno@clisp.org>
73850
73851         * lib/gl_oset.c (gl_oset_add): Fix return type.
73852
73853 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73854
73855         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73856
73857 2006-10-02  Eric Blake  <ebb9@byu.net>
73858
73859         * modules/strnlen (Depends-on): Add extensions.
73860
73861 2006-10-02  Eric Blake  <ebb9@byu.net>
73862
73863         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73864         definition in 2.60+.
73865
73866 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73867
73868         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73869         checks.
73870
73871 2006-10-02  Bruno Haible  <bruno@clisp.org>
73872
73873         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73874         to the AUTOMAKE_OPTIONS.
73875         Reported by Jim Meyering.
73876
73877 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73878
73879         Work around bug in Solaris 10 /proc file system:
73880         /proc/self/fd/NNN/.. isn't the parent directory of
73881         the directory whose file descriptor is NNN.  This needs to
73882         be worked around at run time, not compile time, since a
73883         program might be built on Solaris 8, where things work, and
73884         run on Solaris 10.
73885         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73886         to use the following interface instead:
73887         (OPENAT_BUFFER_SIZE): New macro.
73888         (openat_proc_name): New function.
73889         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73890         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73891         Likewise.
73892         * lib/openat-proc.c: New file.
73893         * modules/openat (Files): Add lib/openat-proc.c.
73894         (Depends-on): Add same-inode, stdbool.
73895         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73896
73897 2006-09-29  Bruno Haible  <bruno@clisp.org>
73898
73899         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73900         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73901         argument. Set stdout_closed before testing for ferror, not after.
73902         (fwriteerror, fwriteerror_no_ebadf): New functions.
73903
73904 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73905
73906         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73907
73908 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73909
73910         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73911         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73912
73913 2006-09-28  Jim Meyering  <jim@meyering.net>
73914
73915         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73916         Include <unistd.h>.
73917
73918 2006-09-28  Bruno Haible  <bruno@clisp.org>
73919
73920         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73921         * modules/linkedhash-list (Depends-on): Likewise.
73922         * modules/rbtreehash-list (Depends-on): Likewise.
73923
73924 2006-09-28  Bruno Haible  <bruno@clisp.org>
73925
73926         * lib/strndup.h: Simplify the redefinition of strndup.
73927         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73928         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73929
73930 2006-09-28  Bruno Haible  <bruno@clisp.org>
73931
73932         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73933         * lib/gl_linkedhash_list.c: Likewise.
73934         * lib/gl_rbtreehash_list.c: Likewise.
73935
73936 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73937
73938         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73939         getaddrinfo.
73940
73941         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73942         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73943         it causes <stdio_ext.h> to cause a compile-time error.
73944         Problem reported by Nelson H. F. Beebe.
73945         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73946         of HAVE_DECL___PENDING.
73947
73948         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73949         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73950         declaration.
73951
73952 2006-09-27  Jim Meyering  <jim@meyering.net>
73953
73954         This file could end up with a definition for a function
73955         named __strndup, rather than rpl_strndup on a system with
73956         incomplete weak_alias support.
73957         * lib/strndup.c (strndup): Rename from __strndup.
73958         Remove #defines that used to map __strndup to strndup.
73959         Don't use K&R prototypes.
73960         Remove LIBC-related code, since this file is not sync'd with glibc.
73961         * lib/strndup.h: Revamp, accordingly.
73962         * m4/strndup.m4: Modernize.
73963
73964 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73965
73966         * modules/savewd (Depends-on): Add 'raise'.
73967         * lib/savewd.c: Include <signal.h>, for 'raise'.
73968
73969 2006-09-26  Jim Meyering  <jim@meyering.net>
73970
73971         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73972         when we detect Darwin 8.7.0's acl_get_file bug.
73973         Rearrange to perform the new (below) run-test while $LIBS
73974         contains any acl-related library.  Set USE_ACL at the end.
73975         (gl_ACL_GET_FILE): New function.
73976
73977 2006-09-26  Eric Blake  <ebb9@byu.net>
73978
73979         * lib/verror.c: Include <config.h> unconditionally.
73980
73981 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73982
73983         * modules/clock-time (Maintainer): Add self.
73984         * modules/getlogin_r (Depends-on): Add extensions.
73985
73986 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73987
73988         * modules/clock-time: New module.
73989         * modules/nanosleep (Depends-on): Add clock-time.
73990         * modules/gethrxtime (Depends-on): Likewise.
73991         * modules/gettime (Depends-on): Likewise.
73992         * modules/settime (Depends-on): Likewise.
73993
73994         * modules/fts-lgpl: Depend on openat.
73995         * modules/mkancesdirs: Depend on savewd.
73996         * modules/mkdir-p: Likewise.
73997
73998 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73999
74000         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
74001
74002         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
74003         `gl_have_arbitrary_file_name_length_limit' to
74004         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
74005         actually works between configure runs.
74006
74007 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74008             Bruno Haible  <bruno@clisp.org>
74009
74010         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74011
74012 2006-09-25  Jim Meyering  <jim@meyering.net>
74013
74014         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74015         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74016
74017 2006-09-25  Eric Blake  <ebb9@byu.net>
74018
74019         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74020         exec's in 2006-09-18 patch when shuffling fds.
74021
74022 2006-09-25  Bruno Haible  <bruno@clisp.org>
74023
74024         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74025         Reported by Jim Meyering.
74026
74027 2006-09-24  Jim Meyering  <jim@meyering.net>
74028
74029         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74030         compare a pointer against a literal "0".  That caused failures with
74031         at least HP-UX's hpcc.
74032
74033 2006-09-22  Simon Josefsson  <jas@extundo.com>
74034
74035         * modules/gc-sha1:
74036         * modules/gc-md4:
74037         * modules/gc-hmac-sha1:
74038         * modules/gc-hmac-md5:
74039         * modules/gc-des:
74040         * modules/gc-arcfour: Distribute more files.
74041
74042 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74043
74044         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74045         (gl_linked_iterator_from_to): Initialize struct completely.
74046         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74047         (gl_tree_iterator_from_to): Likewise
74048         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74049         * lib/gl_array_list.c [lint] (gl_array_iterator)
74050         (gl_array_iterator_from_to): Likewise.
74051         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74052         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74053         (gl_carray_iterator_from_to): Likewise.
74054
74055         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74056         * lib/md4.c (md4_process_block): Remove unused variable.
74057         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74058         parentheses for clarity.
74059
74060 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74061
74062         * modules/bison-i18n (Depends-on): Add gettext.
74063
74064 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74065
74066         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74067         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74068         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74069         also add missing comma that caused broken test.
74070         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74071         stdlib.h, for `abort'.
74072         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74073         variables.
74074         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74075         include unistd.h if present, for `rmdir'.
74076         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74077         variables.
74078         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74079         in the process include standard headers for prototypes.
74080         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74081         gets declared on GNU/Linux.
74082         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74083         unistd.h, for `rmdir'.
74084         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74085
74086         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74087         always true.
74088         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74089
74090         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74091
74092 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74093
74094         * gnulib-tool (func_version): Create output all at once.  This
74095         may help avoid triggering unnecessary SIGPIPEs, and at any
74096         rate it doesn't hurt.
74097
74098 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74099             Bruno Haible  <bruno@clisp.org>
74100
74101         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74102         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74103         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74104
74105         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74106         (gl_FUNC_VASPRINTF): Invoke it.
74107
74108 2006-09-22  Bruno Haible  <bruno@clisp.org>
74109
74110         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74111         getloadavg.c as first argument.
74112
74113 2006-09-22  Bruno Haible  <bruno@clisp.org>
74114
74115         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74116         at the beginning of the gl_INIT macro.
74117         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74118         gl_GETLOADAVG.
74119
74120 2006-09-22  Bruno Haible  <bruno@clisp.org>
74121
74122         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74123         module.
74124         Suggested by Ralf Wildenhues.
74125
74126 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74127
74128         Import this patch from libc:
74129
74130         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74131
74132         * lib/regex_internal.c (re_string_reconstruct): Handle
74133         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74134         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74135         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74136         re_string_context_at.
74137
74138         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74139         now requires it.
74140         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74141         gl_REGEX now does it for us.
74142         (gl_REGEX): Add test taken from
74143         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
74144
74145         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
74146         Check that large offsets work.  Modernize Autoconf usages.
74147         Prefer "yes" to mean a good thing rather than a bad.
74148         Don't put "#define mkstemp" in config.h, as this might interfere
74149         with standard system headers that "#define mkstemp mkstemp64".
74150
74151         * modules/mkstemp (Depends-on): Add extensions, so that
74152         mkstemp is visible on some platforms.
74153         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
74154         (Include): Change to "mkstemp.h" from <stdlib.h>.
74155         (Files): Add mkstemp.h.
74156
74157         * lib/mkstemp.h: New file, since some standard headers
74158         #define mkstemp.
74159         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
74160         Include "mkstemp.h".
74161         Make the _LIBC code resemble glibc original more,
74162         e.g., use K&R style.
74163         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
74164         (mkstemp): Remove, since mkstemp.h does this for us.
74165         * lib/stdlib--.h: Include mkstemp.h.
74166
74167         Import this patch from libc:
74168
74169         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74170
74171         * lib/tempname.c (__gen_tempname): Change attempts_min
74172         into a macro.  Use preprocessor to decide how to initialize
74173         attempts [Coverity CID 67].
74174
74175 2006-09-20  Bruno Haible  <bruno@clisp.org>
74176
74177         * lib/mkdtemp.c: Import from libc.
74178         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74179                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74180                 attempts_min into a macro.  Use preprocessor to decide how to
74181                 initialize attempts [Coverity CID 67].
74182         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74183                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74184                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74185
74186 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74187
74188         * gnulib-tool (func_exit): New function, to allow to pass the
74189         exit status portably through the trap.  Use everywhere.
74190         (--help, --version): Signal a write error.
74191         (trap): catch SIGPIPE, for write errors.
74192         Exit at the end of the trap, with the correct exit status.
74193
74194 2006-09-19  Karl Berry  <karl@gnu.org>
74195
74196         * doc/gnulib.texi: note about the license texinfo files.
74197
74198 2006-09-19  Eric Blake  <ebb9@byu.net>
74199
74200         * gnulib-tool: Avoid space-tab.
74201
74202 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74203
74204         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74205         that prevented coreutils 6.1 from building.  Problem reported
74206         by Petter Reinholdtsen.
74207
74208 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74209
74210         * gnulib-tool (avoidlist): Fix typo that broke options like
74211         --avoid=lock that are used by coreutils bootstrap.
74212
74213 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74214
74215         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74216         more systematically.
74217
74218 2006-09-18  Jim Meyering  <jim@meyering.net>
74219
74220         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74221
74222 2006-09-18  Bruno Haible  <bruno@clisp.org>
74223
74224         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74225
74226 2006-09-18  Bruno Haible  <bruno@clisp.org>
74227
74228         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74229         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74230         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74231         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74232         * m4/gettext.m4: Require autoconf >= 2.52.
74233         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74234         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74235         of gl_cv_header_inttypes_h.
74236
74237 2006-09-18  Bruno Haible  <bruno@clisp.org>
74238
74239         * lib/javaversion.c: Include configmake.h.
74240
74241 2006-09-18  Bruno Haible  <bruno@clisp.org>
74242
74243         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
74244         avoid that the while loops be executed in a subshell.
74245
74246 2006-09-18  Bruno Haible  <bruno@clisp.org>
74247
74248         * MODULES.html.sh (func_module): Break long lines.
74249         Suggested by Bruce Korb <bkorb@gnu.org>.
74250
74251 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74252
74253         Speed up by a factor of 1.12.
74254         * gnulib-tool (nl): New variable.
74255         (func_import): Rewrite include directive extraction to only read each
74256         directive once.
74257
74258 2006-09-17  Bruno Haible  <bruno@clisp.org>
74259
74260         * modules/javaversion (Makefile.am): Remove DEFS setting.
74261         (Depends-on): Add configmake, for PKGDATADIR definition.
74262
74263 2006-09-17  Bruno Haible  <bruno@clisp.org>
74264
74265         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74266
74267 2006-09-17  Bruno Haible  <bruno@clisp.org>
74268
74269         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74270         (func_modules_transitive_closure, func_modules_add_dummy,
74271         func_modules_to_filelist, func_import, func_create_testdir,
74272         func_create_megatestdir, ...): Use it wherever possible.
74273         Suggested by Ralf Wildenhues.
74274
74275 2006-09-16  Karl Berry  <karl@gnu.org>
74276
74277         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74278         to avoid sectioning errors.
74279         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74280         [ifinfo]: blank line after @center-ed titles.
74281         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74282         Spell FSF address consistently with others.
74283         (These changes approved by rms.)
74284
74285 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74286
74287         Speed up by a factor of 1.61.
74288         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74289         already checked module names again.
74290
74291 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74292
74293         Speed up by a factor of 1.13.
74294         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74295         for new_files, and the input to func_add_or_update.
74296
74297 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74298
74299         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74300         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74301
74302 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74303
74304         * modules/mkancesdirs (Depends-on): Add fcntl.
74305         * modules/savewd: New file.
74306         * MODULES.html.sh (File system functions): Add savewd.
74307
74308         * modules/configmake (Makefile.am): Add support for the
74309         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74310
74311 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74312
74313         * m4/savewd.m4: New file.
74314
74315 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74316
74317         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74318         (dirchownmod): New arg FD.  All callers changed.
74319         Use FD rather than opening the directory ourself, as opening is
74320         now the caller's responsibility.
74321         * lib/dirchownmod.h: Likewise.
74322         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74323         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74324         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74325         (test_dir): Remove.
74326         (mkancesdirs): Return length of prefix of FILE that has already
74327         been made, or -2 if there is a child doing the work.  Redo
74328         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74329         ".", and treat ".." specially since it might stray back into
74330         already-created areas.  Use a subprocess if necessary.  New arg
74331         WD; all users changed.  MAKE_DIR function should now return 1
74332         if it creates a directory that is not readable.  Return -2 if
74333         a child process is spun off.
74334         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74335         Adjust signature to match code.
74336         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74337         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74338         all users changed.
74339         * lib/savewd.c, lib/savewd.h: New files.
74340
74341 2006-09-15  Jim Meyering  <jim@meyering.net>
74342
74343         * modules/rename-dest-slash: New module.
74344         * MODULES.html.sh (posix_compat): Add it here.
74345
74346         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74347
74348 2006-09-15  Jim Meyering  <jim@meyering.net>
74349
74350         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74351         file.
74352
74353         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74354
74355 2006-09-15  Jim Meyering  <jim@meyering.net>
74356
74357         * lib/rename-dest-slash.c (has_trailing_slash): Use
74358         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74359         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74360         test before testing whether SRC is a directory.
74361         Suggestions from Bruno Haible.
74362
74363         Avoid a warning about an unused variable.
74364         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74365         into the #ifdef block where it's used.
74366
74367         * lib/rename-dest-slash.c: New file.
74368
74369 2006-09-14  Bruno Haible  <bruno@clisp.org>
74370
74371         * lib/allocsa.c: Include <config.h> unconditionally.
74372         * lib/asnprintf.c: Likewise.
74373         * lib/asprintf.c: Likewise.
74374         * lib/c-strcasecmp.c: Likewise.
74375         * lib/c-strcasestr.c: Likewise.
74376         * lib/c-strncasecmp.c: Likewise.
74377         * lib/c-strstr.c: Likewise.
74378         * lib/classpath.c: Likewise.
74379         * lib/clean-temp.c: Likewise.
74380         * lib/concatpath.c: Likewise.
74381         * lib/copy-file.c: Likewise.
74382         * lib/csharpcomp.c: Likewise.
74383         * lib/csharpexec.c: Likewise.
74384         * lib/execute.c: Likewise.
74385         * lib/fatal-signal.c: Likewise.
74386         * lib/findprog.c: Likewise.
74387         * lib/fwriteerror.c: Likewise.
74388         * lib/gl_array_list.c: Likewise.
74389         * lib/gl_array_oset.c: Likewise.
74390         * lib/gl_avltree_list.c: Likewise.
74391         * lib/gl_avltree_oset.c: Likewise.
74392         * lib/gl_avltreehash_list.c: Likewise.
74393         * lib/gl_carray_list.c: Likewise.
74394         * lib/gl_linked_list.c: Likewise.
74395         * lib/gl_linkedhash_list.c: Likewise.
74396         * lib/gl_list.c: Likewise.
74397         * lib/gl_oset.c: Likewise.
74398         * lib/gl_rbtree_list.c: Likewise.
74399         * lib/gl_rbtree_oset.c: Likewise.
74400         * lib/gl_rbtreehash_list.c: Likewise.
74401         * lib/imaxabs.c: Likewise.
74402         * lib/imaxdiv.c: Likewise.
74403         * lib/javacomp.c: Likewise.
74404         * lib/javaexec.c: Likewise.
74405         * lib/javaversion.c: Likewise.
74406         * lib/linebreak.c: Likewise.
74407         * lib/localcharset.c: Likewise.
74408         * lib/lock.c: Likewise.
74409         * lib/mbchar.c: Likewise.
74410         * lib/mbswidth.c: Likewise.
74411         * lib/mkdtemp.c: Likewise.
74412         * lib/pipe.c: Likewise.
74413         * lib/printf-args.c: Likewise.
74414         * lib/printf-parse.c: Likewise.
74415         * lib/progname.c: Likewise.
74416         * lib/progreloc.c: Likewise.
74417         * lib/readlink.c: Likewise.
74418         * lib/sh-quote.c: Likewise.
74419         * lib/stpcpy.c: Likewise.
74420         * lib/stpncpy.c: Likewise.
74421         * lib/strcasecmp.c: Likewise.
74422         * lib/strcasestr.c: Likewise.
74423         * lib/strcspn.c: Likewise.
74424         * lib/striconv.c: Likewise.
74425         * lib/strncasecmp.c: Likewise.
74426         * lib/strnlen1.c: Likewise.
74427         * lib/strstr.c: Likewise.
74428         * lib/strtok_r.c: Likewise.
74429         * lib/tls.c: Likewise.
74430         * lib/tmpdir.c: Likewise.
74431         * lib/unicodeio.c: Likewise.
74432         * lib/unsetenv.c: Likewise.
74433         * lib/vasnprintf.c: Likewise.
74434         * lib/vasprintf.c: Likewise.
74435         * lib/wait-process.c: Likewise.
74436         * lib/xallocsa.c: Likewise.
74437         * lib/xsetenv.c: Likewise.
74438         * lib/xstriconv.c: Likewise.
74439
74440 2006-09-13  Simon Josefsson  <jas@extundo.com>
74441
74442         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74443         that internally, suggested by Ralf Wildenhues
74444         <Ralf.Wildenhues@gmx.de>.
74445
74446 2006-09-13  Simon Josefsson  <jas@extundo.com>
74447
74448         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74449         @LIBOBJS@.
74450         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74451
74452 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74453
74454         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74455         longer worry about uses that don't define HAVE_CONFIG_H.
74456         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74457         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74458         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74459         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74460         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74461         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74462         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74463         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74464         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74465         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74466         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74467         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74468         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74469         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74470         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74471         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74472         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74473         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74474         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74475         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74476         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74477         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74478         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74479         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74480         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74481         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74482         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74483         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74484         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74485         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74486         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74487         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74488         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74489         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74490         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74491         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74492         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74493         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74494         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74495         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74496         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74497         Likewise.
74498
74499 2006-09-13  Eric Blake  <ebb9@byu.net>
74500
74501         * lib/getopt.c: Fix typo in last commit.
74502
74503 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74504
74505         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74506         dgettext.
74507
74508 2006-09-12  Jim Meyering  <jim@meyering.net>
74509
74510         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74511         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74512         Reported by Nelson H. F. Beebe.
74513
74514 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74515
74516         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74517         program_invocation_name and program_invocation_short_name are
74518         initialized.
74519         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74520         and program_invocation_short_name to argp.h, so they are visible
74521         to user programs.
74522         * lib/argp.h: Likewise
74523
74524 2006-09-10  Bruno Haible  <bruno@clisp.org>
74525
74526         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74527         m4/inttypes_h.m4, m4/uintmax_t.m4.
74528
74529 2006-09-10  Bruno Haible  <bruno@clisp.org>
74530
74531         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74532         gl_AC_TYPE_UINTMAX_T.
74533
74534 2006-09-10  Bruno Haible  <bruno@clisp.org>
74535
74536         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74537
74538 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74539
74540         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74541         convention.  Text proposed by Bruno Haible.
74542         (struct argp_option): Document the use of N_() wrappers.
74543
74544         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74545         '\v', and translate the two parts separately, instead of feeding
74546         the whole string to gettext.  This allows to exclude
74547         '\v' from the strings visible to the translator by writing doc
74548         strings as N_("..") "\v" N_("..").
74549
74550 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74551
74552         * config/srclist.txt: Undo latest change; the bug was fixed.
74553
74554 2006-09-09  Bruno Haible  <bruno@clisp.org>
74555
74556         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74557         assignments if building a library without libtool.
74558         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74559         in func_emit_lib_Makefile_am.
74560         (func_import): When building a static library libfoo.a, arrange to
74561         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74562         (func_create_testdir): Likewise.
74563         * modules/gc (configure.ac, Makefile.am): If building statically,
74564         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74565         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74566         * modules/striconv (configure.ac, Makefile.am): Likewise.
74567         Based on a suggestion by Ralf Wildenhues.
74568
74569 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74570
74571         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74572         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74573         Also:
74574
74575         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74576         Add year_2050_test to catch glibc bug 2821
74577         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74578
74579         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74580         Prefer #ifdef to #if.
74581
74582         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74583         Return from 'main' instead of calling 'exit'.
74584
74585 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74586
74587         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74588         returned the maximum time_t value rather than (time_t) -1.
74589         Problem originally reported by William Bardwell
74590         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74591
74592         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74593         Moved to here ...
74594         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74595         ... from here.
74596
74597 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74598
74599         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74600         2821 is fixed.
74601
74602 2006-09-08  Jim Meyering  <jim@meyering.net>
74603
74604         Don't make generated files read-only.  That would bother too many
74605         people.  However, do retain the ability to work when targets are
74606         read-only: remove the destination and temporary files before writing
74607         them (when generated via sed or echo), or by using the -f option for
74608         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74609         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74610         * modules/byteswap, modules/configmake, modules/fcntl:
74611         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74612         * modules/localcharset, modules/netinet_in, modules/poll:
74613         * modules/stdbool, modules/stdint, modules/sys_select:
74614         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74615
74616 2006-09-08  Jim Meyering  <jim@meyering.net>
74617
74618         Avoid new build failure on FreeBSD 6.0.
74619         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74620         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74621         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74622
74623 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74624
74625         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74626
74627 2006-09-07  Jim Meyering  <jim@meyering.net>
74628
74629         Fix global typo in last change: use chmod u-w, not chmod u-x.
74630         Spotted by Paul Eggert and Bruce Korb.
74631         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74632         * modules/byteswap, modules/configmake, modules/fcntl:
74633         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74634         * modules/localcharset, modules/netinet_in, modules/poll:
74635         * modules/stdbool, modules/stdint, modules/sys_select:
74636         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74637
74638 2006-09-06  Jim Meyering  <jim@meyering.net>
74639
74640         Make generated files be read-only.
74641         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74642         Ensure that each generated file is now read-only.
74643         * modules/argz: Likewise.
74644         * modules/arpa_inet: Likewise.
74645         * modules/byteswap: Likewise.
74646         * modules/configmake: Likewise.
74647         * modules/fcntl: Likewise.
74648         * modules/fnmatch: Likewise.
74649         * modules/getopt: Likewise.
74650         * modules/glob: Likewise.
74651         * modules/inttypes: Likewise.
74652         * modules/netinet_in: Likewise.
74653         * modules/poll: Likewise.
74654         * modules/stdbool: Likewise.
74655         * modules/stdint: Likewise.
74656         * modules/sys_select: Likewise.
74657         * modules/sys_socket: Likewise.
74658         * modules/sys_stat: Likewise.
74659         * modules/sysexits: Likewise.
74660         * modules/localcharset: Same as above, but continue using temporary
74661         file named "t-$@" (why different?) rather than the "$@-t" used
74662         everywhere else.
74663
74664         * modules/sysexits (Makefile.am): Replace literal occurrences
74665         of "sysexit.h" more readable, and more consistent, "$@".
74666
74667 2006-09-06  Bruno Haible  <bruno@clisp.org>
74668
74669         * modules/striconv: New file.
74670         * modules/xstriconv: New file.
74671         * MODULES.html.sh (Internationalization functions): Add striconv,
74672         xstriconv.
74673
74674 2006-09-06  Bruno Haible  <bruno@clisp.org>
74675
74676         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74677         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74678         not using libtool correctly.
74679
74680 2006-09-06  Bruno Haible  <bruno@clisp.org>
74681
74682         * lib/striconv.h: New file.
74683         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74684         iconvstring.c.
74685         * lib/xstriconv.h: New file.
74686         * lib/xstriconv.c: New file.
74687
74688 2006-09-06  Bruno Haible  <bruno@clisp.org>
74689
74690         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74691         lib_..._LDFLAGS.
74692
74693 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74694
74695         * lib/argz_.h: Sync from Libtool.
74696
74697         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74698                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74699
74700         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74701
74702 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74703
74704         * modules/trim: New file.
74705
74706 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74707
74708         * lib/trim.h: New file.
74709         * lib/trim.c: New file.
74710
74711 2006-09-05  Bruno Haible  <bruno@clisp.org>
74712
74713         * MODULES.html.sh (String handling): Add trim.
74714
74715 2006-09-04  Karl Berry  <karl@gnu.org>
74716
74717         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74718         until next release.
74719
74720 2006-09-03  Bruno Haible  <bruno@clisp.org>
74721
74722         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74723         correctly.
74724
74725 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74728         not gl_GETLOADAVG.  Omit unneeded semicolons.
74729         Problems reported by Ralf Wildenhues in
74730         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74731         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74732         at the end, which is the usual gnulib style.
74733
74734         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74735         of doing all the work ourselves.
74736         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74737         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74738
74739 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74740
74741         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74742         Problem reported by Ralf Wildenhues in
74743         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74744
74745         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74746         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74747
74748 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74749
74750         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74751         yesterday's patch by changing test -n to test -z.
74752
74753 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74754
74755         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74756         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74757         the former is now obsolescent.
74758
74759         * modules/chdir-long (Depends-on): Add fcntl.
74760
74761 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74762
74763         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74764         obsolescent, and programs should use gnulib instead.
74765         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74766         but with prefixes changed.
74767
74768 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74769
74770         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74771         or stdbool.h, because they might not exist while configuring.
74772
74773         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74774         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74775         does that for us.
74776         (O_DIRECTORY): Remove.
74777
74778 2006-08-31  Eric Blake  <ebb9@byu.net>
74779
74780         * gnulib-tool: Don't let emacs change spaces to TAB.
74781
74782 2006-08-31  Bruno Haible  <bruno@clisp.org>
74783
74784         * gnulib-tool: When calling func_import more than once, do it in a
74785         subshell.
74786         Reported by Eric Blake <ebb9@byu.net>.
74787
74788 2006-08-31  Bruno Haible  <bruno@clisp.org>
74789
74790         * gnulib-tool (nl): Remove variable.
74791         (sed_transform_lib_file): Use more robust test for config-h module.
74792         (func_import): Fix typo in 2006-08-25 patch.
74793
74794 2006-08-31  Bruno Haible  <bruno@clisp.org>
74795
74796         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74797         specified, augment Makefile.am variables instead of assigning them.
74798
74799 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74800
74801         Work around a bug in both the Linux and SunOS 64-bit kernels:
74802         nanosleep mishandles sleeps for longer than 2**31 seconds.
74803         Problem reported by Frank v Waveren in
74804         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74805         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74806         Check for nanosleep bug.
74807         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74808
74809 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74810
74811         Work around a bug in both the Linux and SunOS 64-bit kernels:
74812         nanosleep mishandles sleeps for longer than 2**31 seconds.
74813         Problem reported by Frank v Waveren in
74814         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74815         * lib/nanosleep.c (BILLION): New constant.
74816         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74817         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74818         implementation.
74819
74820 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74821
74822         * modules/nanosleep (Depends-on): Add gettime.
74823
74824 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74825         and Simon Josefsson  <jas@extundo.com>
74826         and Oskar Liljeblad  <oskar@osk.mine.nu>
74827
74828         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74829         * gnulib-tool (func_import): New license type 'unmodifiable license
74830         text'.
74831         * modules/fdl: Use it.  Longer description.
74832         * module/gpl, module/lgpl: New files.
74833
74834 2006-08-30  Jim Meyering  <jim@meyering.net>
74835
74836         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74837         shadowing the parameter.
74838
74839 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74840
74841         Sync from Libtool:
74842
74843         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74844
74845         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74846         sharing with gnulib.  Report by Eric Blake.
74847
74848 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74849
74850         * modules/isapipe: New file.
74851         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74852
74853 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74854
74855         * modules/configmake (Makefile.am): Add a comment, and omit
74856         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74857         by Bruno Haible.
74858
74859 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74860
74861         * m4/isapipe.m4: New file.
74862
74863 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74864
74865         * lib/isapipe.c, lib/isapipe.h: New files.
74866
74867 2006-08-29  Jim Meyering  <jim@meyering.net>
74868
74869         * modules/configmake (Makefile.am): Make configmake.h depend on
74870         Makefile.  Otherwise, a stale configmake.h could hang around.
74871
74872 2006-08-29  Eric Blake  <ebb9@byu.net>
74873
74874         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74875         resolution of upstream bug 3044.
74876
74877 2006-08-29  Bruno Haible  <bruno@clisp.org>
74878
74879         * modules/localcharset (Depends-on): Add configmake.
74880         (Makefile.am): Remove setting of LIBDIR through DEFS.
74881
74882 2006-08-29  Bruno Haible  <bruno@clisp.org>
74883
74884         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74885         defined.
74886
74887 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74888
74889         * modules/fcntl: New file.
74890         * modules/chdir-safer (Depends-on): Add fcntl.
74891         * modules/fts: Likewise.
74892         * modules/mkdir-p: Likewise.
74893
74894         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74895         This undoes the most recent change, since we're now addressing the
74896         problem in a different way.
74897
74898         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74899         into output, since the output might be called Makefile.am even
74900         if $makefile_name is something different.
74901         (func_import): Use $makefile_am rather than
74902         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74903         empty.
74904
74905         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74906
74907 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74908
74909         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74910         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74911         recent change to stdint.m4, since we're now addressing the problem in a
74912         different way.
74913
74914 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74915
74916         * m4/fcntl_h.m4: New file.
74917
74918 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74919
74920         * lib/fcntl_.h: New file.
74921         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74922         the fcntl module.
74923         * lib/dirchownmod.c: Likewise.
74924         * lib/fts.c: Likewise.
74925
74926         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74927         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74928         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74929         just before including <inttypes.h>, to avoid circular inclusion.
74930
74931 2006-08-28  Jim Meyering  <jim@meyering.net>
74932
74933         * doc/visibility.texi: Actually read and correct the grammar of the
74934         sentence affected by yesterday's change.
74935
74936 2006-08-28  Eric Blake  <ebb9@byu.net>
74937
74938         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74939         needs wrapper.
74940
74941 2006-08-28  Eric Blake  <ebb9@byu.net>
74942
74943         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74944
74945 2006-08-28  Eric Blake  <ebb9@byu.net>
74946
74947         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74948
74949 2006-08-28  Bruno Haible  <bruno@clisp.org>
74950
74951         * modules/c-strstr: New file, from GNU gettext.
74952         * MODULES.html.sh (String handling): Add c-strstr.
74953
74954 2006-08-28  Bruno Haible  <bruno@clisp.org>
74955
74956         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74957         macros.
74958         Reported by Eric Blake.
74959
74960 2006-08-28  Bruno Haible  <bruno@clisp.org>
74961
74962         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74963         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74964         * lib/vasprintf.c: Include errno.h, limits.h.
74965         (EOVERFLOW): New fallback definition.
74966         (vasprintf): Test here whether the string length is > INT_MAX.
74967         * lib/vsnprintf.c: Include errno.h, limits.h.
74968         (EOVERFLOW): New fallback definition.
74969         (vsnprintf): Fix bug when generated string was too long for the buffer.
74970         Test here whether the string length is > INT_MAX.
74971
74972 2006-08-28  Bruno Haible  <bruno@clisp.org>
74973
74974         * lib/inttypes_.h (SCNX*): Remove definitions.
74975         Reported by Eric Blake.
74976
74977 2006-08-28  Bruno Haible  <bruno@clisp.org>
74978
74979         * lib/c-strstr.h: New file, from GNU gettext.
74980         * lib/c-strstr.c: New file, from GNU gettext.
74981
74982 2006-08-28  Bruno Haible  <bruno@clisp.org>
74983
74984         * gnulib-tool: Reorder some statements.
74985
74986 2006-08-28  Bruno Haible  <bruno@clisp.org>
74987
74988         * gnulib-tool: New option --makefile-name.
74989         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74990         $makefile_name.
74991         (func_import): Write $makefile_name to the cache file, and read it from
74992         there unless explicitly specified. Use $makefile_name as file name
74993         instead of Makefile.am. Adjust the recommendations accordingly.
74994
74995 2006-08-28  Bruno Haible  <bruno@clisp.org>
74996
74997         * gnulib-tool (func_verify_module): Check against misapplying patch.
74998
74999 2006-08-28  Bruno Haible  <bruno@clisp.org>
75000
75001         * gnulib-tool (func_relativize, func_relconcat): New functions.
75002         Give an error if --local-dir is given with --update.
75003         Remove trailing slashes from $local_gnulib_dir.
75004         (func_import): Store the relativized $local_gnulib_dir in
75005         gnulib-cache.m4, and read it from there if not specified explicitly.
75006
75007 2006-08-28  Bruno Haible  <bruno@clisp.org>
75008
75009         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75010         is the current directory. Respect also $local_gnulib_dir.
75011
75012 2006-08-28  Bruno Haible  <bruno@clisp.org>
75013             Simon Josefsson  <jas@extundo.com>
75014
75015         BeOS portability.
75016         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75017
75018 2006-08-27  Jim Meyering  <jim@meyering.net>
75019
75020         * doc/visibility.texi: Remove duplicate word: "pointer".
75021
75022 2006-08-26  Bruno Haible  <bruno@clisp.org>
75023
75024         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75025         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75026         (Makefile.am): Create inttypes.h from inttypes_.h.
75027         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75028
75029         * modules/imaxabs: New file.
75030
75031         * modules/imaxdiv: New file.
75032
75033 2006-08-26  Bruno Haible  <bruno@clisp.org>
75034
75035         * m4/inttypes.m4: New file.
75036         * m4/_inttypes_h.m4: Remove file.
75037         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75038         PRI_MACROS_BROKEN.
75039         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75040
75041         * m4/imaxabs.m4: New file.
75042
75043         * m4/imaxdiv.m4: New file.
75044
75045 2006-08-26  Bruno Haible  <bruno@clisp.org>
75046
75047         * lib/inttypes_.h: New file.
75048         * lib/inttypes.h: Remove file.
75049         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75050
75051         * lib/imaxabs.c: New file.
75052
75053         * lib/imaxdiv.c: New file.
75054
75055 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75056
75057         New config-h module, so that "make" output needn't be cluttered
75058         by -DHAVE_CONFIG_H.
75059         * MODULES.html.sh (Support for building libraries and executables):
75060         Add config-h.
75061         * modules/config-h: New file.
75062         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75063         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75064         the config-h module is used.
75065
75066         New configmake module, so that "make" output needn't be cluttered
75067         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75068         * MODULES.html.sh (Support for building libraries and executables):
75069         Add configmake.
75070         * modules/configmake: New file.
75071
75072 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75073
75074         * m4/config-h.m4: New file.
75075
75076 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75077
75078         * config/srclist.txt: Add elisp-comp.
75079
75080 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75081
75082         * MODULES.html.sh (Support for building libraries and executables):
75083         Add elisp-comp.
75084         * build-aux/elisp-comp: New file.
75085         * modules/elisp-comp: New file.
75086
75087 2006-08-24  Bruno Haible  <bruno@clisp.org>
75088
75089         * gnulib-tool (func_create_testdir): Use non-default values of
75090         sourcebase and m4base.
75091
75092 2006-08-24  Bruno Haible  <bruno@clisp.org>
75093
75094         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75095         HTML structure.
75096
75097 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75098
75099         * modules/openat (Depends-on): Add lchown.
75100
75101 2006-08-23  Bruno Haible  <bruno@clisp.org>
75102
75103         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75104         of gl_LOCK_EARLY instead of gl_LOCK.
75105
75106 2006-08-23  Bruno Haible  <bruno@clisp.org>
75107
75108         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75109         on OSF/1 to no.
75110         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75111
75112 2006-08-23  Bruno Haible  <bruno@clisp.org>
75113
75114         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75115         as unusable.
75116
75117         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75118         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75119         (gl_LOCK): New macro.
75120
75121 2006-08-22  Simon Josefsson  <jas@extundo.com>
75122
75123         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75124         to md5 module.
75125
75126 2006-08-22  Simon Josefsson  <jas@extundo.com>
75127
75128         * MODULES.html.sh: Add "Support for maintaining and release
75129         projects".
75130
75131         * build-aux/gnupload: New file, from coreutils.
75132
75133 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75134
75135         Avoid the need for AC_LIBSOURCES in m4 macros.
75136         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75137         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75138         * modules/check-version (EXTRA_DIST): Add check-version.h.
75139         * modules/crc (EXTRA_DIST): Add crc.h.
75140         * modules/des (EXTRA_DIST): Add des.h.
75141         * modules/gc (EXTRA_DIST): Add gc.h.
75142         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
75143         * modules/getline (EXTRA_DIST): Add getline.h.
75144         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
75145         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
75146         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
75147         * modules/md2 (EXTRA_DIST): Add md2.h.
75148         * modules/md4 (EXTRA_DIST): Add md4.h.
75149         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
75150         * modules/read-file (EXTRA_DIST): Add read-file.h.
75151         * modules/readline (EXTRA_DIST): Add readline.h.
75152         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
75153         rijndael-api-fst.h.
75154
75155 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75156
75157         * m4/rijndael.m4 (gl_ARCFOUR):
75158         * m4/arctwo.m4 (gl_ARCTWO):
75159         * m4/check-version.m4 (gl_CHECK_VERSION):
75160         * m4/crc.m4 (gl_CRC):
75161         * m4/des.m4 (gl_DES):
75162         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
75163         * m4/gc.m4 (gl_GC):
75164         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
75165         * m4/getline.m4 (gl_FUNC_GETLINE):
75166         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
75167         * m4/hmac-md5.m4 (gl_HMAC_MD5):
75168         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
75169         * m4/md2.m4 (gl_MD2):
75170         * m4/md4.m4 (gl_MD4):
75171         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
75172         * m4/read-file.m4 (gl_FUNC_READ_FILE):
75173         * m4/readline.m4 (gl_FUNC_READLINE):
75174         * m4/rijndael.m4 (gl_RIJNDAEL):
75175         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75176         to get the necessary .h files and whatnot.
75177
75178 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75179
75180         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75181         gnulib rather than the other way around.
75182         * config/srclistvars.sh (COREUTILS): Remove.
75183
75184 2006-08-22  Jim Meyering  <jim@meyering.net>
75185
75186         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75187
75188         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75189
75190 2006-08-22  Eric Blake  <ebb9@byu.net>
75191
75192         * modules/regexprops-generic: New file.
75193         * MODULES.html.sh (Support for building documentation): List it.
75194
75195 2006-08-22  Eric Blake  <ebb9@byu.net>
75196
75197         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75198         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75199         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75200         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75201
75202 2006-08-22  Bruno Haible  <bruno@clisp.org>
75203
75204         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75205         and lib_LTLIBRARIES like the other lib_* variables.
75206
75207 2006-08-22  Bruno Haible  <bruno@clisp.org>
75208
75209         * build-aux/x-to-1.in: New file, from GNU gettext.
75210
75211 2006-08-22  Bruno Haible  <bruno@clisp.org>
75212
75213         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75214         <utmpx.h> exists.
75215
75216 2006-08-22  Bruno Haible  <bruno@clisp.org>
75217
75218         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75219         <utmpx.h> exists.
75220
75221 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75222
75223         BeOS portability.
75224         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75225         exist.
75226         Problem reported by Bruno Haible.
75227
75228 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75229
75230         Avoid the need for AC_LIBSOURCES in m4 macros.
75231         * modules/acl (EXTRA_DIST): Add acl.h.
75232         * modules/argmatch (Files): Add m4/argmatch.m4.
75233         (configure.ac): Add gl_ARGMATCH.
75234         (EXTRA_DIST): Renamed from lib_SOURCES, for
75235         consistency with the other modules.  Remove argmatch.c.
75236         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75237         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75238         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75239         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
75240         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
75241         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
75242         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
75243         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
75244         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
75245         * modules/closeout (EXTRA_DIST): Add closeout.h.
75246         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
75247         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
75248         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
75249         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
75250         dirname.h; remove basename.c and stripslash.c.
75251         * modules/exclude (EXTRA_DIST): Add exclude.h.
75252         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
75253         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75254         * modules/file-type (EXTRA_DIST): Add file-type.h.
75255         * modules/filemode (EXTRA_DIST): Add filemode.h.
75256         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75257         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75258         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75259         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75260         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75261         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75262         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75263         * modules/getdate (EXTRA_DIST): Add getdate.c.
75264         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75265         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75266         * modules/getpass (EXTRA_DIST): Add getpass.h.
75267         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75268         * modules/group-member (EXTRA_DIST): Add group-member.h.
75269         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75270         * modules/hash (EXTRA_DIST): Add hash.h.
75271         * modules/human (EXTRA_DIST): Add human.h.
75272         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75273         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75274         * modules/lchown (EXTRA_DIST): Add lchown.h.
75275         * modules/long-options (EXTRA_DIST): Add long-options.h.
75276         * modules/lstat (EXTRA_DIST): Add lstat.h.
75277         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75278         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75279         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75280         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75281         * modules/memxor (EXTRA_DIST): Add memxor.h.
75282         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75283         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75284         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75285         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75286         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75287         * modules/physmem (EXTRA_DIST): Add physmem.h.
75288         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75289         * modules/posixver (EXTRA_DIST): Add posixver.h.
75290         * modules/quote (EXTRA_DIST): Add quote.h.
75291         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75292         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75293         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75294         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75295         regex_internal.h regexec.c.
75296         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75297         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75298         * modules/same (EXTRA_DIST): Add same.h.
75299         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75300         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75301         * modules/savedir (EXTRA_DIST): Add savedir.h.
75302         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75303         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75304         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75305         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75306         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75307         * modules/strdup (EXTRA_DIST): Add strdup.h.
75308         * modules/strftime (EXTRA_DIST): Add strftime.h.
75309         * modules/strndup (EXTRA_DIST): Add strndup.h.
75310         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75311         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75312         * modules/time_r (EXTRA_DIST): Add time_r.h.
75313         * modules/timespec (EXTRA_DIST): Add timespec.h.
75314         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75315         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75316         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75317         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75318         * modules/userspec (EXTRA_DIST): Add userspec.h.
75319         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75320         * modules/utimens (EXTRA_DIST): Add utimens.h.
75321         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75322         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75323         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75324         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75325         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75326         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75327         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75328         * modules/yesno (EXTRA_DIST): Add yesno.h.
75329
75330 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75331
75332         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75333
75334         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75335         * m4/dev-ino.m4, same-inode.m4: Remove.
75336
75337         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75338         * m4/acl.m4 (AC_FUNC_ACL):
75339         * m4/backupfile.m4 (gl_BACKUPFILE):
75340         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75341         * m4/canon-host.m4 (gl_CANON_HOST):
75342         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75343         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75344         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75345         * m4/cloexec.m4 (gl_CLOEXEC):
75346         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75347         * m4/closeout.m4 (gl_CLOSEOUT):
75348         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75349         * m4/dirname.m4 (gl_DIRNAME):
75350         * m4/exclude.m4 (gl_EXCLUDE):
75351         * m4/exitfail.m4 (gl_EXITFAIL):
75352         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75353         * m4/file-type.m4 (gl_FILE_TYPE):
75354         * m4/filemode.m4 (gl_FILEMODE):
75355         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75356         * m4/fpending.m4 (gl_FUNC_FPENDING):
75357         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75358         * m4/fts.m4 (gl_FUNC_FTS):
75359         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75360         * m4/getdate.m4 (gl_GETDATE):
75361         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75362         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75363         * m4/getpass.m4 (gl_FUNC_GETPASS):
75364         * m4/gettime.m4 (gl_GETTIME):
75365         * m4/getugroups.m4 (gl_GETUGROUPS):
75366         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75367         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75368         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75369         * m4/hash.m4 (gl_HASH):
75370         * m4/idcache.m4 (gl_IDCACHE):
75371         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75372         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75373         * m4/long-options.m4 (gl_LONG_OPTIONS):
75374         * m4/lstat.m4 (gl_FUNC_LSTAT):
75375         * m4/md5.m4 (gl_MD5):
75376         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75377         * m4/memcoll.m4 (gl_MEMCOLL):
75378         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75379         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75380         * m4/memxor.m4 (gl_MEMXOR):
75381         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75382         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75383         * m4/modechange.m4 (gl_MODECHANGE):
75384         * m4/mountlist.m4 (gl_MOUNTLIST):
75385         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75386         * m4/openat.m4 (gl_FUNC_OPENAT):
75387         * m4/pathmax.m4 (gl_PATHMAX):
75388         * m4/physmem.m4 (gl_PHYSMEM):
75389         * m4/posixtm.m4 (gl_POSIXTM):
75390         * m4/posixver.m4 (gl_POSIXVER):
75391         * m4/quote.m4 (gl_QUOTE):
75392         * m4/quotearg.m4 (gl_QUOTEARG):
75393         * m4/readtokens.m4 (gl_READTOKENS):
75394         * m4/readutmp.m4 (gl_READUTMP):
75395         * m4/regex.m4 (gl_REGEX):
75396         * m4/safe-read.m4 (gl_SAFE_READ):
75397         * m4/safe-write.m4 (gl_SAFE_WRITE):
75398         * m4/same.m4 (gl_SAME):
75399         * m4/save-cwd.m4 (gl_SAVE_CWD):
75400         * m4/savedir.m4 (gl_SAVEDIR):
75401         * m4/settime.m4 (gl_SETTIME):
75402         * m4/sha1.m4 (gl_SHA1):
75403         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75404         * m4/stat-macros.m4 (gl_STAT_MACROS):
75405         * m4/stat-time.m4 (gl_STAT_TIME):
75406         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75407         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75408         * m4/strdup.m4 (gl_FUNC_STRDUP):
75409         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75410         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75411         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75412         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75413         * m4/time_r.m4 (gl_TIME_R):
75414         * m4/timespec.m4 (gl_TIMESPEC):
75415         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75416         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75417         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75418         * m4/userspec.m4 (gl_USERSPEC):
75419         * m4/utimecmp.m4 (gl_UTIMECMP):
75420         * m4/utimens.m4 (gl_UTIMENS):
75421         * m4/xalloc.m4 (gl_XALLOC):
75422         * m4/xgetcwd.m4 (gl_XGETCWD):
75423         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75424         * m4/xreadlink.m4 (gl_XREADLINK):
75425         * m4/xstrtod.m4 (gl_XSTRTOD):
75426         * m4/yesno.m4 (gl_YESNO):
75427         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75428         to get the necessary .h files and whatnot.
75429
75430 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75431             Bruno Haible  <bruno@clisp.org>
75432
75433         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75434         /bin/sh understanding of '!' conditional negation.
75435
75436 2006-08-21  Jim Meyering  <jim@meyering.net>
75437
75438         * modules/openat (Depends-on): Really alphabetize.
75439
75440         * modules/acl (Depends-on): Add error and quote.
75441
75442         * check-module (find_included_lib_files): Add at-func.c to the
75443         ok-to-include-more-than-once white list.
75444
75445         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75446
75447 2006-08-21  Bruno Haible  <bruno@clisp.org>
75448
75449         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75450         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75451         Reported by Martin Lambers <marlam@marlam.de>.
75452
75453 2006-08-21  Bruno Haible  <bruno@clisp.org>
75454
75455         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75456         specify an installation location, don't emit a noinst_LIBRARIES or
75457         noinst_LTLIBRARIES assignment.
75458
75459 2006-08-21  Bruno Haible  <bruno@clisp.org>
75460
75461         BeOS portability.
75462         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75463         BeOS has mbrtowc() but no <wctype.h>.
75464
75465 2006-08-21  Bruno Haible  <bruno@clisp.org>
75466
75467         BeOS portability.
75468         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75469         exist.
75470
75471 2006-08-21  Bruno Haible  <bruno@clisp.org>
75472
75473         BeOS portability.
75474         * lib/mbchar.h: Include <wctype.h> only if it exists.
75475
75476 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75477
75478         Remove files that are no longer needed by their respective modules.
75479         * m4/obstack.m4: Remove.
75480         * m4/strerror_r.m4: Remove.
75481         * m4/uint32_t.m4: Remove.
75482         * m4/uintptr_t.m4: Remove.
75483         * m4/ullong_max.m4: Remove.
75484         * m4/xstrtoimax.m4: Remove.
75485         * m4/xstrtoumax.m4: Remove.
75486
75487         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75488         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75489         dependencies now capture this.
75490
75491         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75492         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75493         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75494         * m4/human.m4 (gl_HUMAN): Likewise.
75495         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75496         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75497
75498         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75499
75500         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75501         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75502         stdint.
75503         * m4/human.m4 (gl_HUMAN): Likewise.
75504         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75505         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75506         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75507         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75508         * m4/xstrtol (gl_XSTRTOL): Likewise.
75509
75510         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75511         AC_TYPE_LONG_LONG_INT.
75512         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75513         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75514         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75515         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75516
75517         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75518         on stdbool.
75519
75520         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75521         (gl_PREREQ_XSTRTOUL): Remove.
75522
75523         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75524
75525         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75526         mode.
75527
75528 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75529
75530         Add and change modules to make it easier for coreutils to use
75531         gnulib-tool.
75532         * modules/backupfile (Files): Remove m4/d-ino.m4.
75533         (Depends-on): Add d-ino.
75534         * modules/cycle-check (Depends-on): Add stdint.
75535         (lib_SOURCES): Add cycle-check.h.
75536         * modules/d-ino: New module.
75537         * modules/d-type: New module.
75538         * modules/error (Files): Remove m4/strerror_r.m4.
75539         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75540         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75541         m4/inttypes_h.m4, m4/uintmax_t.m4.
75542         (Depends-on): Add stdint.
75543         (lib_SOURCES): Add fsusage.h.
75544         * modules/getcwd (Files): Remove d-ino.m4.
75545         (Depends-on): Add d-ino.
75546         * modules/getndelim2 (Depends-on): Add stdint.
75547         * modules/glob (Files): Remove m4/d-type.m4.
75548         (Depends-on): Add d-type.
75549         * modules/host-os: New module.
75550         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75551         m4/inttypes_h.m4, m4/uintmax_t.m4.
75552         * Depends-on: Add stdint.
75553         (lib_SOURCES): Add human.h.
75554         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75555         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75556         m4/uintmax_t.m4, m4/ulonglong.m4.
75557         (Depends-on): Add stdint.
75558         (EXTRA_DIST): Add inttostr.h.
75559         * modules/lchmod: New module.
75560         * modules/link-follow: New module.
75561         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75562         (Depends-on): Add lchmod.
75563         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75564         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75565         (Depends-on): Add stdint.
75566         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75567         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75568         (Depends-on): Add stdint.
75569         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75570         * modules/perl: New module.
75571         * modules/regex (Depends-on): Add stdint.
75572         * modules/rmdir-errno: New module.
75573         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75574         m4/intmax_t.m4.
75575         (Depends-on): Add stdint.
75576         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75577         m4/uintmax_t.m4.
75578         (Depends-on): Add stdint.
75579         * modules/unlink-busy: New module.
75580         * modules/utimecmp (Depends-on): Add stdint.
75581         * modules/uptime: New module.
75582         * modules/winsz-ioctl: New module.
75583         * modules/winsz-termios: New module.
75584         * modules/xnanosleep (Depends-on): Add nanosleep.
75585         * modules/ullong_max: Remove.
75586         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75587         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75588         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75589         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75590         (Depends-on): Add inttypes.
75591         (lib_SOURCES): Add xstrtol.h.
75592         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75593         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75594         * MODULES.html.sh: Move 'assert' into the assert section.
75595         Move 'dummy' into the linking section.
75596         Remove ullong_max.
75597         Add section for compatibility checks for POSIX:2001 functions,
75598         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75599         winsz-ioctl, and winsz-termios into it.
75600         Add lchmod.
75601         Add top-level Misc section and put host-os, perl, and uptime
75602         into it.
75603
75604 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75605
75606         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75607         now assume the stdint module.  Do not include inttypes.h.
75608         * lib/fsusage.h: Likewise.
75609         * lib/getndelim2.c: Likewise.
75610         * lib/human.h: Likewise.
75611         * lib/inttostr.h: Likewise.
75612         * lib/obstack.c: Likewise.
75613         * lib/regex_internal.h: Likewise.
75614         * lib/tempname.c: Likewise.
75615         * lib/utimecmp.c: Likewise.
75616         * lib/xstrtol.h: Likewise.
75617
75618         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75619
75620         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75621         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75622         * lib/xtime.h: Likewise.
75623
75624 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75625
75626         * modules/openat (Files): Add lib/fchmodat.c.
75627         Fixes problem reported by Jay Youngman.
75628
75629 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75630
75631         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75632         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75633
75634 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75635             Bruno Haible  <bruno@clisp.org>
75636
75637         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75638         and is a script that invokes bison. Tighten the code. Add comments.
75639
75640 2006-08-18  Jim Meyering  <jim@meyering.net>
75641
75642         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75643         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75644         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75645         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75646
75647 2006-08-18  Bruno Haible  <bruno@clisp.org>
75648
75649         * modules/bison-i18n: New file.
75650         * MODULES.html.sh (Internationalization functions): Add it.
75651
75652 2006-08-18  Bruno Haible  <bruno@clisp.org>
75653
75654         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75655         sys/statvfs.h. When getmntinfo was found, check its declaration and
75656         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75657
75658 2006-08-18  Bruno Haible  <bruno@clisp.org>
75659
75660         * m4/bison-i18n.m4: New file, from bison.
75661
75662 2006-08-18  Bruno Haible  <bruno@clisp.org>
75663
75664         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75665         (ME_DUMMY): Treat "kernfs" as a dummy.
75666         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75667
75668 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75669
75670         Update from coreutils.
75671
75672         2006-08-15  Jim Meyering  <jim@meyering.net>
75673
75674         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75675
75676         2006-01-17  Jim Meyering  <jim@meyering.net>
75677
75678         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75679
75680         2006-01-11  Jim Meyering  <jim@meyering.net>
75681
75682         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75683         Check for the lchmod function.
75684
75685 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75686
75687         Update from coreutils.
75688
75689         * lib/__fpending.h: Add copyright notice.
75690         * lib/fprintftime.h: Likewise.
75691         * lib/savedir.c: Use (C) in copyright notice.
75692         * lib/savedir.h: Likewise.
75693
75694         2006-08-15  Jim Meyering  <jim@meyering.net>
75695
75696         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75697         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75698         in support of the EXPECTED_ERRNO macro.
75699         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75700         definitions.  Instead, define the appropriate symbols and include
75701         "at-func.c".
75702         * lib/mkdirat.c (mkdirat): Likewise.
75703         * lib/fchmodat.c (fchmodat): Likewise.
75704         (ENOSYS): Remove definition.
75705         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75706         it.  Don't include "unistd--.h" -- it wasn't ever used.
75707
75708         2006-01-17  Jim Meyering  <jim@meyering.net>
75709
75710         Rewrite fts.c not to change the current working directory,
75711         by using openat, fstatat, fdopendir, etc..
75712
75713         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75714         (HAVE_OPENAT_SUPPORT): Define.
75715         [_LIBC] (fchdir): Don't undef or define; no longer used.
75716         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75717         Now, this `function' always succeeds, and consumes its file descriptor
75718         parameter -- so callers must not close such FDs.  Update callers.
75719         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75720         (diropen): Add parameter, SP.  Adjust all callers.
75721         Implement using diropen_fd, rather than open.
75722         (fts_open): Initialize new member, fts_cwd_fd.
75723         Remove fts_rft-setting code.
75724         (fts_close): Close fts_cwd_fd, if necessary.
75725         (__opendir2): Define in terms of opendir or opendirat,
75726         depending on whether the FST_NOCHDIR flag is set.
75727         (fts_build): Since fts_safe_changedir consumes its FD, and since
75728         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75729         and close the dup'd file descriptor upon failure.
75730         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75731         (fts_safe_changedir): Tweak semantics to reflect that this function
75732         now calls cwd_advance_fd and hence consumes its FD argument.
75733         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75734         [struct FTS] (fts_rft): Remove now-unused member.
75735         [struct FTS] (fts_cycle.state): Improve comment.
75736
75737         * lib/openat.c (openat_needs_fchdir): New function.
75738         * lib/openat.h (openat_needs_fchdir): Declare it.
75739
75740 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75741
75742         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75743         Problem and fix reported by Pádraig Brady in
75744         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75745
75746 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75747
75748         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75749
75750 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75751
75752         * lib/memcoll.c (memcoll): Optimize for the common case where the
75753         arguments are bytewise equal.
75754
75755 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75756
75757         * doc/regexprops-generic.texi: Add a copyright notice.
75758
75759 2006-08-15  Bruno Haible  <bruno@clisp.org>
75760
75761         * modules/tmpdir (License): Change to LGPL.
75762
75763 2006-08-15  Bruno Haible  <bruno@clisp.org>
75764
75765         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75766         module.
75767
75768 2006-08-14  Simon Josefsson  <jas@extundo.com>
75769
75770         * config/srclist.txt: Add gnupload.
75771
75772 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75773
75774         Change copyright notice from LGPL 2 to GPL 2, since that's the
75775         standard form used in the gnulib repository.
75776         * tests/test-lock.c: Likewise.
75777         * tests/test-stdint.c: Likewise.
75778         * tests/test-tls.c: Likewise.
75779
75780         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75781         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75782         Add copyright notice.
75783
75784         * check-module: Add copyright notice.  Output a copyright
75785         notice if "--version" is specified.
75786         * modules/COPYING: New file.
75787         * tests/test-getaddrinfo.c: Add copyright notice.
75788         * tests/test-verify.c: Likewise.
75789
75790 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75791
75792         Change copyright notice from LGPL 2 to GPL 2, since that's the
75793         standard form used in the gnulib repository.
75794         * lib/lock.c: LGPL -> GPL.
75795         * lib/lock.h: Likewise.
75796         * lib/strnlen1.c: Likewise.
75797         * lib/strnlen1.h: Likewise.
75798         * lib/tls.c: Likewise.
75799         * lib/tls.h: Likewise.
75800         * lib/tmpdir.c: Likewise.
75801
75802         * lib/TODO: Remove; this belongs only in coreutils.
75803
75804 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75805
75806         Add copyright notices to long-enough files that lack them, since
75807         otherwise the files aren't clearly free.  Use the same notice that
75808         getdate.texi already uses.
75809         * doc/alloca-opt.texi: Add copyright notice.
75810         * doc/alloca.texi: Likewise.
75811         * doc/ctime.texi: Likewise.
75812         * doc/functions.texi: Likewise.
75813         * doc/gcd.texi: Likewise.
75814         * doc/gnulib-tool.texi: Likewise.
75815         * doc/inet_ntoa.texi: Likewise.
75816         * doc/visibility.texi: Likewise.
75817
75818         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75819         * doc/quote.texi: Add copyright notice.
75820
75821         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75822         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75823         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75824         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75825         is now obsolete, and give a pointer to the Sun list.
75826         Add copyright notice.
75827
75828 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75829
75830         * config/srclistvars.sh: Add copyright notice.
75831
75832 2006-08-14  Eric Blake  <ebb9@byu.net>
75833
75834         Import the following change from libc:
75835
75836         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75837
75838         Upstream bug 2997.
75839         * lib/misc/error.c: Add space between program name and message if file
75840         name is missing.
75841
75842 2006-08-12  Karl Berry  <karl@gnu.org>
75843
75844         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75845         remove, these originate in gnulib now.
75846
75847 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75848
75849         * doc/Makefile (standards.info standards.html standards.dvi):
75850         Also depend on make-stds.texi.
75851
75852 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75853
75854         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75855         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75856
75857         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75858         in wchar_t.  Problem reported by Eric Blake.
75859
75860         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75861         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75862         Also, help the compiler to keep LEN in a register.
75863
75864 2006-08-11  Eric Blake  <ebb9@byu.net>
75865
75866         * users.txt: Sort.  Add tar.
75867
75868 2006-08-11  Bruno Haible  <bruno@clisp.org>
75869
75870         * users.txt: New file.
75871
75872 2006-08-11  Bruno Haible  <bruno@clisp.org>
75873
75874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75875         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75876
75877 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75878
75879         * modules/snprintf (Depends-on): Remove minmax.
75880         (Maintainer): Add self and Bruno.
75881
75882 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75883
75884         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75885         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75886         (EOVERFLOW): Define if the system does not.
75887         Do not include "minmax.h"; it wasn't used.
75888         (snprintf): Don't assume size_t promotes to an unsigned type.
75889         Fix bug when generated string was too long for the buffer: the
75890         buffer's contents are supposed to be the initial prefix of the
75891         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75892         exceeds INT_MAX; do the check ourselves.
75893
75894         Import the following changes from libc:
75895
75896         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75897
75898         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75899         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75900         set wc to the byte which couldn't be converted.
75901         (re_string_reconstruct): Don't clear valid_raw_len before calling
75902         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75903         tip_context using re_string_context_at.
75904
75905         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75906
75907         * lib/posix/regex.h: g++ still cannot handled [restrict].
75908
75909         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75910
75911         * lib/posix/regex.h: Remove special handling for VMS.
75912
75913 2006-08-10  Jim Meyering  <jim@meyering.net>
75914
75915         * modules/same-inode: New module.
75916         * modules/dev-ino: New module.
75917         * modules/cycle-check: Depend on these modules, rather than simply
75918         including their .h files.
75919         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75920         required via m4/cycle-check.m4.
75921         * modules/same: Depend on new same-inode module, rather than
75922         including same-inode.h.
75923         * modules/chdir-safer: New file.
75924
75925         * modules/chown (Depends-on): Add stat-macros.
75926
75927 2006-08-10  Jim Meyering  <jim@meyering.net>
75928
75929         * m4/cycle-check.m4: New file.
75930         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75931         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75932
75933 2006-08-10  Eric Blake  <ebb9@byu.net>
75934
75935         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75936         in from original proposal.
75937
75938 2006-08-10  Eric Blake  <ebb9@byu.net>
75939         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75940
75941         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75942         namespace.
75943
75944 2006-08-10  Bruno Haible  <bruno@clisp.org>
75945
75946         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75947         as well.
75948
75949 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75950
75951         Sync from coreutils.
75952
75953         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75954
75955         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75956         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75957
75958 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75959
75960         * modules/restrict: Remove; no longer needed now that we assume
75961         Autoconf 2.59 or later.
75962         * MODULES.html.sh: Remove 'restrict'.
75963         * modules/argp (Depends-on): Remove 'restrict'.
75964         * modules/base64 (Depends-on): Likewise.
75965         * modules/gc (Depends-on): Likewise.
75966         * modules/getaddrinfo (Depends-on): Likewise.
75967         * modules/glob (Depends-on): Likewise.
75968         * modules/inet_ntop (Depends-on): Likewise.
75969         * modules/inet_pton (Depends-on): Likewise.
75970         * modules/memxor (Depends-on): Likewise.
75971         * modules/regex (Depends-on): Likewise.
75972         * modules/strtok_r (Depends-on): Likewise.
75973         * modules/time_r (Depends-on): Likewise.
75974
75975 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75976
75977         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75978         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75979         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75980         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75981         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75982         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75983         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75984         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75985
75986         Merge from coreutils.
75987         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75988         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75989         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75990         * m4/time_r.m4 (gl_TIME_R): Likewise.
75991
75992 2006-08-09  Karl Berry  <karl@gnu.org>
75993
75994         * config/srclist.txt: no more gettext-tools, per Bruno.
75995
75996 2006-08-08  Eric Blake  <ebb9@byu.net>
75997
75998         * modules/verror: New module.
75999         * MODULES.html.sh: Document it.
76000
76001 2006-08-08  Eric Blake  <ebb9@byu.net>
76002
76003         * lib/verror.h, lib/verror.c: New files.
76004
76005 2006-08-08  Eric Blake  <ebb9@byu.net>
76006
76007         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76008         verror_at_line output complies with GNU Coding Standards even when
76009         file is NULL.
76010
76011 2006-08-07  Bruno Haible  <bruno@clisp.org>
76012
76013         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76014         versions of AIX.
76015         Reported by Ralf Wildenhues.
76016
76017 2006-08-07  Bruno Haible  <bruno@clisp.org>
76018
76019         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76020         in an AC_DEFUN. Needed so that the autoconf snippets can use
76021         AC_REQUIRE.
76022
76023 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76024
76025         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76026         Initialize pkgdata_DATA.
76027         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76028         overriding it.
76029
76030 2006-08-06  Eric Blake  <ebb9@byu.net>
76031
76032         * lib/error.h: Fold in some upstream changes from glibc.
76033         * lib/error.c: Likewise.
76034
76035 2006-08-04  Bruno Haible  <bruno@clisp.org>
76036
76037         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76038         Make the mostlyclean-local rule depend on mostlyclean-generic.
76039         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76040
76041 2006-07-31  Bruno Haible  <bruno@clisp.org>
76042
76043         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76044         <stdlib.h>, <string.h>.
76045
76046 2006-07-30  Bruno Haible  <bruno@clisp.org>
76047
76048         * modules/readlink (License): Change to LGPL.
76049
76050 2006-07-30  Bruno Haible  <bruno@clisp.org>
76051
76052         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76053         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76054         set PKGDATADIR to point to it.
76055
76056 2006-07-30  Bruno Haible  <bruno@clisp.org>
76057
76058         * modules/csharpexec (configure.ac): Comment out macro invocation.
76059         * modules/javaexec (configure.ac): Likewise.
76060         * modules/javacomp-script (configure.ac): Likewise.
76061
76062         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76063
76064 2006-07-30  Bruno Haible  <bruno@clisp.org>
76065
76066         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76067         linked-list.
76068
76069 2006-07-30  Bruno Haible  <bruno@clisp.org>
76070
76071         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76072
76073 2006-07-30  Bruno Haible  <bruno@clisp.org>
76074
76075         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76076         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76077         get removed.
76078
76079 2006-07-29  Bruno Haible  <bruno@clisp.org>
76080
76081         Make it possible for gnulib-tool to work with locally modified or
76082         augmented gnulib repositories.
76083         * gnulib-tool (func_usage): Document --local-dir option.
76084         (local_gnulib_dir): New variable.
76085         Handle --local-dir option.
76086         (func_lookup_file): New function.
76087         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76088         (func_get_description, func_get_filelist, func_get_description,
76089         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76090         func_get_automake_snippet, func_get_include_directive,
76091         func_get_license, func_get_maintainer): Use func_lookup_file.
76092         (func_import, func_create_testdir): Use func_lookup_file.
76093
76094 2006-07-29  Bruno Haible  <bruno@clisp.org>
76095
76096         * modules/setenv (Depends-on): Add unistd.
76097
76098 2006-07-29  Bruno Haible  <bruno@clisp.org>
76099
76100         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76101
76102 2006-07-29  Bruno Haible  <bruno@clisp.org>
76103
76104         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76105
76106 2006-07-29  Bruno Haible  <bruno@clisp.org>
76107
76108         * gnulib-tool (import, update): If there is no Makefile.am, look at
76109         aclocal.m4, instead of bailing out.
76110
76111 2006-07-29  Bruno Haible  <bruno@clisp.org>
76112
76113         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76114         Categorize the options by when they are useful.
76115
76116 2006-07-29  Bruno Haible  <bruno@clisp.org>
76117
76118         * gnulib-tool (func_usage): Document option --no-libtool.
76119         Handle option --no-libtool.
76120         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76121         for changed semantics of $libtool variable.
76122         (func_import): Likewise. If libtool is not used, show this through
76123         an option --no-libtool.
76124         (func_create_testdir): Update.
76125
76126 2006-07-29  Bruno Haible  <bruno@clisp.org>
76127
76128         * gnulib-tool (func_import): Extend error message about missing
76129         --doc-base.
76130
76131 2006-07-29  Bruno Haible  <bruno@clisp.org>
76132
76133         * gnulib-tool (func_import): Don't create the $docbase directory if
76134         there is no file to store there.
76135
76136 2006-07-29  Bruno Haible  <bruno@clisp.org>
76137
76138         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76139         relevant, look for configure.ac there, not in the current directory.
76140         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76141
76142 2006-07-29  Bruno Haible  <bruno@clisp.org>
76143
76144         * gnulib-tool (SORT): New variable.
76145         (func_usage): Undocument --assume-autoconf option.
76146         Remove --assume-autoconf option handling.
76147         (autoconf_minversion): Determine from the contents of configure.ac.
76148         (func_import): Remove autoconf_minversion handling.
76149         Suggested by Eric Blake.
76150
76151 2006-07-29  Bruno Haible  <bruno@clisp.org>
76152
76153         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
76154
76155 2006-07-29  Bruno Haible  <bruno@clisp.org>
76156
76157         * config/srclist.txt (*setenv.[ch]): Remove rules.
76158
76159 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76160
76161         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
76162
76163 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76164
76165         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
76166         arpa/inet.h.
76167
76168 2006-07-28  Simon Josefsson  <jas@extundo.com>
76169
76170         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
76171         * modules/inet_pton (Depends-on): Likewise.
76172
76173 2006-07-28  Simon Josefsson  <jas@extundo.com>
76174
76175         * m4/netinet_in_h.m4: New file.
76176
76177 2006-07-28  Simon Josefsson  <jas@extundo.com>
76178
76179         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76180         #include's.
76181
76182 2006-07-28  Simon Josefsson  <jas@extundo.com>
76183
76184         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76185         #include's.
76186
76187 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76188
76189         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76190         setgid on directories only if they set these bits.
76191         * lib/modechange.h: Remove obsolete comment about masks.
76192
76193 2006-07-28  Eric Blake  <ebb9@byu.net>
76194
76195         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76196         macro expansion.
76197
76198 2006-07-28  Bruno Haible  <bruno@clisp.org>
76199
76200         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76201
76202 2006-07-28  Bruno Haible  <bruno@clisp.org>
76203
76204         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76205
76206 2006-07-28  Bruno Haible  <bruno@clisp.org>
76207
76208         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76209         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76210         Define fallbacks.
76211         Avoids link error on FreeBSD 4.x.
76212         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76213
76214         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76215         encoding.
76216         * lib/mbswidth.c (iswcntrl): Likewise.
76217
76218 2006-07-27  Bruno Haible  <bruno@clisp.org>
76219
76220         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76221         test.
76222
76223 2006-07-27  Bruno Haible  <bruno@clisp.org>
76224
76225         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76226         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76227         defined.
76228
76229 2006-07-26  Eric Blake  <ebb9@byu.net>
76230
76231         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76232
76233 2006-07-26  Eric Blake  <ebb9@byu.net>
76234
76235         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76236         like mingw that lack mkstemp.
76237         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76238         avoid compilation warning on mingw.
76239
76240 2006-07-26  Bruno Haible  <bruno@clisp.org>
76241
76242         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
76243         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
76244         INT_FAST*_MIN, INTPTR_MIN.
76245
76246 2006-07-25  Bruno Haible  <bruno@clisp.org>
76247
76248         * modules/version-etc (Depends-on): Add stdarg.
76249
76250 2006-07-25  Bruno Haible  <bruno@clisp.org>
76251
76252         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
76253         complex commands.
76254
76255 2006-07-25  Bruno Haible  <bruno@clisp.org>
76256
76257         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76258         defined in <stdarg.h> or config.h.
76259
76260 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76261
76262         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76263         (gl_STDIO_SAFER): Remove.
76264
76265 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76266
76267         * MODULES.html.sh (File stream based Input/Output):
76268         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76269         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76270         * modules/fopen-safer, modules/tmpfile-safer: New files.
76271         * modules/stdio-safer: Remove.
76272
76273 2006-07-24  Bruno Haible  <bruno@clisp.org>
76274
76275         * modules/tmpdir: New file.
76276         * MODULES.html.sh (File system functions): Add it.
76277
76278 2006-07-24  Bruno Haible  <bruno@clisp.org>
76279
76280         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76281         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76282
76283 2006-07-24  Bruno Haible  <bruno@clisp.org>
76284
76285         * modules/clean-temp: New file.
76286
76287 2006-07-24  Bruno Haible  <bruno@clisp.org>
76288
76289         * m4/tmpdir.m4: New file, from GNU gettext.
76290
76291 2006-07-24  Bruno Haible  <bruno@clisp.org>
76292
76293         * lib/tmpdir.h: New file, from GNU gettext.
76294         * lib/tmpdir.c: New file, from GNU gettext.
76295
76296 2006-07-24  Bruno Haible  <bruno@clisp.org>
76297
76298         * lib/clean-temp.h: New file, from GNU gettext.
76299         * lib/clean-temp.c: New file, from GNU gettext.
76300
76301 2006-07-23  Eric Blake  <ebb9@byu.net>
76302
76303         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76304         (Depends-on): Add binary-io.
76305
76306 2006-07-23  Eric Blake  <ebb9@byu.net>
76307
76308         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76309
76310 2006-07-23  Eric Blake  <ebb9@byu.net>
76311
76312         * lib/tmpfile-safer.c: New file.
76313         * lib/stdio-safer.h (fopen_safer): Add prototype.
76314         * lib/stdio--.h (tmpfile): Make safer.
76315
76316 2006-07-23  Bruno Haible  <bruno@clisp.org>
76317
76318         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76319         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76320         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76321         gl_linked_remove_at): Use it.
76322
76323 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76324         and Simon Josefsson <jas@extundo.com>
76325
76326         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76327
76328         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76329
76330 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76331
76332         * modules/close-stream: New file.
76333         * modules/closeout (Description): Make it clear that it exits
76334         with a diagnostic on error.
76335         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76336         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76337
76338 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76339
76340         * m4/close-stream.m4: New file.
76341
76342 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76343
76344         * lib/close-stream.c, lib/close-stream.h: New files.
76345
76346 2006-07-22  Bruno Haible  <bruno@clisp.org>
76347
76348         Merge from GNU gettext 0.15.
76349
76350         2006-05-01  Bruno Haible  <bruno@clisp.org>
76351
76352                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76353
76354         2006-07-22  Bruno Haible  <bruno@clisp.org>
76355
76356                 * modules/javaversion: New file.
76357                 * MODULES.html.sh (Java): Add javaversion.
76358
76359         2006-03-12  Bruno Haible  <bruno@clisp.org>
76360
76361                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76362
76363         2005-12-04  Bruno Haible  <bruno@clisp.org>
76364
76365                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76366                 (untested).
76367
76368         2006-06-21  Bruno Haible  <bruno@clisp.org>
76369
76370                 Avoid warnings from recent versions of mcs.
76371                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76372                 -o, -L, -r any more. Use options documented since mcs-1.0
76373                 instead. Similarly for -g.
76374
76375         2005-12-04  Bruno Haible  <bruno@clisp.org>
76376
76377                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76378                 .resources, not .resource.
76379
76380         2005-07-09  Bruno Haible  <bruno@clisp.org>
76381
76382                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76383                 add a .dll suffix.
76384                 Reported by Mark Junker <mjscod@gmx.de>.
76385
76386         2006-07-22  Bruno Haible  <bruno@clisp.org>
76387
76388                 * modules/gettext: Upgrade to gettext-0.15.
76389                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76390                 m4/visibility.m4.
76391                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76392
76393 2006-07-22  Bruno Haible  <bruno@clisp.org>
76394
76395         Merge from GNU gettext 0.15.
76396
76397         2006-03-25  Bruno Haible  <bruno@clisp.org>
76398
76399                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76400
76401         2006-07-21  Bruno Haible  <bruno@clisp.org>
76402
76403                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76404                 "1.1".
76405
76406         2006-05-09  Bruno Haible  <bruno@clisp.org>
76407
76408                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76409                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76410                 for the conftestver execution.
76411
76412         2006-05-01  Bruno Haible  <bruno@clisp.org>
76413
76414                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76415                 optional target-version argument. Verify that the compiler
76416                 groks source of the specified source-version, or add -source
76417                 option as necessary. Verify that the compiler produces
76418                 bytecode in the specified target-version, or add -target and
76419                 -source options as necessary. Make the result of the test
76420                 available as variable CONF_JAVAC. Also log error output in
76421                 config.log.
76422
76423         2006-03-11  Bruno Haible  <bruno@clisp.org>
76424
76425                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76426
76427         2006-05-09  Bruno Haible  <bruno@clisp.org>
76428
76429                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76430                 CLASSPATH_SEPARATOR to a semicolon.
76431
76432         2006-03-12  Bruno Haible  <bruno@clisp.org>
76433
76434                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76435                 available as variable CONF_JAVA, for subsequent autoconf
76436                 tests. Also log error output in config.log.
76437
76438         2006-07-19  Bruno Haible  <bruno@clisp.org>
76439
76440                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76441                 that getline works on glibc2 systems. Needed to avoid trouble
76442                 in relocatable.c.
76443                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76444
76445         2005-12-04  Bruno Haible  <bruno@clisp.org>
76446
76447                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76448                 launcher (untested).
76449
76450         2005-12-04  Bruno Haible  <bruno@clisp.org>
76451
76452                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76453
76454         2006-07-22  Bruno Haible  <bruno@clisp.org>
76455
76456                 * gettext.m4: Update from GNU gettext-0.15.
76457                 * nls.m4: Likewise.
76458                 * po.m4: Likewise.
76459                 * inttypes-pri.m4: Likewise.
76460                 * inttypes-h.m4: Renamed from inttypes.m4.
76461                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76462
76463 2006-07-22  Bruno Haible  <bruno@clisp.org>
76464
76465         Merge from GNU gettext 0.15.
76466
76467         2005-07-05  Bruno Haible  <bruno@clisp.org>
76468
76469                 * printf-args.c (printf_fetchargs): Work around broken
76470                 definition of wint_t on mingw.
76471
76472         2005-02-12  Bruno Haible  <bruno@clisp.org>
76473
76474                 * xallocsa.h: Add extern "C" for C++.
76475
76476         2006-05-17  Bruno Haible  <bruno@clisp.org>
76477
76478                 Cygwin portability.
76479                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76480
76481         2006-04-30  Bruno Haible  <bruno@clisp.org>
76482
76483                 * progreloc.c: Include <mach-o/dyld.h> if available.
76484                 (find_executable): Use _NSGetExecutablePath when possible.
76485
76486         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76487
76488                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76489                 function.
76490
76491         2005-12-29  Bruno Haible  <bruno@clisp.org>
76492
76493                 * progreloc.c (set_program_name_and_installdir): Fix
76494                 compilation error.
76495
76496         2005-12-04  Bruno Haible  <bruno@clisp.org>
76497
76498                 Cygwin portability.
76499                 * progreloc.c: Include <windows.h> also on Cygwin.
76500                 (find_executable): Add support for Cygwin.
76501                 (set_program_name_and_installdir): Handle also platforms with
76502                 nonempty EXEEXT.
76503
76504         2006-07-11  Bruno Haible  <bruno@clisp.org>
76505
76506                 * javacomp.c: Fix a comment.
76507                 Reported by Jim Meyering.
76508
76509         2006-04-30  Bruno Haible  <bruno@clisp.org>
76510
76511                 * javacomp.h (compile_java_class): Add source_version,
76512                 target_version arguments.
76513                 * javacomp.c: Rewritten to choose only a compiler that
76514                 respects the specified source_version and target_version.
76515
76516         2006-06-27  Bruno Haible  <bruno@clisp.org>
76517
76518                 Assume correct S_ISDIR macro.
76519                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76520
76521         2006-07-22  Bruno Haible  <bruno@clisp.org>
76522
76523                 * javaversion.h: New file, from GNU gettext.
76524                 * javaversion.c: New file, from GNU gettext.
76525                 * javaversion.java: New file, from GNU gettext.
76526                 * javaversion.class: New file, from GNU gettext.
76527
76528         2006-05-17  Bruno Haible  <bruno@clisp.org>
76529
76530                 Cygwin portability.
76531                 * javaexec.c (execute_java_class): Test for jview program
76532                 also on Cygwin.
76533
76534         2006-04-09  Bruno Haible  <bruno@clisp.org>
76535
76536                 * fatal-signal.c: Don't include string.h.
76537                 (at_fatal_signal): Use a copying loop instead of memcpy.
76538
76539         2005-12-04  Bruno Haible  <bruno@clisp.org>
76540
76541                 * csharpexec.c: Add support for 'clix' launcher (untested).
76542                 (execute_csharp_using_sscli): New function.
76543                 (execute_csharp_program): Call it.
76544
76545         2006-06-21  Bruno Haible  <bruno@clisp.org>
76546
76547                 Avoid warnings from recent versions of mcs.
76548                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76549                 -o, -L, -r any more. Use options documented since mcs-1.0
76550                 instead. Similarly for -g.
76551
76552         2005-07-09  Bruno Haible  <bruno@clisp.org>
76553
76554                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76555                 add a .dll suffix.
76556                 Reported by Mark Junker <mjscod@gmx.de>.
76557
76558         2006-06-17  Bruno Haible  <bruno@clisp.org>
76559
76560                 * config.charset: Update for NetBSD 3.0.
76561
76562         2006-05-17  Bruno Haible  <bruno@clisp.org>
76563
76564                 Cygwin portability.
76565                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76566
76567         2006-05-16  Bruno Haible  <bruno@clisp.org>
76568
76569                 * localcharset.c [CYGWIN]: Include <windows.h>.
76570                 (get_charset_aliases): For Cygwin, return the same CPxxx
76571                 aliases list as under WIN32.
76572                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76573                 the environment variables. Fall back to GetACP().
76574
76575         2006-04-05  Bruno Haible  <bruno@clisp.org>
76576
76577                 * config.charset: Update Juan Manuel Guerrero's address.
76578
76579         2005-02-12  Bruno Haible  <bruno@clisp.org>
76580
76581                 * allocsa.h: Add extern "C" for C++.
76582
76583         2005-02-10  Bruno Haible  <bruno@clisp.org>
76584
76585                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76586                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76587
76588         2006-07-22  Bruno Haible  <bruno@clisp.org>
76589
76590                 * gettext.h: Update to GNU gettext-0.15.
76591
76592 2006-07-22  Bruno Haible  <bruno@clisp.org>
76593
76594         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76595         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76596         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76597
76598 2006-07-21  Eric Blake  <ebb9@byu.net>
76599
76600         * modules/stdlib-safer: New file.
76601         * MODULES.html.sh (File stream based Input/Output): Add
76602         stdlib-safer.
76603
76604 2006-07-21  Eric Blake  <ebb9@byu.net>
76605
76606         * lib/stdlib-safer.h: New file from coreutils, required by
76607         stdlib--.h.
76608
76609 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76610
76611         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76612
76613 2006-07-20  Bruno Haible  <bruno@clisp.org>
76614
76615         * gnulib-tool: Recognize new option --assume-autoconf.
76616         (autoconf_minversion): New variable.
76617         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76618
76619 2006-07-20  Bruno Haible  <bruno@clisp.org>
76620
76621         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76622
76623 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76624
76625         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76626         Reindent and repaginate.
76627
76628 2006-07-19  Derek Price  <derek@ximbiot.com>
76629
76630         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76631         Correct grammar.
76632
76633 2006-07-17  Bruno Haible  <bruno@clisp.org>
76634
76635         * modules/list: New file.
76636         * modules/array-list: New file.
76637         * modules/carray-list, modules/carray-list-tests: New files.
76638         * modules/linked-list, modules/linked-list-tests: New files.
76639         * modules/avltree-list, modules/avltree-list-tests: New files.
76640         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76641         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76642         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76643         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76644         * modules/oset: New file.
76645         * modules/array-oset: New file.
76646         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76647         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76648         * tests/test-carray_list.c: New file.
76649         * tests/test-linked_list.c: New file.
76650         * tests/test-avltree_list.c: New file.
76651         * tests/test-rbtree_list.c: New file.
76652         * tests/test-linkedhash_list.c: New file.
76653         * tests/test-avltreehash_list.c: New file.
76654         * tests/test-rbtreehash_list.c: New file.
76655         * tests/test-avltree_oset.c: New file.
76656         * tests/test-rbtree_oset.c: New file.
76657         * MODULES.html.sh (Container data structures): New section.
76658
76659 2006-07-17  Bruno Haible  <bruno@clisp.org>
76660
76661         * m4/gl_list.m4: New file.
76662
76663 2006-07-17  Bruno Haible  <bruno@clisp.org>
76664
76665         * lib/gl_list.h: New file.
76666         * lib/gl_list.c: New file.
76667         * lib/gl_array_list.h: New file.
76668         * lib/gl_array_list.c: New file.
76669         * lib/gl_carray_list.h: New file.
76670         * lib/gl_carray_list.c: New file.
76671         * lib/gl_linked_list.h: New file.
76672         * lib/gl_linked_list.c: New file.
76673         * lib/gl_anylinked_list1.h: New file.
76674         * lib/gl_anylinked_list2.h: New file.
76675         * lib/gl_avltree_list.h: New file.
76676         * lib/gl_avltree_list.c: New file.
76677         * lib/gl_anyavltree_list1.h: New file.
76678         * lib/gl_anyavltree_list2.h: New file.
76679         * lib/gl_rbtree_list.h: New file.
76680         * lib/gl_rbtree_list.c: New file.
76681         * lib/gl_anyrbtree_list1.h: New file.
76682         * lib/gl_anyrbtree_list2.h: New file.
76683         * lib/gl_anytree_list1.h: New file.
76684         * lib/gl_anytree_list2.h: New file.
76685         * lib/gl_linkedhash_list.h: New file.
76686         * lib/gl_linkedhash_list.c: New file.
76687         * lib/gl_anyhash_list1.h: New file.
76688         * lib/gl_anyhash_list2.h: New file.
76689         * lib/gl_avltreehash_list.h: New file.
76690         * lib/gl_avltreehash_list.c: New file.
76691         * lib/gl_rbtreehash_list.h: New file.
76692         * lib/gl_rbtreehash_list.c: New file.
76693         * lib/gl_anytreehash_list1.h: New file.
76694         * lib/gl_anytreehash_list2.h: New file.
76695
76696         * lib/gl_oset.h: New file.
76697         * lib/gl_oset.c: New file.
76698         * lib/gl_array_oset.h: New file.
76699         * lib/gl_array_oset.c: New file.
76700         * lib/gl_avltree_oset.h: New file.
76701         * lib/gl_avltree_oset.c: New file.
76702         * lib/gl_rbtree_oset.h: New file.
76703         * lib/gl_rbtree_oset.c: New file.
76704         * lib/gl_anytree_oset.h: New file.
76705
76706 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76707
76708         * m4/mkancesdirs.m4: New file.
76709         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76710         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76711         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76712         it.
76713
76714 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76715
76716         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76717         * lib/mkancesdirs.h: New files.
76718         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76719         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76720         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76721         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76722         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76723         callers changed.  Revamp internals significantly, by not
76724         attempting to create directories that are temporarily more
76725         permissive than the final results.  Do not attempt to use
76726         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76727         This removes some race conditions, fixes some bugs, and simplifies
76728         things.  Use new dirchownmod function to do owner and mode changes.
76729         * lib/mkdir-p.h: Likewise.
76730         * lib/modechange.c (octal_to_mode): New function.
76731         (struct mode_change): New member mentioned.
76732         (make_node_op_equals): New arg mentioned.  All callers changed.
76733         (mode_compile): Keep track of which mode bits the user has explicitly
76734         mentioned.
76735         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76736         New arg PMODE_BITS, to keep track of which mode bits the user
76737         mentioned; it treats S_ISUID and S_ISGID speciall.
76738         All callers changed.
76739         * lib/modechange.h: Likewise.
76740
76741 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76742
76743         * MODULES.html.sh: Add mkancestors.
76744         * modules/mkancesdirs: New module.
76745         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76746         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76747         The chdir-safer and afs files are now orphans; I'll remove them
76748         unless someone speaks up.
76749         Add lib/dirchownmod.c, lib/dirchownmod.h.
76750         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76751         Add lchown, mkancesdirs.
76752         (Maintainer): Add self.
76753
76754 2006-07-15  Karl Berry  <karl@gnu.org>
76755
76756         * gnulib-tool: help message wording/arrangement.
76757
76758 2006-07-14  Simon Josefsson  <jas@extundo.com>
76759
76760         * doc/gnulib.texi (Libtool and Windows): New section.
76761
76762 2006-07-12  Simon Josefsson  <jas@extundo.com>
76763
76764         * modules/gendocs (License): Fix license, approved by Karl.
76765
76766 2006-07-12  Eric Blake  <ebb9@byu.net>
76767
76768         * MODULES.html.sh: Add gendocs.
76769
76770 2006-07-11  Eric Blake  <ebb9@byu.net>
76771
76772         * modules/fdl: New module, to install doc/fdl.texi.
76773         * MODULES.html.sh: Add new section for documentation modules.
76774         * gnulib-tool: Avoid space-tab.
76775         (--doc-base): New option, to manage files from doc.
76776
76777 2006-07-11  Eric Blake  <ebb9@byu.net>
76778
76779         * m4/absolute-header.m4: Fix comments to match recent change.
76780
76781 2006-07-11  Eric Blake  <ebb9@byu.net>
76782
76783         * gnulib-tool: List --doc-base before --tests-base.
76784
76785 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76786
76787         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76788
76789 2006-07-11  Bruno Haible  <bruno@clisp.org>
76790
76791         * README: Mention where to put documentation.
76792
76793 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76794
76795         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76796
76797 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76798
76799         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76800         to stdint.m4.
76801
76802 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76803
76804         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76805         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76806         "no/such/file/stdint.h" when there is no such file, so that
76807         the resulting C code can be parsed by dodgy compilers.
76808         Problems reported by Bob Proulx.
76809
76810 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76811
76812         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76813         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76814         macros into the GNU _D_EXACT_NAMLEN.
76815         * lib/savedir.c:  Likewise.
76816         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76817
76818 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76819         and Paul Eggert  <eggert@cs.ucla.edu>
76820
76821         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76822         * m4/savedir.m4:
76823         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76824         macros into the GNU _D_EXACT_NAMLEN.
76825
76826 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76827
76828         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76829         around the absolute name, to work around a problem with the HP-UX
76830         11.23 native C compiler, reported by Bob Proulx.
76831
76832 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76833
76834         * doc/maintain.texi, make-stds.texi: Sync from
76835         <http://savannah.gnu.org/projects/gnustandards>.
76836
76837 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76838
76839         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76840
76841 2006-07-09  Jim Meyering  <jim@meyering.net>
76842
76843         * m4/glob.m4: Remove a doubled word in a comment.
76844
76845 2006-07-09  Jim Meyering  <jim@meyering.net>
76846
76847         * lib/argp-pv.c: Remove a doubled word in a comment.
76848         * lib/check-version.c (check_version): Likewise.
76849         * lib/javacomp.c (compile_java_class): Likewise.
76850
76851 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76852
76853         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76854         for the benefit of people using Autoconf 2.60.  If you want to
76855         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76856         (or m4/onceonly.m4, if pre-2.57) manually.
76857
76858 2006-07-08  Jim Meyering  <jim@meyering.net>
76859
76860         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76861         comment.
76862         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76863         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76864         comment.
76865
76866 2006-07-08  Jim Meyering  <jim@meyering.net>
76867
76868         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76869
76870 2006-07-07  Simon Josefsson  <jas@extundo.com>
76871
76872         * tests/test-crc.c: Change expected crc value, the test vector
76873         were probably computed using the old broken crc.c?
76874
76875 2006-07-06  Simon Josefsson  <jas@extundo.com>
76876
76877         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76878         now the canonical place for the M4 file).
76879
76880         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76881         from the sys_socket dependency now.
76882
76883         * modules/inet_pton (Files): Ditto.
76884
76885         * modules/inet_ntop (Files): Ditto.
76886
76887 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76888
76889         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76890         not gl_PREREQ_GETUSERSHELL.
76891
76892 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76893
76894         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76895         with only one argument, for Autoconf 2.60.
76896         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76897         expand to nothing, so add a shell command to avoid syntax error.
76898         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76899
76900 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76901
76902         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76903
76904 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76905
76906         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76907         no longer needed.  Check for isblank decl.
76908         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76909         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76910         of existence.
76911
76912 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76913
76914         * lib/getloadavg.c: Use __VMS, not VMS.
76915         * lib/getopt.c: Likewise.
76916         * lib/getpagesize.h: Likewise.
76917         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76918         and probably does not work.
76919
76920 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76921
76922         * lib/.cppi-disable: Add wcwidth.
76923         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76924         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76925         (ISGRAPH): Remove.  All uses changed to isgraph.
76926         (FOLD) [!defined _LIBC]: Remove special case.
76927         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76928         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76929         HAVE_ISBLANK.
76930         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76931         case.
76932
76933 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76934
76935         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76936         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76937         brackets.  Other minor changes to suppress some compiler
76938         warnings.
76939
76940 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76941         and Paul Eggert  <eggert@cs.ucla.edu>
76942
76943         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76944         of invoking obsolescent AC_HEADER_DIRENT macro.
76945         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76946         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76947         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76948         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76949         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76950         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76951         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76952         * m4/readdir.m4: Remove; no longer needed.
76953
76954 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76955         and Paul Eggert  <eggert@cs.ucla.edu>
76956
76957         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76958         Don't worry about this obsolete case any more.
76959         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76960         directories.
76961         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76962         worry about this obsolete case any more.
76963         * lib/fts.c: Likewise.
76964         * lib/getcwd.c: Likewise.
76965         * lib/glob.h: Likewise.
76966         * lib/savedir.c: Likewise.
76967
76968 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76969
76970         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76971         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76972         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76973         needed.
76974         All uses removed.
76975         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76976         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76977         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76978         needed.
76979         * m4/getdate.m4 (gl_GETDATE): Likewise.
76980         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76981         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76982         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76983         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76984         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76985         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76986         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76987         needed.
76988
76989 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76990
76991         * lib/memcasecmp.c: Include <limits.h>.
76992         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76993         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76994         Don't assume isdigit succeeds only on '0' through '9'.
76995
76996 2006-07-05  Eric Blake  <ebb9@byu.net>
76997
76998         * modules/getaddrinfo (Depends-on): Add snprintf.
76999
77000 2006-07-05  Eric Blake  <ebb9@byu.net>
77001
77002         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
77003         to avoid 'header present but could not be compiled' on cygwin.
77004
77005 2006-07-05  Eric Blake  <ebb9@byu.net>
77006
77007         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77008         missing from netdb.h.
77009         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77010
77011 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77012
77013         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77014         no longer needed.
77015         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77016         * m4/getdate.m4 (gl_GETDATE): Likewise.
77017         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77018         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77019         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77020         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77021         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77022
77023 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77024
77025         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77026         All uses of is_space replaced by isspace.
77027         * lib/exit.h: Don't talk about STDC_HEADERS.
77028         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77029         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77030         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77031         replaced by isprint etc.
77032         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77033         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77034         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77035         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77036         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77037         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77038
77039 2006-07-05  Bruno Haible  <bruno@clisp.org>
77040
77041         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77042         the function exists, before testing against AIX.
77043         Reported by Martin Lambers <marlam@marlam.de>.
77044
77045 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77046
77047         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77048         From Mark D. Baushke.
77049
77050 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77051
77052         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77053         to the absolute name, not just one, to bypass Sun C 5.8's
77054         "warning: #include of /usr/include/... may be non-portable".
77055
77056 2006-07-04  Eric Blake  <ebb9@byu.net>
77057
77058         * modules/dirname-tests: New test module.
77059         * tests/test-dirname.c: New file, replacing dirname.c
77060         TEST_DIRNAME section that was recently deleted.
77061
77062 2006-07-04  Bruno Haible  <bruno@clisp.org>
77063
77064         Assume ANSI C header files and <ctype.h> functions.
77065         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77066         (mbsnwidth): Use isprint, iscntrl instead.
77067
77068 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77069
77070         Merge from coreutils.
77071         * MODULES.html.sh: Add xstrtold.
77072         * modules/xstrtold: New file.
77073         * modules/cycle-check (Files): Add lib/same-inode.h.
77074         * modules/dirname (Files): Add m4/double-slash-root.m4.
77075         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77076         * modules/mkdir-p (Files): Add lib/same-inode.h.
77077         * modules/same (Files): Add lib/same-inode.h.
77078
77079 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77080
77081         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77082         This is to keep the terminology clean; POSIX talks about
77083         "absolute pathnames", not "full pathnames", but the GNU
77084         Coding Standards say to use "path" for something else;
77085         so use "absolute" to keep both sides happy.
77086         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77087         Set gl_absolute_header, not gl_full_header_path.
77088         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77089         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77090         All uses changed.
77091
77092         Merge from coreutils.
77093
77094         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77097         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77098         want to require the building of c-strtod.o.
77099         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77100         needs -lm directly.
77101         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77102
77103         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77104
77105         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77106         --as-needed option if available.  Problem reported by Albert Chin in
77107         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77108         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77109         cc merely issues a bunch of annoying warnings for --as-needed
77110         (this problem was reported by Bob Proulx).  Also, try linking with
77111         -lm to detect a bug in binutils 2.16 (this problem was reported
77112         by Ralf Wildenhues).
77113
77114         2006-06-18  Jim Meyering  <jim@meyering.net>
77115
77116         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77117         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77118         macro.
77119         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77120         also check for glibc-2.4's abort-inducing bug.
77121
77122         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77123         Low-probability clean-up should be to use rmdir to get rid of
77124         the just-created directory, not unlink.
77125
77126         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77127         configure fail, and request a bug report to inform us about it.
77128         Add a comment that, barring reports to the contrary, in 2007 we'll
77129         assume ftruncate is universally available.
77130
77131         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77132
77133         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77134
77135         2006-03-12  Jim Meyering  <jim@meyering.net>
77136
77137         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77138         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77139         * m4/same.m4 (gl_SAME): Likewise.
77140         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77141
77142         2006-03-11  Eric Blake  <ebb9@byu.net>
77143
77144         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
77145         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
77146         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
77147         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
77148
77149 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77150
77151         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
77152         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
77153         reported by Mark D. Baushke, one in
77154         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
77155
77156         Merge from coreutils.
77157
77158         * lib/.cppi-disable: Add stdint_.h.
77159         * lib/.cvsignore: Add stdint.h.
77160
77161         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77162
77163         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
77164         both double and long double versions.
77165         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
77166         * lib/xstrtold.c: New file.
77167         * lib/xstrtod.h (xstrtold): New decl.
77168
77169         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77170
77171         * lib/filemode.c (setst): Remove.
77172         (strmode): Rewrite to avoid setst.  This makes the code shorter,
77173         (arguably) clearer, and the generated code is a bit smaller on my
77174         Debian GNU/Linux stable x86 host.
77175
77176         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77177
77178         * lib/filemode.c: Include "filemode.h" first, to test the interface.
77179         Assume that filemode.h includes sys/types.h and sys/stat.h.
77180         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77181         (ftypelet): Reorder to put common cases first, for efficiency.
77182         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77183         to do 'M'.
77184         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77185         of 10, for compatibility with FreeBSD.  All callers changed.
77186         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77187         types that can't be deduced solely from st_mode.  First arg is now a
77188         const pointer.
77189         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77190         (strmode): Renamed from mode_string.
77191         (filemodestring): New decl.
77192         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77193         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77194         needed.
77195         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77196
77197         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77198
77199         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77200         fsusage.h now does that.  Include fsusage.h first, to test interface.
77201         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77202         at most one method (the old code could have generated decls that
77203         didn't conform to C89, not that this was ever exercised).
77204         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77205
77206         2006-03-19  Jim Meyering  <jim@meyering.net>
77207
77208         Work even in a chroot where d_ino values for entries in "/"
77209         don't match the stat.st_ino values for the same names.
77210         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77211         number, iterate through all entries again, using lstat instead.
77212         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77213         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77214
77215         * lib/getcwd.c (__getcwd): Clarify a comment.
77216         Use memcpy in place of a call to strcpy.
77217
77218         2006-03-12  Jim Meyering  <jim@meyering.net>
77219
77220         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77221         matches that of the current directory (which we're about to chdir ".."
77222         out of), then save the dev-ino of the parent, instead.
77223
77224         * lib/same-inode.h (SAME_INODE): New file/macro.
77225         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77226         Include "same-inode.h", instead.
77227         * lib/same.c: Likewise.
77228         * lib/cycle-check.h: Include "same-inode.h".
77229         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77230         * lib/cycle-check.c (SAME_INODE): Remove definition.
77231         * lib/root-dev-ino.h: Include "same-inode.h".
77232
77233         2006-03-11  Eric Blake  <ebb9@byu.net>
77234
77235         * lib/same.c (same_name): s/base_name/last_component/
77236         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77237         * lib/filenamecat.c (file_name_concat): Likewise.
77238
77239         2006-03-11  Eric Blake  <ebb9@byu.net>,
77240                     Paul Eggert  <eggert@cs.ucla.edu>
77241
77242         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
77243         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
77244         drive prefix.
77245         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
77246         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
77247         (last_component): New method.
77248         * lib/dirname.c (dir_len): Determine when drive letters need a
77249         subsequent slash.  Preserve // when it is special.
77250         (dir_name): Don't append dot when drive letter is absolute.
77251         [TEST_DIRNAME]: Move into a full-blown gnulib test.
77252         * lib/basename.c (base_name): New semantics - malloc the result.
77253         Preserve // when it is special.  Preserve relative files that look
77254         like drive letters.
77255         (base_len): Preserve // when it is special.
77256         (last_component): New method, similar to old base_name semantics.
77257         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77258         base_name.  Strip redundant slashes from ///.
77259
77260 2006-07-03  Jim Meyering  <jim@meyering.net>
77261
77262         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77263         macro is used before the first cycle_check call.
77264
77265 2006-07-03  Eric Blake  <ebb9@byu.net>
77266
77267         * modules/dirname (Depends-on): Add xstrndup.
77268
77269 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77270
77271         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77272         test cases, so that config.log is a bit easier to follow.
77273
77274 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77275
77276         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77277         both are 64 bits, since this seems to be the tradition, and this
77278         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77279         we ever run into a host that prefers long long to long in this
77280         case, we'll need another configure-time test.  Problem reported by
77281         Jim Meyering.
77282
77283 2006-07-02  Eric Blake  <ebb9@byu.net>
77284
77285         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77286
77287 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77288
77289         * modules/inttypes (Depends-on): No longer depends on stdint.
77290         * modules/stdint (Description): Say more about assumptions.
77291         Say that the fast types might differ.  Say macros are used.
77292         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77293         (Makefile.am): Revise list of substituted symbols to match
77294         new stdint.m4.
77295         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77296         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77297         * tests/test-stdint.c (verify_same_types)
77298         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77299         the code conforms to C99/C89.
77300         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77301         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77302
77303 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77304
77305         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77306         but fix a bug, by requiring at least 64 bits.
77307         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77308         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77309         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77310         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77311
77312         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77313         changes.  Make 2.59 a prerequisite.  Check and substitute for
77314         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77315         inttypes.h.  Do not use special include files; just use the
77316         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77317         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77318         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77319         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77320         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77321         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77322         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77323         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77324         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77325         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77326         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77327         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77328         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77329         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77330         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77331         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77332         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77333         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77334         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77335         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77336         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77337         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77338         not check for things that C99 does not require, e.g., int8_t.  If
77339         a test isn't needed unless <stdint.h> isn't working, and is
77340         unlikely to be needed for any other reason, then don't do it
77341         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77342         size_t, since we assume C89 freestanding at least.  Do not check
77343         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77344         the right thing even if the types are not defined.  Instead use:
77345         (gl_STDINT_TYPE_PROPERTIES): New macro.
77346         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77347         testing whether <sys/types.h> clashes, as Autoconf does this for
77348         us now.  All uses removed.
77349         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77350         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77351         (gl_CHECK_TYPE_SAME):
77352         Remove; no longer needed.
77353         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77354         exists, since we'll return 0 anyway in that case.
77355         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77356
77357 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77358
77359         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77360         possible collision with system files.
77361         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77362         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77363         WCHAR_MIN and WCHAR_MAX in this case.
77364         (<stddef.h>): Do not include; no longer needed.
77365         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77366         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77367         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77368         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77369         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77370         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77371         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77372         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77373         !defined(__c99))]: Include in this case too, since it's harmless
77374         now.
77375         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77376         dangerous to do so.
77377         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77378         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77379         (_STDINT_MIN, _STDINT_MAX): New macros.
77380         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77381         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77382         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77383         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77384         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77385         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77386         macros, not typedefs; this simplifies things quite a bit.
77387         Use long int for all types narrower than int64_t.
77388         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77389         Define in terms of long long int or int64_t or long int,
77390         not int64_t or int32_t.  This saves some compile-time testing.
77391         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77392         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77393         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77394         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77395         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77396         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77397         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77398         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77399         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77400         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77401         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77402         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77403         undef any previous version and define our own version, for
77404         simplicity and consistency with the new macros for types.
77405         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77406         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77407         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77408         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77409         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77410         @WINT_T_SUFFIX@ to keep things simple here.
77411         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77412         Simplify by assuming typical 8/16/32/64 host, since we're
77413         already doing that elsewhere anyway.
77414         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77415         and assume long long int is 64 bits if available.  This
77416         speeds up 'configure'.
77417
77418 2006-07-01  Eric Blake  <ebb9@byu.net>
77419
77420         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77421         Reported by Andreas Buening.
77422
77423 2006-07-01  Eric Blake  <ebb9@byu.net>
77424
77425         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77426
77427 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77428
77429         * lib/getaddrinfo.c: fixed typo
77430
77431 2006-06-29  Jim Meyering  <jim@meyering.net>
77432
77433         * modules/strftime (Maintainer): Add my name, since with the
77434         FPRINTFTIME changes strftime.c has forked from glibc.
77435
77436 2006-06-29  Eric Blake  <ebb9@byu.net>
77437
77438         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77439
77440 2006-06-29  Eric Blake  <ebb9@byu.net>
77441
77442         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77443
77444 2006-06-29  Eric Blake  <ebb9@byu.net>
77445
77446         * lib/stat_.h: New file.
77447
77448 2006-06-29  Eric Blake  <ebb9@byu.net>
77449
77450         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77451         unused static function.
77452
77453 2006-06-29  Eric Blake  <ebb9@byu.net>
77454
77455         * doc/functions.texi (Function Portability): Document missing lstat
77456         on mingw.
77457
77458 2006-06-29  Eric Blake  <ebb9@byu.net>
77459
77460         * MODULES.html.sh: Add sys_stat.
77461         * modules/sys_stat: New module.
77462         * modules/mkstemp (Depends-on): Add sys_stat.
77463
77464 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77465
77466         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77467
77468 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77469
77470         * m4/c-bs-a.m4: Removed.
77471
77472 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77473
77474         * lib/strftime.c: Assume strftime() exists.
77475
77476 2006-06-29  Derek Price  <derek@ximbiot.com>
77477
77478         * modules/c-bs-a: Removed - \a is C89.
77479         * MODULES.html.sh: Remove c-bs-a.
77480
77481 2006-06-29  Bruno Haible  <bruno@clisp.org>
77482
77483         * modules/wcwidth (License): Change to LGPL.
77484
77485 2006-06-28  Simon Josefsson  <jas@extundo.com>
77486
77487         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77488         on _WIN32.
77489
77490         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77491         getnameinfo.
77492
77493 2006-06-28  Simon Josefsson  <jas@extundo.com>
77494
77495         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77496
77497 2006-06-28  Simon Josefsson  <jas@extundo.com>
77498
77499         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77500         functions there.  It will succeed on Windows XP, but on Windows
77501         2000 and (presumably) earlier, it will fail, and use the internal
77502         re-implementation.
77503         (use_win32_p): New function.
77504         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77505         Support AI_NUMERICSERV to disable getservbyname.
77506         (getnameinfo): New function, only supports
77507         NI_NUMERICHOST|NI_NUMERICSERV for now.
77508
77509         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77510         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77511         getnameinfo.
77512
77513 2006-06-28  Eric Blake  <ebb9@byu.net>
77514
77515         * modules/wcwidth: New file.
77516         * modules/mbchar (Depends-on): Add wcwidth.
77517         * modules/mbswidth (Depends-on): Add wcwidth.
77518         * MODULES.html.sh: Add wcwidth.
77519
77520 2006-06-28  Eric Blake  <ebb9@byu.net>
77521
77522         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77524
77525 2006-06-28  Eric Blake  <ebb9@byu.net>
77526
77527         * lib/xvasprintf.h: Fix comments.
77528
77529 2006-06-28  Eric Blake  <ebb9@byu.net>
77530
77531         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77532         * lib/mbswidth.c (wcwidth): Move from here...
77533         * lib/wcwidth.h: ...to this new file.
77534
77535 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77536
77537         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77538
77539         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77540         it's obsolete.
77541         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77542
77543 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77544
77545         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77546         Autoconf 2.60 says this stuff was obsolete.
77547
77548 2006-06-28  Bruno Haible  <bruno@clisp.org>
77549
77550         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77551
77552 2006-06-28  Bruno Haible  <bruno@clisp.org>
77553
77554         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77555         gt_TYPE_WCHAR_T.
77556
77557 2006-06-28  Bruno Haible  <bruno@clisp.org>
77558
77559         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77560         declaration for wcwidth.
77561         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77562
77563 2006-06-28  Bruno Haible  <bruno@clisp.org>
77564
77565         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77566         (mkdir): Define using _mkdir.
77567
77568 2006-06-28  Bruno Haible  <bruno@clisp.org>
77569
77570         * lib/getaddrinfo.h: Fix POSIX URL.
77571         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77572         _WIN32.
77573         (use_win32_p): Make static.
77574         (getaddrinfo): Reject service name if it is empty or does not consist
77575         solely of decimal digits, or if its value is > 65535.
77576         (getnameinfo): Remove useless casts.
77577
77578 2006-06-27  Simon Josefsson  <jas@extundo.com>
77579
77580         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77581         Eggert and Martin Lambers.
77582
77583 2006-06-27  Simon Josefsson  <jas@extundo.com>
77584
77585         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77586         Eggert and Martin Lambers.
77587
77588 2006-06-27  Bruno Haible  <bruno@clisp.org>
77589
77590         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77591         result to 0, not to empty.
77592         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77593
77594 2006-06-27  Bruno Haible  <bruno@clisp.org>
77595
77596         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77597
77598 2006-06-26  Simon Josefsson  <jas@extundo.com>
77599
77600         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77601         present.
77602
77603 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77604
77605         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77606         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77607         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77608
77609 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77610
77611         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77612
77613 2006-06-26  Bruno Haible  <bruno@clisp.org>
77614
77615         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77616
77617 2006-06-26  Bruno Haible  <bruno@clisp.org>
77618
77619         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77620
77621 2006-06-26  Bruno Haible  <bruno@clisp.org>
77622
77623         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77624         SGI C compiler in pre-C99 mode.
77625         Suggested by Mark D. Baushke and Larry Jones.
77626
77627 2006-06-26  Bruno Haible  <bruno@clisp.org>
77628
77629         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77630         WCHAR_MAX.
77631         Reported by Mark D. Baushke and Larry Jones.
77632
77633 2006-06-26  Bruno Haible  <bruno@clisp.org>
77634
77635         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77636         in pre-C99 mode.
77637         Suggested by Mark D. Baushke and Larry Jones.
77638
77639 2006-06-23  Simon Josefsson  <jas@extundo.com>
77640             Bruno Haible  <bruno@clisp.org>
77641
77642         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77643         Emit mostlyclean-local rule.
77644         (func_emit_tests_Makefile_am): Likewise.
77645         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77646
77647 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77648
77649         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77650
77651 2006-06-23  Bruno Haible  <bruno@clisp.org>
77652
77653         * tests/test-stdint.c: Update to match ISO C 99 Technical
77654         Corrigendum 1.
77655
77656 2006-06-23  Bruno Haible  <bruno@clisp.org>
77657
77658         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77659
77660 2006-06-23  Bruno Haible  <bruno@clisp.org>
77661
77662         * lib/stdint_.h: Treat IRIX like OpenBSD.
77663
77664 2006-06-23  Bruno Haible  <bruno@clisp.org>
77665
77666         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77667         ISO C 99 Technical Corrigendum 1.
77668
77669 2006-06-22  Simon Josefsson  <jas@extundo.com>
77670
77671         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77672         MinGW.
77673
77674 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77675
77676         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77677         needed.  Some compiler complained about some of them.  Problem reported
77678         by Larry Jones in
77679         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77680
77681 2006-06-21  Simon Josefsson  <jas@extundo.com>
77682
77683         * tests/test-getaddrinfo.c: New file.
77684
77685         * modules/getaddrinfo-tests: New file.
77686
77687         * MODULES.html.sh: Add inet_pton.
77688
77689         * modules/inet_pton: New file.
77690
77691 2006-06-21  Simon Josefsson  <jas@extundo.com>
77692
77693         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77694         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77695         of using the (limited) gnulib implementation on Windows XP.
77696
77697         * m4/inet_pton.m4: New file.
77698
77699 2006-06-21  Simon Josefsson  <jas@extundo.com>
77700
77701         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77702         variable.
77703
77704         * lib/socket_.h: Don't define WINVER.
77705
77706         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77707         slightly modified to work in gnulib.
77708
77709 2006-06-21  Simon Josefsson  <jas@extundo.com>
77710
77711         * doc/gnulib.texi (Windows sockets): Add.
77712
77713 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77714
77715         * lib/read-file.c (fread_file): Start with buffer allocation of
77716         0 bytes rather than 1 byte; this simplifies the code.
77717         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77718         code to free buffer and save/restore errno.
77719         (internal_read_file): Remove unused local.
77720
77721 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77722
77723         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77724         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77725         Problem reported by Denis Excoffier in
77726         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77727
77728 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77729
77730         * modules/sys_socket, modules/socklen: Include sys/types since
77731         FreeBSD 4.x's sys/socket.h needs it.
77732
77733 2006-06-19  Simon Josefsson  <jas@extundo.com>
77734
77735         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77736
77737 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77738
77739         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77740
77741 2006-06-19  Bruno Haible  <bruno@clisp.org>
77742
77743         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77744         and FULL_PATH_INTTYPES_H in angle brackets.
77745         Reported by Mark D. Baushke <mdb@gnu.org>.
77746
77747 2006-06-17  Eric Blake  <ebb9@byu.net>
77748
77749         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77750         errno.
77751
77752 2006-06-17  Bruno Haible  <bruno@clisp.org>
77753
77754         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77755         <sys/inttypes.h>.
77756
77757 2006-06-17  Bruno Haible  <bruno@clisp.org>
77758
77759         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77760         whether errno is declared. Assume <errno.h> declares errno.
77761
77762 2006-06-17  Bruno Haible  <bruno@clisp.org>
77763
77764         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77765
77766 2006-06-17  Bruno Haible  <bruno@clisp.org>
77767
77768         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77769         problem on Solaris 2.5.1.
77770
77771 2006-06-16  Eric Blake  <ebb9@byu.net>
77772
77773         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77774         * lib/unicodeio.c [!defined errno]: Likewise.
77775         * lib/strtol.c [!defined errno]: Likewise.
77776         * lib/strtod.c [!defined errno]: Likewise.
77777
77778 2006-06-15  Eric Blake  <ebb9@byu.net>
77779
77780         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77781
77782 2006-06-15  Eric Blake  <ebb9@byu.net>
77783
77784         * config/srclist.txt (ssize_t.m4): Lose sync.
77785
77786 2006-06-15  Bruno Haible  <bruno@clisp.org>
77787
77788         * modules/stdint (Files): Include m4/full-header-path.m4,
77789         m4/size_max.m4, m4/wchar_t.m4.
77790         (Makefile.am): Many more substitutions.
77791         * modules/stdint-tests: New file.
77792         * tests/test-stdint.c: New file.
77793
77794 2006-06-15  Bruno Haible  <bruno@clisp.org>
77795
77796         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77797         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77798         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77799         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77800         gl_CHECK_TYPE_SAME): New macros.
77801
77802 2006-06-15  Bruno Haible  <bruno@clisp.org>
77803
77804         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77805
77806 2006-06-15  Bruno Haible  <bruno@clisp.org>
77807
77808         * lib/stdint_.h: Rewritten to be fully auto-configured.
77809         Fixes bug on HP-UX/IA64.
77810
77811 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77812
77813         * lib/getdate.y (__attribute__): Don't define if already defined.
77814         Problem reported by Larry Jones.
77815         * lib/utimens.c (__attribute__): Likewise.
77816
77817 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77818
77819         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77820         reported by Andreas Schwab.
77821
77822 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77823             Bruno Haible  <bruno@clisp.org>
77824
77825         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77826         check for the declaration of strnlen and a run test that exposes the
77827         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77828         rpl_strndup.
77829
77830 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77831             Bruno Haible  <bruno@clisp.org>
77832
77833         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77834
77835 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77836
77837         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77838         compile test, for Tru64 4.0D.
77839
77840 2006-05-28  Karl Berry  <karl@gnu.org>
77841
77842         * config/srclist.txt (printf-args.c): lose sync.
77843
77844 2006-05-26  Martin Lambers  <marlam@marlam.de>
77845
77846         * lib/getpass.c: Updates the test for the native W32 API, and adds
77847         missing includes, thus fixing compilation warnings.
77848
77849 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77850
77851         * lib/exclude.c (exclude_fnmatch): New function.
77852         (excluded_file_name): Call exclude_fnmatch.
77853         * lib/exclude.h (excluded_file_name): New prototype
77854
77855 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77856
77857         * lib/tempname.c (small_open, large_open): New macros.
77858         (__open, __open64) [!_LIBC]: Remove.
77859         (__gen_tempname): Use small_open and large_open instead of __open
77860         and __open64.  This fixes a portability bug on HP-UX 11.11i
77861         reported by Simon Wing-Tang in
77862         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77863
77864 2006-05-24  Bruno Haible  <bruno@clisp.org>
77865
77866         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77867         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77868         Reported by Thorsten Maerz <torte@netztorte.de> via
77869         Aaron Stone <aaron@serendipity.cx>.
77870
77871 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77872
77873         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77874         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77875         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77876         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77877         not really conditional on the cache.
77878         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77879
77880 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77881
77882         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77883         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77884         (my_usleep): Don't mishandle maximum value.
77885
77886 2006-05-19  Jim Meyering  <jim@meyering.net>
77887
77888         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77889
77890 2006-05-17  Bruno Haible  <bruno@clisp.org>
77891
77892         Cygwin portability.
77893         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77894
77895 2006-05-17  Bruno Haible  <bruno@clisp.org>
77896
77897         * lib/stdint_.h: Fix recognition of Cygwin.
77898
77899 2006-05-15  Bruno Haible  <bruno@clisp.org>
77900
77901         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77902         on libtool patch by Ralf Wildenhues.
77903
77904 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77905
77906         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77907         test for C99 conformance; (bool) 0.5 is an integer constant
77908         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77909         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77910
77911 2006-05-11  Simon Josefsson  <jas@extundo.com>
77912
77913         * m4/xvasprintf.m4: Fix obvious typo.
77914
77915 2006-05-11  Jim Meyering  <jim@meyering.net>
77916
77917         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77918         James Lemley.
77919
77920 2006-05-10  Simon Josefsson  <jas@extundo.com>
77921
77922         * lib/md4.c: Typo fix, update copyright years.
77923         (K1, K2): Don't use L because it turn computations into 64-bit on
77924         64-bit platforms.
77925
77926 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77927
77928         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77929         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77930         unwanted sign propagation, e.g., on hosts with 64-bit int.
77931         There still are some problems with reeelly weird theoretical hosts
77932         (e.g., 33-bit int) but it's not worth worrying about now.
77933         * lib/sha1.c (rol): Likewise.
77934         (K1, K2, K3, K4): Remove unnecessary L suffix.
77935
77936 2006-05-10  Bruno Haible  <bruno@clisp.org>
77937
77938         * lib/des.c: Cast to avoid warnings.
77939
77940 2006-05-09  Bruno Haible  <bruno@clisp.org>
77941
77942         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77943         (Depends-on): Depend also on xsize, stdarg.
77944         (configure.ac): Add gl_XVASPRINTF.
77945
77946 2006-05-09  Bruno Haible  <bruno@clisp.org>
77947
77948         * m4/xvasprintf.m4: New file.
77949
77950 2006-05-09  Bruno Haible  <bruno@clisp.org>
77951
77952         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77953         (EOVERFLOW): Define fallback value.
77954         (xstrcat): New function.
77955         (xvasprintf): Recognize the special case of a string concatenation.
77956
77957 2006-05-08  Eric Blake  <ebb9@byu.net>
77958
77959         * gnulib-tool (func_version): Base copyright year on CVS date.
77960         (func_emit_copyright_notice): New function.
77961         (func_emit_lib_Makefile_am): Use it.
77962         (func_emit_tests_Makefile_am): Likewise.
77963         (func_import): Likewise.
77964
77965 2006-05-08  Bruno Haible  <bruno@clisp.org>
77966
77967         * modules/stdarg: New file.
77968         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77969
77970 2006-05-08  Bruno Haible  <bruno@clisp.org>
77971
77972         * m4/stdarg.m4: New file, from GNU gettext.
77973
77974 2006-05-08  Bruno Haible  <bruno@clisp.org>
77975
77976         * config/srclist.txt (build-aux/config.rpath): different from latest
77977         release.
77978
77979 2006-05-08  Bruno Haible  <bruno@clisp.org>
77980
77981         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77982
77983 2006-05-05  Jim Meyering  <jim@meyering.net>
77984
77985         * m4/warning.m4: New file, derived from bison's file by the same name.
77986
77987 2006-05-03  Bruno Haible  <bruno@clisp.org>
77988
77989         * lib/stdint_.h: Shorter URL.
77990         * lib/inttypes.h: Likewise.
77991
77992 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77993
77994         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77995
77996 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77997
77998         * lib/verify.h: Document the internals better.  Most of this change
77999         was written by Bruno Haible.
78000
78001 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78002
78003         * doc/verify.texi: New file, partly based on a proposal by
78004         Bruno Haible.
78005
78006 2006-05-02  Bruno Haible  <bruno@clisp.org>
78007
78008         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78009         test from here...
78010         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78011
78012 2006-04-29  Bruno Haible  <bruno@clisp.org>
78013
78014         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78015         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78016
78017 2006-04-29  Bruno Haible  <bruno@clisp.org>
78018
78019         * gnulib-tool: Make --update option actually work.
78020
78021 2006-04-29  Bruno Haible  <bruno@clisp.org>
78022
78023         * doc/gcd.texi: New file.
78024         * doc/gnulib.texi: Include it.
78025
78026 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78027
78028         * lib/getdate.y (get_date): When adding relative date, start with the
78029         initial time, not with the result of the first mktime call.
78030
78031 2006-04-25  Bruno Haible  <bruno@clisp.org>
78032
78033         * gnulib-tool (func_import): Output the include directives in three
78034         blocks, sorted separately.
78035         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78036
78037 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78038
78039         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78040         to define main with arguments, for C++.  Reported by Eric Blake.
78041         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78042         Prefer 'int main ()' to 'int main (void)', for C++.
78043         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78044         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78045         for 'main', for C99 and C++.
78046
78047 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78048
78049         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78050         Don't assume that exit status -1 is valid.
78051         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78052         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78053         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78054         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78055         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78056         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78057         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78058         functions can be used without declaring them, or that you can
78059         exit with status -1.
78060         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78061
78062 2006-04-24  Karl Berry  <karl@gnu.org>
78063
78064         * config/srclist.txt (longdouble.m4): sync lost.
78065
78066 2006-04-24  Eric Blake  <ebb9@byu.net>
78067
78068         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78069
78070 2006-04-24  Bruno Haible  <bruno@clisp.org>
78071
78072         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78073         poll() implementation in AIX.
78074         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78075
78076 2006-04-24  Bruno Haible  <bruno@clisp.org>
78077
78078         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78079         assigned exactly once.
78080
78081 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78082             Bruno Haible  <bruno@clisp.org>
78083
78084         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78085         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78086         for AM_CPPFLAGS.
78087
78088 2006-04-23  Bruno Haible  <bruno@clisp.org>
78089
78090         * modules/copy-file: Depend on unistd.
78091         * modules/execute: Likewise.
78092         * modules/fatal-signal: Likewise.
78093         * modules/findprog: Likewise.
78094         * modules/mkdtemp : Likewise.
78095         * modules/pipe: Likewise.
78096         * modules/wait-process: Likewise.
78097
78098 2006-04-23  Bruno Haible  <bruno@clisp.org>
78099
78100         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78101         condition was already detected.
78102         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78103
78104 2006-04-23  Bruno Haible  <bruno@clisp.org>
78105
78106         * lib/copy-file.c: Include <unistd.h> unconditionally.
78107         * lib/execute.c: Likewise.
78108         * lib/fatal-signal.c: Likewise.
78109         * lib/findprog.c: Likewise.
78110         * lib/mkdtemp.c: Likewise.
78111         * lib/pipe.h: Likewise.
78112         * lib/pipe.c: Likewise.
78113         * lib/wait-process.h: Likewise.
78114
78115 2006-04-23  Bruno Haible  <bruno@clisp.org>
78116
78117         * gnulib-tool (func_usage): Fix --import description. Document
78118         --update.
78119         (func_import): Create temporary file in a temporary directory, if
78120         --dry-run is specified. Silence errors from 'grep' when there are no
78121         m4 files in $m4dir.
78122         (func_create_testdir): Silence errors from 'grep' when there are no
78123         m4 files in $m4dir.
78124         Reported by Karl Berry <karl@freefriends.org>.
78125
78126 2006-04-20  Bruno Haible  <bruno@clisp.org>
78127
78128         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78129         one argument, so that the code will be portable to Autoconf 2.60.
78130         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78131         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78132         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78133
78134 2006-04-19  Derek Price  <derek@ximbiot.com>
78135             Eric Blake  <ebb9@byu.net>
78136
78137         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78138         rather than "/full/path.h".  Update comment to match.  Shorten &
78139         generalize m4_translit call via AS_TR_CPP.
78140
78141 2006-04-19  Derek Price  <derek@ximbiot.com>
78142             Eric Blake  <ebb9@byu.net>
78143
78144         * lib/inttypes.h: Correct grammar in comment.
78145
78146 2006-04-18  Derek Price  <derek@ximbiot.com>
78147             Paul Eggert  <eggert@cs.ucla.edu>
78148
78149         * modules/inttypes: New file.
78150         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
78151
78152 2006-04-18  Derek Price  <derek@ximbiot.com>
78153             Paul Eggert  <eggert@cs.ucla.edu>
78154
78155         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
78156         New files.
78157
78158 2006-04-18  Derek Price  <derek@ximbiot.com>
78159             Paul Eggert  <eggert@cs.ucla.edu>
78160
78161         * lib/inttypes.h: New file.
78162         * lib/strtoimax.c: Assume <inttypes.h>.
78163
78164 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
78165
78166         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
78167         isn't mounted.  Problem reported by Kir Kolyshkin.
78168
78169 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78170
78171         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
78172         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
78173         Derek R. Price.
78174         * lib/regex.h (RE_DUP_MAX): Update comment to match current
78175         implementation.
78176
78177 2006-04-12  Eric Blake  <ebb9@byu.net>
78178
78179         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78180         is now done automatically by the corresponding Autoconf macro.
78181
78182 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78183
78184         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78185         time_r.h.
78186
78187 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78188
78189         Merge regex changes from libc, removing some of our
78190         POSIX-conformance changes that were rejected and redoing them in a
78191         less-intrusive way.
78192
78193         * lib/regcomp.c (re_compile_internal, init_dfa):
78194         Length arg is now size_t, not Idx.  All uses changed.
78195         (peek_token): Forward decl now says internal_function.
78196         (__re_error_msgid, __re_error_msgid_idx):
78197         Now static rather than extern with attribute_hidden.
78198         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78199         For some reason libc prefers K&R style defns for external functions.
78200         (regerror) [!defined _LIBC]: Likewise.
78201         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78202         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78203         (build_range_exp, build_collating_symbol):
78204         Use K&R-style defn.
78205         (re_compile_fastmap): Use '\0' to memset, not 0.
78206         (utf8_sb_map): Make the calculations more obvious.
78207         (init_dfa, parse_bracket_exp, build_charclass_op):
78208         Call calloc and cast result, as glibc does.
78209         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78210         (build_range_exp, build_collating_symbol):
78211         Now internal functions.
78212
78213         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78214
78215         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78216         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78217         Don't depend on VMS; depend on __VMS instead, for POSIX
78218         namespace cleanness.
78219         (regoff_t): Define to ssize_t, not long int.
78220
78221         Remove the REG_ macros named below.  Instead, make the old names
78222         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78223         __USE_GNU_REGEX.
78224         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78225         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78226         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78227         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78228         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78229         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78230         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78231         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78232         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78233         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78234         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78235         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78236         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78237         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78238         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78239         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
78240         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
78241         (REG_NREGS):
78242         Remove.  All uses replaced by the old RE_* names.
78243         (RE_BACKSLASH_ESCAPE_IN_LISTS):
78244         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
78245         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
78246         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
78247         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
78248         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
78249         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
78250         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
78251         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
78252         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
78253         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78254         Don't bother having these macros be independent of each others'
78255         values, since they no longer exist in the POSIX name space.
78256
78257         Rename the following member names back to their old names,
78258         unless !__USE_GNU_REGEX.  All uses changed back.
78259         (buffer): Renamed from re_buffer.
78260         (allocated): Renamed from re_allocated.
78261         (used): Renamed from re_used.
78262         (syntax): Renamed from re_syntax.
78263         (fastmap): Renamed from re_fastmap.
78264         (translate): Renamed from re_translate.
78265         (can_be_null): Renamed from re_can_be_null.
78266         (regs_allocated): Renamed from re_regs_allocated.
78267         (fastmap_accurate): Renamed from re_fastmap_accurate.
78268         (no_sub): Renamed from re_no_sub.
78269         (not_bol): Renamed from re_not_bol.
78270         (not_eol): Renamed from re_not_eol.
78271         (newline_anchor): Renamed from re_newline_anchor.
78272         (num_regs): Renamed from rm_num_regs.
78273         (start): Renamed from rm_start.
78274         (end): Renamed from rm_end.
78275
78276         (free_state): Move up a bit.
78277
78278         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78279         #define to be empty.
78280         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78281         when that is what is intended.
78282         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78283         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78284         (MAX): New macro.
78285         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78286         All uses changed back to re_malloc, etc.  It's now the caller's
78287         responsibility to check for overflow; all callers changed.
78288         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78289         (re_x2nrealloc): Remove.
78290         (free_state): Remove decl.
78291
78292         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78293         (re_set_registers, re_exec):
78294         Use K&R-style defn.
78295
78296         2006-01-31  Roland McGrath  <roland@redhat.com>
78297
78298         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78299         Reported by Mike Frysinger <vapier@gentoo.org>.
78300
78301         2006-01-15  Andreas Jaeger  <aj@suse.de>
78302
78303         [BZ #1950]
78304         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78305         build_wcs_upper_buffer change.
78306         (build_wcs_upper_buffer): Change return type.
78307
78308         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78309
78310         * lib/regex_internal.h: Include <stdint.h> if available.
78311
78312         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78313
78314         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78315
78316         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78317
78318         * lib/regcomp.c: Adjust for changed secondary hash function.
78319
78320         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78321
78322         * lib/regex.h: Pretty printing.
78323         Clean up namespace a bit.
78324
78325         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78326
78327         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78328         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78329
78330         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78331                     Ulrich Drepper  <drepper@redhat.com>
78332
78333         [BZ #1302]
78334         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78335         changed.
78336         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78337
78338         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78339
78340         [BZ #281]
78341         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78342         * lib/regcomp.c: Remove unnecessary uses of
78343         unsigned RE_TRANSLATE_TYPE.
78344         * lib/regex_internal.h: Likewise.
78345         * lib/regex_internal.c: Likewise.
78346         * lib/regexec.c: Likewise.
78347         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78348
78349         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78350
78351         * lib/regexec.c (find_recover_state): Remove unnecessary
78352         initialization.
78353         (transit_state_bkref): Make DFA a const pointer.
78354         (get_subexp): Likewise.
78355         (check_arrival): Likewise.
78356         (update_cur_sifted_state): Likewise.
78357         (re_search_internal): Likewise.
78358         (prune_impossible_nodes): Likewise.
78359         (acquire_init_state_context): Likewise.
78360         (proceed_next_node): Likewise.
78361         (set_regs): Likewise.
78362         (free_fail_stack_return): Likewise.
78363         (check_arrival_expand_ecl): Mark DFA parameter as const.
78364         (check_arrival_expand_ecl_sub): Likewise.
78365         (check_subexp_limits): Likewise.
78366         (sub_epsilon_src_nodes):  Likewise.
78367         (add_epsilon_src_nodes):  Likewise.
78368         (merge_state_array): Likewise.
78369         (update_regs): Likewise.
78370         (build_trtable): Likewise.
78371         (sift_states_backward): Mark MCTX parameter as const.
78372         (build_sifted_states): Likewise.
78373         (update_cur_sifted_state): Likewise.
78374         (sift_states_mkref): Likewise.
78375         (check_arrival_expand_ecl): Mark eclosure as const.
78376         (check_dst_limits_calc_pos_1): Likewise.
78377         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78378         pointer.
78379
78380         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78381
78382         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78383         (transit_state_sb): Likewise.
78384         (transit_state_mb): Likewise.
78385         (sift_states_iter_mb): Likewise.
78386         (check_arrival_add_next_nodes): Likewise.
78387         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78388         [_LIBC] (re_search_2_stub): Use mempcpy.
78389
78390         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78391         mbrtowc for very simple UTF-8 case.
78392
78393         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78394         a pointer-to-const.
78395         (re_acquire_state_context): Likewise.
78396         * lib/regex_internal.h: Adjust prototypes.
78397
78398         * lib/regex.c: Prevent using C++ compilers.
78399
78400         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78401         (re_acquire_state_context): Likewise.
78402
78403 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78404
78405         * modules/regex (Depends-on): Add ssize_t.
78406
78407 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78408
78409         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78410         translation table.
78411
78412 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78413
78414         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78415
78416 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78417             Bruno Haible  <bruno@clisp.org>
78418
78419         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78420         <sys/types.h> and <inttypes.h>.
78421
78422 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78423
78424         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78425         `__error_t_defined', so argp.h will not typedef the former.
78426
78427 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78428
78429         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78430         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78431         glibc names.  Even if glibc is changed to conform to POSIX, the
78432         traditional names will be available anyway, since regex depends on
78433         the extensions module.  Also, fix a longstanding typo in the
78434         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78435         reported by Emanuele Giaquinta.  Also, change sense of cached
78436         variable, so that the message makes sense.
78437
78438 2006-03-24  Simon Josefsson  <jas@extundo.com>
78439
78440         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78441         including some doc fixes.
78442         (base64_encode_alloc): Fix +1 bug on allocation failures.
78443
78444 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78445
78446         * lib/base64.c (base64_encode): Do not read past end of array with
78447         unsanitized input on systems with CHAR_BIT > 8.
78448
78449 2006-03-24  Eric Blake  <ebb9@byu.net>
78450
78451         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78452
78453 2006-03-22  Karl Berry  <karl@gnu.org>
78454
78455         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78456         * config/srclistvars.sh (COREUTILS): new var.
78457
78458 2006-03-17  Jim Meyering  <jim@meyering.net>
78459
78460         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78461         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78462
78463 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78464
78465         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78466         no longer needs it.  Instead, check that regoff_t is as least
78467         as wide as ptrdiff_t.
78468
78469         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78470         so that our regex.h stays compatible with the installed regex.
78471         This is helpful for installers who configure --without-included-regex.
78472         Problem reported by Emanuele Giaquinta.
78473
78474 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78475
78476         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78477         Typedef to long int, not to off_, as POSIX will likely change
78478         in that direction.
78479
78480 2006-03-15  Eric Blake  <ebb9@byu.net>
78481
78482         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78483
78484 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78485
78486         * lib/argp-help.c (validate_uparams): Fix typo
78487         * lib/argp-parse.c (argp_default_options): Consistently begin help
78488         messages with a lowercase letter.
78489
78490 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78491
78492         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78493         overrun buffers and shouldn't be used (much as gets shouldn't be
78494         used).
78495         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78496
78497 2006-03-08  Simon Josefsson  <jas@extundo.com>
78498
78499         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78500         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78501
78502 2006-03-08  Simon Josefsson  <jas@extundo.com>
78503
78504         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78505         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78506
78507 2006-03-08  Simon Josefsson  <jas@extundo.com>
78508
78509         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78510         signal that configure disabled the device.
78511
78512 2006-03-08  Simon Josefsson  <jas@extundo.com>
78513
78514         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78515         languages.
78516
78517 2006-03-07  Simon Josefsson  <jas@extundo.com>
78518
78519         * modules/getopt (Depends-on): Add unistd.
78520
78521         * modules/unistd: New file.
78522
78523 2006-03-07  Simon Josefsson  <jas@extundo.com>
78524
78525         * modules/gc-random: New file.
78526
78527 2006-03-07  Simon Josefsson  <jas@extundo.com>
78528
78529         * m4/unistd_h.m4: New file.
78530
78531 2006-03-07  Simon Josefsson  <jas@extundo.com>
78532
78533         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78534         test to be side-effect free by storing the result in the cache
78535         variable gl_cv_lib_readline, and moving the assignment of
78536         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78537         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78538
78539 2006-03-07  Simon Josefsson  <jas@extundo.com>
78540
78541         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78542         error on missing devices (the functions will return an error).
78543
78544         * m4/gc.m4: Move random stuff to gc-random.m4
78545
78546 2006-03-07  Simon Josefsson  <jas@extundo.com>
78547
78548         * lib/unistd_.h: New file.
78549
78550 2006-03-07  Simon Josefsson  <jas@extundo.com>
78551
78552         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78553
78554 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78555
78556         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78557         Problem reported by Juan Manuel Guerrero.
78558
78559 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78560
78561         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78562         the unistd module.
78563         * lib/getlogin_r.c: Likewise.
78564         * lib/getlogin_r.h: Likewise.
78565         * lib/glob.c: Likewise.
78566         * lib/pagealign_alloc.c: Likewise.
78567         * lib/unistd_.h: Remove; no longer needed.
78568
78569 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78570
78571         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78572         Add unistd.
78573         * modules/c-stack (Depends-on): Add unistd.
78574         * modules/getlogin_r: Likewise.
78575         * modules/glob: Likewise.
78576         * modules/pagealign_alloc: Likewise.
78577         * modules/unistd (Files): Remove lib/unistd_.h.
78578         (EXTRA_DIST): Remove.
78579         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78580         need unistd_.h.
78581         (MOSTLYCLEANFILES): Remove unistd.h-t.
78582
78583 2006-03-03  Simon Josefsson  <jas@extundo.com>
78584
78585         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78586
78587 2006-03-03  Simon Josefsson  <jas@extundo.com>
78588
78589         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78590         libidn and bison.
78591
78592 2006-03-03  Simon Josefsson  <jas@extundo.com>
78593
78594         * build-aux/maint.mk: Add indent target.
78595
78596 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78597
78598         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78599         our replacement poll.h in any case, to avoid a differing
78600         declaration from a system header.  Seen on AIX.
78601
78602 2006-03-01  Simon Josefsson  <jas@extundo.com>
78603
78604         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78605         <kasal@ucw.cz>.
78606
78607 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78608
78609         * modules/gettime (Depends-on): Add extensions module.
78610         * modules/nanosleep (Depends-on): Likewise.
78611         * modules/settime (Depends-on): Likewise.
78612
78613 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78614
78615         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78616         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78617         pedantically.
78618         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78619         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78620
78621         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78622         not "==".  Reported by Ralf Wildenhues.
78623
78624 2006-03-01  Karl Berry  <karl@gnu.org>
78625
78626         * doc/Copyright/request-*: new files, synced from gnuorg.
78627
78628 2006-03-01  Karl Berry  <karl@gnu.org>
78629
78630         * config/srclist.txt (Copyright/*): new entries.
78631
78632 2006-02-28  Simon Josefsson  <jas@extundo.com>
78633
78634         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78635
78636 2006-02-27  Simon Josefsson  <jas@extundo.com>
78637
78638         * lib/base64.h: Indent #define's.  From Jim Meyering
78639         <jim@meyering.net>.
78640
78641 2006-02-27  Jim Meyering  <jim@meyering.net>
78642
78643         Revert the change of 2006-02-24, so these files can continue
78644         to be sync'd from gettext.
78645         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78646         of `config.h'.
78647
78648 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78649
78650         * modules/intprops: New file.
78651         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78652         Add intprops.
78653         * modules/getloadavg (Files): Remove lib/intprops.h.
78654         (Depends-on): Add intprops.
78655         * modules/human: Likewise.
78656         * modules/inttostr: Likewise.
78657         * modules/openat: Likewise.
78658         * modules/sig2str: Likewise.
78659         * modules/userspec: Likewise.
78660         * modules/utimecmp: Likewise.
78661         * modules/xnanosleep: Likewise.
78662         * modules/xstrtol: Likewise.
78663
78664 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78665
78666         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78667         * modules/lock-tests (TESTS): Use $(EXEEXT).
78668         * modules/tls-tests: Likewise.
78669         * modules/argp-tests: Likewise.
78670         (check_PROGRAMS): New var, replacing...
78671         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78672
78673 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78674
78675         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78676         `config.h'.
78677
78678 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78679
78680         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78681
78682 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78683
78684         Sync from coreutils.
78685         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78686         gl_CHDIR_SAFER.
78687
78688 2006-02-22  Jim Meyering  <jim@meyering.net>
78689
78690         Sync from coreutils.
78691         * m4/chdir-safer.m4: New file.
78692
78693 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78694
78695         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78696         AT_FDCWD exceeds INT_MAX.
78697         * lib/openat.h (AT_FDCWD): Likewise.
78698
78699 2006-02-17  Eric Blake  <address@hidden>
78700
78701         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78702
78703 2006-02-16  Simon Josefsson  <jas@extundo.com>
78704
78705         * modules/getaddrinfo (Depends-on): Add sys_socket.
78706
78707 2006-02-15  Simon Josefsson  <jas@extundo.com>
78708
78709         * build-aux/maint.mk: Add dsyntax-check rule.
78710
78711 2006-02-15  Eric Blake  <ebb9@byu.net>
78712
78713         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78714         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78715         'present but cannot compile' warnings on cygwin.
78716         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78717         use ws2tcpip.h if sys/socket.h works.
78718         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78719         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78720
78721 2006-02-14  Simon Josefsson  <jas@extundo.com>
78722
78723         * modules/maintainer-makefile (Files): Rename.
78724
78725         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78726         and (the local) Makefile.cfg to maint-cfg.mk.
78727
78728         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78729         to the latter.
78730
78731         * modules/maintainer-makefile: New module.
78732
78733         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78734         severaly stripped to make it possible to build it up from scratch
78735         with reliable tests.
78736
78737         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78738         fixes to permit overriding the default actions when configure and
78739         makefile are not available.
78740
78741 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78742
78743         Sync from coreutils.
78744         * modules/lstat (Depends-on): Don't depend on xalloc.
78745         (License): Change from GPL to LGPL, since this is now simply a
78746         replacement for a libc function.
78747
78748 2006-02-14  Jim Meyering  <jim@meyering.net>
78749
78750         Sync from coreutils.
78751
78752         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78753         failure on deficient systems, and simplify gnulib lgpl dependencies.
78754         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78755         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78756
78757         * lib/xalloc-die.c: Remove unused definition of N_.
78758
78759 2006-02-14  Jim Meyering  <jim@meyering.net>
78760
78761         Sync from coreutils.
78762         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78763         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78764         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78765         double-quote uses of that variable, to accommodate the rare case in
78766         which getmntent is available in none of the libraries checked.  This
78767         happens at least on FreeBSD 5.0.
78768
78769 2006-02-13  Simon Josefsson  <jas@extundo.com>
78770
78771         * gnulib-tool (Usage): Fix --import, from
78772         karl@freefriends.org (Karl Berry).
78773
78774 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78775
78776         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78777
78778 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78779
78780         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78781         "autoupdate" on 2005-12-12.
78782
78783 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78784
78785         * modules/closeout (Depends-on): Remove atexit.
78786
78787 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78788
78789         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78790         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78791
78792 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78793
78794         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78795         __EXTENSIONS__ if this causes compilation to fail.  Problem
78796         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78797         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78798
78799 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78800
78801         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78802         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78803         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78804         All uses changed.
78805
78806 2006-01-26  Simon Josefsson  <jas@extundo.com>
78807
78808         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78809         prototype is visible on mingw32.
78810
78811         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78812         for mingw32.
78813
78814         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78815         mingw32).
78816
78817 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78818
78819         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78820         attempt to open for write; this always fails, at least on POSIX
78821         hosts.  This reinstates the 2006-01-09 change, which was
78822         inadvertently removed.
78823
78824 2006-01-26  Bruno Haible  <bruno@clisp.org>
78825
78826         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78827         Reported by Paul Eggert.
78828
78829 2006-01-26  Bruno Haible  <bruno@clisp.org>
78830             Paul Eggert  <eggert@cs.ucla.edu>
78831
78832         * lib/stdbool_.h (_Bool)
78833         [(! (defined __cplusplus || defined __BEOS__)
78834           && !defined __GNUC__
78835           && !(defined __HP_cc || defined __xlc__
78836                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78837                || defined __sgi))]:
78838         #define to signed char in these cases too; this simplifies
78839         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78840         etc., separately) and makes it more conservative.
78841
78842 2006-01-25  Simon Josefsson  <jas@extundo.com>
78843
78844         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78845         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78846         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78847
78848 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78849
78850         * lib/argp-namefrob.h: Bugfix. Remove stray #
78851
78852 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78853
78854         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78855         so that we test the test.
78856         Check for yet another HP-UX cc bug involving *bool |= bool.
78857
78858 2006-01-25  Karl Berry  <karl@gnu.org>
78859
78860         * config/srclist.txt (vasnprintf.c): sync lost.
78861
78862 2006-01-25  Jim Meyering  <jim@meyering.net>
78863
78864         Sync from the stable (b5) branch of coreutils:
78865
78866         * lib/fts.c (fts_children): Don't let close() clobber errno from
78867         failed fchdir().
78868
78869         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78870         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78871         a dangling symlink.  That can also happen at least for ELOOP.
78872         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78873         FYI, this bug predates the inclusion of fts.c in coreutils.
78874
78875         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78876         in their own block, so pre-c99 compilers don't object.
78877
78878         Avoid the double-free (first in fts_read, second in fts_close) that
78879         would occur when an `active' directory is made inaccessible (e.g.,
78880         via chmod a-x) during a traversal.
78881         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78882         before returning.  Reproduce this failure by
78883         mkdir -p a/b; cd a; chmod a-x . b
78884         Reported by Stavros Passas.
78885
78886 2006-01-25  Jim Meyering  <jim@meyering.net>
78887
78888         * lib/fileblocks.c: Remove more useless parentheses.
78889         * lib/readutmp.h: Likewise.
78890
78891 2006-01-25  Bruno Haible  <bruno@clisp.org>
78892
78893         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78894         warnings.
78895         Reported by Paul Eggert.
78896
78897 2006-01-25  Bruno Haible  <bruno@clisp.org>
78898
78899         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78900         rid of a trap command. For Solaris sh.
78901         Reported by Mark D. Baushke <mdb@gnu.org>.
78902
78903 2006-01-24  Simon Josefsson  <jas@extundo.com>
78904
78905         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78906         Bruno.
78907
78908 2006-01-24  Karl Berry  <karl@gnu.org>
78909
78910         * config/srclist.txt (argp-namefrob.h): sync lost.
78911
78912 2006-01-24  Jim Meyering  <jim@meyering.net>
78913
78914         * modules/openat (Files): Add lib/intprops.h.
78915         From Mark D. Baushke.
78916
78917 2006-01-24  Jim Meyering  <jim@meyering.net>
78918
78919         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78920         Reported by Mark D. Baushke.
78921
78922 2006-01-24  Jim Meyering  <jim@meyering.net>
78923
78924         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78925
78926 2006-01-24  Bruno Haible  <bruno@clisp.org>
78927
78928         * modules/strnlen (Maintainer): Change from glibc to all.
78929
78930 2006-01-24  Bruno Haible  <bruno@clisp.org>
78931
78932         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78933         Patch by Paul Eggert.
78934
78935 2006-01-24  Bruno Haible  <bruno@clisp.org>
78936
78937         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78938         already has it.
78939         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78940         2005-11-26.
78941
78942         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78943         'signed char' to avoid problems with the built-in _Bool type.
78944         Reported by Paul Eggert on 2005-11-26.
78945
78946 2006-01-24  Bruno Haible  <bruno@clisp.org>
78947
78948         * gnulib-tool (func_import): Avoid constructing complicated sed
78949         expressions inside backquote.
78950         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78951
78952 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78953
78954         These changes imported from libc.
78955         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78956         test and two separate function calls.
78957         * lib/strndup.c (__strndup): Add libc_hidden_def.
78958
78959 2006-01-23  Simon Josefsson  <jas@extundo.com>
78960
78961         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78962         Remove the test_*_SOURCES variable: automake infers it by default.
78963         * modules/tls-tests: Likewise.
78964
78965 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78966
78967         Work around porting bugs reported by Dieter in
78968         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78969         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78970         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78971         Include "getopt.h" first, to check interface.
78972         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78973         !HAVE_DECL_GETENV.
78974         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78975         (__strndup): Revert to K&R-style function dfns, the glibc style.
78976         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78977         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78978         Include strnlen.h first, to get prototype properly.
78979         (strnlen): Renamed from __strnlen.
78980         Remove weak alias.
78981
78982 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78983
78984         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78985
78986 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78987
78988         * config/srclist.txt: Adjust to reflect glibc reorganization.
78989         This affects only comments.
78990
78991 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78992
78993          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78994          Reported by Bruce Korb <bkorb@gnu.org>.
78995
78996 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78997
78998         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78999         to pacify gcc -Wswitch-default.
79000
79001 2006-01-22  Bruno Haible  <bruno@clisp.org>
79002
79003         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
79004         temporary buffer for sprintf, take into account the precision also
79005         for 'd', 'i', 'u', 'o', 'x', 'X'.
79006
79007 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79008
79009         * modules/argp-tests: New module
79010         * tests/test-argp.c: New file
79011         * tests/test-argp-2.sh: New file
79012
79013 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79014
79015         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79016         (__argp_base_name): Removed
79017         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79018         typo.
79019         (__argp_base_name): Provide macro definition or extern declaration
79020         depending on the configuration
79021
79022 2006-01-20  Simon Josefsson  <jas@extundo.com>
79023
79024         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79025
79026 2006-01-20  Simon Josefsson  <jas@extundo.com>
79027
79028         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79029
79030 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79031
79032         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79033         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79034         Suggested by Bruno Haible.
79035
79036 2006-01-20  Karl Berry  <karl@gnu.org>
79037
79038         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79039         until changes propagate, I guess.
79040
79041 2006-01-19  Simon Josefsson  <jas@extundo.com>
79042
79043         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79044
79045 2006-01-19  Simon Josefsson  <jas@extundo.com>
79046
79047         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79048
79049 2006-01-19  Simon Josefsson  <jas@extundo.com>
79050
79051         * gnulib-tool: Set check_PROGRAMS.
79052
79053         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79054         modules/des-tests, modules/gc-arcfour-tests,
79055         modules/gc-arctwo-tests, modules/gc-des-tests,
79056         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79057         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79058         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79059         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79060         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79061         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79062         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79063         test_*_SOURCES.
79064
79065 2006-01-18  Simon Josefsson  <jas@extundo.com>
79066
79067         * modules/socklen (Depends-on): Depend on sys_socket.
79068
79069 2006-01-18  Simon Josefsson  <jas@extundo.com>
79070
79071         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79072         modules/des-tests, modules/gc-arcfour-tests,
79073         modules/gc-arctwo-tests, modules/gc-des-tests,
79074         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79075         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79076         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79077         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79078         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79079         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79080         $(EXEEXT) to automake TESTS variable, for mingw32.
79081
79082 2006-01-17  Simon Josefsson  <jas@extundo.com>
79083
79084         * modules/socklen (Include): Need sys/socket.h.
79085
79086 2006-01-17  Bruno Haible  <bruno@clisp.org>
79087
79088         * modules/ssize_t (Include): Add <sys/types.h>.
79089
79090 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79091
79092         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79093         it's not portable and it doesn't work with cross-compiles.
79094         Problem reported by Bruno Haible.  Fix missing-$ typo in
79095         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79096         -zignore from being used with Sun's C compiler.
79097
79098 2006-01-12  Simon Josefsson  <jas@extundo.com>
79099
79100         * lib/base64.c: Fix warning, reported by Bruno Haible
79101         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79102
79103 2006-01-12  Bruno Haible  <bruno@clisp.org>
79104
79105         * modules/ldd: New file.
79106         * build-aux/ldd.sh.in: New file.
79107         * MODULES.html.sh (Support for building libraries and executables): Add
79108         ldd.
79109
79110 2006-01-12  Bruno Haible  <bruno@clisp.org>
79111
79112         * m4/ldd.m4: New file.
79113
79114 2006-01-12  Bruno Haible  <bruno@clisp.org>
79115
79116         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79117         endless loop while replacing $auxdir with build-aux.
79118
79119 2006-01-11  Simon Josefsson  <jas@extundo.com>
79120
79121         * lib/stdint_.h (SIZE_MAX): Add missing (.
79122
79123 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79124
79125         Sync from coreutils.
79126         * lib/md5.c: Fix commentary typos.
79127         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79128         * lib/md5.h (__attribute__): Remove; unused.
79129         * lib/sha1.c: Fix commentary to match md5 better.
79130         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79131         so that we don't need to worry about alignment.  All uses changed.
79132         This merges the 2005-10-28 md5 change into sha1.
79133
79134 2006-01-11  Jim Meyering  <jim@meyering.net>
79135
79136         Sync from coreutils.
79137         * lib/md5.c (OP): Fix spacing.
79138
79139 2006-01-11  Bruno Haible  <bruno@clisp.org>
79140
79141         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79142         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
79143         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
79144
79145 2006-01-11  Bruno Haible  <bruno@clisp.org>
79146
79147         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79148         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
79149         the "early" section as well.
79150
79151 2006-01-11  Bruno Haible  <bruno@clisp.org>
79152
79153         Avoid "ar: no archive members specified" error on MacOS X.
79154         * gnulib-tool (func_modules_add_dummy): New function.
79155         (func_import, func_create_testdir): Invoke it.
79156
79157 2006-01-11  Bruno Haible  <bruno@clisp.org>
79158
79159         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
79160         with $auxdir in AC_CONFIG_FILES statements.
79161
79162 2006-01-11  Bruno Haible  <bruno@clisp.org>
79163
79164         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79165         Initialize also noinst_HEADERS to empty.
79166
79167 2006-01-11  Bruno Haible  <bruno@clisp.org>
79168
79169         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
79170         variables.
79171         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
79172         autoreconf.
79173
79174 2006-01-11  Bruno Haible  <bruno@clisp.org>
79175
79176         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
79177         overridable by the user.
79178         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79179
79180 2006-01-10  Simon Josefsson  <jas@extundo.com>
79181
79182         * modules/sys_socket: New file.
79183
79184 2006-01-10  Simon Josefsson  <jas@extundo.com>
79185
79186         * m4/sys_socket_h.m4: New file.
79187
79188 2006-01-10  Simon Josefsson  <jas@extundo.com>
79189
79190         * lib/socket_.h: New file.
79191
79192 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79193
79194         * modules/readutmp (Maintainer): Add myself.
79195
79196 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79197
79198         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79199         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79200         People who are still concerned with buggy memcmp implementations
79201         can invoke gl_FUNC_MEMCMP themselves.
79202
79203 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79204
79205         * lib/regex_internal.h (BITSET_WORD_BITS):
79206         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79207         preprocessor mishandles large unsigned values as if they were signed.
79208         Problem reported by Claudio Fontana in
79209         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79210
79211 2006-01-10  Jim Meyering  <jim@meyering.net>
79212
79213         Avoid the double-free (first in fts_read, second in fts_close) that
79214         would occur when an `active' directory is made inaccessible (e.g.,
79215         via chmod a-x) during a traversal.
79216         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79217         before returning.  Reproduce this failure by
79218         mkdir -p a/b; cd a; chmod a-x . b
79219         Reported by Stavros Passas.
79220
79221         Sync from coreutils.
79222         * lib/sha1.c: Tweak grammar in a comment.
79223
79224 2006-01-10  Jim Meyering  <jim@meyering.net>
79225
79226         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79227         Patch by Joerg Sonnenberger.
79228
79229 2006-01-10  Bruno Haible  <bruno@clisp.org>
79230
79231         * modules/readutmp: Depend on module free.
79232         * modules/strtok_r: Depend on module restrict.
79233
79234 2006-01-10  Bruno Haible  <bruno@clisp.org>
79235
79236         * modules/gettext (configure.ac): Add an invocation of
79237         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79238
79239 2006-01-10  Bruno Haible  <bruno@clisp.org>
79240
79241         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
79242         Reported by Werner Lemberg <wl@gnu.org>.
79243
79244 2006-01-10  Bruno Haible  <bruno@clisp.org>
79245
79246         * lib/localcharset.c: Update from GNU gettext.
79247
79248 2006-01-10  Bruno Haible  <bruno@clisp.org>
79249
79250         * lib/argp.h (__const): Remove macro. Use const instead.
79251         * lib/argp-fmtstream.h (__const): Likewise.
79252         * lib/glob_.h (__const): Remove macro.
79253         * lib/glob-libc.h: Use const instead of __const.
79254
79255 2006-01-10  Bruno Haible  <bruno@clisp.org>
79256
79257         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79258         variable.
79259         Needed to avoid an automake error regarding the 'gettext' module.
79260
79261 2006-01-09  Simon Josefsson  <jas@extundo.com>
79262
79263         * modules/inet_ntop (Depends-on): Add restrict.
79264
79265 2006-01-09  Simon Josefsson  <jas@extundo.com>
79266
79267         * modules/gc-rijndael-tests (License): Put under LGPL.
79268
79269         * modules/gc-des-tests (License): Likewise.
79270
79271         * modules/gc-arcfour-tests (License): Likewise.
79272
79273         * modules/gc-arctwo-tests (License): Likewise.
79274
79275         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79276
79277         * modules/gc-hmac-sha1-tests (Files): Likewise.
79278
79279         * modules/gc-hmac-md5-tests (License): Likewise.
79280
79281         * modules/gc-sha1-tests (License): Likewise.
79282
79283         * modules/gc-md5-tests (License): Likewise.
79284
79285         * modules/gc-md4-tests (License): Likewise.
79286
79287         * modules/gc-md2-tests (License): Likewise.
79288
79289         * modules/gc-tests (License): Likewise.
79290
79291         * modules/des-tests (License): Likewise.
79292
79293         * modules/md4-tests (License): Likewise.
79294
79295         * modules/md2-tests (License): Likewise.
79296
79297 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79298
79299         Sync from coreutils:
79300
79301         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79302         * modules/lib-ignore: New file.
79303         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79304         chdir-safer.m4, lchmod.m4.
79305         * modules/openat: Add mkdirat.c, openat-priv.h.
79306
79307 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79308
79309         Sync from coreutils.
79310         * m4/lib-ignore.m4: New file.
79311         * m4/lchmod.m4: New file.
79312
79313 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79314
79315         Sync from coreutils.
79316         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79317         for write access: POSIX says that must fail.
79318         * lib/fts.c (diropen): Likewise.
79319         * lib/save-cwd.c (save_cwd): Likewise.
79320         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79321         well, for minor improvements on hosts that lack O_DIRECTORY.
79322         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79323         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79324         Fall back on chown if open failed with EACCES.
79325
79326         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79327         Report an error at compile-time if only a 1-second nominal clock
79328         resolution is found.
79329
79330         * lib/lchmod.h: New file.
79331         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79332         (make_dir_parents): Use lchown rather than chown, and
79333         lchmod rather than chmod.
79334
79335         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79336         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79337         "proc" reported by n0dalus.
79338
79339         * lib/mountlist.c: Include <limits.h>.
79340         (dev_from_mount_options)
79341         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79342         New function.  It no longer assumes "dev=" has the System V meaning
79343         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79344         (read_file_system_list)
79345         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79346         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79347         dev= in that case.
79348
79349         * lib/posixtm.h (PDS_PRE_2000): New macro.
79350         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79351         allow_century.  All usages changed.  Reject dates outside the range
79352         1969-1999 if PDS_PRE_2000 is used.
79353
79354 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79355
79356         Sync from coreutils.
79357         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79358         (Time of day items): Mention the possibility of leap seconds.
79359         Problem reported by Dr. David Alan Gilbert.
79360
79361 2006-01-09  Jim Meyering  <jim@meyering.net>
79362
79363         Sync from coreutils.
79364
79365         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79366
79367         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79368
79369         * lib/modechange.c (mode_compile): Reject an invalid mode string
79370         that starts with an octal digit.  From Andreas Gruenbacher.
79371
79372         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79373         and dup to open_safer and dup_safer, respectively.
79374         (openat_permissive): Fix typo in comment.
79375
79376         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79377         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79378         (_): Remove; no longer needed.
79379         (openat): Renamed from rpl_openat; no need for rpl_openat
79380         since openat.h renames openat for us.
79381         Replace most of the body with a call to openat_permissive,
79382         to avoid duplicate code.
79383         Port to (probably hypothetical) environments were mode_t is
79384         wider than int.
79385         (openat_permissive): Require mode arg, so that we can check
79386         types better.  Put it just after flags.  Change cwd failure
79387         indicator from pointer-to-bool to pointer-to-errno-value.
79388         All callers changed.
79389         Invoke openat_save_fail and/or openat_restore_fail if
79390         cwd_errno is null, so that openat can call us.
79391         (openat_permissive, fdopendir, fstatat, unlinkat):
79392         Simplify errno handling to avoid some duplicate code,
79393         as it's OK to set errno on success.
79394         * lib/openat.h: Revamp code so that function macros depend on
79395         __OPENAT_PREFIX only, not also on AT_FDCWD.
79396         (openat_ro): Remove.  Caller changed to use openat_permissive.
79397         (openat_permissive): Now a macro, if not a function.
79398         (openat_restore_fail, openat_save_fail): Now always functions,
79399         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79400
79401         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79402         and openat.c.
79403         * lib/mkdirat.c: Include openat-priv.h.
79404         Remove definitions of macros defined therein.
79405         * lib/openat.c: Likewise.
79406
79407         * lib/mkdirat.c (mkdirat): New file and function.
79408         * lib/openat.h (mkdirat): Declare.
79409
79410         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79411
79412         * lib/openat.h (openat_permissive): Declare.
79413         (openat_ro): Define.
79414
79415         * lib/openat.c (EXPECTED_ERRNO): New macro.
79416         (openat_permissive): New function -- used in remove.c rewrite.
79417         (all functions): Set errno just before returning, only if there
79418         was an actual failure.
79419         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79420
79421         Emulate openat-family functions using Linux's procfs, if possible.
79422         Idea and some code based on Ulrich Drepper's glibc changes.
79423
79424         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79425         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79426         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79427         before falling back on save_cwd and restore_cwd.
79428         (fdopendir, fstatat, unlinkat): Likewise.
79429
79430         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79431         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79432
79433         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79434         as second argument to va_arg.  Otherwise, some versions of gcc
79435         warn that `if this code is reached, the program will abort'.
79436
79437 2006-01-09  Jim Meyering  <jim@meyering.net>
79438
79439         Sync from coreutils.
79440         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79441         Require openat-priv.h.
79442
79443 2006-01-09  Bruno Haible  <bruno@clisp.org>
79444
79445         * modules/strnlen (Include): Use strnlen.h.
79446
79447 2006-01-09  Bruno Haible  <bruno@clisp.org>
79448
79449         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79450
79451 2006-01-09  Bruno Haible  <bruno@clisp.org>
79452
79453         * lib/sysexit_.h (EX_OK): New macro.
79454         Suggested by Martin Lambers <marlam@marlam.de>.
79455
79456 2006-01-09  Bruno Haible  <bruno@clisp.org>
79457
79458         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79459         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79460
79461 2006-01-09  Bruno Haible  <bruno@clisp.org>
79462
79463         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79464         numbers.
79465
79466 2006-01-09  Bruno Haible  <bruno@clisp.org>
79467
79468         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79469         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79470         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79471         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79472
79473 2006-01-09  Bruno Haible  <bruno@clisp.org>
79474
79475         * build-aux/javacomp.sh.in: New file, moved from lib/.
79476         * modules/javacomp-script (Files): Update.
79477         (configure.ac): Add AC_CONFIG_FILES invocation.
79478         (EXTRA_DIST): Remove variable.
79479
79480         * build-aux/javaexec.sh.in: New file, moved from lib/.
79481         * modules/javaexec (Files): Update.
79482         (configure.ac): Add AC_CONFIG_FILES invocation.
79483         (EXTRA_DIST): Remove javaexec.sh.in.
79484
79485         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79486         * modules/csharpcomp-script (Files): Update.
79487         (configure.ac): Add AC_CONFIG_FILES invocation.
79488         (EXTRA_DIST): Remove variable.
79489
79490         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79491         * modules/csharpexec (Files): Update.
79492         (configure.ac): Add AC_CONFIG_FILES invocation.
79493         (EXTRA_DIST): Remove csharpexec.sh.in.
79494
79495 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79496
79497         Sync from coreutils.
79498
79499         Add POSIX ACL support
79500         * lib/acl.h (copy_acl, set_acl): Add declarations.
79501         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79502         systems other than Linux.
79503         (chmod_or_fchmod): New function: use fchmod when possible,
79504         and chmod otherwise.
79505         (file_has_acl): Add a POSIX ACL implementation, with a
79506         Linux-specific subcase.
79507         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79508         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79509         acls are unsupported.
79510         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79511         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79512         are unsupported.
79513
79514 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79515
79516         Sync from coreutils.
79517         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79518
79519 2006-01-07  Bruno Haible  <bruno@clisp.org>
79520
79521         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79522         gl_EARLY.
79523
79524 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79525
79526         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79527         Problem reported for Mingw by Mark Junker.
79528
79529 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79530
79531         * README: Gnulib normally doesn't generate a tarball.
79532
79533 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79534
79535         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79536         long int, not int, for nanosecond counts, so that people who are
79537         used to POSIX struct timespec won't be surprised.  Reported by Jim
79538         Meyering.
79539
79540 2005-12-28  Bruno Haible  <bruno@clisp.org>
79541
79542         * build-aux/config.rpath: Update from GNU gettext.
79543
79544 2005-12-16  Jim Meyering  <jim@meyering.net>
79545
79546         * modules/fprintftime: New module.
79547         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79548
79549 2005-12-16  Jim Meyering  <jim@meyering.net>
79550
79551         * m4/fprintftime.m4: New file.
79552
79553 2005-12-16  Jim Meyering  <jim@meyering.net>
79554
79555         * lib/fprintftime.c, lib/fprintftime.h: New files.
79556
79557 2005-12-15  Simon Josefsson  <jas@extundo.com>
79558
79559         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79560         new m4/socklen.m4.
79561
79562 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79563
79564         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79565         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79566
79567 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79568
79569         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79570         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79571         struct uparams is valid. Fall back to the default values if it is
79572         not.
79573
79574 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79575
79576         * modules/argp (Files): Add argp-pin.c
79577         (Depends-on): dirname
79578         (lib_SOURCES): Add argp-pin.c
79579
79580 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79581
79582         * m4/argp.m4:  Check if program_invocation_name and
79583         program_invocation_short_name are declared and define appropriate
79584         macros if they are not.
79585
79586 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79587
79588         * lib/argp-help.c (__argp_base_name): New function
79589         (__argp_short_program_name): Rewrite using __argp_base_name
79590         * lib/argp-namefrob.h: Define program_invocation_name and
79591         program_invocation_short_name if requested
79592         (__argp_base_name): Add prototype
79593         * lib/argp-parse.c (argp_def): Use gettext wrappers
79594         (argp_default_parser): Use __argp_base_name
79595         * lib/argp-pin.c: New file. Defines program_invocation_name and
79596         program_invocation_short_name on systems that lack them.
79597
79598 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79599
79600         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79601         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79602         porting problem reported by Georg Schwarz in
79603         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79604
79605 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79606
79607         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79608         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79609         porting problem reported by Georg Schwarz in
79610         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79611
79612 2005-12-05  Bruno Haible  <bruno@clisp.org>
79613
79614         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79615         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79616         Reported by Mark Junker <mjscod@gmx.de>.
79617
79618 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79619
79620         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79621         Use implementation from Albert Chin, with some
79622         comments/corrections by Stepan Kasal and myself.
79623
79624 2005-12-02  Bruno Haible  <bruno@clisp.org>
79625
79626         * gnulib-tool (func_import): Accept GPLed build tool modules when
79627         --lgpl is given.
79628         * modules/csharpcomp-script: New file.
79629         * modules/csharpcomp: Depend on it.
79630         * modules/javacomp-script: New file.
79631         * modules/javacomp: Depend on it.
79632         Suggested by Simon Josefsson.
79633
79634 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79635
79636         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79637         statement, to work around an HP-UX 10.20 compiler bug reported by
79638         Peter O'Gorman.
79639
79640 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79641
79642         * modules/savedir (Depends-on): Add openat.
79643
79644 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79645
79646         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79647         (uintmax_t) [defined uintmax_t]: Do not declare.
79648         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79649         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79650         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79651         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79652         sake of portability to weird hosts that C allows (though we don't
79653         know of any practical examples).
79654
79655         * lib/savedir.h (fdsavedir): New decl.
79656         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79657         contains most of the former guts of savedir.
79658         (savedir): Use savedirstream.
79659         Include "openat.h".
79660
79661 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79662
79663         * modules/obstack (Files): Add m4/ulonglong.m4.
79664         Problem reported by Davide Angelocola.
79665
79666 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79667
79668         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79669         coreutils no longer futzes with rounding modes.
79670
79671 2005-11-14  Jim Meyering  <jim@meyering.net>
79672
79673         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79674         replacement of mkstemp.
79675
79676 2005-11-10  Simon Josefsson  <jas@extundo.com>
79677
79678         * lib/readline.c: Remove EOL.
79679
79680 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79681
79682         * modules/gethrxtime (Depends-on): Add gettime.
79683
79684 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79685
79686         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79687         or gettimeofday; no longer needed.
79688
79689 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79690
79691         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79692         time business.
79693         (gethrxtime) [! (HAVE_NANOUPTIME
79694         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79695         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79696         our own approximation.
79697
79698 2005-11-08  Eric Blake  <ebb9@byu.net>
79699
79700         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79701
79702 2005-11-08  Eric Blake  <ebb9@byu.net>
79703
79704         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79705
79706 2005-11-04  Bruno Haible  <bruno@clisp.org>
79707
79708         * gnulib-tool: Implement --update mode.
79709
79710 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79711
79712         Fix porting problem reported by Theodoros V. Kalamatianos.
79713         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79714         Don't assume that futimes failing means we must fail.
79715
79716 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79717
79718         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79719         variables to suggest the intended function of the PATH_MAX check.
79720
79721 2005-10-30  Kean Johnston  <jkj@sco.com>
79722
79723         Trivial changes to support SCO systems.
79724         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79725         as PATH_MAX.
79726         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79727         where __ptr is null when no I/O is pending.
79728
79729 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79730
79731         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79732         leave errno alone.  Problem reported by Dmitry V. Levin.
79733
79734 2005-10-28  Simon Josefsson  <jas@extundo.com>
79735
79736         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79737         Test more.
79738
79739         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79740
79741         * modules/md2, modules/md2-tests: New files.
79742
79743 2005-10-28  Simon Josefsson  <jas@extundo.com>
79744
79745         * m4/inet_ntop.m4: More tests.
79746
79747         * m4/gc-md2.m4, md2.m4: New file.
79748
79749 2005-10-28  Simon Josefsson  <jas@extundo.com>
79750
79751         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79752         "restrict" keywords, as per POSIX.  Protect the function
79753         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79754         Don't use K&R prototypes.  Check the sprintf return values.
79755         Re-define EAFNOSUPPORT if not present.  Indent.
79756
79757         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79758         suggested by Bruno Haible <bruno@clisp.org>.
79759
79760         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79761
79762         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79763
79764         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79765         libgcrypt).
79766
79767         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79768
79769         * lib/md2.h, lib/md2.c: New files.
79770
79771 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79772
79773         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79774         errno alone.  Problem reported by Frederic Jolliton.
79775
79776 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79777
79778         * modules/verify (License): Change from GPL to LGPL.  This is a
79779         tiny module and there are apparently near-equivalents that are
79780         under the BSD license.
79781
79782 2005-10-24  Simon Josefsson  <jas@extundo.com>
79783
79784         * modules/sha1: Relicense to LGPL.
79785
79786 2005-10-24  Simon Josefsson  <jas@extundo.com>
79787
79788         * lib/md4.h: Shrink buffer size, now that we changed the type.
79789
79790 2005-10-23  Simon Josefsson  <jas@extundo.com>
79791
79792         * gnulib-tool (func_import): Fix --tests-base.
79793
79794 2005-10-22  Simon Josefsson  <jas@extundo.com>
79795
79796         * modules/arcfour (Depends-on): Need stdint.
79797
79798 2005-10-22  Simon Josefsson  <jas@extundo.com>
79799
79800         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79801         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79802
79803 2005-10-22  Simon Josefsson  <jas@extundo.com>
79804
79805         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79806         suggested by Bruno Haible <bruno@clisp.org>.
79807
79808 2005-10-22  Simon Josefsson  <jas@extundo.com>
79809
79810         * lib/crc.h: Include stddef.h, for size_t.
79811
79812 2005-10-22  Simon Josefsson  <jas@extundo.com>
79813
79814         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79815         arcfour_context struct (simplify test vector testing in GNU
79816         Shishi).
79817
79818 2005-10-21  Simon Josefsson  <jas@extundo.com>
79819
79820         * modules/des, modules/des-tests: New files.
79821
79822         * modules/gc-des, modules/gc-des-tests: New files.
79823
79824         * tests/test-des.c, tests/test-gc-des.c: New file.
79825
79826 2005-10-21  Simon Josefsson  <jas@extundo.com>
79827
79828         * modules/arctwo, modules/arctwo-tests: New files.
79829
79830         * tests/test-arctwo.c: New file.
79831
79832         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79833
79834         * tests/test-gc-arctwo.c: New file.
79835
79836 2005-10-21  Simon Josefsson  <jas@extundo.com>
79837
79838         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79839         Bruno Haible <bruno@clisp.org>.
79840
79841         * m4/gc-des.m4: New file.
79842
79843 2005-10-21  Simon Josefsson  <jas@extundo.com>
79844
79845         * m4/arctwo.m4: New file.
79846
79847         * m4/gc-arctwo.m4: New file.
79848
79849 2005-10-21  Simon Josefsson  <jas@extundo.com>
79850
79851         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79852         block.
79853
79854 2005-10-21  Simon Josefsson  <jas@extundo.com>
79855
79856         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79857         <bruno@clisp.org>.
79858
79859         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79860
79861         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79862         Bruno Haible <bruno@clisp.org>.
79863
79864         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79865         <bruno@clisp.org>.
79866
79867 2005-10-21  Simon Josefsson  <jas@extundo.com>
79868
79869         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79870
79871 2005-10-21  Simon Josefsson  <jas@extundo.com>
79872
79873         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79874
79875 2005-10-21  Simon Josefsson  <jas@extundo.com>
79876
79877         * lib/des.h, lib/des.c: New files.
79878
79879         * lib/gc-gnulib.c: Support DES.c
79880
79881 2005-10-21  Simon Josefsson  <jas@extundo.com>
79882
79883         * lib/arctwo.h, lib/arctwo.c: New files.
79884
79885         * lib/gc-gnulib.c: Support ARCTWO.
79886
79887 2005-10-21  Simon Josefsson  <jas@extundo.com>
79888
79889         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79890         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79891
79892 2005-10-21  Simon Josefsson  <jas@extundo.com>
79893
79894         * gnulib-tool (func_import, func_create_testdir): Define automake
79895         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79896         Makefile.am snippet),
79897         suggested by Bruno Haible <bruno@clisp.org>.
79898
79899         * modules/gc (Makefile.am): Use it.
79900
79901 2005-10-21  Bruno Haible  <bruno@clisp.org>
79902
79903         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79904         patch.
79905
79906 2005-10-19  Simon Josefsson  <jas@extundo.com>
79907
79908         * tests/test-gc-rijndael.c: New file.
79909
79910         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79911
79912 2005-10-19  Simon Josefsson  <jas@extundo.com>
79913
79914         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79915         interface too.
79916
79917 2005-10-19  Simon Josefsson  <jas@extundo.com>
79918
79919         * tests/test-gc-arcfour.c: New file.
79920
79921         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79922
79923 2005-10-19  Simon Josefsson  <jas@extundo.com>
79924
79925         * modules/gc-md4, modules/gc-md4-tests: New file.
79926
79927         * tests/test-gc-md4.c: New file.
79928
79929 2005-10-19  Simon Josefsson  <jas@extundo.com>
79930
79931         * m4/gc-md4.m4: New file.
79932
79933 2005-10-19  Simon Josefsson  <jas@extundo.com>
79934
79935         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79936         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79937         <kasal@ucw.cz>.
79938
79939 2005-10-19  Simon Josefsson  <jas@extundo.com>
79940
79941         * m4/gc-arcfour.m4: New file.
79942
79943         * m4/gc-rijndael.m4: New file.
79944
79945 2005-10-19  Simon Josefsson  <jas@extundo.com>
79946
79947         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79948
79949 2005-10-19  Simon Josefsson  <jas@extundo.com>
79950
79951         * lib/gc-gnulib.c: Support ARCFOUR.
79952
79953 2005-10-19  Simon Josefsson  <jas@extundo.com>
79954
79955         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79956         support.
79957
79958         * lib/gc.h: Add ECB enum type.
79959
79960         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79961
79962 2005-10-18  Simon Josefsson  <jas@extundo.com>
79963
79964         * tests/test-md5.c: New file.
79965
79966         * modules/md5-tests: New file.
79967
79968 2005-10-18  Simon Josefsson  <jas@extundo.com>
79969
79970         * tests/test-md4.c: New file.
79971
79972         * modules/md4, modules/md4-tests: New files.
79973
79974 2005-10-18  Simon Josefsson  <jas@extundo.com>
79975
79976         * m4/md4.m4: New file.
79977
79978 2005-10-18  Simon Josefsson  <jas@extundo.com>
79979
79980         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79981
79982 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79983
79984         * gnulib-tool (func_create_testdir): Omit the second check whether
79985         BUILT_SOURCES in nonempty.
79986
79987 2005-10-17  Simon Josefsson  <jas@extundo.com>
79988
79989         * tests/test-rijndael.c: New file.
79990
79991 2005-10-17  Simon Josefsson  <jas@extundo.com>
79992
79993         * modules/sha1: Depend on stdint instead of md5.
79994
79995         * modules/md5: Depend on stdint, remove uint32_t.
79996
79997 2005-10-17  Simon Josefsson  <jas@extundo.com>
79998
79999         * modules/gc-sha1-tests: New file.
80000
80001         * tests/test-gc-sha1.c: New file.
80002
80003 2005-10-17  Simon Josefsson  <jas@extundo.com>
80004
80005         * m4/md5.m4: Remove call to uint32_t.m4.
80006
80007 2005-10-17  Simon Josefsson  <jas@extundo.com>
80008
80009         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80010
80011         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80012         md5.h.
80013
80014         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80015
80016         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80017
80018 2005-10-17  Simon Josefsson  <jas@extundo.com>
80019
80020         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80021
80022 2005-10-17  Simon Josefsson  <jas@extundo.com>
80023
80024         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80025
80026 2005-10-17  Simon Josefsson  <jas@extundo.com>
80027
80028         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80029
80030         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80031
80032 2005-10-17  Bruno Haible  <bruno@clisp.org>
80033
80034         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80035         that it can also be used in a test.
80036
80037 2005-10-16  Bruno Haible  <bruno@clisp.org>
80038
80039         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80040         TESTS_ENVIRONMENT, so that individual tests can augment it.
80041
80042         * gnulib-tool (func_create_testdir): Use an intermediate target for
80043         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80044         macros, like $(ALLOCA_H), which cannot be passed through the command
80045         line.
80046
80047 2005-10-15  Simon Josefsson  <jas@extundo.com>
80048
80049         * modules/rijndael-tests: New file.
80050
80051         * modules/rijndael: New file.
80052
80053 2005-10-15  Simon Josefsson  <jas@extundo.com>
80054
80055         * m4/rijndael.m4: New file.
80056
80057 2005-10-15  Simon Josefsson  <jas@extundo.com>
80058
80059         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80060
80061         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80062
80063 2005-10-14  Simon Josefsson  <jas@extundo.com>
80064
80065         * tests/test-arcfour.c: New file.
80066
80067         * modules/arcfour, modules/arcfour-tests: New files.
80068
80069 2005-10-14  Simon Josefsson  <jas@extundo.com>
80070
80071         * m4/arcfour.m4: New file.
80072
80073 2005-10-14  Simon Josefsson  <jas@extundo.com>
80074
80075         * lib/arcfour.h, lib/arcfour.c: New files.
80076
80077 2005-10-14  Roland McGrath  <roland@redhat.com>
80078
80079         Import from libc.  [BZ #1331]
80080         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80081         macro argument.
80082         Reported by Matej Vela <vela@debian.org>.
80083
80084 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80085
80086         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80087         include <wchar.h>; no longer needed.
80088
80089 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80090
80091         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80092
80093 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80094         and  Ulrich Drepper  <drepper@redhat.com>
80095
80096         Import from libc.
80097         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80098         instead of inline stream orientation test and two separate
80099         function calls.  Pay no attention to USE_IN_LIBIO.
80100
80101 2005-10-13  Simon Josefsson  <jas@extundo.com>
80102
80103         * modules/gc-hmac-md5-tests: New file.
80104
80105         * tests/test-gc-hmac-sha1.c: New file.
80106
80107         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80108
80109         * modules/gc-hmac-md5-tests: New file.
80110
80111         * tests/test-gc-md5.c: New file.
80112
80113         * modules/gc-md5-tests: New file.
80114
80115 2005-10-13  Simon Josefsson  <jas@extundo.com>
80116
80117         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80118         Move memory allocation outside of loop.
80119
80120 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80121
80122         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80123         intermediate directory is in a read-only file system.  Problem
80124         reported by Eric Blake.
80125
80126 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80127
80128         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80129
80130 2005-10-12  Simon Josefsson  <jas@extundo.com>
80131
80132         * tests/test-hmac-sha1.c: New file.
80133
80134         * modules/hmac-sha1-tests: New file.
80135
80136         * modules/hmac-sha1: New file.
80137
80138 2005-10-12  Simon Josefsson  <jas@extundo.com>
80139
80140         * modules/gc-sha1: New file.
80141
80142 2005-10-12  Simon Josefsson  <jas@extundo.com>
80143
80144         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
80145
80146         * tests/test-gc-pbkdf2-sha1.c: New file.
80147
80148 2005-10-12  Simon Josefsson  <jas@extundo.com>
80149
80150         * modules/gc-md5, modules/gc-hmac-md5: New files.
80151
80152         * modules/gc (Files): Remove md5, memxor and hmac files.
80153
80154 2005-10-12  Simon Josefsson  <jas@extundo.com>
80155
80156         * m4/gc-pbkdf2-sha1.m4: New file.
80157
80158         * m4/gc-hmac-sha1.m4: New file.
80159
80160         * m4/gc-sha1: New file.
80161
80162         * m4/hmac-sha1.m4: New file.
80163
80164 2005-10-12  Simon Josefsson  <jas@extundo.com>
80165
80166         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
80167
80168         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
80169
80170 2005-10-12  Simon Josefsson  <jas@extundo.com>
80171
80172         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
80173         suggested by Bruno Haible <bruno@clisp.org>.
80174
80175 2005-10-12  Simon Josefsson  <jas@extundo.com>
80176
80177         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
80178
80179 2005-10-12  Simon Josefsson  <jas@extundo.com>
80180
80181         * lib/gc-pbkdf2-sha1.c: New file.
80182
80183         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80184
80185 2005-10-12  Simon Josefsson  <jas@extundo.com>
80186
80187         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80188
80189         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80190
80191 2005-10-12  Simon Josefsson  <jas@extundo.com>
80192
80193         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80194         GC_USE_HMAC_MD5, respectively.
80195
80196         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80197         (gc_md5): Fix typo.
80198
80199         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80200
80201         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80202
80203         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80204
80205 2005-10-12  Bruno Haible  <bruno@clisp.org>
80206
80207         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80208         Reported by Stepan Kasal <kasal@ucw.cz>.
80209
80210 2005-10-11  Simon Josefsson  <jas@extundo.com>
80211
80212         * tests/test-crc.c: New file.
80213
80214         * modules/crc, modules/crc-tests: New files.
80215
80216 2005-10-11  Simon Josefsson  <jas@extundo.com>
80217
80218         * m4/crc.m4: New file.
80219
80220 2005-10-11  Simon Josefsson  <jas@extundo.com>
80221
80222         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80223
80224         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80225
80226         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80227
80228 2005-10-11  Simon Josefsson  <jas@extundo.com>
80229
80230         * lib/crc.h, lib/crc.c: New files.
80231
80232         * lib/gc.h (gc_hash_buffer): Add doc.
80233
80234 2005-10-11  Bruno Haible  <bruno@clisp.org>
80235
80236         * modules/c-strcasestr: New file.
80237         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80238
80239 2005-10-11  Bruno Haible  <bruno@clisp.org>
80240
80241         * modules/c-strcase: New file.
80242         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
80243
80244 2005-10-11  Bruno Haible  <bruno@clisp.org>
80245
80246         * lib/strcasecmp.c: Include limits.h.
80247         (strcasecmp): Avoid integer overflow on exotic platforms.
80248         * lib/strncasecmp.c: Include limits.h.
80249         (strncasecmp): Avoid integer overflow on exotic platforms.
80250         Reported by Paul Eggert.
80251
80252 2005-10-11  Bruno Haible  <bruno@clisp.org>
80253
80254         * lib/c-strcasestr.h: New file, from GNU gettext.
80255         * lib/c-strcasestr.c: New file, from GNU gettext.
80256
80257 2005-10-11  Bruno Haible  <bruno@clisp.org>
80258
80259         * lib/c-strcase.h: New file, from GNU gettext.
80260         * lib/c-strcasecmp.c: New file, from GNU gettext.
80261         * lib/c-strncasecmp.c: New file, from GNU gettext.
80262
80263 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80264
80265         * modules/mempcpy (License): GPL -> LGPL.
80266         * modules/strchrnul (License): Likewise.
80267         * modules/sysexits (License): Likewise.
80268
80269 2005-10-08  Simon Josefsson  <jas@extundo.com>
80270
80271         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80272
80273 2005-10-07  Simon Josefsson  <jas@extundo.com>
80274
80275         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80276
80277 2005-10-06  Simon Josefsson  <jas@extundo.com>
80278
80279         * tests/test-hmac-md5.c: New file.
80280
80281         * modules/hmac-md5-tests: New file.
80282
80283         * modules/hmac-md5: New file.
80284
80285 2005-10-06  Simon Josefsson  <jas@extundo.com>
80286
80287         * m4/hmac-md5.m4: New file.
80288
80289         * m4/memxor.m4: Require gl_C_RESTRICT.
80290
80291 2005-10-06  Simon Josefsson  <jas@extundo.com>
80292
80293         * lib/memxor.c (memxor): Avoid casts and warnings.
80294
80295 2005-10-06  Simon Josefsson  <jas@extundo.com>
80296
80297         * lib/hmac-md5.c: New file.
80298
80299         * lib/hmac.h: New file.
80300
80301 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80302
80303         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80304         promotes to int, not unsigned int, to catch the AIX 5.3
80305         compiler bug.
80306
80307 2005-10-05  Simon Josefsson  <jas@extundo.com>
80308
80309         * modules/memxor: New file.
80310
80311         * modules/iconv (Files): Move config.rpath to havelib, it is used
80312         there.
80313
80314         * modules/havelib (Files): Add config.rpath.
80315
80316 2005-10-05  Simon Josefsson  <jas@extundo.com>
80317
80318         * m4/memxor.m4: New file.
80319
80320 2005-10-05  Simon Josefsson  <jas@extundo.com>
80321
80322         * lib/memxor.c (memxor): Fix compiler error.
80323
80324         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80325         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80326
80327         * lib/memxor.h, lib/memxor.c: New files.
80328
80329         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80330         we assume all systems have it, suggested by Jim Meyering
80331         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80332         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80333         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80334         same reasons.
80335
80336 2005-10-05  Simon Josefsson  <jas@extundo.com>
80337
80338         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80339
80340 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80341
80342         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80343         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80344         needed, since the source code now assumes these .h files.
80345
80346 2005-10-05  Derek Price  <derek@ximbiot.com>
80347
80348         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80349
80350 2005-10-05  Bruno Haible  <bruno@clisp.org>
80351
80352         * modules/stdint (License): Change to LGPL.
80353
80354 2005-10-04  Simon Josefsson  <jas@extundo.com>
80355
80356         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80357         D. Baushke" <mdb@gnu.org>.
80358
80359 2005-10-04  Bruno Haible  <bruno@clisp.org>
80360
80361         * lib/verify.h (verify_true): Provide alternative definition for C++.
80362
80363 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80364
80365         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80366         (SSIZE_MAX): New macro, if not already defined.
80367         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80368         than 2 GiB.
80369
80370 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80371
80372         Sync from coreutils.
80373         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80374         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80375         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80376         ULLONG_MAX doesn't work with 2.7.2.1.
80377
80378 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80379
80380         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80381         From Ben Pfaff.
80382
80383         * modules/exclude (Depends-on): Depend on verify.
80384         * modules/strtoimax (Depends-on): Likewise.
80385         * modules/utimecmp (Depends-on): Likewise.
80386
80387 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80388
80389         * lib/exclude.c: Include verify.h.
80390         (verify): Remove.  All callers changed to use verify.h's version.
80391         * lib/strtoimax.c: Likewise.
80392         * lib/utimecmp.c: Likewis.e
80393
80394         Sync from coreutils.
80395         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80396         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80397         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80398         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80399         bother returning ENOSYS if settimeofday or stime fails; just let
80400         them return whatever errno they want to return.
80401         * lib/utimens.c: Include unistd.h, for dup2.
80402         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80403         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80404
80405 2005-10-02  Jim Meyering  <jim@meyering.net>
80406
80407         Sync from coreutils.
80408         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80409         from glibc-2.2.5 that fails for read-only files.
80410
80411 2005-10-02  Jim Meyering  <jim@meyering.net>
80412
80413         Sync from coreutils.
80414         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80415         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80416         `#if HAVE_CONFIG_H'.
80417         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80418         Remove AT_FDCWD test.
80419         Do not consume the fd unless successful.
80420         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80421         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80422         block, so that we don't even try to compile it if settimeofday is
80423         available.  This works around a compilation failure on OSF1 V5.1,
80424         due to stime requiring a `long int*' while tv_sec is `int'.
80425
80426 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80427
80428         Sync from coreutils.
80429         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80430         against `yes', rather than just testing for nonempty.
80431
80432 2005-10-01  Simon Josefsson  <jas@extundo.com>
80433
80434         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80435         and Darwin.
80436
80437         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80438         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80439         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80440         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80441         Check if struct addrinfo is declared.
80442
80443 2005-10-01  Simon Josefsson  <jas@extundo.com>
80444
80445         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80446         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80447         AI_* and EAI_* definitions.  Protect function declarations.
80448
80449 2005-10-01  Jim Meyering  <jim@meyering.net>
80450
80451         Sync from coreutils.
80452
80453         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80454         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80455         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80456         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80457         in the inet and nsl libraries.  Required on Solaris 5.7.
80458
80459 2005-10-01  Jim Meyering  <jim@meyering.net>
80460
80461         Sync from coreutils.
80462         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80463         in the inet and nsl libraries.  Required on Solaris 5.7.
80464
80465 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80466
80467         * lib/getdelim.c (getdelim): Remove unused variables.
80468
80469 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80470
80471         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80472         so that the code works even with ancient cpp.  Portability problem
80473         with GCC 2.7.2.1 reported by Thomas M.Ott.
80474
80475 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80476
80477         * modules/regex (Depends-on): Add strcase.
80478
80479         * modules/gethostname (Licence): Change from GPL to LGPL, since
80480         gethostname.c is a trivial implementation of a standard library
80481         function.
80482         * modules/poll (License): Change from GPL to LGPL, since it's
80483         derived from LGPL code.
80484
80485 2005-09-27  Jim Meyering  <jim@meyering.net>
80486
80487         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80488         HAVE_CONFIG_H.
80489
80490         * lib/intprops.h (signed_type_or_expr__): Define.
80491         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80492         for unsigned types.
80493
80494 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80495
80496         * lib/verify.h (verify_expr): Remove, replacing with:
80497         (verify_true): New macro that returns true instead of void.
80498         (verify_type__): Remove.
80499         (verify): Use verify_true rather than verify_type__.
80500
80501 2005-09-26  Bruno Haible  <bruno@clisp.org>
80502
80503         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80504         is necessary.
80505         (lib_SOURCES): Remove mbchar.c.
80506         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80507         (Files): Add m4/mbrtowc.m4.
80508         * modules/mbiter: Likewise.
80509         * modules/mbuiter: Likewise.
80510
80511 2005-09-26  Bruno Haible  <bruno@clisp.org>
80512
80513         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80514         compile mbchar.c if they are not both present.
80515         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80516         * m4/mbiter.m4 (gl_MBITER): Likewise.
80517         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80518         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80519         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80520
80521 2005-09-25  Jim Meyering  <jim@meyering.net>
80522
80523         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80524         also uses socklen_t.
80525
80526 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80527
80528         * lib/utimens.c (ENOSYS): Define if not already defined.
80529         (futimens): Support having a null PATH if the file descriptor
80530         is nonnegative.
80531
80532         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80533         Remove.
80534         (__attribute): Define to empty unless GCC 3.1 or later.
80535         This works around a core dump on OpenBSD 3.4, which has GCC
80536         2.95.3, which dumps core when given __attribute__(()).  It also
80537         simplifies other tests, since we really don't want to bother with
80538         worrying about which ancient version of GCC supported what.
80539         Original problem reported by Yoann Vandoorselaere, with part of
80540         the fix suggested by Derek Price.
80541
80542 2005-09-24  Jim Meyering  <jim@meyering.net>
80543
80544         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80545         so we can once again use a positive bitfield width of 1 -- now we
80546         don't have to explain why we were using a bitfield width of 2.
80547
80548 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80549
80550         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80551         and similarly for the other external symbols.  Problem reported
80552         by James Gallager.
80553
80554         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80555         bug reported by Jim Meyering.
80556
80557         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80558         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80559         not needed, since socklen is a prerequisite module.
80560
80561 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80562
80563         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80564         Problem reported by Eric Blake.
80565         (getaddrinfo): Initialize se so that it's not garbage.
80566         Redo internal storage allocation so that it doesn't make unportable
80567         assumptions about alignment.
80568         Fix a memory leak.
80569
80570         * lib/utimens.c (futimens): Use futimesat if available.
80571         Prefer it to futimes since it doesn't have the futimes bug.
80572
80573         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80574         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80575         Instead, declare a function that returns a pointer to an array,
80576         and use verify_type__ to declare the size of the array.
80577         Problem and germ of a solution reported by Bruno Haible.
80578         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80579         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80580
80581 2005-09-23  Jim Meyering  <jim@meyering.net>
80582
80583         Sync from coreutils.
80584         Correct build failure (socklen_t not defined) on at least
80585         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80586         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80587
80588 2005-09-23  Jim Meyering  <jim@meyering.net>
80589
80590         * modules/getaddrinfo (Depends-on): Add socklen.
80591
80592 2005-09-23  Bruno Haible  <bruno@clisp.org>
80593
80594         * tests/test-verify.c: New file.
80595
80596 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80597
80598         Sync from coreutils.
80599
80600         * modules/argmatch (Depends-on): Add verify.
80601         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80602         unistd-safer.
80603         * modules/save-cwd (Depends-on): Likewise.
80604
80605         * modules/openat (Files): Add lib/openat-die.c.
80606         (Depends-on): Remove error, exitfail.
80607         Add dirname.
80608
80609         * modules/verify: New file.
80610         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80611         with "verify" module.
80612
80613 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80614
80615         Sync from coreutils.
80616
80617         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80618         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80619         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80620         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80621         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80622         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80623         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80624         Don't bother checking for string.h, stdlib.h, unistd.h.
80625         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80626         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80627         module's job.
80628         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80629         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80630
80631         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80632         (gl_GETDATE): Use it.
80633
80634         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80635
80636 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80637
80638         Sync from coreutils.
80639
80640         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80641         stat-time.h.
80642         * lib/argmatch.h: Include verify.h
80643         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80644         (ARGMATCH_ASSERT): Remove; unused.
80645         * lib/canonicalize.c: Assume STDC_HEADERS.
80646         * lib/exclude.c: Include "strcase.h".
80647         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80648         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80649         and stdio-safer.h.
80650         (getusershell): Call fopen, not fopen_safer.
80651         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80652         Do not include unistd-safer.h.
80653         (save_cwd): Don't call fd_safer; no longer needed
80654         now that we include fcntl--.h.
80655
80656         * lib/getdate.y (relative_time): New type.
80657         (RELATIVE_TIME_0): New constant.
80658         (parser_control): Use relative_time instead of doing it ourselves.
80659         (%union): Add new relative_time rel member.
80660         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80661         Now typeless.
80662         (relunit, relunit_snumber): Now of type rel.
80663         (zone, rel, relunit, get_date): Adjust to above changes.
80664
80665         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80666         Do not include unistd-safer.h.
80667         (getloadavg): Don't call fd_safer; no longer needed
80668         now that we include fcntl--.h.
80669
80670         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80671         (make_dir_parents): Treat ENOSYS like EEXIST.
80672
80673         Improve quality of diagnostics on restore_cwd failure.
80674         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80675         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80676         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80677         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80678         each time through the loop.  Do not diagnose restore_cwd failure;
80679         that is the caller's job (and perhaps the caller does not care).
80680
80681         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80682         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80683         If the file already exists but is not a directory, don't bother
80684         to try to make its parents.
80685         Close potential file descriptor leak if we can't chdir("/") (!).
80686         Don't always return true if chdir($PWD) fails; return true only
80687         if the requested action was done successfully (except for the
80688         chdir($PWD)).
80689         Don't log final directory unless we actually made it.
80690         Refactor to avoid duplicate code to fix up permissions.
80691         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80692
80693         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80694         to make it a bit faster and (I hope) clearer.
80695         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80696         Fix bug in formats like %2N.
80697
80698         * lib/verify.h: New file.
80699
80700 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80701
80702         Sync from coreutils.
80703         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80704
80705 2005-09-22  Jim Meyering  <jim@meyering.net>
80706
80707         Sync from coreutils.
80708
80709         * m4/lstat.m4 (gl_FUNC_LSTAT):
80710         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80711         Remove obsolete comment.
80712         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80713         * m4/xstrtod.m4: Likewise.
80714
80715         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80716
80717 2005-09-22  Jim Meyering  <jim@meyering.net>
80718
80719         Sync from coreutils.
80720
80721         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80722
80723         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80724         the .tm_year member, since otherwise gcc-4.0 would now warn about
80725         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80726
80727         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80728         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80729
80730         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80731         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80732         when run in a time zone for which daylight savings time is in effect
80733         for the starting date.
80734
80735         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80736         stop us from restricting permissions of just-created absolute-named
80737         directories.
80738         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80739         to restore initial working directory.
80740         * lib/mkdir-p.c (make_dir_parents): New parameter:
80741         different_working_dir, to tell caller if/when we change the working
80742         directory and are unable to return to the initial one.
80743         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80744         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80745         `return false'.  This fixes a bug introduced on 2004-07-30.
80746
80747         * lib/openat.c (fdopendir): Be sure to close the supplied
80748         file descriptor before returning.  This makes our replacement
80749         implementation a little closer to Solaris's, where fdopendir
80750         ties the file descriptor to the returned DIR* pointer.
80751         * lib/openat.c (unlinkat): New function.
80752         * lib/openat.h (unlinkat): Add prototype.
80753         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80754         (openat_restore_fail): Rename from openat_restore_die.
80755         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80756
80757         Provide an alternative to exiting immediately upon save_cwd or
80758         restore_cwd failure.  Now, an application can arrange e.g.,
80759         to perform a longjump in that case.
80760         * lib/openat.c: Include dirname.h.
80761         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80762         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80763         and openat_restore_die rather than calling error directly.
80764         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80765
80766         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80767         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80768         define.
80769
80770         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80771         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80772                             int utc, int nanoseconds);
80773         Background:
80774         date should not have to allocate a megabyte of virtual memory to
80775         handle a format argument like +%1048575T.  When implemented with
80776         strftime, it must allocate such a buffer, use strftime to fill it
80777         in, print it, then free it.
80778         With fprintftime, it simply prints everything and exits.
80779         With no need for memory allocation, that's one fewer way to fail.
80780         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80781         optional field width, not before, so we accept %9:z, not %:9z.
80782         (my_strftime): Be sure to use L_('x') for literals.
80783
80784         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80785         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80786         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80787         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80788         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80789         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80790         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80791         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80792         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80793         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80794         * lib/xgethostname.c, lib/xreadlink.c:
80795         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80796
80797         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80798         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80799         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80800         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80801         and don't include <sys/file.h>).
80802
80803 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80804
80805         Sync from coreutils.
80806
80807         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80808         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80809         [!LDAV_DONE]: Avoid unused variable warning.
80810
80811 2005-09-21  Bruno Haible  <bruno@clisp.org>
80812
80813         * lib/unicodeio.h (unicode_to_mb): New declaration.
80814
80815 2005-09-20  Derek Price  <derek@ximbiot.com>
80816
80817         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80818         getaddrinfo.h.
80819
80820 2005-09-20  Bruno Haible  <bruno@clisp.org>
80821
80822         * gnulib-tool: Remove trailing slashes from the values specified for
80823         --source-base, --m4-base, --tests-base, --aux-dir.
80824         Suggested by Simon Josefsson <jas@extundo.com>.
80825
80826 2005-09-20  Bruno Haible  <bruno@clisp.org>
80827
80828         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80829         func_modules_to_filelist, func_import, func_create_testdir): Make all
80830         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80831         change when gnulib-tool is invoked in a different locale.
80832
80833 2005-09-19  Simon Josefsson  <jas@extundo.com>
80834
80835         * m4/socklen.m4: Fix typo.
80836
80837 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80838
80839         Use a consistent style for including <config.h>.
80840         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80841         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80842         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80843         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80844         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80845         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80846         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80847         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80848         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80849         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80850         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80851         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80852         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80853         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80854         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80855         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80856         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80857         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80858         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80859         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80860         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80861         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80862         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80863         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80864         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80865         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80866         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80867         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80868         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80869         lib/xstrtoumax.c, lib/yesno.c:
80870         Standardize inclusion of config.h.
80871         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80872         lib/inttostr.h:  Removed inclusion of config.h from header files.
80873         * lib/inttostr.c:  Adjusted in-tree users.
80874         * lib/timespec.h: Remove superfluous warning to include config.h.
80875         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80876         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80877         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80878         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80879         config.h with HAVE_CONFIG_H.
80880
80881 2005-09-19  Jim Meyering  <jim@meyering.net>
80882
80883         * modules/pathmax (License): Change to LGPL.
80884
80885 2005-09-19  Derek Price  <derek@ximbiot.com>
80886
80887         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80888
80889 2005-09-19  Bruno Haible  <bruno@clisp.org>
80890
80891         * gnulib-tool (import): Provide default for --tests-base.
80892
80893 2005-09-19  Bruno Haible  <bruno@clisp.org>
80894
80895         * doc/quote.texi: New file, extracted from gnulib.texi.
80896         * doc/ctime.texi: New file, extracted from gnulib.texi.
80897         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80898         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80899         * doc/gnulib.texi: Include them.
80900
80901 2005-09-18  Bruno Haible  <bruno@clisp.org>
80902
80903         Portability fix.
80904         * gnulib-tool (func_readlink): New function.
80905         (func_ln_if_changed): Use it.
80906
80907 2005-09-18  Bruno Haible  <bruno@clisp.org>
80908
80909         * gnulib-tool: Support --with-tests also with --import.
80910         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80911         (func_import): Use variables $testsbase and $inctests. Emit a
80912         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80913         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80914         SUBDIRS += $testsdir.
80915         (func_create_testdir): Update.
80916
80917 2005-09-18  Bruno Haible  <bruno@clisp.org>
80918
80919         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80920         instead of $dry_run.
80921         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80922         (func_ln_if_changed): Don't handle dry-run here.
80923         (func_import): In dry-run mode, detect more precisely which actions
80924         would be performed, and don't use "...ing" verbs.
80925
80926 2005-09-18  Bruno Haible  <bruno@clisp.org>
80927
80928         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80929         (func_import): Use join on two temporary files instead of three nested
80930         loops, in order to determine which files are new or old.
80931
80932 2005-09-18  Bruno Haible  <bruno@clisp.org>
80933
80934         * gnulib-tool (func_import): Comment out code that spits out the
80935         new files with --dry-run.
80936
80937 2005-09-18  Bruno Haible  <bruno@clisp.org>
80938
80939         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80940
80941 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80942
80943         * lib/stat-time.h: New file.
80944         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80945         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80946         in a different way.
80947         (timespec_cmp): New function.
80948         * lib/utimecmp.c: Include stat-time.h.
80949         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80950         members exist, not on the obsolescent ST_MTIM_NSEC.
80951         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80952
80953 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80954
80955         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80956
80957 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80958
80959         * MODULES.html.sh (File system functions): Add stat-time.
80960         * modules/stat-time: New file.
80961         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80962         is now done in a different way, by the stat-time module.
80963         * modules/utimecmp (Depends-on): Add stat-time.
80964
80965 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80966
80967         * m4/st_mtim.m4: Remove.  Superseded by...
80968         * m4/stat-time.m4: New file.
80969         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80970         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80971
80972 2005-09-15  Derek Price  <derek@ximbiot.com>
80973
80974         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80975
80976 2005-09-15  Derek Price  <derek@ximbiot.com>
80977
80978         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80979         * lib/regex_internal.c: Ditto, using this...
80980         (__GNUC_PREREQ): ...new macro.
80981         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80982         using...
80983         (__GNUC_PREREQ): ...this new macro.
80984
80985         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80986
80987 2005-09-15  Derek Price  <derek@ximbiot.com>
80988             Paul Eggert  <eggert@cs.ucla.edu>
80989
80990         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80991         changes, consolidating in...
80992         * lib/regex_internal.h: ...this file.
80993
80994 2005-09-13  Jim Meyering  <jim@meyering.net>
80995
80996         * lib/canon-host.c: Filter through gnu indent and reword comments
80997         slightly.
80998         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80999
81000 2005-09-13  Derek Price  <derek@ximbiot.com>
81001
81002         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
81003         failure.
81004         Reported by Jim Meyering  <jim@meyering.net>.
81005
81006 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81007
81008         * lib/base64.c: Typo.
81009         (base64_encode): Put b64str in initialized data section.
81010
81011 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81012
81013         Merge glibc and coreutils changes into gnulib, plus a few
81014         extra fixes.
81015         * lib/md5.c: Use #error rather than a string.
81016         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81017         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81018         (__attribute__): Define to empty for non recent-GCC.
81019         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81020         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81021         Renamed from their non-__ counterparts, with new macros replacing
81022         them if not _LIBC.  Add __THROW attribute.
81023         (rol): Remove.
81024         (struct md5_ctx): Align buffer if using GCC.
81025         * lib/sha1.h (struct sha1_ctx): Likewise.
81026         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81027         The old name was backwards.
81028         (NOTSWAP): Remove; not used.
81029         (rol): New macro, moved here from md5.h.
81030         (sha1_process_block): Remove a FIXME that doesn't make sense.
81031
81032 2005-09-12  Derek Price  <derek@ximbiot.com>
81033
81034         Return usable errors from canon-host.
81035         * lib/canon-host.h: New file.
81036         * lib/canon-host.c (canon_host): Wrap...
81037         (canon_host_r): ...this new function, which now relies exclusively on
81038         getaddrinfo.
81039         (ch_strerror): New function.
81040         (last_cherror): New global.
81041         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81042         interface.
81043         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81044         void *.
81045         (freeaddrinfo): Free ai->ai_canonname when set.
81046
81047 2005-09-12  Derek Price  <derek@ximbiot.com>
81048
81049         Make canon-host require getaddrinfo.
81050         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81051         AC_LIBSOURCE canon-host.h.  Call...
81052         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81053         gl_GETADDRINFO.
81054         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81055
81056 2005-09-12  Derek Price  <derek@ximbiot.com>
81057
81058         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81059         LGPL.
81060         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81061
81062 2005-09-12  Derek Price  <derek@ximbiot.com>
81063
81064         * lib/gai_strerror.c: Include config.h when available.  Include
81065         getaddrinfo.h before other headers to test interface.
81066         Reported by Larry Jones <lawrence.jones@ugs.com>.
81067
81068 2005-09-12  Derek Price  <derek@ximbiot.com>
81069             Paul Eggert  <eggert@cs.ucla.edu>
81070
81071         * modules/glob (Files): Add glob-libc.h.
81072
81073 2005-09-12  Derek Price  <derek@ximbiot.com>
81074             Paul Eggert  <eggert@cs.ucla.edu>
81075
81076         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81077         glob_.h, glob-libc.h.
81078         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81079
81080 2005-09-12  Derek Price  <derek@ximbiot.com>
81081             Paul Eggert  <eggert@cs.ucla.edu>
81082
81083         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81084         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81085         protecting things that should be done only in gnulib contexts.
81086         * lib/glob_.h: New file, containing only the glob things needed for
81087         gnulib.
81088         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81089         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81090         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81091         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81092         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81093         and to respect the namespace rules better.
81094
81095 2005-09-08  Simon Josefsson  <jas@extundo.com>
81096
81097         * modules/socklen: New file.
81098
81099 2005-09-08  Simon Josefsson  <jas@extundo.com>
81100
81101         * m4/socklen.m4: New file.
81102
81103 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81104
81105         * modules/utimens (Files): Add m4/utimbuf.m4, since
81106         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81107         Reported by Sergey Poznyakoff.
81108
81109 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81110
81111         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81112         definitions, since that's the preferred style in glibc.
81113         Fix a minor spacing issue, and update copyright notice to match
81114         glibc's.
81115
81116 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81117
81118         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81119
81120 2005-09-06  Simon Josefsson  <jas@extundo.com>
81121
81122         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81123         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81124
81125 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81126
81127         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81128         warning.
81129
81130 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81131
81132         * config/srclist.txt: Add glibc bug 1302.
81133
81134 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81135
81136         Change bitset word type from unsigned int to unsigned long int,
81137         as this has better performance on typical 64-bit hosts.
81138         Port bitset code to hosts with unusual word sizes.
81139         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81140         (build_collating_symbol):
81141         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81142         argument is a bitset.  This is merely a style issue, but it makes
81143         it clearer that an entire array is expected.
81144         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
81145         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
81146         Port to the case where bitset_word is not the same as unsigned int.
81147         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81148         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
81149         Likewise.
81150         * lib/regexec.c (check_dst_limits_calc_pos_1,
81151         check_subexp_matching_top):
81152         (build_trtable, group_nodes_into_DFAstates):
81153         Likewise.
81154         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
81155         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
81156         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
81157         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
81158         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
81159         * lib/regcomp.c (optimize_subexps, lower_subexp):
81160         Work even if bitset_word has holes in its bitwise representation.
81161         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
81162         * lib/regexec.c (check_dst_limits_calc_pos_1,
81163         check_subexp_matching_top):
81164         Likewise.
81165         * lib/regex_internal.c (re_string_reconstruct):
81166         Don't assume UCHAR_MAX == 255.
81167         * lib/regex_internal.h (bitset_set_all): Likewise.
81168         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
81169         All uses changed.
81170         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
81171         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
81172         All uses changed.
81173         (BITSET_WORD_MAX): New macro.
81174         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
81175         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
81176         (bitset_empty, bitset_copy):
81177         Prefer sizeof (bitset) to multiplying it out ourselves.
81178         (bitset_not_merge): Remove; unused.
81179         (bitset_contain): Return bool, not unsigned int with one bit on.
81180         All callers changed.
81181         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81182         alignment than re_node_set; do this by defining a new internal
81183         type struct dests_alloc and using it to allocate memory.
81184
81185 2005-09-05  Bruno Haible  <bruno@clisp.org>
81186
81187         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81188         links.
81189
81190 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81191
81192         * modules/size_max (Makefile.am): Add size_max.h
81193
81194 2005-09-04  Derek Price  <derek@ximbiot.com>
81195
81196         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81197
81198 2005-09-03  Simon Josefsson  <jas@extundo.com>
81199
81200         * gnulib-tool: Fix typo.
81201
81202 2005-09-03  Simon Josefsson  <jas@extundo.com>
81203
81204         * config/srclist.txt: Add glibc bug 1293.
81205
81206 2005-09-03  Derek Price  <derek@ximbiot.com>
81207
81208         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81209         From Larry Jones <lawrence.jones@ugs.com>.
81210
81211 2005-09-02  Simon Josefsson  <jas@extundo.com>
81212
81213         * modules/socklen: New file.
81214
81215 2005-09-02  Simon Josefsson  <jas@extundo.com>
81216
81217         * modules/havelib: New module.
81218
81219         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81220         Use havelib.
81221
81222 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81223
81224         Check for arithmetic overflow when calculating sizes, to prevent
81225         some buffer-overflow issues.  These patches are conservative, in the
81226         sense that when I couldn't determine whether an overflow was possible,
81227         I inserted a run-time check.
81228         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81229         macros.
81230         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81231         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81232         (re_xnrealloc, re_x2nrealloc): New inline functions.
81233         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81234         parse_bracket_exp):
81235         (build_equiv_class, build_charclass): Check for arithmetic overflow
81236         in size expression calculations.
81237         * lib/regex_internal.c (re_string_realloc_buffers):
81238         (build_wcs_upper_buffer, re_node_set_add_intersect):
81239         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
81240         (re_dfa_add_node, register_state): Likewise.
81241         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
81242         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
81243         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
81244         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
81245
81246 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81247
81248         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81249         m4/ulonglong.m4.  Problem reported by Martin Lambers.
81250
81251 2005-09-02  Bruno Haible  <bruno@clisp.org>
81252
81253         Support for lib vs. lib64 distinction on biarch platforms.
81254         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81255         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81256         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81257
81258 2005-09-02  Bruno Haible  <bruno@clisp.org>
81259
81260         * gnulib-tool (import): In the other first-use case, provide defaults
81261         as well.
81262
81263 2005-09-02  Bruno Haible  <bruno@clisp.org>
81264
81265         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81266         patches not yet found in the latest gettext release.
81267
81268 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81269
81270         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81271         to avoid a collision with bits/local_lim.h in glibc.
81272         All uses changed.  Problem reported by Dmitry V. Levin in
81273         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81274
81275         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81276         bugs in int versus size_t comparisons.
81277         (re_string_context_at): Fix bug where the code assumed that
81278         Idx is signed.
81279
81280         Use bool where appropriate.
81281         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81282         All callers changed.
81283         (calc_eclosure_iter): Likewise, for ROOT arg.
81284         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81285         (build_charclass_op): Likewise, for NON_MATCH arg.
81286         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81287         (re_string_construct_common): Likewise, for ICASE arg.
81288         * lib/regexec.c (re_search_2_stub, re_search_stub):
81289         Likewise, for RET_LEN arg.
81290         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81291         (set_regs): Likewise, for FL_BACKTRACK arg.
81292         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81293         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81294         (calc_eclosure_iter, parse_bracket_exp):
81295         Use bool for internal variables that are booleans.
81296         * lib/regexec.c (re_search_internal, check_matching,
81297         proceed_next_node):
81298         (set_regs, build_sifted_states, sift_states_bkref):
81299         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81300         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81301         (find_collation_sequence_value):
81302         Likewise.
81303         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81304         (re_node_set_compare):
81305         Return bool, not int. All callers changed.
81306         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81307         (build_trtable, check_node_accept): Likewise.
81308         * lib/regex_internal.h: Include stdbool.h.
81309
81310         Fix bugs uncovered when converting to bool.
81311         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81312         failure instead of charging ahead blindly.
81313         * lib/regex_internal.c (register_state): Likewise.
81314         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81315         for freeing internal storage.
81316         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81317         bitset pieces used as boolean, to avoid undefined behavior
81318         on hosts that do int overflow checking.
81319
81320 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81321
81322         * config/srclist.txt: Add glibc bugs 1285-1287.
81323
81324 2005-09-01  Jim Meyering  <jim@meyering.net>
81325
81326         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81327         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81328         Require gl_STAT_MACROS, too.
81329
81330 2005-09-01  Bruno Haible  <bruno@clisp.org>
81331
81332         * gnulib-tool (import): In the first-use case, provide defaults.
81333
81334 2005-09-01  Bruno Haible  <bruno@clisp.org>
81335
81336         * gnulib-tool (func_import): Remove the .tmp files.
81337
81338 2005-09-01  Bruno Haible  <bruno@clisp.org>
81339
81340         * gnulib-tool (func_import): Fix handling of symbolic links.
81341
81342 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81343
81344         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81345         old glibc regex code mishandles strings longer than 2**31 bytes.
81346         This patch fixes this when the regex code is used in gnulib
81347         (i.e., outside glibc).
81348
81349         This patch should not affect the use of the regex code inside
81350         glibc.  No doubt this problem also needs to be handled for glibc
81351         as well, but the result will be an incompatible change to the
81352         glibc ABI, and the old ABI will have to be supported too.  That
81353         can be the the subject for another patch.
81354
81355         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81356         governing whether the rest of this patch is active.  By default,
81357         the macro is disabled and the patch has no effect.
81358         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81359         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81360         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81361         (re_match_2, re_set_registers): Use the new types.
81362         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81363         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81364         New macros.
81365         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81366         (re_string_context_at, bin_tree_t, re_dfastate_t):
81367         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81368         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81369         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81370         (re_string_char_size_at, re_string_wchar_at):
81371         (re_string_elem_size_at):
81372         Use the new types and macros to port to 64-bit hosts.
81373         Use unsigned types for internal values, so that the code
81374         mostly works even for arrays larger than SSIZE_MAX.
81375         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81376         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81377         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81378         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81379         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81380         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81381         (calc_inveclosure, parse_dup_op, build_range_exp):
81382         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81383         (fetch_number, create_token_tree, mark_opt_subexp):
81384         Likewise.
81385         * lib/regex_internal.c (re_string_construct_common,
81386         create_ci_newstate):
81387         (create_cd_newstate, re_string_allocate, re_string_construct):
81388         (re_string_realloc_buffers, build_wcs_upper_buffer):
81389         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81390         (re_string_reconstruct, re_string_peek_byte_case):
81391         (re_string_fetch_byte_case, re_string_context_at):
81392         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81393         (re_node_set_init_copy, re_node_set_add_intersect):
81394         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81395         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81396         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81397         (re_acquire_state, re_acquire_state_context, register_state):
81398         Likewise.
81399         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81400         search_cur_bkref_entry):
81401         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81402         (re_search_internal, re_search_2_stub, re_search_stub)
81403         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81404         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81405         (update_cur_sifted_state, check_dst_limits):
81406         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81407         (check_subexp_limits, sift_states_bkref, merge_state_array):
81408         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81409         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81410         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81411         (expand_bkref_cache, check_node_accept_bytes):
81412         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81413         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81414         (acquire_init_state_context, check_halt_node_context):
81415         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81416         (sift_states_backward, clean_state_log_if_needed):
81417         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81418         (find_recover_state, transit_state_sb, transit_state_mb):
81419         (transit_state_bkref, build_trtable, match_ctx_clean):
81420         Likewise.
81421         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81422         to work around an assumption that REG_MISSING is negative.
81423
81424         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81425         (seek_collating_symbol_entry) [defined _LIBC]:
81426         (lookup_collation_sequence_value) [defined _LIBC]:
81427         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81428         Use prototypes rather than old-style function definitions.
81429         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81430         (transit_state_sb) [0]:
81431         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81432
81433         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81434         rm_eo.
81435
81436         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81437         (optimize_subexps, lower_subexp):
81438         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81439         since the signed shift might overflow.  Use 1u<<31 instead.
81440         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81441         Likewise.
81442         * lib/regexec.c (check_dst_limits_calc_pos_1,
81443         check_subexp_matching_top): Likewise.
81444
81445         * lib/regcomp.c (optimize_subexps, lower_subexp):
81446         Use CHAR_BIT rather than 8, for clarity.
81447         * lib/regexec.c (check_dst_limits_calc_pos_1):
81448         (check_subexp_matching_top): Likewise.
81449         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81450         have to worry about portability issues when shifting it left.
81451         Remove no-longer-needed test for table_size > 0.
81452         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81453         in a word, as the resulting behavior is undefined.
81454         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81455         in one case, a <= should have been an <, and in another case the
81456         whole test was missing.
81457         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81458         the standard name CHAR_BIT.
81459         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81460         this is not true on one's complement and signed-magnitude hosts.
81461
81462         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81463         next_last_offset.
81464         (struct re_dfa_t): Remove unused member states_alloc.
81465         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81466
81467 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81468
81469         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81470         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81471         and large-file glibc and in 32-bit large-file Solaris.
81472
81473 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81474
81475         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81476         lengths fit in regoff_t; this isn't true if regoff_t is the same
81477         width as size_t.
81478         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81479         (= START + RANGE) instead of RANGE.  This avoids overflow
81480         problems when regoff_t is the same width as size_t.
81481         All callers changed.
81482         (re_search_2_stub): Check for overflow when adding the
81483         sizes of the two strings.
81484         (re_search_stub): Check for overflow when adding START
81485         to RANGE; if it occurs, substitute the extreme value.
81486
81487 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81488
81489         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81490
81491 2005-08-31  Jim Meyering  <jim@meyering.net>
81492
81493         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81494         a pointer-to-const.
81495         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81496         (register_state): Likewise.
81497         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81498         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81499         (group_nodes_into_DFAstates): Likewise.
81500
81501 2005-08-31  Jim Meyering  <jim@meyering.net>
81502
81503         * check-module: Add a FIXME comment.
81504
81505 2005-08-31  Eric Blake  <ebb9@byu.net>
81506
81507         * modules/unistd-safer (Files): Add unistd--.h.
81508         * modules/stdio-safer (Files): Add stdio--.h.
81509
81510 2005-08-31  Derek Price  <derek@ximbiot.com>
81511
81512         * lib/getdelim.c (getdelim): Return EOF on EOF.
81513         Reported by Larry Jones <lawrence.jones@ugs.com>.
81514
81515 2005-08-31  Bruno Haible  <bruno@clisp.org>
81516
81517         Avoid unnecessary diffs in the generated lib/Makefile.am.
81518         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81519         the generated files.
81520         (func_import): Don't set cmd.
81521
81522 2005-08-31  Bruno Haible  <bruno@clisp.org>
81523
81524         * lib/strstr.c: Include <stddef.h>, for NULL.
81525         * lib/strcasestr.c: Likewise.
81526         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81527
81528 2005-08-31  Bruno Haible  <bruno@clisp.org>
81529
81530         * gnulib-tool: New option --macro-prefix.
81531         (func_import): Use macro_prefix.
81532         (import): Handle option --macro-prefix.
81533
81534 2005-08-31  Bruno Haible  <bruno@clisp.org>
81535
81536         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81537         Also use new variables cached_lgpl, cached_libtool.
81538
81539 2005-08-31  Bruno Haible  <bruno@clisp.org>
81540
81541         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81542         always instantiating them.
81543
81544 2005-08-31  Bruno Haible  <bruno@clisp.org>
81545
81546         * gnulib-tool (func_import): Read the previous cached settings
81547         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81548         earlier added by gnulib but are now dropped. Warn when a gnulib file
81549         overwrites a non-gnulib file.
81550
81551 2005-08-31  Bruno Haible  <bruno@clisp.org>
81552
81553         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81554         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81555         projects that don't keep autogenerated files in CVS. Put into
81556         actioncmd only the specified modules, not the transitive closure.
81557
81558 2005-08-31  Bruno Haible  <bruno@clisp.org>
81559
81560         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81561         Create directories that shall be filled.
81562         (import): Don't look for gl_* macros in configure.ac. Recurse across
81563         all directories containing a gnulib-cache.m4 files, if meaningful.
81564
81565 2005-08-31  Bruno Haible  <bruno@clisp.org>
81566
81567         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81568         (import): Set seen_libtool when we see gl_LIBTOOL.
81569
81570 2005-08-31  Bruno Haible  <bruno@clisp.org>
81571
81572         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81573         declaration macro definitions from generated gnulib.m4.
81574
81575 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81576
81577         * lib/iconvme.h: Add prototype for iconv_alloc.
81578
81579 2005-08-29  Simon Josefsson  <jas@extundo.com>
81580
81581         * lib/iconvme.c: Fix errno.
81582
81583 2005-08-29  Bruno Haible  <bruno@clisp.org>
81584
81585         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81586         that it works when the directory contains spaces.
81587
81588 2005-08-29  Bruno Haible  <bruno@clisp.org>
81589
81590         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81591
81592 2005-08-29  Bruno Haible  <bruno@clisp.org>
81593
81594         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81595         Emit more advice.
81596
81597 2005-08-29  Bruno Haible  <bruno@clisp.org>
81598         and Stepan Kasal  <kasal@ucw.cz>
81599
81600         * check-module: If more parameters are given, check each of them
81601         separately; add more exceptions, as noted by Jim Meyering.
81602         (check_module): New procedure.
81603         (%exempt_header): Now contains all exceptions.
81604
81605 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81606
81607         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81608
81609 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81610
81611         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81612
81613 2005-08-28  Bruno Haible  <bruno@clisp.org>
81614
81615         * m4/gnulib-tool.m4: New file.
81616
81617 2005-08-27  Jim Meyering  <jim@meyering.net>
81618
81619         * modules/unistd-safer (Files): Add pipe-safer.c.
81620         * modules/fcntl-safer (Files): Add creat-safer.c.
81621
81622 2005-08-27  Jim Meyering  <jim@meyering.net>
81623
81624         * m4/stdlib-safer.m4: New file.  From coreutils.
81625         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81626         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81627         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81628         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81629         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81630
81631 2005-08-27  Jim Meyering  <jim@meyering.net>
81632
81633         * lib/fopen-safer.c: Merge minor changes from coreutils.
81634         * lib/dup-safer.c: Likewise.
81635         * lib/fd-safer.c: Likewise.
81636
81637         Merge from coreutils.
81638         * lib/stdio--.h: New file.
81639         * lib/stdlib--.h: New file.
81640         * lib/mkstemp-safer.c: New file.
81641
81642         GNU tar needs these.
81643         * lib/pipe-safer.c: New file.
81644         * lib/creat-safer.c: New file.
81645         * lib/fcntl--.h (creat): Define to creat_safer.
81646         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81647         * lib/unistd--.h (pipe): Define to pipe_safer.
81648         * lib/unistd-safer.h: Declare pipe_safer.
81649
81650 2005-08-26  Simon Josefsson  <jas@extundo.com>
81651
81652         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81653         Haible <bruno@clisp.org>.
81654
81655 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81656
81657         * lib/regex_internal.h: Remove all references to
81658         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81659         or better.
81660         (bitset_not, bitset_merge, bitset_not_merge):
81661         (bitset_mask, re_string_allocate, re_string_construct):
81662         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81663         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81664         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81665         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81666         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81667         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81668         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81669         (re_acquire_state_context):
81670         Remove unnecessary forward decls.
81671         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81672         Put __attribute at function definition,
81673         now that the function decl has been removed.
81674         * lib/regex_internal.c (re_string_peek_byte_case):
81675         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81676         Likewise.
81677
81678 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81679
81680         * m4/regex.m4: Add AC_PREREQ(2.50).
81681         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81682
81683 2005-08-25  Simon Josefsson  <jas@extundo.com>
81684
81685         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81686         __fsetlocking.
81687
81688 2005-08-25  Simon Josefsson  <jas@extundo.com>
81689
81690         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81691         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81692         GLIBC specific code.
81693
81694 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81695
81696         Make regex safe for g++.  This fixes one real bug (an "err"
81697         that should have been "*err").  g++ problem reported by
81698         Sam Steingold.
81699         * lib/regex_internal.h (re_calloc): New macro, consistent with
81700         re_malloc etc.  All callers of calloc changed to use re_calloc.
81701         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81702         not int.  All callers changed.
81703         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81704         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81705         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81706         (find_recover_state): Change "err" to "*err"; this fixes what
81707         appears to be a real bug.
81708         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81709         versus int.
81710
81711 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81712
81713         * modules/regex (Depends-on): Add malloc, since the code
81714         assumes that !malloc(0) means failure.
81715
81716 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81717
81718         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81719
81720         alloca modernization/simplification for regex.
81721         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81722         needs to be at the start of the file, and can be moved into
81723         regex_internal.h and simplified.
81724         * lib/regex_internal.h: Include <alloca.h>.
81725         (__libc_use_alloca) [!defined _LIBC]: New macro.
81726         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81727         now works outside glibc.
81728
81729 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81730
81731         * config/srclist.txt: Add glibc bugs 1241, 1245.
81732
81733 2005-08-25  Jim Meyering  <jim@meyering.net>
81734
81735         * lib/open-safer.c: Include <config.h>.
81736         Otherwise, we'd lose LARGEFILE support in any file using
81737         e.g. "fcntl--.h"
81738
81739 2005-08-25  Bruno Haible  <bruno@clisp.org>
81740
81741         * m4/minmax.m4: Require autoconf 2.52.
81742         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81743         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81744         alternatives of translit over the alphabet.
81745         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81746
81747 2005-08-24  Simon Josefsson  <jas@extundo.com>
81748
81749         * tests/test-getpass.c: New file.
81750
81751 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81752
81753         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81754         for GNU regex features.
81755
81756 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81757
81758         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81759         * lib/regex.h (regerror): Likewise.
81760
81761         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81762         requires this.  (The code never needed it.)
81763
81764         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81765         All uses of recently-renamed identifiers changed to use the new,
81766         POSIX-compliant names.  The code will build and run just fine
81767         without these changes, but it's better to eat our own dog food
81768         and use the standard-conforming names.
81769
81770         * lib/regex.h: Fix a multitude of POSIX name space violations.
81771         These changes have an effect only for programs that define
81772         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81773         do not change anything for programs compiled in the normal way.
81774         Also, there is no effect on the ABI.
81775
81776         (_REGEX_SOURCE): New macro.
81777         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81778         defined and _GNU_SOURCE is not; this fixes a name space violation.
81779
81780         Rename the following macros to obey POSIX requirements.
81781         The old names are still visible as macros if _REGEX_SOURCE is defined.
81782         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81783         RE_BACKSLASH_ESCAPE_IN_LISTS.
81784         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81785         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81786         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81787         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81788         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81789         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81790         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81791         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81792         (REG_INTERVALS): renamed from RE_INTERVALS.
81793         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81794         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81795         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81796         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81797         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81798         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81799         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81800         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81801         RE_UNMATCHED_RIGHT_PAREN_ORD.
81802         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81803         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81804         (REG_DEBUG): renamed from RE_DEBUG.
81805         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81806         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81807         unusual, since we can't clash with the POSIX REG_ICASE.
81808         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81809         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81810         (REG_NO_SUB): renamed from RE_NO_SUB.
81811         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81812         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81813         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81814         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81815         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81816         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81817         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81818         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81819         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81820         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81821         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81822         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81823         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81824         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81825         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81826         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81827         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81828         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81829         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81830         (REG_FIXED): Renamed from REGS_FIXED.
81831         (REG_NREGS): Renamed from RE_NREGS.
81832
81833         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81834         of other REG_* macros, since POSIX says the user is allowed to
81835         #undef these macros selectively.
81836
81837         (reg_errcode_t): Update comment stating what other tables need
81838         to be consistent.
81839
81840         Rename the following enum values to obey POSIX requirements.
81841         The old names are still visible as macros.
81842         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81843         is not defined, since GNU is supposed to be a superset of POSIX as
81844         much as possible, and since we want reg_errcode_t to be a signed
81845         type for implementation consistency.
81846         (_REG_NOERROR): Renamed from REG_NOERROR.
81847         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81848         (_REG_BADPAT): Renamed from REG_BADPAT.
81849         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81850         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81851         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81852         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81853         (_REG_EBRACK): Renamed from REG_EBRACK.
81854         (_REG_EPAREN): Renamed from REG_EPAREN.
81855         (_REG_EBRACE): Renamed from REG_EBRACE.
81856         (_REG_BADBR): Renamed from REG_BADBR.
81857         (_REG_ERANGE): Renamed from REG_ERANGE.
81858         (_REG_ESPACE): Renamed from REG_ESPACE.
81859         (_REG_BADRPT): Renamed from REG_BADRPT.
81860         (_REG_EEND): Renamed from REG_EEND.
81861         (_REG_ESIZE): Renamed from REG_ESIZE.
81862         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81863         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81864         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81865         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81866         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81867
81868         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81869         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81870         changed.  But support the old name if the new one is not defined
81871         and if _REGEX_SOURCE.
81872
81873         Change the following member names in struct re_pattern_buffer.
81874         The old names are still supported if !_REGEX_SOURCE.
81875         The new names are always supported, regardless of _REGEX_SOURCE.
81876         (re_buffer): Renamed from buffer.
81877         (re_allocated): Renamed from allocated.
81878         (re_used): Renamed from used.
81879         (re_syntax): Renamed from syntax.
81880         (re_fastmap): Renamed from fastmap.
81881         (re_translate): Renamed from translate.
81882         (re_can_be_null): Renamed from can_be_null.
81883         (re_regs_allocated): Renamed from regs_allocated.
81884         (re_fastmap_accurate): Renamed from fastmap_accurate.
81885         (re_no_sub): Renamed from no_sub.
81886         (re_not_bol): Renamed from not_bol.
81887         (re_not_eol): Renamed from not_eol.
81888         (re_newline_anchor): Renamed from newline_anchor.
81889
81890         Change the following member names in struct re_registers.
81891         The old names are still supported if !_REGEX_SOURCE.
81892         The new names are always supported, regardless of _REGEX_SOURCE.
81893         (rm_num_regs): Renamed from num_regs.
81894         (rm_start): Renamed from start.
81895         (rm_end): Renamed from end.
81896
81897         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81898         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81899         Prepend __ to parameter names.
81900
81901         Undo yesterday's changes.
81902
81903 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81904
81905         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81906         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81907         lib/regex.c.
81908
81909 2005-08-24  Jim Meyering  <jim@meyering.net>
81910
81911         Sync from coreutils.
81912         * m4/fcntl-safer.m4: New file.
81913
81914         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81915         and object files for this module.
81916
81917 2005-08-24  Jim Meyering  <jim@meyering.net>
81918
81919         Sync from coreutils.
81920         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81921
81922 2005-08-24  Jim Meyering  <jim@meyering.net>
81923
81924         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81925         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81926
81927 2005-08-24  Jim Meyering  <jim@meyering.net>
81928
81929         * modules/fcntl-safer: New module.
81930         * modules/fts (Depends-on): Add fcntl-safer.
81931         * MODULES.html.sh (File descriptor based Input/Output):
81932         Add fcntl-safer.
81933
81934 2005-08-24  Bruno Haible  <bruno@clisp.org>
81935
81936         Support for unit test modules.
81937         * modules/README: Mention tests modules.
81938         * modules/TEMPLATE-TESTS: New file.
81939         * gnulib-tool: New options --extract-tests-module, --with-tests and
81940         --tests-base (unused for the moment).
81941         (testsbase, inctests): New variables.
81942         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81943         (func_verify_module): Exclude TEMPLATE-TESTS.
81944         (func_verify_nontests_module, func_verify_tests_module): New functions.
81945         (func_get_dependencies): Add implicit dependency for tests modules.
81946         (func_get_tests_module): New function.
81947         (func_modules_transitive_closure): When --with-tests was specified,
81948         include the unit tests as well, unless explicitly avoided.
81949         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81950         (func_emit_tests_Makefile_am): New function.
81951         (func_create_testdir): When --with-tests was specified, emit a
81952         tests/ directory.
81953         * MODULES.html.sh (Future developments): Update.
81954
81955 2005-08-24  Bruno Haible  <bruno@clisp.org>
81956
81957         * modules/tls-tests: New file.
81958         * tests/test-tls.c: New file, from GNU gettext.
81959
81960 2005-08-24  Bruno Haible  <bruno@clisp.org>
81961
81962         * modules/lock-tests: New file.
81963         * tests/test-lock.c: New file, from GNU gettext.
81964
81965 2005-08-24  Bruno Haible  <bruno@clisp.org>
81966
81967         * lib/lock.h: Add multiple inclusion guard.
81968         * lib/tls.h: Add multiple inclusion guard.
81969
81970 2005-08-24  Bruno Haible  <bruno@clisp.org>
81971
81972         * gnulib-tool: Add support for the --aux-dir option to
81973         --create-testdir, --create-megatestdir, --test, --megatest.
81974         (func_create_testdir, func_create_megatestdir): Optionally emit a
81975         AC_CONFIG_AUX_DIR directive.
81976         (create-testdir, create-megatestdir, test, megatest): Provide a
81977         default value for $auxdir.
81978
81979 2005-08-24  Bruno Haible  <bruno@clisp.org>
81980
81981         * gnulib-tool (import): Use compound statement instead of subshell
81982         where possible.
81983
81984 2005-08-24  Bruno Haible  <bruno@clisp.org>
81985
81986         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81987
81988 2005-08-24  Bruno Haible  <bruno@clisp.org>
81989
81990         * gnulib-tool (func_version): Update.
81991
81992 2005-08-24  Bruno Haible  <bruno@clisp.org>
81993
81994         * gnulib-tool (func_import, func_create_testdir,
81995         func_create_megatestdir): Quote all autoconf macro arguments.
81996
81997 2005-08-24  Bruno Haible  <bruno@clisp.org>
81998
81999         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
82000         option --force, because --force causes the aclocal.m4 of each
82001         subdirectory to be newer than the corresponding config.h.in.
82002
82003 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82004
82005         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
82006         All contents moved to gl_REGEX.
82007         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82008         assume that it does.
82009
82010 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82011
82012         * lib/regex.h (REG_NOSYS)
82013         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82014         Define, since POSIX requires it as of 2001.
82015         (_REG_ENOSYS)
82016         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82017         New private symbol, used to keep the enum signed in all cases.
82018         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82019         Youngman in
82020         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82021
82022         * lib/regex_internal.c (re_string_skip_chars, register_state):
82023         (calc_state_hash):
82024         Remove forward decls; no longer needed now that we use prototypes.
82025         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82026         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82027         (clean_state_log_if_needed): Likewise.
82028
82029 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82030
82031         * config/srclist.txt: Add glibc bugs 1231-1233.
82032
82033 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82034
82035         Fix problems reported by Sam Steingold in
82036         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82037         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82038         assumed that reg_errcode_t is a signed type, which is not
82039         necessarily true if _XOPEN_SOURCE is not defined.
82040         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82041         since some compilers warn about it otherwise.
82042
82043 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82044
82045         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82046         (init_word_char, create_initial_state, duplicate_node_closure):
82047         (fetch_token, peek_token_bracket, build_range_exp):
82048         (build_collating_symbol): Remove forward decls; no longer needed
82049         now that we use prototypes.
82050
82051         * lib/regcomp.c:
82052         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82053         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82054         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82055         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82056         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82057         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82058         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82059         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82060         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82061         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82062         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82063         (build_charclass, build_charclass_op, fetch_number, create_tree):
82064         (create_token_tree, mark_opt_subexp, duplicate_tree):
82065         Use prototypes rather than old-style definitions.
82066
82067         * lib/regex_internal.c:
82068         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82069         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82070         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82071         (re_string_reconstruct, re_string_peek_byte_case):
82072         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82073         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82074         (re_node_set_init_copy, re_node_set_add_intersect):
82075         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82076         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82077         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82078         (re_acquire_state, re_acquire_state_context, register_state):
82079         (create_ci_newstate, create_cd_newstate, free_state):
82080         Likewise.
82081         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82082         re_search_2):
82083         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82084         (re_search_internal, prune_impossible_nodes):
82085         (acquire_init_state_context, check_matching, static):
82086         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82087         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82088         (update_regs, sift_states_backward, build_sifted_states):
82089         (clean_state_log_if_needed, merge_state_array):
82090         (update_cur_sifted_state, add_epsilon_src_nodes):
82091         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82092         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82093         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82094         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82095         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82096         (check_arrival, check_arrival_add_next_nodes):
82097         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82098         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82099         (check_node_accept_bytes, check_node_accept, extend_buffers):
82100         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82101         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82102         (sift_ctx_init):
82103         Likewise.
82104
82105         * lib/regex_internal.h:
82106         (re_string_allocate, re_string_construct, re_string_reconstruct):
82107         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82108         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82109         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82110         (re_string_context_at, re_string_peek_byte_case):
82111         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82112         is defined, since we now use prototypes always.
82113
82114         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82115         C89 or better.  All uses removed.
82116
82117 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82118
82119         * config/srclist.txt: Add glibc bugs 1220-1227.
82120
82121 2005-08-20  Jim Meyering  <jim@meyering.net>
82122
82123         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82124         of unused local, dfa.
82125
82126 2005-08-20  Bruno Haible  <bruno@clisp.org>
82127
82128         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82129
82130 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82131
82132         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82133         (re_node_set_insert_last, re_dfa_add_node):
82134         Rename local variables to avoid GCC shadowing warnings.
82135
82136 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82137
82138         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82139         [defined lint]: Suppress bogus uninitialized-variable warnings.
82140
82141         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82142         and let the caller return REG_ESPACE if out of space.  This
82143         removes an uninitialied-variable warning with GCC 4.0.1, and also
82144         avoids taking the address of a local variable.  All callers
82145         changed.
82146
82147 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82148
82149         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
82150         $LIBCSRC/posix/regexec.c.
82151         Add glibc bug 1217 for regcomp.c.
82152
82153 2005-08-19  Jim Meyering  <jim@meyering.net>
82154
82155         * lib/regexec.c (proceed_next_node): Redo local variables to
82156         avoid GCC shadowing warnings.
82157
82158 2005-08-18  Bruno Haible  <bruno@clisp.org>
82159
82160         * lib/strstr.c (strstr): Fix return value in multibyte case.
82161         * lib/strcasestr.c (strcasestr): Likewise.
82162
82163 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82164
82165         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
82166
82167 2005-08-17  Jim Meyering  <jim@meyering.net>
82168
82169         Make the %s format (seconds since the epoch) work for a negative
82170         number and when used with a zero-padded field width, e.g. %015s.
82171
82172         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
82173         label so that it precedes the code to set `digits'.  Otherwise,
82174         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
82175         print `00-22'.  Now, it prints `-0022', as it should.
82176
82177 2005-08-17  Bruno Haible  <bruno@clisp.org>
82178
82179         * modules/strstr (Files): Add m4/mbrtowc.m4.
82180         (Depends-on): Add mbuiter.
82181
82182 2005-08-17  Bruno Haible  <bruno@clisp.org>
82183
82184         * modules/strcasestr: New file.
82185         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82186         strcasestr.
82187
82188 2005-08-17  Bruno Haible  <bruno@clisp.org>
82189
82190         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82191
82192 2005-08-17  Bruno Haible  <bruno@clisp.org>
82193
82194         * modules/mbuiter: New file.
82195         * MODULES.html.sh (Extended multibyte and wide character utilities):
82196         Add mbuiter.
82197
82198 2005-08-17  Bruno Haible  <bruno@clisp.org>
82199
82200         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82201         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82202
82203 2005-08-17  Bruno Haible  <bruno@clisp.org>
82204
82205         * m4/strcasestr.m4: New file.
82206
82207 2005-08-17  Bruno Haible  <bruno@clisp.org>
82208
82209         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82210         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82211
82212 2005-08-17  Bruno Haible  <bruno@clisp.org>
82213
82214         * lib/strcasestr.h: New file.
82215         * lib/strcasestr.c: New file.
82216
82217 2005-08-17  Bruno Haible  <bruno@clisp.org>
82218
82219         * lib/strcasecmp.c: Use mbuiter.h.
82220
82221 2005-08-17  Bruno Haible  <bruno@clisp.org>
82222
82223         * lib/mbuiter.h: New file.
82224
82225 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82226
82227         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82228         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82229         and gl_GETOPT are both invoked via different paths (as happens
82230         with GNU tar CVS because it uses both argp and getopt), the former
82231         wins.
82232
82233 2005-08-16  Bruno Haible  <bruno@clisp.org>
82234
82235         * modules/tls: New file.
82236         * MODULES.html.sh (Multithreading): Add tls.
82237
82238 2005-08-16  Bruno Haible  <bruno@clisp.org>
82239
82240         * modules/strnlen1: New file.
82241         * MODULES.html.sh (String handling): Add strnlen1.
82242
82243 2005-08-16  Bruno Haible  <bruno@clisp.org>
82244
82245         * modules/strcase (Files): Add m4/mbrtowc.m4.
82246         (Depends-on): Add strnlen1, mbchar.
82247
82248 2005-08-16  Bruno Haible  <bruno@clisp.org>
82249
82250         * modules/mbiter: New file.
82251         * MODULES.html.sh (Extended multibyte and wide character utilities):
82252         Add mbiter.
82253
82254 2005-08-16  Bruno Haible  <bruno@clisp.org>
82255
82256         * modules/mbfile: New file.
82257         * MODULES.html.sh (Extended multibyte and wide character utilities):
82258         Add mbfile.
82259
82260 2005-08-16  Bruno Haible  <bruno@clisp.org>
82261
82262         * modules/mbchar: New file.
82263         * MODULES.html.sh (Extended multibyte and wide character utilities):
82264         New section.
82265
82266 2005-08-16  Bruno Haible  <bruno@clisp.org>
82267
82268         * m4/tls.m4: New file, from GNU gettext.
82269
82270 2005-08-16  Bruno Haible  <bruno@clisp.org>
82271
82272         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82273         always.
82274         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82275
82276 2005-08-16  Bruno Haible  <bruno@clisp.org>
82277
82278         * m4/mbiter.m4: New file.
82279
82280 2005-08-16  Bruno Haible  <bruno@clisp.org>
82281
82282         * m4/mbfile.m4: New file.
82283
82284 2005-08-16  Bruno Haible  <bruno@clisp.org>
82285
82286         * m4/mbchar.m4: New file.
82287
82288 2005-08-16  Bruno Haible  <bruno@clisp.org>
82289
82290         * lib/tls.h: New file, from GNU gettext.
82291         * lib/tls.c: New file, from GNU gettext.
82292
82293 2005-08-16  Bruno Haible  <bruno@clisp.org>
82294
82295         * lib/strnlen1.h: New file.
82296         * lib/strnlen1.c: New file.
82297
82298 2005-08-16  Bruno Haible  <bruno@clisp.org>
82299
82300         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82301         (mbi_init): Update.
82302         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82303         NUL byte, not after it.
82304
82305 2005-08-16  Bruno Haible  <bruno@clisp.org>
82306
82307         * lib/strcase.h (strcasecmp): Add note in comments.
82308         * lib/strncasecmp.c: Use code from strcasecmp.c.
82309         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82310         (strcasecmp): Work correctly in multibyte locales.
82311
82312 2005-08-16  Bruno Haible  <bruno@clisp.org>
82313
82314         * lib/mbiter.h: New file.
82315
82316 2005-08-16  Bruno Haible  <bruno@clisp.org>
82317
82318         * lib/mbfile.h: New file.
82319
82320 2005-08-16  Bruno Haible  <bruno@clisp.org>
82321
82322         * lib/mbchar.h: New file.
82323         * lib/mbchar.c: New file.
82324
82325 2005-08-16  Bruno Haible  <bruno@clisp.org>
82326
82327         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82328         the valid ones. Makes the comparison operations transitive:
82329         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82330         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82331
82332 2005-08-15  Simon Josefsson  <jas@extundo.com>
82333
82334         * modules/ssize_t (License): Change to 'unlimited'.
82335
82336         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82337
82338 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82339
82340         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82341         Add comments for each pending glibc patch.
82342
82343 2005-08-15  Bruno Haible  <bruno@clisp.org>
82344
82345         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82346         __cplusplus is defined.
82347
82348 2005-08-14  Jim Meyering  <jim@meyering.net>
82349
82350         Sync from coreutils.
82351
82352         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82353         Use the hash-table-based cycle-detection code not just when
82354         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82355         Reported by James Youngman in
82356         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82357         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82358         FTS_TIGHT_CYCLE_CHECK.
82359         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82360         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82361         once again.
82362         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82363         * lib/fts.c (fd_safer): Remove decl.
82364         Include fcntl--.h rather than unistd-safer.h
82365         (fts_safe_changedir): Don't call fd_safer; no longer needed
82366         now that we include fcntl--.h.
82367
82368 2005-08-12  Simon Josefsson  <jas@extundo.com>
82369
82370         * modules/getndelim2: Use ssize_t module.
82371         * modules/getnline: Likewise.
82372         * modules/safe-read: Likewise.
82373         * modules/xreadlink: Likewise.
82374
82375         * modules/ssize_t: New file.
82376
82377 2005-08-12  Simon Josefsson  <jas@extundo.com>
82378
82379         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82380
82381 2005-08-12  Simon Josefsson  <jas@extundo.com>
82382
82383         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82384         ssize_t.
82385
82386 2005-08-12  Simon Josefsson  <jas@extundo.com>
82387
82388         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82389         readline, getdelim and check_version.
82390         (Support for systems lacking ISO C 99: Sizes of integer types):
82391         Add size_max.
82392
82393 2005-08-12  Bruno Haible  <bruno@clisp.org>
82394
82395         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82396
82397 2005-08-11  Simon Josefsson  <jas@extundo.com>
82398
82399         * modules/readline: New file.
82400
82401         * modules/strnlen (Files): Add strnlen.h.
82402
82403 2005-08-11  Simon Josefsson  <jas@extundo.com>
82404
82405         * m4/readline.m4: New file.
82406
82407 2005-08-11  Simon Josefsson  <jas@extundo.com>
82408
82409         * lib/readline.h, readline.c: New file.
82410
82411 2005-08-11  Simon Josefsson  <jas@extundo.com>
82412
82413         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82414         gl_AVOID.
82415
82416 2005-08-11  Bruno Haible  <bruno@clisp.org>
82417
82418         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82419
82420 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82421
82422         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82423
82424 2005-08-10  Simon Josefsson  <jas@extundo.com>
82425
82426         * tests/test-iconvme.c: New file.
82427
82428 2005-08-10  Simon Josefsson  <jas@extundo.com>
82429
82430         * m4/strnlen.m4: New file.
82431
82432         * m4/strndup.m4: Don't check for strnlen declaration, done in
82433         strnlen.m4.
82434
82435 2005-08-10  Simon Josefsson  <jas@extundo.com>
82436
82437         * lib/strndup.c: Use strnlen.h.
82438
82439         * lib/strnlen.h: New file.
82440
82441 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82442
82443         * README: Typos.
82444
82445 2005-08-02  Simon Josefsson  <jas@extundo.com>
82446
82447         * modules/readline: New file.
82448
82449 2005-08-02  Simon Josefsson  <jas@extundo.com>
82450
82451         * modules/getdelim: New file.
82452
82453         * modules/getline: Rewrite, don't use getndelim2.
82454
82455 2005-08-02  Simon Josefsson  <jas@extundo.com>
82456
82457         * m4/getline.m4: Separate out getdelim stuff into separate module.
82458
82459         * m4/getdelim.m4: New file.
82460
82461 2005-08-02  Simon Josefsson  <jas@extundo.com>
82462
82463         * lib/getline.h, getline.c: Rewrite.
82464
82465         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82466
82467 2005-07-31  Bruno Haible  <bruno@clisp.org>
82468
82469         * lib/lock.h (gl_lock_initializer): New macro.
82470         (gl_lock_define_initialized): Use it.
82471         (gl_rwlock_initializer): New macro.
82472         (gl_rwlock_define_initialized): Use it.
82473         (gl_recursive_lock_initializer): New macro.
82474         (gl_recursive_lock_define_initialized): Use it.
82475
82476 2005-07-30  Karl Berry  <karl@gnu.org>
82477
82478         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82479         Report from Ben Pfaff, regarding getopt.
82480
82481 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82482
82483         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82484         normal way.
82485         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82486         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82487         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82488         (gl_GETOPT): Use the new macros.  Most of the implementation
82489         is moved to the new macros.  This is for programs like Emacs
82490         that don't want all the functionality of gl_GETOPT.
82491
82492 2005-07-26  Bruno Haible  <bruno@clisp.org>
82493
82494         * m4/lock.m4: Update from GNU gettext.
82495
82496 2005-07-26  Bruno Haible  <bruno@clisp.org>
82497
82498         * lib/lock.h: Update from GNU gettext.
82499         * lib/lock.c: Update from GNU gettext.
82500
82501 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82502
82503         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82504         obsolescent AC_TRY_RUN.  Include the default includes files, for
82505         'exit'.
82506
82507 2005-07-24  Bruno Haible  <bruno@clisp.org>
82508
82509         * modules/visibility: New file.
82510         * MODULES.html.sh (Misc): Add visibility.
82511
82512 2005-07-24  Bruno Haible  <bruno@clisp.org>
82513
82514         * m4/visibility.m4: New file.
82515
82516 2005-07-24  Bruno Haible  <bruno@clisp.org>
82517
82518         * doc/visibility.texi: New file.
82519
82520 2005-07-22  Bruno Haible  <bruno@clisp.org>
82521
82522         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82523         $(ALLOCA_H), redundant through BUILT_SOURCES.
82524         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82525         redundant through BUILT_SOURCES.
82526         * modules/byteswap (Makefile.am): Remove explicit dependency on
82527         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82528         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82529         $(FNMATCH_H), redundant through BUILT_SOURCES.
82530         * modules/getopt (Makefile.am): Remove explicit dependency on
82531         $(GETOPT_H), redundant through BUILT_SOURCES.
82532         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82533         redundant through BUILT_SOURCES.
82534         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82535         redundant through BUILT_SOURCES.
82536         * modules/stdbool (Makefile.am): Remove explicit dependency on
82537         $(STDBOOL_H), redundant through BUILT_SOURCES.
82538         * modules/stdint (Makefile.am): Remove explicit dependency on
82539         $(STDINT_H), redundant through BUILT_SOURCES.
82540         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82541         Remove explicit dependency on $(SYSEXITS_H).
82542         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82543
82544 2005-07-18  Simon Josefsson  <jas@extundo.com>
82545
82546         * lib/check-version.c (check_version): Accept identical versions too.
82547
82548 2005-07-18  Bruno Haible  <bruno@clisp.org>
82549
82550         * modules/lock: New file.
82551         * MODULES.html.sh (Multithreading): New section.
82552
82553 2005-07-18  Bruno Haible  <bruno@clisp.org>
82554
82555         * m4/lock.m4: New file, from GNU gettext.
82556
82557 2005-07-18  Bruno Haible  <bruno@clisp.org>
82558
82559         * lib/lock.h: New file, from GNU gettext.
82560         * lib/lock.c: New file, from GNU gettext.
82561
82562 2005-07-18  Bruno Haible  <bruno@clisp.org>
82563
82564         * lib/lock.h (gl_once_t): New type.
82565         (gl_once_define, gl_once): New macros.
82566         * lib/lock.c (fresh_once): New variable.
82567         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82568         functions.
82569
82570 2005-07-16  Simon Josefsson  <jas@extundo.com>
82571
82572         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82573         workaround, suggested by Bruno.
82574
82575 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82576
82577         * modules/xalloc (Depends-on): Add xalloc-die.
82578         * modules/xvasprintf (Depends-on): Add xalloc-die.
82579
82580 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82581
82582         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82583         with a minor change.
82584
82585 2005-07-15  Bruno Haible  <bruno@clisp.org>
82586
82587         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82588         When using lib/poll.c, define poll as rpl_poll.
82589
82590 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82591
82592         * modules/argp (Depends-on): Remove unlocked-io.
82593
82594 2005-07-14  Derek Price  <derek@ximbiot.com>
82595
82596         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82597         for glob symlink bug.
82598
82599 2005-07-14  Bruno Haible  <bruno@clisp.org>
82600
82601         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82602         Instead, test for *_unlocked function declarations directly.
82603
82604 2005-07-11  Simon Josefsson  <jas@extundo.com>
82605
82606         * modules/size_max: New file.
82607
82608         * modules/xsize: Depend on size_max module for size_max.m4.
82609
82610 2005-07-11  Simon Josefsson  <jas@extundo.com>
82611
82612         * lib/size_max.h: New file.
82613
82614 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82615
82616         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82617         copyright symbol and the year.
82618         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82619         (version_etc_va): Use parameterized copyright notice.
82620         Reword to conform to the current GNU coding standards.
82621
82622 2005-07-11  Karl Berry  <karl@gnu.org>
82623
82624         * doc/gnulib.texi (Quoting): new node.
82625         (Initial import): more info, from Patrice.
82626
82627 2005-07-11  Bruno Haible  <bruno@clisp.org>
82628
82629         * gnulib-tool (func_usage): Document option --avoid.
82630         (Command line options): Handle --avoid.
82631         (func_acceptable): New function.
82632         (func_modules_transitive_closure): Use it.
82633
82634 2005-07-11  Bruno Haible  <bruno@clisp.org>
82635
82636         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82637         Reported by Jim Meyering.
82638
82639 2005-07-10  Bruno Haible  <bruno@clisp.org>
82640
82641         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82642         Needed when size_t is smaller than 'unsigned int'.
82643         Reported by Paul Eggert.
82644
82645 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82646
82647         * modules/argp (Depends-on): Add unlocked-io
82648
82649 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82650
82651         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82652         block of defines.
82653
82654 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82655
82656         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82657         fix now.
82658
82659 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82660         and Paul Eggert  <eggert@cs.ucla.edu>
82661
82662         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82663         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82664
82665 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82666
82667         * modules/regex (Files): Add lib/regex_internal.c,
82668         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82669         (Depends-on): Add extensions.
82670         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82671
82672 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82673
82674         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82675         pathconf.
82676         * m4/same.m4 (gl_SAME): Likewise.
82677         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82678
82679         * m4/regex.m4: Adjust to new libc regex implementation.
82680         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82681         all the .c and .h parts of (the new) regex.
82682         Quote the m4 stuff better.
82683         Check for RE_ICASE bug of old gnulib.
82684         Check for REG_STARTEND of recent libc.
82685         Rename local variables from jm_* to gl_*.
82686         Quote operand of "test -f".
82687         Say "recent enough" version of libc, not "version 2".
82688         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82689         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82690         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82691         Remove check for btowc, isascii.
82692         Require AM_LANGINFO_CODESET.
82693
82694 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82695
82696         * lib/regex.c, regex.h: Sync from libc.
82697         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82698         * lib/regexec.c:
82699         New files, synced from libc, except that regex_internal.h
82700         currently has a small porting fix.
82701
82702 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82703
82704         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82705         regex_internal.c, regexec.c.
82706         Add regex_internal.h too, but as a comment, since the libc version
82707         is currently broken in gnulib mode.
82708
82709 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82710
82711         Support programs like Emacs that use gnulib but not gettext.
82712         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82713         * modules/gettext-h: New file.
82714         * modules/gettext (Files): Remove lib/gettext.h.
82715         (Depends-on): Add gettext-h.
82716         (Makefile.am): Remove lib_SOURCES.
82717         * modules/argmatch, modules/c-stack, modules/closeout:
82718         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82719         * modules/execute, modules/file-type, modules/getaddrinfo:
82720         * modules/getopt, modules/human, modules/javacomp:
82721         * modules/javaexec, modules/mkdir-p, modules/obstack:
82722         * modules/openat, modules/pagealign_alloc, modules/pipe:
82723         * modules/quotearg, modules/regex, modules/rpmatch:
82724         * modules/unicodeio, modules/userspec, modules/version-etc:
82725         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82726         * modules/xsetenv:
82727         Depend on gettext-h, not gettext.
82728
82729 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82730
82731         * gnulib-tool (func_import): Add support for 'public domain' license.
82732         * modules/alloca, modules/atexit, modules/memmove:
82733         Now public domain, not GPL.
82734         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82735         * modules/realloc, modules/strerror, modules/strtod:
82736         Now LGPL, not GPL.
82737
82738 2005-07-05  Bruno Haible  <bruno@clisp.org>
82739
82740         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82741         autoconf CVS. Needed for mingw.
82742
82743 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82744
82745         Remove the dependency of the strftime module on the tzset module.
82746         * modules/strftime (Depends-on): Remove dependency on tzset.
82747
82748 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82749
82750         Remove the dependency of the strftime module on the tzset module.
82751         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82752         gl_FUNC_TZSET_CLOBBER.
82753
82754 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82755
82756         Remove the dependency of the strftime module on the tzset module.
82757         * lib/strftime.c (my_strftime)
82758         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82759         Copy the input structure, to work around some of the bug with
82760         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82761         Solaris releases, you should also use the tzset module, but we won't
82762         require it as a dependency any more since we don't want LGPLed code
82763         to depend on GPLed code.
82764
82765 2005-07-02  Jim Meyering  <jim@meyering.net>
82766
82767         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82768         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82769         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82770         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82771
82772 2005-07-02  Jim Meyering  <jim@meyering.net>
82773
82774         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82775
82776 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82777
82778         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82779         declares only 'struct timespec;' (!).
82780
82781 2005-07-01  Jim Meyering  <jim@meyering.net>
82782
82783         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82784         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82785         * lib/save-cwd.c, tempname.c:
82786         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82787         and don't include <sys/file.h>).
82788
82789 2005-06-29  Jim Meyering  <jim@meyering.net>
82790
82791         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82792         type name.  Use the variable name instead.
82793         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82794         Likewise.
82795
82796 2005-06-28  Simon Josefsson  <jas@extundo.com>
82797
82798         * modules/check-version (Files): Add check-version.m4.
82799
82800 2005-06-28  Simon Josefsson  <jas@extundo.com>
82801
82802         * m4/check-version.m4: New file, suggested by Jim Meyering
82803         <jim@meyering.net>.
82804
82805 2005-06-28  Simon Josefsson  <jas@extundo.com>
82806
82807         * lib/check-version.h, lib/check-version.c: New files.
82808
82809 2005-06-28  Simon Josefsson  <jas@extundo.com>
82810
82811         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82812         collision with global variable.  Better indentation.  Don't
82813         increment buffer pointer beyond buffer end.  Based on comments
82814         from Paul Eggert <eggert@cs.ucla.edu>.
82815
82816         * lib/base64.h: Indent.
82817
82818 2005-06-28  Simon Josefsson  <jas@extundo.com>
82819
82820         * doc/gnulib.texi (Library version handling): New section.
82821
82822 2005-06-28  Jim Meyering  <jim@meyering.net>
82823
82824         * check-module (find_included_lib_files): Hard-code another
82825         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82826         but modules/fts-lgpl (correctly) does not list those files.
82827
82828         * modules/canonicalize (Files): Add lib/pathmax.h.
82829
82830 2005-06-25  Simon Josefsson  <jas@extundo.com>
82831
82832         * modules/check-version: New file.
82833
82834 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82835
82836         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82837         initializer of struct addrinfo, as an indication that we don't
82838         care how many members the structure has.
82839
82840 2005-06-24  Derek Price  <derek@ximbiot.com>
82841         and Bruno Haible  <bruno@clisp.org>
82842
82843         Remove stat module & update lstat.
82844         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82845         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82846         * m4/stat.m4: Remove this file.
82847
82848 2005-06-24  Derek Price  <derek@ximbiot.com>
82849         and Bruno Haible  <bruno@clisp.org>
82850
82851         Remove stat module & update lstat.
82852         * lib/stat.c: Remove this file...
82853         (slash_aware_lstat): ...moving this content and its support...
82854         * lib/lstat.c (rpl_lstat): ...into here.
82855         * lib/lstat.h: New file.
82856
82857 2005-06-24  Derek Price  <derek@ximbiot.com>
82858         and Bruno Haible  <bruno@clisp.org>
82859
82860         Remove stat module & update lstat.
82861         * config/srclist.txt (libc sources): Remove stat.
82862
82863 2005-06-24  Derek Price  <derek@ximbiot.com>
82864         and Bruno Haible  <bruno@clisp.org>
82865
82866         Remove stat module & update lstat.
82867         * MODULES.html.sh (stat): Remove.
82868         * MODULES.html: Regenerated.
82869         * modules/lstat (Description): Correct function name.
82870         (Files): Add "lstat.h".
82871         (Depends-on): Remove stat, add xalloc, stat-macros.
82872         * modules/stat: Remove this file.
82873         (Include): Add "lstat.h", remove <sys/stat.h>.
82874
82875 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82876
82877         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82878         (ranged_convert): Don't save conversion in a temporary struct.
82879         This causes a warning with GCC 4.0.0, and anyway in the typical
82880         case it's not worth the extra 100 bytes or so of code.
82881         (ranged_convert, __mktime_internal): When calling a function via a
82882         pointer P, use P () rather than (*P) (), as we now assume C89 or
82883         better.
82884
82885 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82886
82887         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82888         "who -r" failed to give output.  Problem reported by Tim Waugh.
82889
82890         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82891         (xcalloc): Use it to avoid needless tests.
82892         Problem reported by Jim Meyering.
82893
82894 2005-06-20  Derek Price  <derek@ximbiot.com>
82895
82896         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82897         unnecessary for Autoconfs > 2.59c.
82898
82899 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82900
82901         * lib/argp.h (__option_is_short): Check upper limit of
82902         __key. Isprint() requires its argument to have the value
82903         of an unsigned char or EOF.
82904
82905 2005-06-16  Jim Meyering  <jim@meyering.net>
82906
82907         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82908         when either N or S is zero.
82909
82910 2005-06-16  Derek Price  <derek@ximbiot.com>
82911
82912         * m4/bison.m4: Declare YACC & YFLAGS precious.
82913
82914 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82915
82916         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82917         multibyte string or pattern, fall back on unibyte matching.
82918         Problem reported by James Youngman.
82919
82920 2005-06-08  Bruno Haible  <bruno@clisp.org>
82921
82922         * modules/csharpcomp: New file.
82923         * MODULES.html.sh (C#): Add csharpcomp.
82924
82925 2005-06-08  Bruno Haible  <bruno@clisp.org>
82926
82927         * m4/csharpcomp.m4: New file, from GNU gettext.
82928
82929 2005-06-08  Bruno Haible  <bruno@clisp.org>
82930
82931         * lib/csharpcomp.h: New file, from GNU gettext.
82932         * lib/csharpcomp.c: New file, from GNU gettext.
82933         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82934
82935 2005-06-08  Bruno Haible  <bruno@clisp.org>
82936
82937         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82938         warning on mingw.
82939
82940 2005-06-07  Derek Price  <derek@ximbiot.com>
82941
82942         Sync from CVS.
82943         * lib/glob_.h: Indent nested #ifdef.
82944
82945 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82946
82947         Sync from coreutils.
82948         Use "file name" when talking about file names, instead of "filename"
82949         or "path", as per the GNU coding standards.
82950         * lib/mkdir-p.c: Renamed from makepath.c.
82951         (make_dir_parents): Renamed from make_path.  All callers changed.
82952         * lib/mkdir-p.h: Likewise.  All includers changed.
82953         * lib/filenamecat.c: Renamed from path-concat.c.
82954         (file_name_concat): Renamed from path_concat.  All callers changed.
82955         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82956         * lib/filenamecat.h: Likewise.  All includers changed.
82957         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82958         in comments or local variable names.
82959         * lib/basename.c: Likewise.
82960         * lib/canonicalize.c, canonicalize.h: Likewise.
82961         * lib/dirname.c, dirname.h: Likewise.
82962         * lib/euidaccess.c: Likewise.
82963         * lib/exclude.c: Likewise
82964         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82965         * lib/fsusage.c, fsuage.h: Likewise.
82966         * lib/fts.c, fts_.h: Likewise.
82967         * lib/getcwd.c: Likewise.
82968         * lib/getloadavg.c: Likewise.
82969         * lib/mkstemp.c: Likewise.
82970         * lib/mountlist.c, mountlist.h: Likewise.
82971         * lib/openat.c, openat.h: Likewise.
82972         * lib/readlink-stub.c: Likewise.
82973         * lib/readutmp.c, readutmp.h: Likewise.
82974         * lib/rename.c: Likewise.
82975         * lib/rmdir.c: Likewise.
82976         * lib/same.c: Likewise.
82977         * lib/savedir.c: Likewise.
82978         * lib/stripslash.c: Likewise.
82979         * lib/tempname.c: Likewise.
82980         * lib/xreadlink.c: Likewise.
82981         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82982         All uses changed.
82983         * lib/exclude.h: Likewise.
82984
82985         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82986         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82987         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82988         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82989         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82990         files have been getting away with it for years (MORE/BSD 4.3
82991         is extinct now).
82992         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82993         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82994
82995         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82996         Define to 256, not 255, as per modern POSIX.
82997
82998 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82999
83000         Sync from coreutils.
83001         Use "file name" when talking about file names, instead of "filename"
83002         or "path", as per the GNU coding standards.
83003         * MODULES.html.sh: mkdir-p renamed from makepath.
83004         filenamecat renamed from path-concat.
83005         * modules/filenamecat: Renamed from modules/path-concat.
83006         (Files): filenamecat.h and filenamecat.c renamed from
83007         path-concat.h and path-concat.c.
83008         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83009         (Include): filenamecat.h, not path-concat.h.
83010         * modules/mkdir-p: Renamed from modules/makepath.
83011         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83012         makepath.c.
83013         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83014         (Include): mkdir-p.h, not makepath.h.
83015
83016 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83017
83018         Sync from coreutils.
83019         * m4/mkdir-p.m4: Renamed from makepath.m4.
83020         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83021         Rename files from makepath.c to mkdir-p.c, and from
83022         makepath.h to mkdir-p.h.
83023         * m4/filenamecat.m4: Renamed from path-concat.m4.
83024         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83025         Rename files from path-concat.c to filenamecat.c,
83026         and from path-concat.h to filenamecat.h.
83027         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83028         "file name" in local variables or comments.
83029         * m4/rename.m4: Likewise.
83030
83031 2005-06-01  Bruno Haible  <bruno@clisp.org>
83032
83033         * modules/csharpexec: New file.
83034         * MODULES.html.sh (C#): New section.
83035
83036 2005-06-01  Bruno Haible  <bruno@clisp.org>
83037
83038         * m4/csharp.m4: New file, from GNU gettext.
83039         * m4/csharpexec.m4: New file, from GNU gettext.
83040
83041 2005-06-01  Bruno Haible  <bruno@clisp.org>
83042
83043         * lib/csharpexec.h: New file, from GNU gettext.
83044         * lib/csharpexec.c: New file, from GNU gettext.
83045         * lib/csharpexec.sh.in: New file, from GNU gettext.
83046
83047 2005-05-31  Derek Price  <derek@ximbiot.com>
83048             Paul Eggert  <eggert@cs.ucla.edu>
83049
83050         Sync from cvs.
83051         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83052
83053 2005-05-31  Derek Price  <derek@ximbiot.com>
83054             Paul Eggert  <eggert@cs.ucla.edu>
83055
83056         Sync from cvs.
83057         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83058
83059 2005-05-29  Derek Price  <derek@ximbiot.com>
83060
83061         * config/srclist.txt (glob_.h, glob.c): Add these files.
83062
83063 2005-05-29  Derek Price  <derek@ximbiot.com>
83064
83065         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83066         * modules/glob: New file.
83067         * modules/getlogin_r: Add link to POSIX spec in description.
83068
83069 2005-05-29  Derek Price  <derek@ximbiot.com>
83070             Paul Eggert  <eggert@cs.ucla.edu>
83071
83072         * m4/glob.m4: New file.
83073
83074 2005-05-29  Derek Price  <derek@ximbiot.com>
83075             Paul Eggert  <eggert@cs.ucla.edu>
83076
83077         * lib/glob_.h, lib/glob.c: New files.
83078
83079 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83080
83081         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83082         * modules/fts-lgpl (Depends-on): Remove gettext.
83083
83084 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83085
83086         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83087         and don't require gt_INTTYPES_PRI.
83088
83089 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83090
83091         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83092
83093         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83094         the configuration hassle isn't worth it.
83095         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83096         (LONGEST_MODIFIER, PRIuMAX): Remove.
83097
83098 2005-05-27  Bruno Haible  <bruno@clisp.org>
83099
83100         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83101
83102 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83103
83104         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83105         _POSIX_PTHREAD_SEMANTICS for Solaris.
83106
83107 2005-05-25  Derek Price  <derek@ximbiot.com>
83108
83109         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83110
83111 2005-05-25  Derek Price  <derek@ximbiot.com>
83112             Paul Eggert  <eggert@cs.ucla.edu>
83113
83114         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83115         * lib/getlogin_r.c, getlogin_r.h: New files.
83116
83117 2005-05-25  Bruno Haible  <bruno@clisp.org>
83118             Derek Price  <derek@ximbiot.com>
83119
83120         * lib/getlogin_r.h: Simplify API documentation.
83121
83122 2005-05-23  Derek Price  <derek@ximbiot.com>
83123
83124         * modules/minmax (Files): Add m4/minmax.m4.
83125         (configure.ac): Add gl_MINMAX.
83126
83127 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83128
83129         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83130         so that unistd-safer.h (GPL'ed code) need not be included.
83131
83132 2005-05-22  Bruno Haible  <bruno@clisp.org>
83133
83134         * m4/minmax.m4: New file.
83135         Based on a patch by Derek Price <derek@ximbiot.com>.
83136
83137 2005-05-22  Bruno Haible  <bruno@clisp.org>
83138
83139         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83140         (INT64_MIN): Fix definition.
83141         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83142
83143         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
83144         NEED_SIGNED_INT_TYPES.
83145
83146         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
83147         HAVE_SYSTEM_INTTYPES.
83148
83149 2005-05-22  Bruno Haible  <bruno@clisp.org>
83150
83151         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
83152         Also include <sys/param.h> if it defines MIN, MAX.
83153         Based on a patch by Derek Price <derek@ximbiot.com>.
83154
83155 2005-05-21  Jim Meyering  <jim@meyering.net>
83156
83157         * modules/fts (Files): Add m4/inttypes-pri.m4.
83158         (Depends-on): Add lstat and remove gettext.  Alphabetize.
83159
83160 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83161
83162         New fts module.
83163         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
83164         (setup_dir, free_dir): New functions.
83165         (enter_dir, leave_dir): Define trivial
83166         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
83167         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
83168         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
83169         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
83170         Move to fts-cycle.c.
83171         (fts_open): Use setup_dir.
83172         (fts_close): Use free_dir.
83173         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
83174         This adds a label and some gotos, but the alternatives were messier.
83175         Check for memory allocation failure when entering a dir.
83176         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
83177         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
83178         (FTS): New member fts_cycle, that is a union that contains the
83179         old active_dir_ht and cycle_state.  All uses changed to mention
83180         fts_cycle.ht and fts_cycle.state.
83181         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83182         fts.c, with the following changes:
83183         (setup_dir, free_dir): New functions.
83184         (enter_dir): Now returns bool.  Return true if successful, false
83185         if memory exhausted.  All callers changed.
83186         Do not bother partly cleaning up on
83187         memory allocation failure; that is free_dir's job.
83188         However, free ad if hash_insert fails, to avoid memory leak.
83189         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83190         fts->fts_options to see which union member to use.
83191
83192 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83193
83194         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83195         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83196
83197 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83198
83199         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83200
83201 2005-05-20  Jim Meyering  <jim@meyering.net>
83202
83203         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83204         Now a macro, to pacify GCC.
83205
83206 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83207
83208         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83209         of -1.
83210
83211 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83212
83213         * lib/chown.c (rpl_chown): Return -1 on failure.
83214
83215 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83216
83217         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83218         Don't check for stddef.h.
83219         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83220         don't use its results.
83221         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83222         since we include them unconditionally.  Don't require
83223         AM_STDBOOL_H, since stdbool is a prerequisite.
83224         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83225         since we assume C89 or better.
83226         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83227         as we don't use their results.
83228         Don't check for fchdir, memmove, memset, strrchr, as we use
83229         them unconditionally.
83230         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83231         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83232
83233 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83234
83235         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83236         Include <stddef.h> unconditionally, since we assume C89 now.
83237         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83238         * lib/fts.c: Include fts_.h first, to check interface.
83239         Do not include intprops.h; no longer needed.
83240         Include cycle-check.h and hash.h, since fts_.h no longer does.
83241         Remove unnecessary casts of closedir to void.
83242         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
83243         decide whether to decrement nlinks.
83244         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
83245         (FTS): Use struct hash_table * instead of Hash_table, so that
83246         we no longer need to include hash.h here.
83247
83248 2005-05-18  Jim Meyering  <jim@meyering.net>
83249
83250         * modules/dirfd (License): Change to LGPL.  Most of the code
83251         is already in the public domain.
83252
83253 2005-05-18  Jim Meyering  <jim@meyering.net>
83254
83255         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83256         Reported by Yoann Vandoorselaere.
83257
83258 2005-05-17  Jim Meyering  <jim@meyering.net>
83259
83260         * m4/fts.m4: New file, from coreutils.
83261
83262 2005-05-17  Jim Meyering  <jim@meyering.net>
83263
83264         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83265
83266 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83267
83268         Sync from coreutils.
83269         * m4/unlinkdir.m4: New file.
83270
83271 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83272
83273         Sync from coreutils.
83274         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83275         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83276         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83277         White space changes only.
83278         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83279         special.
83280         * lib/yesno.c: Include getline.h, not ctype.h.
83281         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83282         Use getline to remove arbitrary restriction on response length.
83283
83284 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83285
83286         * config/srclist-update: Spell out "Street" in FSF postal
83287         mail address; this is the style the FSF seems to prefer.
83288
83289         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83290         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83291         this updates FSF postal mail address.
83292
83293         Sync from coreutils.
83294         * modules/unlinkdir: New file.
83295         * modules/yesno (Depends-on): Add getline.
83296         * MODULES.html.sh (File system functions): Add unlinkdir.
83297
83298 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83299
83300         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83301         lib/strsep.h:
83302         Change the initial comment to refer to GPL, not LGPL.
83303         gnulib-tool will change it to LGPL as needed.
83304
83305         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83306         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83307         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83308         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83309         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83310         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83311         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83312         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83313         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83314         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83315         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83316         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83317         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83318         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83319         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83320         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83321         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83322         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83323         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83324         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83325         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83326         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83327         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83328         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83329         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83330         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83331         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83332         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83333         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83334         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83335         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83336         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83337         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83338         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83339         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83340         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83341         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83342         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83343         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83344         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83345         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83346         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83347         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83348         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83349         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83350         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83351         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83352         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83353         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83354         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83355         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83356         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83357         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83358         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83359         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83360         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83361         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83362         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83363         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83364         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83365         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83366         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83367         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83368         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83369         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83370         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83371         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83372         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83373         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83374         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83375         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83376         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83377         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83378         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83379         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83380         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83381         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83382         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83383         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83384         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83385         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83386         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83387         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83388         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83389         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83390         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83391         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83392         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83393         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83394         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83395         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83396         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83397         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83398         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83399         lib/yesno.c, lib/yesno.h:
83400         Update FSF postal mail address.
83401
83402 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83403
83404         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83405         tests/test-memmem.c, tests/test-stpncpy.c:
83406         Update FSF postal mail address.
83407
83408 2005-05-13  Bruno Haible  <bruno@clisp.org>
83409
83410         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83411         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83412         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83413         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83414         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83415         Add support for 64-bit integers in the MSVC compiler.
83416
83417 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83418
83419         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83420
83421 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83422
83423         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83424
83425 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83426
83427         * doc/getdate.texi (General date syntax): Don't say that date
83428         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83429         Problem reported by Nic Ferrier.
83430
83431 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83432
83433         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83434         specified in ai_socktype. Fix invalid ai_protocol
83435         check. ai_protocol is usually set to 0 or depending on
83436         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83437         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83438         ai_socktype / ai_protocol in the returned addrinfo structure.
83439
83440 2005-05-10  Simon Josefsson  <jas@extundo.com>
83441
83442         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83443         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83444
83445 2005-05-10  Karl Berry  <karl@gnu.org>
83446
83447         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83448         (from http://www.gnu.org/licenses).
83449         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83450         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83451         fdl.texi suffices.
83452
83453 2005-05-10  Karl Berry  <karl@gnu.org>
83454
83455         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83456         (COPYING.DOC): remove.
83457
83458         * config/srclist-update: new FSF address.
83459
83460 2005-05-10  Derek Price  <derek@ximbiot.com>
83461
83462         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83463         possible.
83464
83465 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83466             Bruno Haible  <bruno@clisp.org>
83467
83468         * modules/inet_ntop: New file.
83469         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83470         inet_ntop.
83471
83472 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83473             Bruno Haible  <bruno@clisp.org>
83474
83475         * m4/inet_ntop.m4: New file.
83476
83477 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83478             Bruno Haible  <bruno@clisp.org>
83479
83480         * lib/inet_ntop.h: New file.
83481         * lib/inet_ntop.c: New file, from glibc with modifications.
83482
83483 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83484
83485         * modules/time_r (License): Change to LGPL.
83486         * modules/extensions (License): Change to LGPL.  Actually,
83487         the license is more permissive than that, but currently gnulib-tool
83488         doesn't know how to handle more-permissive licenses.
83489
83490         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83491         Problem reported by Dave Love.
83492
83493 2005-05-08  Jim Meyering  <jim@meyering.net>
83494
83495         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83496         blank.
83497
83498 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83499
83500         * modules/argmatch (Depends-on): Add stdbool.
83501         * modules/backupfile (Depends-on): Likewise.
83502         * modules/chdir-long (Depends-on): Likewise.
83503         * modules/closeout (Depends-on): Likewise.
83504         * modules/cycle-check (Depends-on): Likewise.
83505         * modules/dirname (Depends-on): Likewise.
83506         * modules/fnmatch (Depends-on): Likewise.
83507         * modules/fsusage (Depends-on): Likewise.
83508         * modules/fwriteerror (Depends-on): Likewise.
83509         * modules/getcwd (Depends-on): Likewise.
83510         * modules/getloadavg (Depends-on): Likewise.
83511         * modules/hard-locale (Depends-on): Likewise.
83512         * modules/makepath (Depends-on): Likewise.
83513         * modules/mountlist (Depends-on): Likewise.
83514         * modules/nanosleep (Depends-on): Likewise.
83515         * modules/posixtm (Depends-on): Likewise.
83516         * modules/quotearg (Depends-on): Likewise.
83517         * modules/readtokens (Depends-on): Likewise.
83518         * modules/readtokens0 (Depends-on): Likewise.
83519         * modules/readutmp (Depends-on): Likewise.
83520         * modules/save-cwd (Depends-on): Likewise.
83521         * modules/strftime (Depends-on): Likewise.
83522         * modules/userspec (Depends-on): Likewise.
83523         * modules/utimecmp (Depends-on): Likewise.
83524         * modules/xgetcwd (Depends-on): Likewise.
83525         * modules/xnanosleep (Depends-on): Likewise.
83526         * modules/xstrtod (Depends-on): Likewise.
83527         * modules/yesno (Depends-on): Likewise.
83528
83529 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83530
83531         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83532         needless checks.
83533
83534 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83535
83536         Merge from coreutils.  Among other things,
83537         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83538         * lib/fd-safer.c: New file.
83539         * lib/fcntl-safer.h, open-safer.c: Remove.
83540         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83541         * lib/dup-safer.c: Include unistd-safer.h first.
83542         Don't include errno.h.
83543         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83544         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83545         * lib/file-type.c: Rely on file-type.h change.
83546         * lib/getloadavg.c: Include unistd-safer.h.
83547         (getloadavg): Use safer open.
83548         * lib/getusershell.c: Include "stdio-safer.h".
83549         (getusershell): Use safer fopen.
83550         * lib/long-options.c (long_options): Use NULL rather than 0.
83551         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83552         'free'.
83553         * lib/modechange.c: Likewise.
83554         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83555         (MODE_DONE): New constant.
83556         (struct mode_change): Remove 'next' member.
83557         (make_node_op_equals): New function; like the old one of the
83558         same name, except it allocates an array.
83559         (mode_compile, mode_create_from_ref): Use it.
83560         (mode_compile): Allocate result as an array, not a linked list.
83561         Parse octal string ourself, so that we catch mistakes like "+0".
83562         (mode_adjust): Arg is an array, not a linked list.
83563         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83564         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83565         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83566         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83567         Remove.  This is now stat-macros.h's job.
83568         (talloc): Remove.  All callers replaced by xalloc, so that
83569         our invokers don't have to worry about reporting memory failures.
83570         (make_node_op_equals): Remove.
83571         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83572         New constants.
83573         (struct mode_change): Moved here from modechange.h.
83574         (mode_append_entry): Remove.
83575         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83576         apps to have incorrect behavior.  Use simpler algorithm for head
83577         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83578         Detect more invalid usages rather than having somewhat-random behavior.
83579         Don't insert an "a=" action, as that leads to incorrect behavior.
83580         (mode_compile, mode_create_from_ref): Return NULL on error instead
83581         of an enum, since now there's only one way to have an error.  All
83582         callers changed.
83583         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83584         at the correct time.  Simplify calculation of "+u" and its ilk.
83585         Don't mishandle "+X".
83586         (mode_free): Remove "register" and localize decls.
83587         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83588         (struct mode_change): Move to modechange.c; callers don't
83589         need to see this stuff.
83590         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83591         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83592         (mode_change, mode_adjust): Reflect the new signatures noted above.
83593         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83594         that might redefine system include files.
83595         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83596         (my_usleep): Use NULL rather than (void *) 0.
83597         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83598         Use siginterrupt to specify that system calls should be interrupted.
83599         (rpl_nanosleep): Move initialization of suspended closer to call of
83600         my_usleep.
83601         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83602         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83603         (desirable_utmp_entry): New function.
83604         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83605         using x2nrealloc, to simplify logic.
83606         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83607         size calculation.  Do not assume utmp file is a regular file.
83608         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83609         (READ_UTMP_CHECK_PIDS): New constant.
83610         * lib/save-cwd.c: Include unistd-safer.h.
83611         (save_cwd): Use fd_safer.
83612         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83613         [!_LIBC] Include "stat-macros.h" instead.
83614         * lib/unistd-safer.h (fd_safer): New decl.
83615
83616 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83617
83618         * modules/getloadavg (Depends-on): Add unistd-safer.
83619         * modules/getusershell (Depends-on): Add stdio-safer.
83620         * modules/lstat (Depends-on): Remove xalloc.
83621         * modules/mkstemp (Depends-on): Add stat-macros.
83622         * modules/modechange (Depends-on): Remove xstrtol.
83623         Add stat-macros, xalloc.
83624         * modules/save-cwd (Depends-on): Add unistd-safer.
83625         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83626         * modules/unistd-safer (Files): Add lib/fd-safer.c
83627         (Makefile.am): Remove lib_SOURCES.
83628
83629         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83630         Remove fcntl-safer; unistd-safer supersedes it.
83631
83632 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83633
83634         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83635         AC_HEADER_STAT.
83636         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83637         (gl_PREREQ_CHOWN): Remove.
83638         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83639         it.  Don't require AC_HEADER_STAT.
83640         (gl_PREREQ_LSTAT): Remove.
83641         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83642         Don't require AC_HEADER_STAT.
83643         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83644         (gl_PREREQ_RMDIR): Remove.
83645         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83646         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83647         the stat-macros module a prerequisite.
83648         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83649         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83650         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83651         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83652         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83653         variable names.
83654         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83655         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83656         variable prefixes.
83657         * m4/fcntl-safer.m4: Remove.
83658         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83659         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83660         Invoke gl_PREREQ_FD_SAFER.
83661         (gl_PREREQ_FD_SAFER): New macro.
83662         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83663         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83664         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83665         Remove duplicate call to AC_LIBOBJ(readutmp).
83666         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83667
83668         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83669         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83670
83671 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83672
83673         * MODULES.html.sh (Misc): Add byteswap.
83674
83675 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83676
83677         * modules/getcwd (Depends-on): Add extensions.
83678         * modules/openat (Depends-on): Likewise.
83679
83680 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83681
83682         * modules/byteswap: New file.
83683
83684 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83685
83686         * m4/byteswap.m4: New file.
83687
83688 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83689
83690         * lib/byteswap_.h: New file.
83691
83692 2005-04-25  Karl Berry  <karl@gnu.org>
83693
83694         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83695
83696 2005-04-25  Albert Chin  <china@thewrittenword.com>
83697
83698         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83699         Toolkit C bug.
83700
83701 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83702
83703         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83704         (func_ln_if_changed): Remove forcibly for no error message
83705         in case file does not exist.
83706
83707 2005-04-19  Simon Josefsson  <jas@extundo.com>
83708
83709         * gnulib-tool (Options): Make --symlink mean --symbolic.
83710
83711 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83712
83713         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83714
83715 2005-04-16  Simon Josefsson  <jas@extundo.com>
83716
83717         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83718
83719 2005-04-15  Simon Josefsson  <jas@extundo.com>
83720
83721         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83722
83723 2005-04-15  Simon Josefsson  <jas@extundo.com>
83724
83725         * gnulib-tool: Rename --symlink to --symbolic.
83726
83727 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83728
83729         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83730         symbolic links to files instead of copying/moving.  Add --aux-dir,
83731         specifying directory relative --dir where auxiliary build tools
83732         are placed.
83733
83734 2005-04-14  Bruno Haible  <bruno@clisp.org>
83735
83736         * modules/allocsa (License): Change to LGPL.
83737         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83738
83739 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83740
83741         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83742         that "UTC +1 second" continues to work.  Problem reported
83743         by Dmitry V. Levin.
83744         (relunit_snumber): New rule.
83745         (relunit): Use it.
83746
83747 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83748
83749         * lib/getdate.y (universal_time_zone_table): New constant.
83750         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83751         universal_time_zone_table.
83752         (lookup_zone): Prefer universal_time_zone_table to
83753         local_time_zone_table, so that "GMT" time stamps are allowed in
83754         London during the summer.  Problem reported by Ian Abbott.
83755
83756 2005-04-12  Jim Meyering  <jim@meyering.net>
83757
83758         * lib/human.c (humblock): Set *options even when returning due to
83759         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83760         warning from gcc-4.
83761
83762 2005-04-09  Jim Meyering  <jim@meyering.net>
83763
83764         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83765         -Wuninitialized: initialize tm0.tm_year.
83766
83767 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83768
83769         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83770         count, since there's no maximum.  All uses changed.
83771         Add member dsts_seen.
83772         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83773         not being INT_MAX.
83774         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83775         Use pc_rels_seen to decide whether a date is absolute.
83776
83777         * lib/getdate.y (number): Don't overwrite year.
83778         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83779         check.
83780
83781 2005-04-02  Simon Josefsson  <jas@extundo.com>
83782
83783         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83784         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83785
83786 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83787
83788         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83789         where no absolute path name can be longer than PATH_MAX.
83790
83791 2005-03-27  Jim Meyering  <jim@meyering.net>
83792
83793         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83794
83795 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83796
83797         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83798         "one's complement" -> "ones' complement" in comment, as per Knuth.
83799         "value of type" -> "type or expression" in comment.
83800         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83801
83802 2005-03-26  Jim Meyering  <jim@meyering.net>
83803
83804         Comment nits.
83805         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83806         Correct typos: s/or/of/.
83807
83808 2005-03-26  Jim Meyering  <jim@meyering.net>
83809
83810         * modules/check-include-files: Move to ../ and rename to...
83811         * check-module: ...this.
83812
83813 2005-03-25  Jim Meyering  <jim@meyering.net>
83814
83815         * modules/xvasprintf (Files): Add xalloc.h.
83816
83817 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83818
83819         * modules/gettext (Files): config/config.rpath ->
83820         build-aux/config.rpath
83821         * modules/iconv (Files): Likewise.
83822         Problem reported by Oskar Liljeblad.
83823
83824 2005-03-23  Jim Meyering  <jim@meyering.net>
83825
83826         * modules/check-include-files: New script to check for
83827         missing dependencies, multiple includes, etc.
83828
83829         * modules/c-strtold (Depends-on): Add xalloc.
83830         * modules/c-strtod (Depends-on): Add xalloc.
83831         * modules/hash (Depends-on): Add xalloc.
83832         (Files): Remove lib/xalloc.h.
83833
83834         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83835         * modules/userspec (Files): Add lib/inttostr.h.
83836
83837 2005-03-23  Jim Meyering  <jim@meyering.net>
83838
83839         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83840
83841 2005-03-22  Jim Meyering  <jim@meyering.net>
83842
83843         * modules/stat-macros: New module.
83844         * modules/canonicalize, modules/euidaccess, modules/file-type,
83845         * modules/filemode, modules/lchown, modules/makepath,
83846         * modules/rmdir, modules/stat: Depend on new stat-macros module
83847         rather than listing lib/stat-macros.h manually.
83848         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83849
83850 2005-03-22  Jim Meyering  <jim@meyering.net>
83851
83852         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83853
83854 2005-03-22  Bruno Haible  <bruno@clisp.org>
83855
83856         * config/srclist.txt: Replace target directory 'config' with
83857         'build-aux'.
83858         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83859         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83860         ../build-aux/.
83861
83862 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83863
83864         * modules/chdir-long (Depends-on): Add mempcpy.
83865
83866         * modules/acl, modules/backupfile, modules/c-strtod,
83867         modules/c-strtold, modules/canon-host, modules/canonicalize,
83868         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83869         modules/exclude, modules/exitfail, modules/file-type,
83870         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83871         modules/getdate, modules/getline, modules/getpagesize,
83872         modules/getpass, modules/getugroups, modules/group-member,
83873         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83874         modules/inttostr, modules/long-options, modules/makepath,
83875         modules/md5, modules/memcasecmp, modules/memcoll,
83876         modules/modechange, modules/mountlist, modules/path-concat,
83877         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83878         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83879         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83880         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83881         modules/strftime, modules/strndup, modules/strverscmp,
83882         modules/timespec, modules/unlocked-io, modules/userspec,
83883         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83884         modules/yesno:
83885         Remove lib_SOURCES line from Makefile.am section, as this is now
83886         done automatically by the corresponding Autoconf macro.
83887
83888 2005-03-21  Jim Meyering  <jim@meyering.net>
83889
83890         Changes imported from coreutils.
83891
83892         * lib/cycle-check.c: Don't include xalloc.h.
83893
83894         * lib/path-concat.c: Don't include assert.h.
83895         (path_concat): Remove assertion that would have triggered
83896         for ABASE starting with more than one slash.
83897         Reported by Andreas Schwab.
83898
83899         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83900         properly when ABASE is an absolute file name.
83901         Correct the description of this function.
83902         Include <assert.h>.
83903         Add an assertion and a test driver.
83904         This fixes a bug introduced on 2004-07-02.
83905         Andreas Schwab reported the resulting failure of cp --parents:
83906         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83907
83908 2005-03-21  Jim Meyering  <jim@meyering.net>
83909
83910         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83911         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83912
83913 2005-03-21  Jim Meyering  <jim@meyering.net>
83914         and  Paul Eggert  <eggert@cs.ucla.edu>
83915
83916         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83917         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83918         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83919         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83920         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83921         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83922         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83923         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83924         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83925         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83926         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83927         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83928         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83929         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83930         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83931         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83932         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83933         for these modules.
83934
83935 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83936
83937         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83938         (which shouldn't happen), generate nothing instead of returning 0
83939         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83940
83941 2005-03-16  Bruno Haible  <bruno@clisp.org>
83942
83943         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83944         HAVE_LONGLONG_64BIT.
83945
83946 2005-03-16  Bruno Haible  <bruno@clisp.org>
83947
83948         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83949         HAVE_LONGLONG_64BIT.
83950
83951 2005-03-16  Bruno Haible  <bruno@clisp.org>
83952
83953         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83954         HAVE_LONGLONG_64BIT.
83955
83956 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83957
83958         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83959         reliably distinguish strftime failure from empty output on POSIX
83960         hosts.
83961
83962 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83963
83964         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83965         (iconv_string): Don't guess a size-zero buffer, as that might cause
83966         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83967         result would be 'too large', where 'too large' is (heuristically)
83968         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83969         overflow concerns.  This will prevent some unwanted malloc failures
83970         when the inputs are very large.
83971
83972 2005-03-15  Karl Berry  <karl@gnu.org>
83973
83974         * config/srclist.txt (config.rpath): from gettext.
83975         * config/config.rpath: update.
83976
83977 2005-03-15  Bruno Haible  <bruno@clisp.org>
83978
83979         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83980         to 'negate'.
83981
83982         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83983         variable.
83984
83985         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83986         results.
83987
83988 2005-03-14  Simon Josefsson  <jas@extundo.com>
83989
83990         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83991         <fx@gnu.org>.
83992
83993 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83994
83995         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83996         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83997         intprops.h.
83998         * lib/strtol.c: Likewise.
83999
84000 2005-03-14  Jim Meyering  <jim@meyering.net>
84001
84002         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
84003         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
84004         to be nonzero so that we (and caller) can detect the difference
84005         between a valid zero-length expansion and an error return, even
84006         when the underlying strftime fails before writing anything into
84007         that location.
84008
84009 2005-03-14  Bruno Haible  <bruno@clisp.org>
84010
84011         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84012         Update from GNU gettext 0.14.3.
84013
84014 2005-03-10  Jim Meyering  <jim@meyering.net>
84015
84016         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84017
84018 2005-03-10  Jim Meyering  <jim@meyering.net>
84019
84020         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84021         so that this module works on systems without fchdir.
84022
84023 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84024
84025         Factor int-properties macros into a single file, except for
84026         glibc-related files.
84027         * lib/intprops.h: New file.
84028         * lib/getloadavg.c: Include it instead of limits.h.
84029         (INT_STRLEN_BOUND): Remove.
84030         * lib/human.c: Include intprops.h.
84031         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84032         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84033         302/1000.
84034         * lib/inttostr.h: Include intprops.h instead of limits.h.
84035         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84036         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84037         for consistency with intprops.h.
84038         (time_t_is_integer, twos_complement_arithmetic): Use them.
84039         * lib/sig2str.h: Include <signal.h>, intprops.h.
84040         (INT_STRLEN_BOUND): Remove.
84041         * lib/strftime.c (TYPE_SIGNED): Remove.
84042         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84043         * lib/strtol.c: Adjust comments to match intprops.h.
84044         * lib/userspec.c: Include intprops.h.
84045         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84046         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84047         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84048         instead of rolling our own expressions.
84049         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84050
84051         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84052         instead of int.
84053         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84054         the right thing even if adding 1900 would overflow.  Similarly
84055         for tm_mon + 1 and tm_yday + 1.
84056         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84057         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84058         (DO_SIGNED_NUMBER): New macro.
84059         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84060
84061 2005-03-07  Bruno Haible  <bruno@clisp.org>
84062
84063         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84064
84065 2005-03-07  Bruno Haible  <bruno@clisp.org>
84066
84067         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84068
84069 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84070
84071         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84072         (func_import): Only replace files via --import when they have actually
84073         changed.
84074
84075 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84076
84077         * m4/mmap-anon.m4: New file.
84078         * m4/pagealign_alloc.m4: New file.
84079
84080 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84081             Bruno Haible  <bruno@clisp.org>
84082
84083         * modules/pagealign_alloc: New file.
84084         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84085
84086 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84087             Bruno Haible  <bruno@clisp.org>
84088
84089         * lib/pagealign_alloc.h: New file.
84090         * lib/pagealign_alloc.c: New file.
84091
84092 2005-03-03  Bruno Haible  <bruno@clisp.org>
84093
84094         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84095         Use an all-permissive copyright notice, recommended by RMS.
84096
84097 2005-03-02  Bruno Haible  <bruno@clisp.org>
84098
84099         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84100         of AIX, the replacement has to be done only after <string.h> is
84101         included, therefore not in config.h. stpncpy.h does the replacement,
84102         and stpncpy.c uses it.
84103
84104 2005-03-02  Bruno Haible  <bruno@clisp.org>
84105
84106         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84107         stpncpy.c uses it.
84108
84109 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84110
84111         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84112         The workaround isn't strictly needed for POSIX conformance, and
84113         it's too much of a pain to configure and maintain.  We'll ask
84114         people to fix their kernels instead.
84115         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84116         (NANOSLEEP_BUG_WORKAROUND): Remove.
84117         (xnanosleep): Remove the workaround.
84118
84119 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84120
84121         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84122         Reported by Derek Price.
84123         (Include): Add "timespec.h".
84124
84125         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84126
84127 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84128
84129         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84130         to detect nanosleep bug.
84131
84132 2005-03-01  Bruno Haible  <bruno@clisp.org>
84133
84134         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84135
84136 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84137
84138         * modules/gethrxtime: New file.
84139         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84140         (Depends-on): Add gethrxtime.
84141         (configure.ac): Add gl_XNANOSLEEP.
84142         (Makefile.am): Remove lib_SOURCES line.
84143
84144 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84145
84146         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
84147         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
84148
84149 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84150
84151         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
84152         * lib/timespec.h (gettime): Return void, since it always
84153         succeeds now.  All uses changed.
84154         * lib/gettime.c (gettime): Likewise.
84155         [HAVE_NANOTIME]: Prefer nanotime.
84156         Assume gettimeofday succeeds, as POSIX requires.
84157         Assime time () succeeds, since other code already does.
84158         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
84159         (timespec_subtract): Remove.
84160         (NANOSLEEP_BUG_WORKAROUND): New constant.
84161         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
84162         things considerably.  Use it only on GNU/Linux hosts, since the
84163         workaround shouldn't be needed elsewhere.
84164
84165 2005-02-24  Bruno Haible  <bruno@clisp.org>
84166
84167         * modules/gettext (Files): Add m4/glibc2.m4.
84168
84169 2005-02-24  Bruno Haible  <bruno@clisp.org>
84170
84171         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
84172         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
84173         * m4/progtest.m4:
84174         Update from GNU gettext 0.14.2.
84175         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
84176
84177 2005-02-24  Bruno Haible  <bruno@clisp.org>
84178
84179         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84180         * lib/config.charset: Update from GNU gettext 0.14.2.
84181
84182 2005-02-24  Bruno Haible  <bruno@clisp.org>
84183
84184         * lib/gettext.h: Update from GNU gettext 0.14.2.
84185
84186 2005-02-23  Simon Josefsson  <jas@extundo.com>
84187
84188         * m4/iconvme.m4: New file.
84189
84190 2005-02-23  Jim Meyering  <jim@meyering.net>
84191
84192         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84193         change.
84194         Thanks to Bruno Haible for catching it.
84195
84196 2005-02-22  Simon Josefsson  <jas@extundo.com>
84197
84198         * modules/iconvme: New file.
84199
84200         * MODULES.html.sh: Add iconvme.
84201
84202 2005-02-22  Simon Josefsson  <jas@extundo.com>
84203
84204         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84205
84206 2005-02-22  Simon Josefsson  <jas@extundo.com>
84207
84208         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84209
84210 2005-02-22  Jim Meyering  <jim@meyering.net>
84211
84212         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84213         s/ifndef/ifdef/.
84214
84215 2005-02-20  Neil Conway  <neilc@samurai.com>
84216
84217         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84218         returned by OSX/Darwin if the specified buffer is not large
84219         enough for the hostname.
84220
84221 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84222
84223         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84224         pass it to _help, otherwise the latter coredumps trying to
84225         dereference state.root_argp.
84226
84227 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84228
84229         * modules/chdir-long (Depends-on): Add memrchr.
84230         * modules/memrchr (Files): Add lib/memrchr.h.
84231         (Include): "memrchr.h".
84232
84233 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84234
84235         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84236
84237 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84238
84239         * lib/memrchr.h: New file.
84240         * lib/chdir-long.c: Include it.
84241         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
84242         Don't bother including stddef.h.
84243
84244 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84245
84246         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
84247         inclusion.
84248         Include <sys/types.h>, for dev_t.
84249         (ME_DUMMY, ME_REMOTE): Move from here....
84250         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
84251         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
84252         Dmitry V. Levin.
84253         Include mountlist.h first, to test the interface.
84254
84255 2005-01-29  Bruno Haible  <bruno@clisp.org>
84256
84257         * lib/progname.c (program_name): Initialize.
84258         Needed when linking statically on MacOS X.
84259
84260 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84261
84262         Sync from coreutils.
84263         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84264         (Depends-on): Add c-strtod.
84265         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84266
84267 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84268
84269         Sync from coreutils.
84270         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84271
84272         Remove files that are specific to coreutils.
84273         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84274
84275 2005-01-28  Bruno Haible  <bruno@clisp.org>
84276
84277         * modules/javacomp: New file.
84278         * MODULES.html.sh (Java): Add javacomp.
84279
84280 2005-01-28  Bruno Haible  <bruno@clisp.org>
84281
84282         * m4/javacomp.m4: New file, from GNU gettext.
84283
84284 2005-01-28  Bruno Haible  <bruno@clisp.org>
84285
84286         * lib/javacomp.sh.in: New file, from GNU gettext.
84287         * lib/javacomp.h: New file, from GNU gettext.
84288         * lib/javacomp.c: New file, from GNU gettext.
84289
84290 2005-01-26  Simon Josefsson  <jas@extundo.com>
84291
84292         * lib/gai_strerror.c: Use GPL in header.
84293
84294 2005-01-26  Bruno Haible  <bruno@clisp.org>
84295
84296         * modules/javaexec: New file.
84297         * MODULES.html.sh (Java): Add javaexec.
84298
84299 2005-01-26  Bruno Haible  <bruno@clisp.org>
84300
84301         * m4/javaexec.m4: New file, from GNU gettext.
84302
84303 2005-01-26  Bruno Haible  <bruno@clisp.org>
84304
84305         * lib/javaexec.sh.in: New file, from GNU gettext.
84306         * lib/javaexec.h: New file, from GNU gettext.
84307         * lib/javaexec.c: New file, from GNU gettext.
84308
84309 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84310
84311         * modules/lchown (Depends-on): Remove lchown.h
84312
84313 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84314
84315         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84316         must be defined if the header file was not found, in order
84317         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84318
84319 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84320
84321         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84322         initializers for struct pentry_state.
84323         (__argp_error): Check return value of __asprintf
84324         (__argp_failure): Translate error message
84325
84326         * lib/argp-parse.c: Removed braces around the expansion of N_()
84327
84328 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84329
84330         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84331         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84332         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84333         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84334         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84335         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84336         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84337         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84338         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84339         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84340         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84341         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84342         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84343         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84344         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84345         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84346         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84347         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84348         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84349         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84350         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84351         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84352         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84353         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84354         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84355         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84356         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84357         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84358         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84359         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84360         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84361         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84362         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84363         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84364         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84365         Use an all-permissive copyright notice, recommended by RMS.
84366
84367 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84368
84369         * modules/chdir-long (Depends-on): Remove mempcpy.
84370
84371 2005-01-21  Jim Meyering  <jim@meyering.net>
84372
84373         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84374         same value as for Solaris 9.
84375
84376         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84377         component length.  This included changing the parameter to be
84378         of type `char *' rather than `char const *'.
84379         * lib/chdir-long.h (chdir_long): Update prototype.
84380
84381         * lib/openat.c (fdopendir, fstatat): New functions.
84382         * lib/openat.h: Include headers required for use of DIR and struct
84383         stat.
84384         [AT_SYMLINK_NOFOLLOW]: Define.
84385         (fdopendir, fstatat): Add prototypes.
84386
84387 2005-01-21  Bruno Haible  <bruno@clisp.org>
84388
84389         * modules/classpath: New file.
84390         * MODULES.html.sh (Java): Add classpath.
84391
84392 2005-01-21  Bruno Haible  <bruno@clisp.org>
84393
84394         * lib/classpath.h: New file, from GNU gettext.
84395         * lib/classpath.c: New file, from GNU gettext.
84396
84397 2005-01-20  Simon Josefsson  <jas@extundo.com>
84398
84399         * modules/version-etc-fsf: New file.
84400
84401 2005-01-20  Simon Josefsson  <jas@extundo.com>
84402
84403         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84404         * lib/version-etc.c: Remove version_etc_copyright.
84405         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84406         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84407
84408 2005-01-20  Simon Josefsson  <jas@extundo.com>
84409
84410         * lib/base64.h (isbase64): Add.
84411
84412         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84413         using a unsigned prototype, don't inline.
84414         (base64_decode): Use it.
84415
84416 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84417
84418         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84419         it.
84420
84421 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84422
84423         * lib/save-cwd.c (save_cwd): Remove code to support the case
84424         where fchdir is missing or flaky.
84425
84426 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84427
84428         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84429
84430 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84431
84432         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84433         AC_LIBSOURCES now does this.
84434         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84435         with new ullong_max module.
84436
84437 2005-01-19  Bruno Haible  <bruno@clisp.org>
84438
84439         * modules/sh-quote: New file.
84440         * MODULES.html.sh (Executing programs): Add sh-quote.
84441
84442 2005-01-19  Bruno Haible  <bruno@clisp.org>
84443
84444         * lib/sh-quote.h: New file, from GNU gettext.
84445         * lib/sh-quote.c: New file, from GNU gettext.
84446
84447 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84448
84449         Merge from coreutils.
84450         * m4/ullong_max.m4: New file.
84451         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84452         (gl_MACROS): Assume localeconv exists.
84453
84454 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84455
84456         Merge changes from coreutils, as described below in several
84457         changelogs dated today.
84458
84459         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84460         (O_DIRECTORY): Remove; not needed here, since "." must be
84461         a directory.  All uses removed.
84462         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84463         universal on Suns, and we also need to test for IRIX.
84464         Revamp code to use 'if' rather than '#if'.
84465         Avoid unnecessary comparison of cwd->desc to 0.
84466
84467         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84468         for known valid error numbers rather than observed invalid ones.
84469
84470 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84471
84472         * modules/ullong_max: New file.
84473
84474         * modules/chdir-long, modules/openat: New files.
84475         * modules/save-cwd (Depends-on): Depend on chdir-long.
84476         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84477
84478 2005-01-18  Jim Meyering  <jim@meyering.net>
84479
84480         Merge from coreutils.
84481         * m4/chdir-long.m4, m4/openat.m4: New files.
84482         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84483         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84484         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84485         is sane and DOES follow symlinks.  Besides, testing 20 different
84486         systems found no broken chown implementations.
84487         Prompted by a change in rsync's copy of this macro.
84488         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84489
84490         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84491
84492         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84493         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84494         NULL-means-set-to-current-time semantics.
84495         Remove temporary file immediately, rather than waiting
84496         for configure's at-exit trap code to do it.
84497
84498 2005-01-18  Jim Meyering  <jim@meyering.net>
84499
84500         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84501
84502         * lib/utimens.c (futimens): Account for the fact that futimes
84503         can also fail with errno == ENOSYS or errno == ENOENT.
84504         Patch from Dmitry V. Levin.
84505
84506         Change the name of the robust chdir function from chdir to chdir_long.
84507         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84508         (restore_cwd): Use chdir_long, not chdir.
84509         * lib/chdir-long.c: Renamed from chdir.c.
84510         * lib/chdir-long.h: Renamed from chdir.h.
84511         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84512         Hurd.
84513
84514 2005-01-18  Bruno Haible  <bruno@clisp.org>
84515
84516         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84517         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84518         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84519         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84520         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84521         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84522         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84523         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84524         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84525         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84526         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84527         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84528         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84529         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84530         Use an all-permissive copyright notice, recommended by RMS.
84531
84532 2005-01-18  Bob Proulx  <bob@proulx.com>
84533
84534         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84535         simplify offsetof() macro construct to avoid compile failure with
84536         native HP-UX 11.0 ANSI C compiler.
84537
84538 2005-01-17  Bruno Haible  <bruno@clisp.org>
84539
84540         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84541         redundant because stpncpy.m4 takes care of it.
84542
84543 2005-01-17  Bruno Haible  <bruno@clisp.org>
84544
84545         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84546
84547 2005-01-17  Bruno Haible  <bruno@clisp.org>
84548
84549         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84550         used.
84551
84552 2005-01-17  Bruno Haible  <bruno@clisp.org>
84553
84554         * lib/fwriteerror.h (fwriteerror): Change specification to include
84555         fclose.
84556         * lib/fwriteerror.c: Include <stdbool.h>.
84557         (fwriteerror): At the end, close the file stream. Record whether
84558         stdout was already closed.
84559
84560 2005-01-17  Bruno Haible  <bruno@clisp.org>
84561
84562         * lib/execute.c (environ): Declare if needed.
84563         * lib/pipe.c (environ): Likewise.
84564         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84565
84566 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84567
84568         * modules/argp: Depend on vsnprintf
84569
84570 2005-01-10  Jim Meyering  <jim@meyering.net>
84571
84572         * modules/closeout (Depends-on): Add atexit.
84573
84574 2005-01-06  Bruno Haible  <bruno@clisp.org>
84575
84576         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84577
84578 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84579
84580         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84581         definitions to be after all include files, to avoid collisions.
84582         Problem reported by Bob Proulx.
84583
84584 2005-01-04  Jim Meyering  <jim@meyering.net>
84585
84586         Changes imported from coreutils.
84587         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84588         as the mkstemp template, use a temporary directory and an
84589         8.3-friendly template to avoid trouble on systems like DJGPP.
84590         Reported by Juan M. Guerrero via Stepan Kasal.
84591         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84592         close. Remove the temporary directory right away, rather than waiting
84593         for configure's at-exit trap code to do it.
84594         Suggestion from Stepan Kasal.
84595
84596 2005-01-01  Simon Josefsson  <jas@extundo.com>
84597
84598         * gnulib-tool: Print #include directives when --import'ing.
84599
84600 2004-12-28  Simon Josefsson  <jas@extundo.com>
84601
84602         * tests/test-base64.c: Include required header files.  Remove
84603         unused variables.
84604
84605 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84606
84607         * modules/error (Depends-on): Remove gettext.
84608
84609 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84610
84611         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84612         not needed.  This removes a dependency on the gettext module.
84613         [defined _LIBC]: Do not include <libintl.h>; not needed.
84614
84615 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84616
84617         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84618         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84619
84620 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84621
84622         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84623         HAVE_DECL_STRTOLD.
84624
84625 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84626
84627         * modules/getdate (Depends-on): Remove alloca-opt.
84628
84629 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84630
84631         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84632
84633 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84634
84635         * lib/argp-parse.c: Include <stddef.h>.
84636         (alignof, alignto): New macros.
84637         (parser_init): Don't assume that void * is aligned sufficiently
84638         for struct option.
84639
84640         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84641         need to extend the stack.
84642         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84643         large.
84644
84645 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84646
84647         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84648
84649 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84650
84651         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84652         (2004-10-24) change.  Apparently this was a false alarm.
84653
84654         * modules/getdate: Depend on alloca-opt, not alloca.
84655
84656 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84657
84658         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84659         Remove now-obsolete comment about AIX.
84660         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84661         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84662         (YYMAXDEPTH): New macro.
84663
84664 2004-12-18  Simon Josefsson  <jas@extundo.com>
84665
84666         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84667
84668 2004-12-18  Bruno Haible  <bruno@clisp.org>
84669
84670         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84671
84672 2004-12-18  Bruno Haible  <bruno@clisp.org>
84673
84674         * lib/fatal-signal.c (fatal_signals): Make non-const.
84675         (init_fatal_signals): New function.
84676         (uninstall_handlers, install_handlers): Ignore signals that were set to
84677         SIG_IGN.
84678         (at_fatal_signal): Call init_fatal_signals.
84679         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84680         SIG_IGN.
84681         Reported by Paul Eggert.
84682
84683 2004-12-18  Bruno Haible  <bruno@clisp.org>
84684
84685         * doc/alloca.texi: New file.
84686         * doc/alloca-opt.texi: New file.
84687
84688 2004-12-17  Jim Meyering  <jim@meyering.net>
84689
84690         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84691         Otherwise, install-sh could exit with improper exit status when
84692         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84693
84694 2004-12-16  Simon Josefsson  <jas@extundo.com>
84695
84696         * tests/test-base64.c: Add license.
84697
84698 2004-12-15  Stepan Kasal  <address@hidden>
84699
84700         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84701
84702 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84703
84704         * modules/getcwd (Files): Add m4/d-ino.m4.
84705         Suggested by Mark D. Baushke.
84706
84707 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84708
84709         * lib/getdate.y (textint): New member "negative".
84710         (time_zone_hhmm): New function.
84711         Expect 14 shift-reduce conflicts, not 13.
84712         (o_colon_minutes): New rule.
84713         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84714         (yylex): Set the "negative" member of signed numbers.
84715
84716 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84717
84718         * doc/getdate.texi (Time of day items, Time zone items):
84719         Describe new formats +00:00, UTC+00:00.
84720
84721 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84722
84723         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84724         spurious "-l"s.  Problem reported by Stepan Kasal.
84725
84726 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84727
84728         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84729         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84730
84731 2004-12-04  Simon Josefsson  <jas@extundo.com>
84732
84733         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84734         Vandoorselaere <yoann@prelude-ids.org>.
84735
84736 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84737
84738         Changes imported from coreutils.
84739         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84740         exist.
84741         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84742
84743 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84744
84745         Changes imported from coreutils.
84746         * lib/hard-locale.c: Assume <locale.h> exists.
84747         Include "strdup.h".
84748         (GLIBC_VERSION): New macro.
84749         (hard_locale): Assume setlocale exists.
84750         Rewrite to avoid #ifdef.
84751         Use strdup rather than malloc + strcpy.
84752         * lib/human.c: Assume <locale.h> exists.
84753         (human_readable): Assume localeconv exists.
84754
84755 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84756
84757         * modules/hard-locale (Depends-on): Add strdup.
84758
84759 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84760
84761         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84762         convert T2, not T.  (Imported from libc.)
84763
84764 2004-11-30  Simon Josefsson  <jas@extundo.com>
84765
84766         * modules/restrict (License): Change to LGPL.
84767
84768 2004-11-30  Simon Josefsson  <jas@extundo.com>
84769
84770         * m4/restrict.m4: Add copyright and copying conditions.
84771
84772 2004-11-30  Simon Josefsson  <jas@extundo.com>
84773
84774         * m4/base64.m4: New file.
84775
84776 2004-11-30  Simon Josefsson  <jas@extundo.com>
84777
84778         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84779         base64.
84780
84781         * tests/test-base64.c: New file.
84782
84783         * modules/base64: New file.
84784
84785 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84786
84787         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84788         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84789
84790         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84791
84792 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84793
84794         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84795         (__getcwd.c): Don't restore errno; glibc doesn't.
84796         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84797         first, falling back to our code only if its results look suspicious.
84798         Ensure that the resulting buffer is only as large as necessary.
84799
84800         * lib/readutmp.c: Include readutmp.h first.
84801         Include <errno.h>, since readutmp.h no longer does that.
84802         * lib/readutmp.h: Don't include <errno.h>,
84803         <sys/param.h>, <time.h>; not needed to establish interface.
84804         (errno): Remove decl.
84805         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84806         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84807         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84808
84809 2004-11-28  Simon Josefsson  <jas@extundo.com>
84810
84811         * lib/base64.h, base64.c: New file.
84812
84813 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84814
84815         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84816
84817 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84818
84819         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84820         (Depends-on): Remove pathmax, same.  Add mempcpy.
84821         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84822         (Makefile.am): Append getcwd.h to lib_SOURCES.
84823         (Include): Add getcwd.h.
84824         (Maintainer): Change from Jim Meyering to "all, glibc",
84825         since getdate now uses intended-for-glibc code.
84826         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84827         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84828
84829 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84830
84831         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84832         HP's ANSI C compiler.
84833         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84834         Declaring int functions causes warnings on some modern systems and
84835         shouldn't be needed to compile on ancient ones.
84836         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84837         defined.
84838
84839         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84840         with the following changes.
84841         (__set_errno): Parenthesize properly.
84842         Include <stdbool.h>.
84843         (MIN, MAX, MATCHING_INO): New macros.
84844         (__getcwd): Define with prototype, not K&R form.
84845         Use heuristics to allocate default buffer on stack if possible.
84846         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84847         behavior, and to avoid the PATH_MAX limit when computing
84848         ../../../../...
84849         Use MATCHING_INO to compare inode number to file.
84850         Check for arithmetic overflow in size calculations.
84851         Fix bug in reallocation of dot array that caused getcwd to fail
84852         on directories nested deeper than 75.
84853         Be more careful about saving errno on error.
84854         Do not use realloc; use only free+malloc, as this is a bit
84855         more flexible and avoids a needless copy operation.
84856         Do not inspect st_dev and st_ino for symbolic links; POSIX
84857         doesn't specify the latter.
84858         Check for closedir errors.
84859         Avoid needless casts.
84860         Use "#ifdef weak_alias" around weak_alias, to be like other
84861         glibc code.
84862         The following changes to getcwd.c have effect only when used in
84863         gnulib; they have no effect inside glibc proper.
84864         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84865         as alloca isn't used.
84866         (alloca, __alloca): Likewise.
84867         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84868         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84869         unconditionally, as gnulib assumes C89 or better.
84870         Do not include <sys/param.h>.
84871         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84872         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84873         better.
84874         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84875         Include <dirent.h> in a way that is compatible with modern Autoconf.
84876         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84877         New macros, if not already defined.
84878         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84879         Use "_LIBC", not "defined _LIBC", for consistency.
84880         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84881         a mempcpy module.
84882         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84883         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84884         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84885         credit only to Jim Meyering and adjust the copyright dates.
84886         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84887         <stdlib.h>, <unistd.h>, "pathmax.h".
84888         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84889         (INITIAL_BUFFER_SIZE): Remove.
84890         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84891
84892 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84893
84894         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84895         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84896         Use the _ONCE methods, for efficiency.
84897         Check for fcntl.h.  In test program, include <errno.h>
84898         and <fcntl.h> if available.  Remove old K&R cruft from
84899         test program.  Check for common errors in GNU/Linux,
84900         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84901         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84902         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84903         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84904         name accordingly.
84905         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84906         accommodate new getcwd.c.
84907         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84908         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84909         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84910         that's all we need now.
84911
84912 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84913
84914         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84915         argp-parse.c depends on getopt internals, that means we should
84916         always use our getopt, to be on the safe side.
84917         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84918         order not to spoil the result of an eventual previous invocation
84919         of gl_GETOPT_SUBSTITUTE.
84920
84921 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84922
84923         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84924         redefinition warnings. To avoid them, include the defines
84925         in `#if !defined __need_getopt ... #endif'. The only place
84926         where __getopt_argv_const is used is in definitions
84927         of getopt_long and getopt_long_only below, which are as well
84928         protected by `#ifndef __need_getopt'.
84929         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84930         __need_getopt after including <stdio.h> and <unistd.h> These
84931         headers might have defined it.
84932
84933 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84934
84935         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84936
84937 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84938
84939         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84940         (futimens): New function, which uses futimes if available.
84941         (futimens, utimens): Support timespec==NULL, with same semantics
84942         as utime and utimens.
84943         * lib/utimens.h (futimens): New decl.
84944
84945 2004-11-23  Jim Meyering  <jim@meyering.net>
84946
84947         * lib/getopt_.h: Remove trailing blanks.
84948
84949 2004-11-23  Jim Meyering  <jim@meyering.net>
84950
84951         * lib/__fpending.c: Add comment.
84952
84953 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84954
84955         * modules/canonicalize (Depends-on): Add xreadlink.
84956         Problem reported by James Youngman.
84957
84958 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84959
84960         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84961         New macros.
84962         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84963         optopt): Use them instead of invoking ## directly; otherwise, the
84964         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84965
84966 2004-11-19  Bruno Haible  <bruno@clisp.org>
84967
84968         * lib/strtok_r.c: Move comments from here...
84969         * lib/strtok_r.h: ... to here.
84970
84971 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84972
84973         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84974         implementations that mishandle size_t overflow.
84975
84976 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84977
84978         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84979         might fail.  Problem reported by Yoann Vandoorselaere.
84980         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84981         implementations that mishandle size_t overflow.
84982
84983 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84984
84985         * modules/canon-host (Depends-on): Add strdup.
84986
84987 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84988
84989         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84990
84991 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84992
84993         * lib/canon-host.c: Include "strdup.h".
84994         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84995         Use strdup instead of malloc/strcpy to duplicate strings.
84996
84997         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84998         (human_space_before_unit): New constant.
84999         * lib/human.c (human_readable): Support it.
85000
85001         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
85002         (xgetcwd): Set errno correctly when failing.
85003         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
85004         the failure is actually due to a PATH_MAX problem.
85005
85006         Further getopt changes to make it more likely that glibc will
85007         buy the changes back.
85008         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85009         (getopt): Use it, so to preserve glibc semantic
85010         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85011         when compiling for libc.
85012         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85013         (getopt_long, getopt_long_only): Use it.
85014
85015         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85016         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85017         (getopt): Argv is now char * const *, as per standard.
85018         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85019         not char *__getopt_argv_const *.
85020         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85021         _getopt_long_only_r): Likewise.
85022         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85023         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85024         _getopt_long_r, _getopt_long_only_r): Likewise.
85025         * lib/getopt_.h (__getopt_argv_const): Remove.
85026         (getopt): Argv is now char * const *, as per standard.
85027
85028         * lib/getdate.y (tORDINAL): New token.
85029         (day, relunit): Allow it for relative times.
85030         (relative_time_table): Use tORDINAL for ordinals.
85031
85032 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85033
85034         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85035         Document that "second" isn't allowed as an ordinal number.
85036
85037 2004-11-16  Jim Meyering  <jim@meyering.net>
85038
85039         * modules/closeout (Depends-on): Add fpending.
85040
85041 2004-11-15  Jim Meyering  <jim@meyering.net>
85042
85043         * lib/closeout.c: Include "__fpending.h" once again.
85044         Include <stdbool.h>.
85045         (close_stdout): Don't fail just because stdout was closed initially,
85046         since some programs don't write to stdout in the normal course of
85047         operation (other than --version and --help), and we don't want this
85048         function to make e.g. `touch file >&-' fail.
85049         But do fail if it was closed and someone has tried to write to it.
85050         E.g., `printf foo >&-' must fail.
85051
85052 2004-11-13  Jim Meyering  <jim@meyering.net>
85053
85054         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85055
85056 2004-11-12  Simon Josefsson  <jas@extundo.com>
85057
85058         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85059         small doc fix is still pending.
85060
85061 2004-11-11  Simon Josefsson  <jas@extundo.com>
85062
85063         * modules/strtok_r: New file.
85064
85065         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85066         strtok_r.
85067
85068 2004-11-11  Simon Josefsson  <jas@extundo.com>
85069
85070         * m4/strtok_r.m4: New file.
85071
85072         * m4/getopt.m4: Replace opterr.
85073
85074 2004-11-11  Simon Josefsson  <jas@extundo.com>
85075
85076         * lib/strtok_r.h, strtok_r.c: New file.
85077
85078 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85079
85080         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85081         of replacing opterr, getopt, etc.  This should handle the
85082         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85083
85084 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85085
85086         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85087         we can stop lying to compilers about the constness of argv when we
85088         are compiled outside glibc.
85089         (getopt, getopt_long, getopt_long_only): Use it.
85090         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85091         _getopt_internal, getopt): Likewise.
85092         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85093         _getopt_long_only_r): Likewise.
85094         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85095         _getopt_long_r, _getopt_long_only_r): Likewise.
85096
85097         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85098         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85099         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85100         the other external symbols.
85101         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85102         declaration, since the above renaming now works around collisions.
85103
85104 2004-11-11  Jim Meyering  <jim@meyering.net>
85105
85106         * lib/linebreak.c: Remove trailing blanks.
85107         * lib/alloca_.h: Likewise.
85108         * lib/acosl.c: Likewise.
85109         * lib/euidaccess.c: Likewise.
85110         * lib/allocsa.h: Likewise.
85111
85112 2004-11-10  Simon Josefsson  <jas@extundo.com>
85113
85114         * m4/getaddrinfo.m4: New file.
85115
85116 2004-11-10  Simon Josefsson  <jas@extundo.com>
85117
85118         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85119
85120 2004-11-10  Simon Josefsson  <jas@extundo.com>
85121
85122         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85123         getaddrinfo.
85124
85125         * modules/getaddrinfo: New file.
85126
85127 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85128
85129         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85130
85131 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85132
85133         * lib/mktime.c (SHR): New macro, which is a portable
85134         substitute for >> that should work even on Crays.
85135         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85136         Problem reported by Mark D. Baushke in
85137         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85138         * lib/getdate.y (SHR): Likewise.
85139         (tm_diff): Use it.
85140         * lib/strftime.c (SHR): Likewise.
85141         (tm_diff): Use it.
85142         * lib/quotearg.c (struct quoting_options): Use unsigned int for
85143         quote_these_too, so that right shifts are well defined.  All uses
85144         changed.
85145
85146 2004-11-10  Jim Meyering  <jim@meyering.net>
85147
85148         Ensure that no close failure goes unreported.
85149         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
85150         return early when it seems there's nothing to flush.
85151         Don't include __fpending.h.
85152
85153 2004-11-10  Jim Meyering  <jim@meyering.net>
85154
85155         * modules/closeout (Depends-on): Remove fpending.
85156
85157 2004-11-10  Jim Meyering  <jim@meyering.net>
85158
85159         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
85160
85161 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85162
85163         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
85164         gl_FUNC_STRFTIME.
85165         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
85166         and AC_REQUIRE when possible, to avoid duplicate checks.
85167         Check for <wchar.h>.
85168
85169 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85170
85171         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
85172
85173 2004-11-09  Bruno Haible  <bruno@clisp.org>
85174
85175         * m4/sockpfaf.m4: New file.
85176
85177 2004-11-05  Bruno Haible  <bruno@clisp.org>
85178
85179         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85180         Reported by Mark D. Baushke <mdb@cvshome.org>.
85181
85182 2004-11-04  Bruno Haible  <bruno@clisp.org>
85183
85184         2004-09-11  Bruno Haible  <bruno@clisp.org>
85185                 * allocsa.valgrind: New file.
85186         2004-02-06  Bruno Haible  <bruno@clisp.org>
85187                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85188                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85189                 Reported by Christopher Seip <chris.seip@hp.com>.
85190
85191 2004-11-04  Bruno Haible  <bruno@clisp.org>
85192
85193         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85194         (Makefile.am): Distribute it.
85195
85196 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85197
85198         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85199         with errno == ERANGE if the buffer is too small.
85200         Problem reported by Mark D. Baushke.
85201
85202 2004-11-03  Albert Chin  <china@thewrittenword.com>
85203             Paul Eggert  <eggert@cs.ucla.edu>
85204
85205         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85206         equivalent, substitute $ac_type for equivalent type rather than
85207         blindly using uint32_t *always* which won't work if uint32_t is not
85208         available.  Define _UINT32_T to work around typedef of uint32_t if
85209         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85210         2.5.1.
85211
85212 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85213
85214         * m4/jm-macros.m4: Sync from coreutils.
85215         (gl_MACROS): Check for mbrlen, for pathchk.
85216         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85217
85218 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85219
85220         * lib/xreadlink.c (MAXSIZE): New macro.
85221         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85222         size does not exceed MAXSIZE.  Avoid cast.
85223         As suggested by Mark D. Baushke in
85224         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85225         if readlink fails with buffer size just under MAXSIZE, try again
85226         with MAXSIZE.
85227
85228 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85229
85230         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85231
85232 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85233         and  Paul Eggert  <eggert@cs.ucla.edu>
85234
85235         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85236         (get_date): Overparenthesize to avoid GCC warning.
85237
85238 2004-11-02  Bruno Haible  <bruno@clisp.org>
85239
85240         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
85241         returns void.
85242
85243 2004-11-02  Bruno Haible  <bruno@clisp.org>
85244
85245         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
85246         function returns void.
85247
85248 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85249
85250         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
85251         fflush_unlocked, flockfile, funlockfile, funlockfile,
85252         fputs_unlocked, putc_unlocked.
85253
85254 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85255
85256         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85257         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85258         already declared.
85259
85260 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85261
85262         * modules/getdate (Files): Add doc/getdate.texi.
85263         (Depends-on): Add setenv, xalloc.
85264
85265 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85266
85267         * lib/getdate.y: Add support for TZ="foo" within a date string.
85268         Fix some bugs near time_t boundaries.  Reject dates with
85269         out-of-range components, e.g., "Sept 31".
85270         Include <stdlib.h>, "setenv.h", "xalloc.h".
85271         (ISDIGIT_LOCALE): Remove; unused.
85272         Note that the TZ and time functions used here are not reentrant.
85273         (mktime_ok, get_tz): New functions.
85274         (TZBUFSIZE): New constant.
85275         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85276         This requires that we sometimes generate our own TZ="XXX..." setting.
85277
85278 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85279
85280         * doc/getdate.texi: New file, from coreutils with modifications for
85281         the new TZ parsing.
85282
85283 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85284
85285         * lib/mktime.c (not_equal_tm): Remove redundant check.
85286
85287 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85288
85289         * modules/regex (lib_SOURCES): Add regex.c.
85290         Reported by James Youngman in
85291         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85292
85293 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85294
85295         * lib/getdate.y: Use Bison 1.875 features, and some minor
85296         code cleanups.  This change does not affect semantics.
85297         Don't include <stdlib.h>; no longer needed.
85298         Don't include unlocked-io.h; only the "#if TEST" code uses
85299         stdio, and performance isn't crucial there.
85300         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85301         Bison 1.875 features as described below.
85302         All uses of "PC." replaced by "pc->".
85303         (YYSTYPE): Add a forward declaration.
85304         (yylex, yyerror): Use full prototypes in forward decls.
85305         Use "%pure-parser" rather than obsolescent "%pure_parser".
85306         Use %parse-param and %lex-param instead of obsolescent
85307         YYPARSE_PARAM and YYLEX_PARAM.
85308         (meridian_table, month_and_day_table, time_units_table,
85309         relative_time_table, time_zone_table, military_table,
85310         lookup_zone, lookup_word, get_date):
85311         Use NULL instead of 0 where appropriate.
85312         (to_hour): Avoid abort (), to avoid a dependency on
85313         stdlib.h.
85314         (yyerror, yylex): Now accepts parser_control * arg.
85315         (main) [TEST]: Use '\0' rather than 0 for char.
85316
85317 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85318
85319         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85320
85321 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85322
85323         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85324         It's now the caller's responsibility to handle the case where
85325         !HAVE_GETPAGESIZE && !defined getpagesize.
85326
85327         * lib/mktime.c (leapyear): Arg is long int, not int.
85328
85329 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85330
85331         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85332
85333 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85334
85335         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85336         missing.  Problem reported by James Youngman.
85337
85338 2004-10-16  Simon Josefsson  <jas@extundo.com>
85339
85340         * gnulib-tool: Fix comments.  Fix parse problem.
85341         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85342
85343 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85344
85345         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85346         implementation of getopt_long.  Problem reported by Alexander Taler in:
85347         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85348
85349 2004-10-15  Bruno Haible  <bruno@clisp.org>
85350
85351         * gnulib-tool: Untabify. Initialize supplied_libname.
85352         (func_usage): More homogenous output.
85353         (func_modules_transitive_closure, func_modules_to_filelist,
85354         func_emit_lib_Makefile_am): New functions.
85355         (func_import): New function, extracted from big case statement. Use
85356         func_get_license, func_modules_transitive_closure,
85357         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85358         opt_lgpl. Don't use test -a, as it's not portable.
85359         (func_create_testdir): Use func_modules_transitive_closure,
85360         func_modules_to_filelist, func_emit_lib_Makefile_am.
85361
85362 2004-10-15  Bruno Haible  <bruno@clisp.org>
85363
85364         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85365
85366 2004-10-15  Bruno Haible  <bruno@clisp.org>
85367
85368         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85369         the portions belonging to each module.
85370         Suggested by Derek Robert Price <derek@ximbiot.com>.
85371
85372 2004-10-12  Simon Josefsson  <jas@extundo.com>
85373
85374         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85375         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85376         to real functions.
85377
85378 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85379
85380         * modules/vsnprintf: New file.
85381
85382 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85383
85384         * m4/vsnprintf.m4: New file.
85385
85386 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85387
85388         * lib/vsnprintf.h: New file.
85389         * lib/vsnprintf.c: New file.
85390
85391 2004-10-11  Bruno Haible  <bruno@clisp.org>
85392
85393         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85394         vsnprintf.
85395
85396 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85397
85398         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85399
85400 2004-10-07  Bruno Haible  <bruno@clisp.org>
85401
85402         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85403         fits into the provided buffer.
85404
85405 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85406
85407         * lib/diacrit.c, diacrit.h: Add GPL notice.
85408
85409         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85410         notice.
85411         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85412         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85413         This avoids a potential constant-folding bug.
85414
85415 2004-10-05  Bruno Haible  <bruno@clisp.org>
85416
85417         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85418         for the declaration of strsep.
85419
85420 2004-10-05  Bruno Haible  <bruno@clisp.org>
85421
85422         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85423
85424 2004-10-04  Simon Josefsson  <jas@extundo.com>
85425
85426         * modules/memmem: New file.
85427         * tests/test-memmem.c: New file.
85428         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85429
85430 2004-10-04  Simon Josefsson  <jas@extundo.com>
85431
85432         * m4/memmem.m4: New file.
85433
85434 2004-10-04  Simon Josefsson  <jas@extundo.com>
85435
85436         * lib/memmem.h: New file.
85437         * lib/memmem.c: New file, taken from glibc.
85438
85439 2004-10-04  Simon Josefsson  <jas@extundo.com>
85440
85441         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85442         '#ifdef USE_UNLOCKED_IO'.
85443
85444 2004-10-04  Simon Josefsson  <jas@extundo.com>
85445
85446         * config/srclist.txt: Add memmem from glibc.
85447
85448 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85449
85450         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85451
85452         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85453         modules/exclude, modules/getdate, modules/getline,
85454         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85455         modules/getusershell, modules/linebuffer, modules/md5,
85456         modules/mountlist, modules/posixtm, modules/readtokens,
85457         modules/readutmp, modules/regex, modules/sha1,
85458         modules/version-etc, modules/yesno:
85459         Remove dependency on unlocked-io.
85460
85461 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85462
85463         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85464
85465         * m4/unlocked-io.m4: Add copyright notice.
85466         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85467
85468 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85469
85470         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85471         * lib/xmalloc.c (xmemdup): Likewise.
85472         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85473         XFREE): Remove these long-obsolescent macros.
85474         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85475         * lib/xstrdup.c: Remove.
85476
85477         * lib/regex.c (re_comp): Cast gettext return value to char *,
85478         Problem reported by Martin Neitzel via Mark D. Baushke.
85479
85480 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85481
85482         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85483         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85484         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85485         regex.c, sha1.c, version-etc.c, yesno.c:
85486         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85487         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85488         the includer's responsibility.
85489
85490         Sync from coreutils.
85491
85492         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85493         points to the start of a string, as the C Standard says the
85494         resulting behavior is undefined.
85495
85496         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85497         simple -> simple_backups, numbered_existing ->
85498         numbered_existing_backups, numbered -> numbered_backups
85499         to avoid shadowing problems.  All uses changed.
85500         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85501         * lib/backupfile.c (check_extension, numbered_backup):
85502         Rename locals to avoid shadowing 'basename'.
85503         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85504         once.
85505
85506         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85507         * lib/.cvsignore: Add getopt.h.
85508
85509 2004-10-04  Bruno Haible  <bruno@clisp.org>
85510
85511         * modules/README: New file.
85512         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85513         not a module.
85514
85515 2004-10-02  Jim Meyering  <jim@meyering.net>
85516
85517         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85518
85519 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85520
85521         * modules/strsep: New file.
85522
85523 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85524
85525         * m4/strsep.m4: New file.
85526
85527 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85528
85529         * lib/strsep.h: New file.
85530         * lib/strsep.c: New file.
85531
85532 2004-10-01  Simon Josefsson  <jas@extundo.com>
85533
85534         * lib/snprintf.c (snprintf): Handle size==0.
85535
85536 2004-10-01  Simon Josefsson  <jas@extundo.com>
85537             Bruno Haible  <bruno@clisp.org>
85538
85539         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85540         (snprintf): Declare 'args'.
85541
85542 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85543
85544         * lib/snprintf.c: Remove comments as to why each header is needed.
85545
85546 2004-10-01  Bruno Haible  <bruno@clisp.org>
85547
85548         * MODULES.html.sh: Add strsep.
85549
85550 2004-09-30  Simon Josefsson  <jas@extundo.com>
85551
85552         * modules/snprintf: New file.
85553
85554 2004-09-30  Simon Josefsson  <jas@extundo.com>
85555
85556         * m4/snprintf.m4: New file.
85557
85558 2004-09-30  Simon Josefsson  <jas@extundo.com>
85559
85560         * lib/snprintf.h, lib/snprintf.c: New files.
85561
85562 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85563
85564         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85565         (hol_entry_help): Never translate an empty string.
85566         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85567         * lib/argp.h (OPTION_NO_TRANS): New option.
85568
85569 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85570
85571         * modules/argp (Maintainer): Replace Simon Josefsson
85572         by Sergey Poznyakoff.
85573
85574 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85575
85576         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85577         changes merged back into glibc.
85578
85579 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85580
85581         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85582
85583 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85584
85585         * lib/xvasprintf.c: Include xalloc.h.
85586         (xvasprintf): Use xalloc_die, not xmalloc_die.
85587
85588 2004-09-29  Bruno Haible  <bruno@clisp.org>
85589
85590         * modules/alloca-opt: New file, derived from modules/alloca.
85591         * modules/allocsa: Depend on alloca-opt instead of alloca.
85592         * modules/setenv: Likewise.
85593         * modules/vasnprintf: Likewise.
85594         * MODULES.html.sh: Add alloca-opt.
85595
85596 2004-09-28  Simon Josefsson  <jas@extundo.com>
85597
85598         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85599         LGPL, and to replace license template from GPL to LGPL.
85600
85601 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85602
85603         * modules/dummy: Change license to LGPL.
85604
85605 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85606
85607         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85608
85609 2004-09-24  Simon Josefsson  <jas@extundo.com>
85610
85611         * modules/minmax (License): Change from GPL to LGPL.
85612
85613 2004-09-23  Simon Josefsson  <jas@extundo.com>
85614
85615         * gnulib-tool (--import): Typo.
85616
85617 2004-09-23  Simon Josefsson  <jas@extundo.com>
85618
85619         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85620
85621 2004-09-22  Bruno Haible  <bruno@clisp.org>
85622
85623         * modules/*: Add 'License' field.
85624         * gnulib-tool: Accept --extract-license option.
85625         (func_get_license): New function.
85626
85627 2004-09-21  Bruno Haible  <bruno@clisp.org>
85628
85629         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85630         Reported by Simon Josefsson.
85631
85632 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85633
85634         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85635         gl_AC_TYPE_LONG_LONG.
85636
85637 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85638
85639         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85640
85641 2004-09-18  Simon Josefsson  <jas@extundo.com>
85642         and  Paul Eggert  <eggert@cs.ucla.edu>
85643
85644         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85645         calls with autoreconf.  Define GL_LIB.
85646
85647 2004-09-14  Karl Berry  <karl@gnu.org>
85648
85649         * config/srclist.txt: unsync setenv.c, sigh.
85650
85651 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85652
85653         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85654         Problem reported by Bruno Haible in:
85655         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85656
85657 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85658
85659         * config/srclist.txt: Comment out argp-pvh.c.
85660
85661 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85662
85663         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85664         in case some system header has #define'd it.  Problem reported by
85665         Soeren D. Schulze in
85666         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85667
85668 2004-09-09  Karl Berry  <karl@gnu.org>
85669
85670         * regex.[ch]: delete from the root.  These were supposed to be
85671                 synced with emacs cvs, but this has not happened for about
85672                 a year, and anyway nothing else uses emacs regex.[ch].
85673                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85674                 lib/regex[.ch] is untouched.
85675
85676 2004-09-09  Bruno Haible  <bruno@clisp.org>
85677
85678         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85679
85680 2004-09-09  Bruno Haible  <bruno@clisp.org>
85681
85682         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85683         modifications.
85684         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85685
85686 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85687
85688         * modules/xvasprintf: New file.
85689         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85690
85691 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85692
85693         * lib/xvasprintf.h: New file.
85694         * lib/xvasprintf.c: New file.
85695         * lib/xasprintf.c: New file.
85696
85697 2004-09-08  Bruno Haible  <bruno@clisp.org>
85698
85699         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85700
85701 2004-09-08  Bruno Haible  <bruno@clisp.org>
85702
85703         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85704         length is > INT_MAX.
85705         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85706         more.
85707
85708 2004-09-08  Bruno Haible  <bruno@clisp.org>
85709
85710         * lib/stdint_.h: New file, taken from GNU clisp.
85711
85712 2004-09-08  Bruno Haible  <bruno@clisp.org>
85713             Oskar Liljeblad  <oskar@osk.mine.nu>
85714
85715         * modules/stdint: New file.
85716         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85717
85718 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85719
85720         Import from coreutils.
85721         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85722         strings on unbounded length.  alloca's performance benefits aren't
85723         that important here.
85724         (V_STRDUP): Remove.
85725         (parse_with_separator): New function, with most of the internals
85726         of the old parse_user_spec.  Allow user to omit both user and group,
85727         for compatibility with FreeBSD.
85728         Clone only the user name, not the entire spec.
85729         Do not set *uid, *gid unless entirely successful.
85730         Avoid memory leak in some failing cases.
85731         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85732         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85733         (parse_user_spec): Rewrite to use parse_with_separator.
85734
85735 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85736
85737         * modules/userspec: Don't depend on alloca.
85738
85739 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85740
85741         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85742
85743 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85744
85745         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85746         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85747         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85748
85749 2004-08-16  Simon Josefsson  <jas@extundo.com>
85750
85751         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85752         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85753         Add --dry-run for --import.
85754         Let user provided command line parameters override configure.ac
85755         settings.
85756
85757 2004-08-12  Simon Josefsson  <jas@extundo.com>
85758
85759         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85760         as discussed with Paul Eggert in threads rooted at
85761         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85762         and
85763         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85764         Before, the test was empty, and relied on ELIDE_CODE in source
85765         code.)
85766         (gl_PREREQ_GETOPT): New macro.
85767         (gl_GETOPT): Use them.
85768
85769 2004-08-12  Simon Josefsson  <jas@extundo.com>
85770
85771         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85772         * lib/getopt_.h: Renamed from getopt.h.
85773
85774 2004-08-12  Simon Josefsson  <jas@extundo.com>
85775
85776         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85777         Change default library name from libfoo to libgnu.
85778         Now, if you have a configure.ac that says:
85779                 gl_SOURCE_BASE(gl)
85780                 gl_M4_BASE(gl/m4)
85781                 gl_MODULES(error getopt etcetera)
85782                 gl_INIT
85783         you can import all you need by running:
85784                 ../gnulib/gnulib-tool --import
85785
85786         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85787         (Makefile.am): Rewrite, use logic from argz.
85788         (Include): Use <getopt.h> instead of "getopt.h".
85789
85790 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85791
85792         * modules/argp (Files): Add m4/unlocked-io.m4.
85793         (Depends-on): Add extensions.
85794
85795 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85796
85797         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85798         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85799         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85800         Check for program_invocation_name, program_invocation_short_name,
85801         flockfile, funlockfile, features.h, _getopt_long_only_r.
85802
85803 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85804
85805         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85806         its complicated substitute.
85807         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85808         and program_invocation_name.
85809         (__argp_basename) [!_LIBC]: Remove; the only use was
85810         replaced by its body.
85811         (__argp_short_program_name): Change condition from
85812         !defined __argp_short_program_name to
85813         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85814         to match argp-namefrob.h.
85815         (__argp_failure): Don't assume strerror_r returns char *.
85816         * lib/argp-parse.c (N_): Define unconditionally.
85817         (argp_default_options): Fill out initializers with 0 to avoid
85818         gcc warnings.
85819
85820 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85821
85822         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85823         getopt1.c.
85824
85825 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85826
85827         Merge from coreutils.
85828
85829         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85830
85831         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85832         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85833
85834 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85835
85836         Merge from coreutils.
85837
85838         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85839         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85840         for Reliant Unix 5.43.
85841
85842         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85843         (union fooround): Use uintmax_t, not long int.
85844         The rest is a merge from libc:
85845         [defined _LIBC]: Include <shlib-compat.h>.
85846         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85847
85848         * lib/settime.c (settime): Recode to avoid warning with
85849         Sun Forte C 6U2.
85850
85851         * lib/strverscmp.c: Convert to UTF-8.
85852
85853 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85854
85855         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85856         m4/uintmax_t.m4.
85857
85858 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85859
85860         * modules/xalloc-die: New file.
85861         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85862
85863         * modules/md5 (Files): Add m4/uint32_t.m4.
85864         * modules/sha1: Renamed from modules/sha.
85865         (Files):
85866         Rename lib/sha.h to lib/sha1.h.
85867         Rename lib/sha.c to lib/sha1.c.
85868         Rename m4/sha.m4 to m4/sha1.m4.
85869         (lib_SOURCES): Likewise.
85870         (configure.ac): Rename gl_SHA to gl_SHA1.
85871         (Include): sha.h -> sha1.h.
85872
85873 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85874
85875         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85876         * m4/sha1.m4: Renamed from sha.m4.
85877         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85878
85879 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85880
85881         * lib/obstack.h (obstack_empty_p):
85882         Don't assume that chunk->contents is suitably aligned.
85883         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85884         Likewise. Problem reported by Benno in
85885         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85886
85887         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85888         readable.  This could be improved further but it'd take some work.
85889
85890 2004-08-08  Simon Josefsson  <jas@extundo.com>
85891
85892         * modules/xgethostname (Depends-on): Remove exit and error (not
85893         used).
85894
85895         * modules/getpass-gnu: Add getpass.h.
85896         (Depends-on): Add stdbool.
85897         * modules/getpass: Add getpass.h.
85898
85899 2004-08-08  Simon Josefsson  <jas@extundo.com>
85900
85901         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85902         Check getpass declaration.
85903
85904 2004-08-08  Simon Josefsson  <jas@extundo.com>
85905
85906         * lib/xgethostname.c: Don't include error.h (not used).
85907
85908         * lib/getpass.h: Add.
85909         * lib/getpass.c: Include getpass.h first.
85910
85911 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85912
85913         * lib/xalloc-die.c: New file.
85914         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85915         All uses removed.
85916         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85917         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85918         xalloc-die.c.
85919         (_, N_, xalloc_die): Move to xalloc-die.c.
85920         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85921         so that we needn't mess with xalloc_msg_memory_exhausted.
85922
85923         * lib/sha1.h: Renamed from sha.h.
85924         (SHA1_H): Renamed from _SHA_H.
85925         (sha1_ctx): Renamed from sha_ctx.
85926         (sha1_init_ctx): Renamed from sha_init_ctx.
85927         (sha1_process_block): Renamed from sha_process_block.
85928         (sha1_process_bytes): Renamed from sha_process_bytes.
85929         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85930         (sha1_read_ctx): Renamed from sha_read_ctx.
85931         (sha1_stream): Renamed from sha_stream.
85932         (sha1_buffer): Renamed from sha_buffer.
85933         * lib/sha1.c: Likewise; renamed from sha.c.
85934         Do not include <sys/types.h>.
85935         Include <stddef.h> rather than <stdlib.h>.
85936
85937 2004-08-08  Bruno Haible  <bruno@clisp.org>
85938
85939         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85940         FILESYSTEM_PREFIX_LEN.
85941         * lib/progreloc.c: Likewise.
85942         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85943
85944 2004-08-06  Simon Josefsson  <jas@extundo.com>
85945
85946         * modules/progname (Depends-on): Don't depend on stdbool.
85947
85948 2004-08-06  Simon Josefsson  <jas@extundo.com>
85949
85950         * modules/getsubopt: New file.
85951         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85952         getsubopt.
85953
85954 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85955
85956         More merge from coreutils.
85957
85958         * m4/utimens.m4, m4/utimecmp.m4: New files.
85959         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85960         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85961         prereq.m4, sha.m4: Import changes from coreutils.
85962
85963 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85964
85965         More merge from coreutils.
85966         * modules/raise, modules/readtokens0, modules/utimens:
85967         * modules/utimecmp, module/xnanosleep: New files.
85968         * modules/strftime: Add lib/strftime.h.
85969         Change include from <time.h> to "strftime.h".
85970         * modules/yesno: Add lib/yesno.h.
85971         * modules/backupfile: Remove lib/addext.c.
85972         * modules/euidaccess: Add stat-macros.h.
85973         * modules/canonicalize, modules/euidaccess,
85974         modules/filemode, modules/lchown, modules/makepath,
85975         modules/rmdir, modules/stat: Likewise.
85976
85977 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85978
85979         Merge from tar.
85980         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85981         SIZE_MAX is a valid preprocessor constant.
85982         (__argp_basename): Change from "#ifndef _LIBC"
85983         to "#ifndef __argp_short_program_name", so that
85984         we don't compile these functions for tar.
85985
85986         More merges from coreutils.
85987         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85988         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85989         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85990         * lib/addext.c: Remove; no longer needed.
85991         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85992         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85993         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85994         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85995         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85996         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85997         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85998         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85999         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
86000         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86001         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
86002         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
86003         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
86004         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
86005         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
86006         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86007         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86008         Import changes from coreutils.
86009
86010 2004-08-05  Simon Josefsson  <jas@extundo.com>
86011
86012         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86013
86014 2004-08-05  Simon Josefsson  <jas@extundo.com>
86015
86016         * m4/getsubopt.m4: New file.
86017
86018 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86019
86020         Merge from coreutils.
86021
86022         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86023         * m4/getcwd-path-max.m4: New files.
86024
86025         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86026         FILESYSTEM_PREFIX_LEN ->
86027         FILE_SYSTEM_PREFIX_LEN.
86028         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86029         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86030         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86031         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86032
86033         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86034         prerequisite modules now handle the DOS stuff.
86035         Don't check for unistd.h.
86036
86037 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86038
86039         Merge from coreutils.
86040
86041         * lib/.gdb-history: Remove; this doesn't belong here.
86042
86043         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86044         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86045         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86046         * lib/getcwd.c: New files.
86047
86048         * lib/dirname.h: Include <stdbool.h>.
86049         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86050         for consistency with POSIX terminology.  All uses changed.
86051         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86052         (strip_trailing_slashes): Use bool for booleans.
86053         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86054
86055         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86056         sometimes returns a positive errno value even when it succeeds.
86057         (print_errno_message) [!LIBC]: Fall back on strerror if
86058         __strerror_r fails.
86059
86060         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86061         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86062         (longest_relative_suffix): New function.
86063         (path_concat): Use it.  Assume first argument is not NULL.
86064         Port to DOS.  Omit redundant separators.
86065         Report an error instead of returning NULL.
86066         Use mempcpy instead of memcpy.
86067         (xpath_concat): Remove: not declared or used.
86068
86069         * lib/same.h: Include <stdbool.h>
86070         (same_name): Return bool, not int.
86071         * lib/same.c (same_name): Likewise.
86072         (errno): Don't declare; we assume C89 or better now.
86073
86074         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86075         if not already defined.
86076
86077         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86078         * lib/dup-safer.c (errno): Likewise.
86079
86080 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86081
86082         Merge from coreutils.
86083         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86084         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86085         * modules/path-concat: Don't depend on strdup.
86086
86087 2004-08-03  Simon Josefsson  <jas@extundo.com>
86088
86089         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86090         * lib/progname.h: Don't include stdbool.h.
86091
86092 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86093
86094         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86095         * MODULES.html.sh (func_all_modules): Remove fatal.
86096
86097 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86098
86099         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86100
86101 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86102
86103         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86104         working.
86105
86106 2004-08-02  Simon Josefsson  <jas@extundo.com>
86107
86108         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86109         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86110         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86111
86112 2004-08-01  Simon Josefsson  <jas@extundo.com>
86113
86114         * lib/xgetdomainname.c: Include stdlib.h, for free().
86115
86116 2004-07-19  Bruno Haible  <bruno@clisp.org>
86117
86118         * MODULES.html.sh (func_all_modules): Add dummy.
86119
86120 2004-07-16  Simon Josefsson  <jas@extundo.com>
86121
86122         * modules/dummy: New file.
86123
86124 2004-07-16  Simon Josefsson  <jas@extundo.com>
86125
86126         * lib/dummy.c: New file.
86127
86128 2004-07-16  Bruno Haible  <bruno@clisp.org>
86129
86130         * lib/backupfile.h: Add extern "C" for C++.
86131         * lib/closeout.h: Likewise.
86132         * lib/copy-file.h: Likewise.
86133         * lib/findprog.h: Likewise.
86134         * lib/full-write.h: Likewise.
86135         * lib/pathname.h: Likewise.
86136         * lib/progname.h: Likewise.
86137         * lib/stpcpy.h: Likewise.
86138         * lib/stpncpy.h: Likewise.
86139         * lib/strcase.h: Likewise.
86140         * lib/strstr.h: Likewise.
86141         * lib/xalloc.h: Likewise.
86142
86143         * lib/mbswidth.h: Add extern "C" for C++.
86144         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
86145
86146 2004-07-13  Robert Millan  <robertmh@gnu.org>
86147
86148         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
86149
86150 2004-07-09  Simon Josefsson  <jas@extundo.com>
86151
86152         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
86153         failed without this.)
86154
86155 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86156
86157         * modules/chown (Files): Add lib/fchown-stub.c, since
86158         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
86159
86160 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86161
86162         * lib/fchown-stub.c: New file.
86163
86164 2004-06-24  Jim Meyering  <jim@meyering.net>
86165
86166         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
86167
86168 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86169
86170         * modules/argz: Omit "#include".
86171
86172         * MODULES.html.sh (func_all_modules): Add calloc, to match
86173         2004-06-01 addition of calloc module.
86174
86175 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86176
86177         * m4/argz.m4: New file, which is autoupdated from libtool.
86178
86179 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86180
86181         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86182         libtool.
86183
86184 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86185
86186         * config/srclist-update: Don't insist on "USA." before the
86187         close-comment, as libtool omits the period and puts the */ on a
86188         separate line.
86189         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86190         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86191
86192 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86193
86194         * modules/argz: New file.
86195         * MODULES.html.sh (func_all_modules): Add argz.
86196
86197 2004-06-12  Jim Meyering  <jim@meyering.net>
86198         and  Paul Eggert  <eggert@cs.ucla.edu>
86199
86200         * modules/hash (Files): Add lib/xalloc.h.
86201         * modules/pipe (Depends-on): Add wait-process.
86202         * modules/stat (Depends-on): Add xalloc.
86203         * modules/userspec (Files): Add lib/userspec.h.
86204         * modules/xstrto
86205
86206         Upgrade from gettext-0.13.
86207         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86208         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86209         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86210
86211 2004-06-10  Jim Meyering  <jim@meyering.net>
86212
86213         * lib/calloc.c: New file.
86214
86215 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86216
86217         * lib/getdate.y (yylex): Allow space between sign and number.
86218         Problem reported by Dan Jacobson.
86219
86220 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86221
86222         Merge from coreutils CVS.
86223
86224         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86225         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86226         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86227         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86228         xstrtol.m4: Fix copyright date and/or serial number.
86229
86230         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86231         See if we need an fchown replacement.
86232         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86233         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86234         and use the replacement function if we detect either defect.
86235
86236         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86237         gl_UTIMECMP.
86238
86239 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86240         and  Jim Meyering  <jim@meyering.net>
86241
86242         Merge from coreutils CVS.
86243
86244         * lib/stat-macros.h: New file, with contents from file-type.h
86245         and coreutils' system.h.
86246         * lib/file-type.c: Include "stat-macros.h".
86247         * lib/file-type.h (file_type): Move all macro definitions to new file,
86248         stat-macros.h.
86249
86250         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
86251         Wrap old code with this conditional.
86252         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
86253         function that does not dereference symlinks.
86254         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86255
86256         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86257         dependency problems.
86258         (xreadlink): Accept new arg SIZE, for efficiency.
86259         All decls and uses changed.
86260         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86261
86262         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86263         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86264
86265         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86266         sysexits.h.
86267
86268 2004-06-01  Jim Meyering  <jim@meyering.net>
86269
86270         * m4/calloc.m4: New file.
86271
86272 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86273
86274         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86275         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86276         Also, fix a typo in a diagnostic.
86277
86278 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86279
86280         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86281         or AC_FUNC_REALLOC.
86282
86283 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86284
86285         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86286         macros to be defined.
86287         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86288         the allocator returns NULL because the requested size is zero.
86289
86290 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86291
86292         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86293         var.  Add comment explaining why libc still defines it.  This
86294         merges the following patch from glibc:
86295         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86296
86297 2004-05-20  Andreas Schwab  <schwab@suse.de>
86298
86299         * m4/free.m4: Replace free if it not known to work, not the other
86300         way round.
86301
86302 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86303
86304         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86305         present in glibc since revision 1.1 of this file.
86306         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86307         obstack_alignment_mask, obstack_alloc, obstack_base,
86308         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86309         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86310         obstack_grow0, obstack_init, obstack_int_grow,
86311         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86312         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86313         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86314         nonexistent functions.
86315
86316 2004-05-18  Karl Berry  <karl@gnu.org>
86317
86318         * config/srclist.txt: break link for vasnprintf.c.
86319
86320 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86321
86322         Port obstack to the AS/400, where pointers are 16 bytes wide and
86323         you cannot cast an integer to a valid pointer.  This patch is
86324         currently waiting to be integrated into glibc; see
86325         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86326
86327         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86328         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86329         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86330         (struct obstack): temp member is now a union of a pointer and
86331         an integer, instead of an integer.  All integer uses changed.
86332         This does not affect the physical layout of struct obstack,
86333         except on hosts (like the AS/400) where the size or alignment of
86334         void * is greater than that of ptrdiff_t.
86335         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86336         __STDC__)]: Store temporary in pointer member of union, not
86337         integer member.
86338         * lib/obstack.c: Include <stddef.h>, for offsetof.
86339         (struct fooalign): Remove; it doesn't need a name.
86340         (union fooround): Change double to long double, and add void *.
86341         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86342         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86343         not a macro.  Hence the values are always int; so remove all
86344         casts-to-int in uses.
86345
86346 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86347
86348         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86349         we can get this patch merged into glibc.
86350
86351 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86352             Paul Eggert  <eggert@cs.ucla.edu>
86353
86354         * m4/argp: Depend on alloca.
86355
86356 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86357             Paul Eggert  <eggert@cs.ucla.edu>
86358
86359         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86360         freecoding.
86361
86362 2004-05-17  Bruno Haible  <bruno@clisp.org>
86363
86364         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86365         precision that consists of a '.' followed by an empty digit string.
86366         Patch by Tor Lillqvist <tml@iki.fi>.
86367
86368 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86369
86370         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86371         for backward compatibility with older code.  We need our own
86372         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86373         it under some other name, and our alloca.h will define it.
86374
86375 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86376             Derek Price  <derek@ximbiot.com>
86377
86378         * lib/alloca.c: Include <alloca.h>, to get our interface.
86379         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86380         include <alloca.h> first.  Use C89 prototype for alloca; this
86381         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86382         Use #elif for simplicity, since we can assume C89 now.
86383         Don't try to source the system alloca.h since it will not be found
86384         and to prevent recursively including its replacement.
86385         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86386         * lib/regex.c: Likewise.
86387
86388 2004-05-16  Derek Price  <derek@ximbiot.com>
86389             Paul Eggert  <eggert@cs.ucla.edu>
86390
86391         getline cleanup.  This changes the getndelim2 API: both order of
86392         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86393         no delimiter).
86394
86395         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86396         interface does that.
86397         (getline): Always use getdelim, so that we don't have two
86398         copies of this code.
86399         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86400         if available.
86401         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86402         (GETNDELIM2_MAXIMUM): New macro.
86403         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86404         instead of the old practice of delim2==0.  All callers changed.
86405         Return -1 on overflow, instead of returning junk.
86406         Do not set *linesize unless allocation succeeds.
86407         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86408         that we include sys/types.h.
86409         * lib/getnline.h: Likewise.
86410         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86411         (getndelim2): Reorder arguments.
86412         * lib/getnline.c (getnline, getndelim):
86413         Don't discard the NMAX argument.
86414         (getnline): Invoke getndelim, to avoid code duplication.
86415         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86416         of (size_t) -1 by callers of the getnline family.
86417
86418 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86419
86420         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86421         Check for gettimeofday.
86422         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86423         Check for settimeofday, stime.
86424
86425 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86426
86427         * lib/nanosleep.c (suspended): Change its type from int to
86428         sig_atomic_t volatile.
86429         (first_call): Make it private to rpl_nanosleep, and have it
86430         be zero initially as that's a bit faster.
86431         (my_usleep): Round up fractional times instead of truncating them,
86432         as this is the usual meaning for 'sleep'.
86433
86434         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86435         doesn't work.
86436         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86437         (ENOSYS): Define if not defined.
86438         (settime): Fall back on stime if it exists and settimeofday fails.
86439         But don't bother with fallbacks if a method fails with errno == EPERM.
86440
86441 2004-05-11  Jim Meyering  <jim@meyering.net>
86442
86443         Prior to this change, the save_cwd caller required read access to the
86444         current directory on most systems (ones with the fchdir function).
86445
86446         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86447         fails, try write-only, and finally, resort to using xgetcwd.
86448
86449 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86450
86451         * lib/obstack.c, obstack.h: Import changes from libc.
86452
86453 2004-04-28  Bruno Haible  <bruno@clisp.org>
86454
86455         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86456         also implicitly appends .exe to executables.
86457         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86458         accepts Windows pathnames.
86459         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86460         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86461         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86462         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86463         Reported by Derek Robert Price <derek@ximbiot.com>.
86464
86465 2004-04-21  Karl Berry  <karl@gnu.org>
86466
86467         * config/srclist.txt (localcharset.c): break sync.
86468
86469 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86470
86471         * m4/host-os.m4: Add a copyright notice.
86472
86473 2004-04-20  Jim Meyering  <jim@meyering.net>
86474
86475         Change UTILS_ to gl_ in AC_DEFINE'd names.
86476         Change utils_- and jm_-prefixed variables, too.
86477         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86478         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86479         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86480
86481         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86482         Don't emit trailing blanks.
86483         Also rename jm_-prefixed variables to have gl_ prefix.
86484
86485         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86486         Also rename jm_-prefixed variables to have gl_ prefix.
86487
86488         * m4/jm-macros.m4: Reflect the renamings.
86489         * m4/prereq.m4: Likewise.
86490
86491 2004-04-20  Jim Meyering  <jim@meyering.net>
86492
86493         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86494         memory.
86495
86496 2004-04-20  Jim Meyering  <jim@meyering.net>
86497             Bruno Haible  <bruno@clisp.org>
86498
86499         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86500         memory when realloc fails.
86501
86502 2004-04-19  Jim Meyering  <jim@meyering.net>
86503
86504         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86505         now that readutmp.c may call `free (0)'.
86506
86507 2004-04-19  Bruno Haible  <bruno@clisp.org>
86508
86509         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86510         * m4/inttypes_h.m4: Likewise.
86511         * m4/stdint_h.m4: Likewise.
86512         * m4/intmax_t.m4: Likewise.
86513         * m4/uintmax_t.m4: Likewise.
86514
86515 2004-04-18  Jim Meyering  <jim@meyering.net>
86516
86517         * m4/prereq.m4: Don't forbid jm_ prefix.
86518
86519         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86520         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86521         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86522         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86523         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86524         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86525         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86526         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86527         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86528         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86529         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86530         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86531         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86532         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86533         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86534         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86535         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86536         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86537         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86538
86539 2004-04-18  Jim Meyering  <jim@meyering.net>
86540
86541         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86542         failure, don't leak memory and do call END_UTMP_ENT.
86543
86544 2004-04-16  Jim Meyering  <jim@meyering.net>
86545
86546         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86547         coreutils' stat program.
86548         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86549
86550 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86551
86552         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86553         C89.
86554         (CHAR_BIT): Remove, since we assume C89.
86555         Include <stdint.h> if available, as per current Autoconf CVS advice.
86556
86557 2004-03-31  Jim Meyering  <jim@meyering.net>
86558
86559         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86560         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86561         * m4/xalloc.m4: Likewise.
86562
86563 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86564
86565         Merge from coreutils.
86566
86567         * m4/inttostr.m4: New file.
86568         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86569         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86570         Require gl_CLOCK_TIME.
86571         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86572
86573 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86574
86575         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86576         not bool, to be more consistent with Unix conventions.
86577         Suggested by Bruno Haible.
86578
86579         Merge from coreutils.
86580
86581         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86582         * lib/umaxtostr.c: New files.
86583
86584         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86585         the usual <time.h> dance.
86586         (get_date): Change signature to support fractional time stamps.
86587         All callers changed.
86588         * lib/getdate.y: Include "getdate.h" first, as we can now
86589         assume C89 and don't need to worry about 'const'.
86590         Similarly, include "unlocked-io.h" near start, not in middle.
86591         Include <limits.h>.
86592         (textint.value): Use long int rather than int.
86593         (textint.digits): Use size_t rather than int.
86594         (BILLION, LOG10_BILLION): New constants.
86595         (parser_control): New member rel_ns.  Members day_ordinal,
86596         time_zone, month, day, hour, minutes, rel_year, rel_month,
86597         rel_day, rel_hour, rel_minutes, rel_seconds
86598         are now long int, not int.  Member seconds is now struct timespec,
86599         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86600         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86601         not int.
86602         (%union.intval): Now long int, not int.
86603         New member timespec.
86604         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86605         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86606         (spec): Now is a timespec or an item list.
86607         (timespec, items): New nonterminals.
86608         (time, rel, relunit, number, get_date):
86609         Add support for fractional seconds.
86610         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86611         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86612         (to_hour): First arg is now long int, not int.
86613         (to_year): Returns long int, not int.
86614         Don't treat year -70 like 70.
86615         (tm_diff): Returns long int, not int.
86616         (lookup_word): Use bool instead of int when appropriate.
86617         (yylex): Use size_t for count, not int.
86618         Detect overflow when parsing large integer constants.
86619         Add support for fractions.
86620         (get_date): Make pointers 'const' if possible.
86621         Use more-portable code to detect integer overflow.
86622         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86623         Don't use ctime; it's not reliable if the year has >4 digits.
86624
86625         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86626         This is for compatibility with BSD.
86627
86628         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86629         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86630         From coreutils' system.h.
86631
86632         * lib/userspec.c: Don't include "posixver.h".
86633         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86634         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86635         compatible extension.  Simplify code by removing a boolean int
86636         that was always nonzero if a string was nonnull.
86637
86638 2004-03-30  Jim Meyering  <jim@meyering.net>
86639
86640         Merge from coreutils.
86641
86642         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86643         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86644         on some systems one must include <grp.h> before it.
86645         Reported by Christian Krackowizer.
86646
86647 2004-03-30  Jim Meyering  <jim@meyering.net>
86648
86649         Merge from coreutils.
86650
86651         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86652
86653         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86654         an empty input stream.
86655
86656         * lib/readtokens.c: Include <stdbool.h>.
86657         (readtoken): Use `size_t' rather than int/long.
86658         All callers adjusted.
86659         Use `bool' rather than `int' where appropriate.
86660         Use memset rather than an explicit loop.
86661         Use x2nrealloc rather than xrealloc.
86662         Allow the use of `\0' as a delimiter.
86663         (readtokens): Likewise.
86664         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86665
86666 2004-03-30  Jim Meyering  <jim@meyering.net>
86667
86668         * m4/realloc.m4: Remove file, since now it does no more than
86669         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86670         the `configure.ac' section of module/realloc.
86671         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86672
86673 2004-03-30  Bruno Haible  <bruno@clisp.org>
86674
86675         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86676         nonnull.
86677
86678 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86679
86680         Merge changes to getloadavg.c from coreutils and Emacs.
86681
86682         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86683         Define to an expression, not to the empty string.
86684         Include cloexec.h and xalloc.h.
86685         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86686         Use set_cloexec_flag rather than rolling our own.
86687         * lib/cloexec.c, lib/cloexec.h: New files.
86688
86689 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86690
86691         * m4/cloexec.m4: New file.
86692
86693 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86694
86695         * lib/getopt.h: Sync with libc CVS.
86696
86697 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86698             Bruno Haible  <bruno@clisp.org>
86699
86700         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86701         mbswidth.
86702
86703 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86704             Bruno Haible  <bruno@clisp.org>
86705
86706         * lib/mbswidth.h: Include <wchar.h> only if
86707         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86708         <wchar.h>.
86709         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86710
86711 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86712
86713         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86714         Sync with libc CVS.
86715         * lib/getopt_int.h: New file, also synced from libc.
86716
86717 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86718
86719         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86720         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86721         Bring back getopt.c, getopt.h, getopt1.c.
86722
86723 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86724
86725         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86726         All uses changed.  Check for sa_sigaction member; this fixes
86727         a bug first reported by Jason Andrade in
86728         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86729
86730 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86731
86732         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86733         '#if' expressions.  Unlike the code it replaces, it does not
86734         depend on (defined _SC_PAGESIZE).  However, it does depend on
86735         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86736         first reported by Jason Andrade in
86737         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86738
86739 2004-02-25  Simon Josefsson  <jas@extundo.com>
86740
86741         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86742
86743 2004-02-25  Simon Josefsson  <jas@extundo.com>
86744
86745         * lib/strdup.h: New file.
86746         * lib/strdup.c: Include it.
86747         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86748         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86749
86750 2004-02-23  Karl Berry  <karl@gnu.org>
86751
86752         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86753         (from fencepost.gnu.org:/gd/gnuorg).
86754
86755 2004-02-23  Karl Berry  <karl@gnu.org>
86756
86757         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86758         * config/srclist.txt: add maintain/standards documents.
86759
86760 2004-02-18  Bruno Haible  <bruno@clisp.org>
86761
86762         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86763         Reported by Derek Robert Price <derek@ximbiot.com>.
86764
86765 2004-02-16  Karl Berry  <karl@gnu.org>
86766
86767         * config/mkinstalldirs, install-sh: update from automake.
86768
86769 2004-02-06  Karl Berry  <karl@gnu.org>
86770
86771         * m4/po.m4: update from gettext 0.14.1.
86772
86773 2004-02-06  Karl Berry  <karl@gnu.org>
86774
86775         * lib/config.charset: update from gettext 0.14.1.
86776
86777 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86778
86779         Add comments and code, prompted by suggestions from Bruno Haible
86780         for sh-quote.
86781         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86782         describing the enum quoting_style values.
86783         * lib/quotearg.c (quotearg_alloc): New function.
86784         (quotearg_buffer_restyled): Treat lone { and } as special.
86785         Treat = as special.  Work around bug with older shells
86786         that "see" a '\' that is really the 2nd byte of a multibyte char.
86787         Quote empty string with shell_quoting_style.
86788
86789 2004-02-03  Bruno Haible  <bruno@clisp.org>
86790
86791         * m4/pipe.m4: New file, from GNU gettext.
86792
86793 2004-02-03  Bruno Haible  <bruno@clisp.org>
86794
86795         * lib/pipe.h: New file, from GNU gettext.
86796         * lib/pipe.c: New file, from GNU gettext.
86797
86798 2004-01-27  Bruno Haible  <bruno@clisp.org>
86799
86800         * m4/execute.m4: New file, from GNU gettext.
86801
86802 2004-01-27  Bruno Haible  <bruno@clisp.org>
86803
86804         * lib/execute.h: New file, from GNU gettext.
86805         * lib/execute.c: New file, from GNU gettext.
86806         * lib/w32spawn.h: New file, from GNU gettext.
86807
86808 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86809
86810         Merge from diffutils.
86811
86812         * lib/file-type.c (file_type): Add typed memory objects.
86813         * lib/file-type.h (S_TYPEISTMO): New macro.
86814
86815         * lib/c-stack.h (c_stack_action): Remove argv argument.
86816         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86817         (die): Don't calculate message unless segv_action returns.
86818         (get_stack_location, min_address_from_argv, max_address_from_argv,
86819         volatile stack_base, volatile_stack_size): Remove.
86820         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86821         that every segmentation violation is a stack overflow.  (Ouch!)
86822         See Debian bug 136249 (still outstanding) for more info about why
86823         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86824
86825 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86826
86827         Exit-status fix from coreutils.
86828
86829         Use exit_failure consistently in place of EXIT_FAILURE,
86830         so that program exit statuses are consistent on failure.
86831
86832         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86833         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86834         * lib/argmatch.h: Comment fix to match the above.
86835         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86836         Now a macro referring to exit_failure, instead of a separate
86837         variable.  Include "exitfail.h" to get it.
86838         * lib/xstrtol.h: Include "exitfail.h".
86839         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86840
86841         * lib/long-options.c (parse_long_options): Use prototype
86842         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86843         for clarity.
86844
86845 2004-01-21  Jim Meyering  <jim@meyering.net>
86846
86847         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86848         so as not to conflict with a different-sized __mktime_internal
86849         function in GNU libc.
86850         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86851         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86852
86853 2004-01-20  Karl Berry  <karl@gnu.org>
86854
86855         * config/config.guess: update from config.
86856
86857         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86858
86859 2004-01-20  Bruno Haible  <bruno@clisp.org>
86860
86861         Safer stack allocation.
86862         * lib/setenv.c: Include allocsa.h.
86863         (alloca): Remove fallback definition.
86864         (freea): Remove macro.
86865         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86866         instead of freea.
86867
86868 2004-01-20  Bruno Haible  <bruno@clisp.org>
86869
86870         * m4/eealloc.m4: New file, from GNU gettext.
86871
86872 2004-01-20  Bruno Haible  <bruno@clisp.org>
86873
86874         * m4/allocsa.m4: New file, from GNU gettext.
86875
86876 2004-01-20  Bruno Haible  <bruno@clisp.org>
86877
86878         * lib/xallocsa.h: New file, from GNU gettext.
86879         * lib/xallocsa.c: New file, from GNU gettext.
86880
86881 2004-01-20  Bruno Haible  <bruno@clisp.org>
86882
86883         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86884
86885 2004-01-20  Bruno Haible  <bruno@clisp.org>
86886
86887         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86888         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86889         specially.
86890
86891 2004-01-20  Bruno Haible  <bruno@clisp.org>
86892
86893         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86894         patch.
86895
86896 2004-01-20  Bruno Haible  <bruno@clisp.org>
86897
86898         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86899
86900 2004-01-20  Bruno Haible  <bruno@clisp.org>
86901
86902         * lib/eealloc.h: New file.
86903
86904 2004-01-20  Bruno Haible  <bruno@clisp.org>
86905
86906         * lib/binary-io.h: Avoid warnings on Cygwin.
86907
86908 2004-01-20  Bruno Haible  <bruno@clisp.org>
86909
86910         * lib/allocsa.h: New file, from GNU gettext.
86911         * lib/allocsa.c: New file, from GNU gettext.
86912
86913 2004-01-18  Karl Berry  <karl@gnu.org>
86914
86915         * doc/gpl.texi, doc/lgpl.texi: new files.
86916
86917 2004-01-18  Karl Berry  <karl@gnu.org>
86918
86919         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86920         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86921
86922 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86923
86924         Merge from coreutils.
86925
86926         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86927         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86928         (gl_DEFAULT_POSIX2_VERSION): Move
86929         the documentation from 'configure' into 'config.hin',
86930         so that 'configure --help' isn't burdened by it and
86931         we don't have to worry about its formatting there.
86932         Reword the documentation so that it's more succinct
86933         and can be run together into a single paragraph.
86934         * m4/same.m4 (gl_SAME): Check for pathconf.
86935
86936 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86937
86938         Merge from coreutils.
86939
86940         * lib/posixver.c: Include posixver.h.
86941
86942         * lib/same.c: Include <stdbool.h>, <limits.h>.
86943         (_POSIX_NAME_MAX): Define if not defined.
86944         (MIN): New macro.
86945         (same_name): If file names are silently truncated, report
86946         that the file names are the same if they are the same after
86947         the silent truncation.
86948
86949         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86950         conversion function.
86951         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86952         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86953         longer needed.
86954
86955 2004-01-15  Jim Meyering  <jim@meyering.net>
86956
86957         Merge from coreutils.
86958
86959         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86960         if no library is required.
86961         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86962         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86963         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86964         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86965         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86966         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86967         value, $ac_cv_search_crypt, if it's "none required".
86968         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86969         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86970         not gl_FUNC_GETLOADAVG.
86971         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86972         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86973
86974 2004-01-15  Jim Meyering  <jim@meyering.net>
86975
86976         Merge from coreutils.
86977
86978         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86979         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86980         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86981
86982         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86983         optional configure-time default.
86984
86985         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86986
86987         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86988
86989 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86990
86991         Merge from coreutils.
86992
86993         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86994         value, $ac_cv_search_nanosleep, if it's "none required".
86995
86996 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86997
86998         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86999         with like-named macro in fnmatch.c.
87000         (EXT): Use an internal constant instead.
87001
87002         Merge fnmatch patches from glibc.
87003         * lib/fnmatch.c (mbsinit): Remove define.
87004         Add libc_hidden_ver (__fnmatch, fnmatch).
87005         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
87006         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87007
87008 2004-01-14  Karl Berry  <karl@gnu.org>
87009
87010         * config/install-sh: update from automake.
87011
87012 2004-01-13  Karl Berry  <karl@gnu.org>
87013
87014         * config/install-sh: update from automake.
87015
87016 2004-01-09  Karl Berry  <karl@gnu.org>
87017
87018         * config/install-sh: update from automake.
87019
87020 2004-01-05  Karl Berry  <karl@gnu.org>
87021
87022         * config/config.{sub,guess}: update from config.
87023
87024 2003-12-31  Karl Berry  <karl@gnu.org>
87025
87026         * config/depcomp: update from automake.
87027
87028 2003-12-14  Karl Berry  <karl@gnu.org>
87029
87030         * lib/config.charset: update from gettext-runtime.
87031
87032 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87033
87034         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87035         Bug reported by Alfred M. Szmidt.
87036
87037 2003-12-03  Bruno Haible  <bruno@clisp.org>
87038
87039         * m4/gettext.m4: Upgrade from gettext-0.13.
87040         * m4/po.m4: Upgrade from gettext-0.13.
87041         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87042         * m4/intmax.m4: New file, from gettext-0.13.
87043         * m4/printf-posix.m4: New file, from gettext-0.13.
87044
87045 2003-11-29  Karl Berry  <karl@gnu.org>
87046
87047         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87048
87049 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87050             Bruno Haible  <bruno@clisp.org>
87051
87052         * lib/printf-parse.h: Don't include sys/types.h.
87053         (ARG_NONE): New macro.
87054         (char_directive): Change type of *arg_index fields to size_t.
87055         * lib/printf-parse.c: Don't include sys/types.h.
87056         (SSIZE_MAX): Remove macro.
87057         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87058         Remove unnecessary overflow check.
87059         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87060         fields.
87061
87062 2003-11-25  Bruno Haible  <bruno@clisp.org>
87063
87064         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87065
87066 2003-11-25  Bruno Haible  <bruno@clisp.org>
87067
87068         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87069         gt_TYPE_SSIZE_T.
87070
87071 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87072
87073         * modules/alloca: Remove dependency on xalloc.
87074
87075 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87076
87077         * lib/alloca.c: Remove dependency on xalloc module.
87078         (xalloc_die): Remove.
87079         (memory_full) [!defined emacs]: New macro.
87080         [!defined emacs]: Don't include xalloc.h.
87081         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87082         address arithmetic overflows.  Change datatypes a bit to avoid
87083         unnecessary casts.
87084
87085 2003-11-22  Jim Meyering  <jim@meyering.net>
87086
87087         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87088         s/size/size_t/.
87089
87090 2003-11-21  Karl Berry  <karl@gnu.org>
87091
87092         * config/config.{sub,guess}: update from config.
87093
87094 2003-11-18  Karl Berry  <karl@gnu.org>
87095
87096         * config/config.{sub,guess}: update from config.
87097
87098         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87099
87100 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87101
87102         * README: Mention that S+T cannot overflow if S is the size of
87103         an existing object and T is sufficiently small.
87104
87105 2003-11-17  Jim Meyering  <jim@meyering.net>
87106
87107         On systems without utime and without a utimes function capable of
87108         dealing with a NULL struct utimbuf* argument, this utime replacement
87109         could -- in unusual circumstances -- leak a file descriptor.
87110         * lib/utime.c: Include <unistd.h> and <errno.h>.
87111         (utime_null): Be sure to close `fd' and to preserve errno.
87112         Reported by Geoff Collyer via Arnold Robbins.
87113
87114 2003-11-17  Bruno Haible  <bruno@clisp.org>
87115
87116         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87117         (Depends-on): Add xsize.
87118
87119 2003-11-17  Bruno Haible  <bruno@clisp.org>
87120
87121         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87122
87123 2003-11-17  Bruno Haible  <bruno@clisp.org>
87124
87125         * lib/vasnprintf.c (alloca): Remove fallback definition.
87126         (freea): Remove definition.
87127         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87128         Reported by Paul Eggert.
87129
87130 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87131             Bruno Haible  <bruno@clisp.org>
87132
87133         Protect against address arithmetic overflow.
87134         * lib/printf-args.h: Include stddef.h.
87135         (arguments): Change type of field 'count' to size_t.
87136         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87137         'unsigned int' where appropriate.
87138         * lib/printf-parse.h: Include sys/types.h.
87139         (char_directive): Change type of *arg_index fields to ssize_t.
87140         (char_directives): Change type of fields 'count', max_*_length to
87141         size_t.
87142         * lib/printf-parse.c: Include sys/types.h and xsize.h.
87143         (SSIZE_MAX): Define fallback value.
87144         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
87145         instead of 'int' where appropriate. Check a_allocated, d_allocated
87146         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
87147         * lib/vasnprintf.c: Include xsize.h.
87148         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
87149         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
87150         overflow. Avoid wraparound when converting a width or precision from
87151         decimal to binary.
87152
87153 2003-11-16  Bruno Haible  <bruno@clisp.org>
87154
87155         Update from GNU gettext.
87156         * lib/printf-parse.c: Generalize to it can be compiled for wide
87157         strings.
87158         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
87159         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
87160         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
87161         SNPRINTF): New macros.
87162         Don't include <alloca.h> if the file is used inside libintl.
87163         (local_wcslen): New function, for Solaris 2.5.1.
87164         (VASNPRINTF): Use it instead of wcslen.
87165
87166 2003-11-16  Bruno Haible  <bruno@clisp.org>
87167
87168         * lib/xsize.h (xmax): New function.
87169         (xsum, xsum3, xsum4): Declare as "pure" functions.
87170
87171 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87172
87173         * modules/xalloc (Files): Undo latest change, since xalloc.h
87174         no longer needs SIZE_MAX or PTRDIFF_MAX.
87175
87176 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87177
87178         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
87179         gl_PTRDIFF_MAX.
87180
87181 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87182
87183         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87184         "return", to pacify some unknown compiler.  Problem reported
87185         by Joerg Schilling.
87186
87187 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87188
87189         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87190         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87191         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87192         heuristic is just as accurate as far as we know, and it removes a
87193         dependency on size_max.m4 and ptrdiff_max.m4.
87194
87195 2003-11-11  Bruno Haible  <bruno@clisp.org>
87196
87197         * modules/xsize (Files): Add m4/size_max.m4.
87198         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87199
87200 2003-11-11  Bruno Haible  <bruno@clisp.org>
87201
87202         * m4/size_max.m4: New file.
87203         * m4/ptrdiff_max.m4: New file.
87204         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87205         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87206         (gl_XALLOC): Invoke it.
87207
87208 2003-11-11  Bruno Haible  <bruno@clisp.org>
87209
87210         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87211         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87212         defined.
87213
87214 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87215
87216         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87217         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87218         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87219         From Bruno Haible.
87220         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87221         not (size_t) -1, since it's defined here.
87222
87223 2003-11-09  Karl Berry  <karl@gnu.org>
87224
87225         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87226
87227 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87228
87229         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87230         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87231         Reject sizes of exactly SIZE_MAX bytes.
87232         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87233         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87234
87235 2003-11-05  Bruno Haible  <bruno@clisp.org>
87236
87237         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87238         SIZE_MAX defined in <limits.h> on Solaris.
87239
87240 2003-11-04  Jim Meyering  <jim@meyering.net>
87241
87242         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
87243         variable names, rather than @VAR@.
87244         * modules/poll: Likewise.
87245
87246 2003-11-04  Bruno Haible  <bruno@clisp.org>
87247
87248         * modules/xsize: New file.
87249         * modules/linebreak: Depend on xsize.
87250         * MODULES.html.sh (func_all_modules): Add xsize.
87251
87252 2003-11-04  Bruno Haible  <bruno@clisp.org>
87253
87254         * m4/xsize.m4: New file.
87255
87256 2003-11-04  Bruno Haible  <bruno@clisp.org>
87257
87258         * lib/xsize.h: New file.
87259         * lib/linebreak.c: Include xsize.h.
87260         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87261         argument for overflow.
87262         Suggested by Paul Eggert.
87263
87264 2003-11-03  Karl Berry  <karl@gnu.org>
87265
87266         * config/config.{guess,sub}: update from config.
87267
87268 2003-11-03  Jim Meyering  <jim@meyering.net>
87269
87270         * modules/userspec (lib_SOURCES): Add userspec.h.
87271         (Include): Add "userspec.h".
87272         Improve description.
87273
87274 2003-11-03  Jim Meyering  <jim@meyering.net>
87275
87276         * lib/userspec.c: Include "userspec.h".
87277         * lib/userspec.h: New file.
87278
87279 2003-11-03  Bruno Haible  <bruno@clisp.org>
87280
87281         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87282
87283 2003-11-03  Bruno Haible  <bruno@clisp.org>
87284
87285         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87286         available, to avoid (extremely rare) race condition.
87287         Suggested by Paul Eggert.
87288
87289 2003-11-02  Karl Berry  <karl@gnu.org>
87290
87291         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87292
87293 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87294
87295         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87296         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87297         (read_filesystem_list): Set and use me_type_malloced.
87298         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87299         whatever the type happens to be), for brevity and consistency.
87300         Check for size calculation overflow on Alphas running OSF/1.
87301
87302 2003-10-31  Jim Meyering  <jim@meyering.net>
87303
87304         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87305
87306         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87307
87308 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87309             Bruno Haible  <bruno@clisp.org>
87310
87311         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87312         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87313
87314 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87315
87316         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87317         netbsd*-gnu*.  Suggested by Robert Millan.
87318
87319 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87320
87321         * modules/group-member: Depend on stdbool.
87322
87323 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87324
87325         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87326
87327 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87328
87329         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87330         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87331         after the 'gnu' in these cases.  This fixes some bugs in the
87332         previous change, and is based on suggestions by Robert Millan.
87333
87334 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87335
87336         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87337         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87338         no longer needed.
87339         * lib/quotearg.c (quotearg_n_options): Use it.
87340         * lib/group-member.c: Include <stdbool.h>.
87341         (free_group_info): Arg is now const *; don't free arg.
87342         (get_group_info): Now returns bool and accepts struct group_info *,
87343         rather than returning a malloc'ed struct group_info *.
87344         All uses changed.  Check for overflow in internal size calculation.
87345
87346         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87347         rather than xmalloc/xrealloc.
87348         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87349         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87350         conformance bug: the old code used a pointer after freeing the
87351         storage that it addressed.
87352         * lib/hash.c (hash_initialize): Simplify the code by using
87353         xalloc_oversized rather than doing it by hand.
87354         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87355         the buffer preserved.  Use free and xmalloc instead.
87356         * lib/quotearg.c (quotearg_n_options): Likewise.
87357         Use a simpler test for size overflow.  Don't use xalloc_oversized
87358         because unsigned int might be wider than size_t (!); this suggests
87359         that we should switch from unsigned int to size_t for slot numbers.
87360
87361 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87362
87363         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87364         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87365         NetBSD kernels.  Requested by Richard Stallman.
87366
87367 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87368
87369         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87370         to allocate the returned structure.  Do not allocate a subarray,
87371         as x2nrealloc will do that.
87372         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87373         instead of xnrealloc.
87374         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87375
87376 2003-10-27  Bruno Haible  <bruno@clisp.org>
87377
87378         * lib/stdbool_.h: Better support for BeOS.
87379
87380 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87381
87382         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87383         now uses inline.
87384
87385 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87386
87387         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87388         callers that want to do their own size-overflow checking.  Include
87389         <stdbool.h>, since xalloc_oversized returns bool.
87390         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87391         to use xalloc_oversized.
87392
87393         Add two functions x2realloc, x2nrealloc, for programs that grow
87394         arrays dynamically by doubling their sizes.
87395         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87396         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87397         New functions.
87398
87399         Port to C99 semantics for 'inline' of external functions.
87400         Bug reported by Bruno Haible.
87401         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87402         with the old contents of xnmalloc.
87403         (xnmalloc, xmalloc): Use it.
87404         (xnrealloc_inline): New static inline function,
87405         with the old contents of xnrealloc.
87406         (xnrealloc, xrealloc): Use it.
87407
87408         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87409         that.
87410
87411 2003-10-26  Karl Berry  <karl@gnu.org>
87412
87413         * config/srclist.txt (COPYING.DOC): no longer available from
87414         /gd/gnuorg; don't know where the ultimate source is.
87415
87416 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87417
87418         Fix several address-calculation bugs in the hash modules,
87419         plus some minor code cleanup.
87420
87421         * lib/hash.h: Include <stdbool.h>, for bool.
87422         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87423         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87424         hash_get_n_entries, hash_get_max_bucket_length,
87425         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87426         hash_rehash): Use size_t rather than unsigned.
87427         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87428         hash_get_n_buckets_used, hash_get_n_entries,
87429         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87430         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87431         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87432         Likewise.
87433         (SIZE_MAX): Define if not defined.
87434         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87435         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87436         hash_print):
87437         Use const * when possible.
87438         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87439         (check_tuning): Fix bug: if tuning parameters were very close to
87440         0 or 1, rounding errors could have caused subscript violations.
87441         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87442         (hash_initialize): Add 'fail:' label
87443         to free table and return NULL, and use it to simplify code.
87444         Use calloc rather than clearing the storage ourself.
87445         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87446         buffer size calculations.
87447         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87448         Include <stddef.h>, for size_t.
87449         * lib/hash-pjw.c (hash_pjw): Likewise.
87450         Switch to method described by Bruno Haible.
87451         Include <limits.h>, for CHAR_BIT.
87452         (SIZE_BITS): New macro.
87453
87454 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87455
87456         * m4/getline.m4 (AM_FUNC_GETLINE):
87457         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87458         hosts.  Problem reported by Derek Robert Price in
87459         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87460         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87461         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87462
87463 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87464
87465         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87466         ceiling the allocation at NMAX bytes rather than silently
87467         discarding input bytes before NMAX is reached.  This makes
87468         a difference only if NMAX exceeds SIZE_MAX / 2.
87469
87470         * lib/obstack.c: Merge from glibc.
87471         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87472         Add libc_hidden_def (_obstack_newchunk).
87473         (_obstack_free) [! defined _LIBC]: Remove.
87474         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87475         a clone of the function body.
87476         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87477         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87478
87479         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87480         glibc.
87481         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87482         arg to memcpy.
87483
87484         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87485         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87486         Don't use lvalue casts, as GCC plans to remove support for them
87487         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87488         was also present in the non-GCC version, indicating that this
87489         code had always been buggy and had never been widely used.
87490         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87491         Use the fast variant of each macro, rather than copying the
87492         definiens of the fast variant; that way, we'll be more likely to
87493         catch future bugs in the fast variants.
87494
87495 2003-10-20  Bruno Haible  <bruno@clisp.org>
87496
87497         * modules/wait-process: New file.
87498         * MODULES.html.sh (func_all_modules): Add wait-process.
87499
87500 2003-10-20  Bruno Haible  <bruno@clisp.org>
87501
87502         * m4/wait-process.m4: New file.
87503
87504 2003-10-20  Bruno Haible  <bruno@clisp.org>
87505
87506         * lib/wait-process.h: New file, from GNU gettext.
87507         * lib/wait-process.c: New file, from GNU gettext.
87508
87509 2003-10-19  Jim Meyering  <jim@meyering.net>
87510
87511         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87512         HPUX 10.20.
87513
87514 2003-10-18  Karl Berry  <karl@gnu.org>
87515
87516         * config/config.guess: update from config.
87517
87518 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87519
87520         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87521         (getgroups): First arg is int, not size_t.
87522         Don't let 'free' mangle errno.
87523
87524 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87525
87526         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87527
87528 2003-10-16  Karl Berry  <karl@gnu.org>
87529
87530         * config/config.{guess,sub}: update from config.
87531
87532 2003-10-16  Jim Meyering  <jim@meyering.net>
87533
87534         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87535         memcpy.
87536
87537 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87538
87539         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87540         (SIZE_MAX): Remove.
87541         (new_exclude, add_exclude_file): Initial size no longer needs to
87542         be a power of 2.
87543         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87544         our own address arithmetic overflow checking.
87545
87546         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87547         (fnmatch): Do not alloca more than 2000 wide characters;
87548         instead, use malloc for large buffers.
87549         Check for address arithmetic overflow, and return -1
87550         with errno set to ENOMEM in that case.
87551         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87552         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87553         instead, return -1.  Check for address arithmetic overflow.
87554
87555 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87556
87557         Handle invalid suffixes and overflow independently, so that
87558         callers can treat them independently as needed.  Fix some bugs in
87559         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87560         suffix for a human-readable blocksize.  The major caller-visible
87561         change is the addition of a new
87562         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87563         that both overflow and suffix chars were found.
87564
87565         * lib/human.c (humblock): Don't check separately for invalid suffix
87566         char; that is xstrtoumax's job (now that its bug is fixed).
87567         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87568         INTMAX_MAX]: New macros.
87569         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87570         TYPE_MAXIMUM): New macros.
87571         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87572         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87573         if overflow occurs, as it's what __strtol does and it's more useful
87574         in practice.
87575         (__xstrtol): If __strtol reports some error other than ERANGE,
87576         reflect it to the caller as LONGINT_INVALID.  If it reports
87577         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87578         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87579         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87580         value.
87581         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87582         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87583         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87584         [defined UINTMAX_MAX]: New macros.
87585
87586 2003-10-14  Bruno Haible  <bruno@clisp.org>
87587
87588         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87589
87590 2003-10-14  Bruno Haible  <bruno@clisp.org>
87591
87592         * m4/sig_atomic_t: New file, from GNU gettext.
87593         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87594
87595 2003-10-14  Bruno Haible  <bruno@clisp.org>
87596
87597         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87598         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87599         Also use volatile where needed.
87600
87601 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87602
87603         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87604         Change maintainer from Bruno Haible to 'all'.
87605
87606 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87607
87608         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87609
87610 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87611
87612         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87613         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87614         and define in terms of the other primitives.
87615         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87616         (SIZE_MAX): Define if not already defined.
87617         (array_size_overflow): New function.
87618         (xalloc_die): Abort instead of exiting if 'error' returns.
87619         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87620         (xmalloc, xrealloc): Use them.
87621         (xcalloc): Check for address arithmetic overflow.
87622         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87623         a bit faster than strcpy.
87624
87625 2003-10-10  Simon Josefsson  <jas@extundo.com>
87626
87627         * modules/argp (Depends-on): Add restrict and strcase.
87628
87629 2003-10-10  Simon Josefsson  <jas@extundo.com>
87630
87631         * m4/argp.m4: Add AC_C_INLINE.
87632
87633 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87634
87635         Merge getpass from libc, plus a few fixes.
87636
87637         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87638         Include <stdbool.h>.
87639         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87640         __fsetlocking to empty.
87641         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87642         do include <bits/libc-lock.h>.
87643         Do not include <fcntl.h>; not needed.
87644         [_LIBC]: Include <wchar.h>.
87645         (NOTCANCEL_MODE): New macro.
87646         (flockfile, funlockfile) [_LIBC]: New macros.
87647         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87648         [!_LIBC]: New macros.
87649         (call_fclose): New function.
87650         (getpass): Use it.  Save tty stream separately; this simplifies the
87651         code and makes it more reliable if stdin happens to equal stdout.
87652         Invoke __fsetlocking on tty.
87653         Handle thread cancellation if needed.
87654         Namespace cleanup (use __tcgetattr, __getline).
87655         Use bool for Booleans.
87656         [USE_IN_LIBIO]: Handle wide streams.
87657         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87658         stream might go where.
87659
87660         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87661         doesn't have to include <stdio.h> before us.
87662         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87663         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87664         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87665         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87666         if not declared, so that we can use getpass.c code from libc without
87667         rewriting it.
87668         (flockfile, ftrylockfile, funlockfile): New macros.
87669
87670 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87671
87672         * modules/getpass: Depend on stdbool.
87673
87674 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87675
87676         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87677
87678 2003-10-07  Karl Berry  <karl@gnu.org>
87679
87680         * config/config.{guess,sub}: update from config.
87681
87682 2003-10-06  Jim Meyering  <jim@meyering.net>
87683             Bruno Haible  <bruno@clisp.org>
87684
87685         This lets translators provide better translations for the
87686         "Written by ..." part of --version output.
87687         * lib/version-etc.h: Include stdarg.h.
87688         (version_etc_copyright): Declare as readonly.
87689         (version_etc): Make this function variadic with a NULL-terminated list
87690         of author name strings.
87691         (version_etc_va): New declaration.
87692         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87693         (version_etc_copyright): Declare as readonly.
87694         (version_etc_va): New function. Provide a different translatable string
87695         for each possible number of authors < 10. Abbreviate when there are 10
87696         authors or more.
87697         (version_etc): Make this function variadic. Call version_etc_va.
87698         Suggestion from Gary V. Vaughan.
87699
87700         * lib/long-options.h (parse_long_options): Change prototype: the
87701         authors string is moved to the end and becomes variadic.
87702         * lib/long-options.c: Include stdarg.h.
87703         (parse_long_options): Make this function variadic, too.
87704         Call version_etc_va, not version_etc.
87705
87706 2003-10-06  Bruno Haible  <bruno@clisp.org>
87707
87708         * modules/version-etc-2: Remove file.
87709         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87710
87711 2003-10-06  Bruno Haible  <bruno@clisp.org>
87712
87713         * modules/fatal-signal: New file.
87714         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87715
87716 2003-10-06  Bruno Haible  <bruno@clisp.org>
87717
87718         * m4/fatal-signal.m4: New file.
87719         * m4/signalblocking.m4: New file, from GNU gettext.
87720
87721 2003-10-06  Bruno Haible  <bruno@clisp.org>
87722
87723         * lib/version-etc-2.h: Remove file.
87724         * lib/version-etc-2.c: Remove file.
87725
87726 2003-10-06  Bruno Haible  <bruno@clisp.org>
87727
87728         * lib/fatal-signal.h: New file, from GNU gettext.
87729         * lib/fatal-signal.c: New file, from GNU gettext.
87730
87731 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87732
87733         * README: Rework advice for preventing empty .o files.
87734         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87735         not <sys/types.h>.
87736
87737 2003-10-04  Karl Berry  <karl@gnu.org>
87738
87739         * lib/argp*: update from libc.
87740
87741 2003-10-04  Karl Berry  <karl@gnu.org>
87742
87743         * config/config.{guess,sub}: update from config.
87744
87745 2003-10-02  Bruno Haible  <bruno@clisp.org>
87746
87747         * modules/lchown (Include): Add lchown.h.
87748         * modules/time_r (Include): Use "..." syntax.
87749         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87750
87751 2003-10-01  Simon Josefsson  <jas@extundo.com>
87752
87753         * MODULES.html.sh (func_all_modules): Move gethostname from section
87754         'based on' to section 'lacking' POSIX:2001.
87755
87756 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87757
87758         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87759         to output mode on the same stream.
87760
87761 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87762
87763         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87764         Fix arg typo in previous patch.
87765
87766 2003-09-28  Jim Meyering  <jim@meyering.net>
87767
87768         * lib/error.c: Correct cpp indentation.
87769
87770 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87771
87772         * modules/free: New file.
87773
87774 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87775
87776         * m4/free.m4: New file.
87777
87778 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87779
87780         * lib/minmax.h (MIN, MAX)
87781         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87782         Omit the special code that used __typeof__, since we worry that
87783         it could be more trouble than it's worth.  See:
87784         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87785         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87786
87787         * lib/free.c: New file.
87788
87789 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87790
87791         Trivial fixes to Makefile.am parts of module listings.
87792         * modules/strstr: Append strstr.h to lib_SOURCES.
87793         * modules/strcase: Likewise, for strcase.h.
87794
87795 2003-09-27  Karl Berry  <karl@gnu.org>
87796
87797         * config/mkinstalldirs: update from automake.
87798
87799 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87800
87801         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87802         (error_tail): Do not loop, reallocating temporary buffer, since
87803         the output cannot contain more wide characters than the input
87804         contains bytes, the size must be big enough already.  This avoids
87805         one potential size overflow calculation.  Check for size overflow
87806         when calculating temporary buffer size.  Free temporary buffer
87807         when done, if it was allocated with malloc; this plugs a memory
87808         leak.  Remove casts from void * to pointers, that are no longer
87809         needed now that we're assuming C89 or better.
87810
87811         Merge error changes from glibc.
87812
87813         * lib/error.c, error.h: Update copyright notice header to match glibc.
87814         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87815         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87816         Disable cancellation while printing error.
87817         * lib/error.h: Prepend __ to parameter names.
87818
87819 2003-09-26  Jim Meyering  <jim@meyering.net>
87820
87821         * lib/error.c (error_tail): Move some declarations
87822         into inner scope where the local variables are used.
87823
87824 2003-09-26  Bruno Haible  <bruno@clisp.org>
87825
87826         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87827         stpncpy().
87828         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87829
87830 2003-09-26  Bruno Haible  <bruno@clisp.org>
87831
87832         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87833         (stpncpy): Define as alias for gnu_stpncpy.
87834         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87835
87836 2003-09-25  Simon Josefsson  <jas@extundo.com>
87837
87838         * lib/xgetdomainname.h: New file.
87839         * lib/xgetdomainname.c: New file.
87840
87841 2003-09-25  Simon Josefsson  <jas@extundo.com>
87842             Bruno Haible  <bruno@clisp.org>
87843
87844         * modules/getdomainname: New file.
87845         * modules/xgetdomainname: New file.
87846         * MODULES.html.sh (func_all_modules): Add getdomainname,
87847         xgetdomainname.
87848
87849 2003-09-25  Simon Josefsson  <jas@extundo.com>
87850             Bruno Haible  <bruno@clisp.org>
87851
87852         * m4/getdomainname.m4: New file.
87853
87854 2003-09-25  Simon Josefsson  <jas@extundo.com>
87855             Bruno Haible  <bruno@clisp.org>
87856
87857         * lib/getdomainname.h: New file.
87858         * lib/getdomainname.c: New file.
87859
87860 2003-09-25  Karl Berry  <karl@gnu.org>
87861
87862         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87863
87864 2003-09-25  Karl Berry  <karl@gnu.org>
87865
87866         * config/install-sh: update from automake.
87867
87868 2003-09-25  Bruno Haible  <bruno@clisp.org>
87869
87870         * modules/version-etc-2: New file, from modules/version-etc with
87871         modifications.
87872         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87873
87874 2003-09-25  Bruno Haible  <bruno@clisp.org>
87875
87876         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87877         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87878
87879 2003-09-24  Simon Josefsson  <jas@extundo.com>
87880
87881         * modules/xgethostname: Add xgethostname.h.
87882
87883 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87884
87885         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87886         the buffer associated with the argument.  Bug reported by
87887         Simon Josefsson.
87888
87889 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87890
87891         * README: Document assumptions that 'int' is at least 32 bits
87892         wide, that integer arithmetic is 2's complement without overflow,
87893         that there are no holes in integer values, that adding sizes of
87894         two nonoverlapping objects can't overflow, and that all-bits-zero
87895         yields scalar zero.  Fix spelling and capitalization typos.
87896
87897 2003-09-19  Karl Berry  <karl@gnu.org>
87898
87899         * lib/argp.h: update from libc.
87900
87901 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87902
87903         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87904         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87905         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87906
87907 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87908
87909         * gnulib-tool: Use "test -h", not "test -L", for portability
87910         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87911         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87912         (sed_extract_prog): Issue s commands one-by-one, rather than
87913         using \| in one s command.
87914
87915 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87916
87917         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87918         input error, instead of returning NULL the next time we are called
87919         (and therefore losing track of errno).
87920
87921 2003-09-16  Bruno Haible  <bruno@clisp.org>
87922
87923         * gnulib-tool (func_create_testdir): Warn about duplicated
87924         dependencies.
87925
87926 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87927
87928         * modules/argmatch, modules/fatal, modules/obstack,
87929         modules/xalloc, modules/xgethostname: Sort dependencies by
87930         importance, not alphabetically.
87931
87932 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87933
87934         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87935         fails, so that the caller gets the proper errno.
87936
87937         * lib/readutmp.c (read_utmp): Likewise.
87938         Check for fstat error.  Close stream and free storage
87939         when failing.
87940
87941 2003-09-14  Karl Berry  <karl@gnu.org>
87942
87943         * config/srclist.txt (strdup.c): disable for c89 changes.
87944
87945 2003-09-14  Jim Meyering  <jim@meyering.net>
87946
87947         * lib/getloadavg.c: Correct cpp indentation.
87948         * lib/strdup.c: Likewise.
87949         * lib/vasnprintf.c: Likewise.
87950
87951 2003-09-14  Bruno Haible  <bruno@clisp.org>
87952
87953         * modules/fwriteerror: New file.
87954         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87955
87956 2003-09-14  Bruno Haible  <bruno@clisp.org>
87957
87958         * lib/fwriteerror.h: New file.
87959         * lib/fwriteerror.c: New file.
87960
87961 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87962
87963         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87964         modules/xgethostname, modules/xalloc: Depend on exit.
87965
87966 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87967
87968         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87969
87970         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87971         and AC_MINIX, too, so that their extensions are available.
87972
87973         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87974         This macro has been superseded by gl_BACKUPFILE.
87975
87976         More patches to assume C89 or better.
87977
87978         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87979
87980         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87981         unconditionally.
87982         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87983         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87984         Include <string.h>, <stdlib.h> unconditionally.
87985         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87986         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87987         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87988         headers or for string.h.
87989         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87990         or strtoul.
87991
87992         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87993         headers.
87994         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87995         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87996         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87997         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87998         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87999         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
88000         memcpy, memset.
88001         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
88002         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
88003         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
88004         strtol.
88005         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
88006         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88007         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88008         strtoul.
88009
88010 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88011
88012         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88013         * lib/obstack.c [!defined _LIBC]: Likewise.
88014         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88015         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88016         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88017
88018         More changes to assume C89 or better.
88019
88020         * lib/error.c (error_tail): Assume vprintf.
88021
88022         * lib/argmatch.c (getenv): Remove decl.
88023         * lib/progreloc.c (get_full_program_name): Define via prototype.
88024         * lib/setenv.c (clearenv): Likewise.
88025         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88026         needed.
88027         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88028         (malloc, memcpy): Remove decls.
88029         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88030         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88031         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88032         (memcpy): Remove macro.
88033         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88034         (__P): Remove.  All uses removed.
88035         (PTR): Remove.  All uses changed to void *.
88036         (CHAR_BIT, NULL): Remove.
88037         (spaces, zeros, memset_space, memset_zero)
88038         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88039         Remove.
88040         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88041         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88042         Define with prototype.
88043         Remove now-unnecessary prototype decl.
88044         (extra_args_spec): Assume ANSI C.  All uses changed.
88045         (extra_args_spec_iso): Remove.
88046         (my_strftime, emacs_strftimeu): Define via prototype.
88047         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88048         unconditionally.
88049         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88050         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88051         (strtoul, strtol): Remove decls.
88052         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88053         LONG_MAX): Remove.
88054         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88055         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88056         (LOCALE_PARAM_PROTO): New macro.
88057         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88058         (INTERNAL (strtol), strtol): Define with a prototype.
88059         (PARAMS): Remove.  All uses removed.
88060         * lib/tempname.c: Include <string.h> unconditionally.
88061         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88062         * lib/xgethostname.c (main): Define with a prototype.
88063         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88064         Include <stdlib.h> unconditionally.
88065         (calloc, malloc, realloc, free): Remove decls.
88066         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88067         Include <stdlib.h> unconditionally.  Sort include file names.
88068         (strtod): Remove.
88069         (xstrtod): Define with a prototype.
88070         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88071         (strtol, strtoul): Remove decls.
88072
88073 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88074
88075         More patches to assume C89 or better.
88076         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88077         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88078         string.h, memchr, STDC_HEADERS.
88079
88080 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88081
88082         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88083         Include <stdlib.h>, <string.h> unconditionally.
88084         Remove now-unnecessary cast to char *.
88085         * lib/strnlen.c: Include <string.h> unconditionally.
88086         * lib/yesno.c (yesno): Define with a prototype.
88087
88088 2003-09-11  Bruno Haible  <bruno@clisp.org>
88089
88090         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88091
88092 2003-09-10  Jim Meyering  <jim@meyering.net>
88093
88094         * lib/error.c: Correct indentation of cpp directives.
88095
88096 2003-09-10  Bruno Haible  <bruno@clisp.org>
88097
88098         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88099         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88100         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88101         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88102         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88103         <stdlib.h> and <string.h> checks.
88104         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88105         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88106
88107 2003-09-10  Bruno Haible  <bruno@clisp.org>
88108
88109         * lib/strcspn.c: Include <string.h> unconditionally.
88110         * lib/strpbrk.c: Include <string.h> unconditionally.
88111         * lib/strstr.c: Include <string.h> unconditionally.
88112         * lib/unicodeio.c: Include <string.h> unconditionally.
88113         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88114         * lib/unsetenv.c: Likewise.
88115         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88116         * lib/yesno.c: Include <stdlib.h> unconditionally.
88117         (rpmatch): Add prototype.
88118
88119 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88120
88121         More patches to assume C89 or better.
88122         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88123         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88124         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88125         or for string.h.
88126         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88127         stdlib.h.
88128         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88129         C headers.
88130         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88131         string.h.
88132         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88133         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88134         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88135         or for string.h.
88136         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88137         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88138         C headers.
88139         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88140         memcpy.
88141         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88142         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
88143         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
88144         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
88145         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
88146         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
88147         string.h, free.
88148         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
88149         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
88150         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
88151         C headers, or for string.h.
88152         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
88153         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
88154         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
88155         headers, memory.h, stdlib.h, string.h, strings.h.
88156         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
88157         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
88158         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
88159         strchr.
88160         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
88161         headers, memory.h, string.h.
88162         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
88163         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
88164         free.
88165         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
88166         headers.
88167         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
88168         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
88169         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
88170         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
88171         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
88172
88173 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88174
88175         More K&R removal.
88176
88177         * lib/acosl.c (main): Use a prototype.
88178         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
88179         tanl.c: Likewise.
88180
88181         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88182
88183         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88184         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88185         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88186         with a prototype.
88187         * lib/getopt.c (const): Remove macro.
88188         Include <string.h> unconditionally.
88189         (my_index): Remove; all uses changed to strchr.
88190         (strlen): Remove decl.
88191         (exchange): Remove forward decl; no longer needed.
88192         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88193         Define with prototype.
88194         * lib/getopt1.c (const): Remove macro.
88195         (getopt_long, getopt_long_only, main): Define with prototype.
88196
88197         * lib/getugroups.c: Include <string.h> unconditionally.
88198
88199         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88200         (getusershell, setusershell, endusershell, readname, main):
88201         Define with prototypes.
88202
88203         * lib/group-member.c: Include group-member.h first.
88204         Include <stdlib.h> unconditionally.
88205
88206         * lib/hard-locale.c: Include hard-locale.h first.
88207         Include <stdlib.h>, <string.h> unconditionally.
88208
88209         * lib/hash.c (free, malloc): Remove decls.
88210         Include <stdlib.h> unconditionally.
88211
88212         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88213         (getenv): Do not declare.
88214
88215         * lib/idcache.c: Include <string.h> unconditionally.
88216
88217         * lib/long-options.c: Include long-options.h first, to test interface.
88218         Include <stdlib.h> unconditionally.
88219
88220         * lib/makepath.c: Include makepath.h first, to test interface.
88221         Include <stdlib.h> and <string.h> unconditionally.
88222
88223         * lib/linebuffer.c: Include <stdlib.h>.
88224         (free): Remove decl.
88225
88226         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88227         stddef.h. rpl_malloc returns void *, not char *.
88228         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88229         prototype.
88230
88231         * lib/md5.h: Include <limits.h> unconditionally.
88232         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88233         (__P): Remove; all uses removed.
88234         * lib/md5.c: Include "md5.h" first.
88235         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88236         md5_buffer, md5_process_bytes, md5_process_block):
88237         Define with prototypes.
88238         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88239         * lib/sha.c: Include "sha.h" first.
88240         Include <stdlib.h>, <string.h> unconditionally.
88241
88242         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
88243         * lib/memcmp.c (__ptr_t): Likewise.
88244         * lib/memrchr.c (__ptr_t): Likewise.
88245         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
88246         Include <string.h> unconditionally.
88247         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
88248         * lib/memchr.c: Include <stdlib.h> unconditionally.
88249         * lib/memchr.c (LONG_MAX): Remove.
88250         * lib/memrchr.c (LONG_MAX): Likewise.
88251         * lib/memchr.c (__memchr): Define via a prototype.
88252         * lib/memrchr.c (__memrchr): Likewise.
88253         * lib/memcmp.c (__P): Remove, and remove all uses.
88254         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88255         Remove forward decls; no longer needed.
88256         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88257         Use types required by C89 in prototype.
88258
88259         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88260         * lib/savedir.c: Likewise.
88261         * lib/mkdir.c (free): Remove decl.
88262         * lib/rmdir.c (rmdir): Define with a prototype.
88263         * lib/savedir.c: Include savedir.h first, to test interface.
88264
88265         * lib/mktime.c (STDC_HEADERS): Remove.
88266         Include <stdlib.h>, <string.h> unconditionally.
88267
88268         * lib/modechange.c: Include <stdlib.h> unconditionally.
88269         (malloc): Remove decl.
88270
88271         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88272         (free): Remove decl.
88273
88274         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88275         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88276         (This type really should be intptr_t, but that's a C99ism.)
88277         (_obstack_memcpy): Remove: all uses changed to memcpy.
88278         Include <string.h> unconditionally.
88279         (struct obstack): Assume __STDC__ for types of members
88280         chunkfun, freefun, extra_arg.
88281         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88282         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88283         obstack_begin, obstack_specify_allocation,
88284         obstack_specify_allocation_with_arg, obstack_chunkfun,
88285         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88286         Remove unprototyped decls and the macros that use them.
88287         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88288         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88289         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88290         (defined __STDC__ && __STDC__)]:
88291         Remove nonprototyped code.
88292         Include <stdlib.h> unconditionally.
88293         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88294         _obstack_allocated_p, _obstack_free, obstack_free,
88295         _obstack_memory_used, print_and_abort):
88296         Define using prototypes.
88297         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88298         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88299         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88300         obstack_next_free, obstack_object_size, obstack_room) [0]:
88301         Remove unused, unprototyped code.
88302
88303         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88304
88305         * lib/physmem.c (physmem_total, physmem_available, main): Define
88306         with prototypes.
88307
88308         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88309         (main): Define with a prototype.
88310
88311         * lib/posixver.c (getenv): Remove decl.
88312
88313         * lib/putenv.c (malloc): Returns void *, not char *.
88314         Include <string.h> unconditionally.
88315         (strchr, memcpy, NULL): Do not define.
88316
88317         * lib/readtokens.c: Include readtokens.h first, to test interface.
88318         Include <stdlib.h>, <string.h> unconditionally.
88319         (init_tokenbuffer): Define with a prototype.
88320
88321         * lib/regex.c (PARAMS): Remove.  All uses removed.
88322         All uses of _RE_ARGS removed, too.
88323         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88324         unconditionally.
88325         (bzero): Assume memset exists.
88326         (memcmp, memcpy, NULL): Remove.
88327         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88328         char, or assignments to local vars of type signed char.
88329         (init_syntax_once, PREFIX(extract_number_and_incr),
88330         PREFIX(print_partial_compiled_pattern),
88331         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88332         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88333         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88334         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88335         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88336         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88337         wcs_compile_range, byte_compile_range, truncate_wchar,
88338         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88339         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88340         count_mbs_length, wcs_re_match_2_internal,
88341         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88342         PREFIX(alt_match_null_string_p),
88343         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88344         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88345         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88346         now-unnecessary declaration, if any.
88347         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88348         regcomp, regexec):
88349         Remove now-unnecessary casts among pointer types.
88350         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88351
88352         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88353         (free): Remove decl.
88354
88355         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88356
88357         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88358         (free): Remove decl.
88359
88360         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88361         * lib/xgetcwd.c: Likewise.
88362
88363         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88364         (free): Remove decl.
88365
88366         * lib/strchrnul.c (strchrnul): Define with a prototype.
88367         Fix bug: c_in was not converted to char before searching.
88368
88369         The following changes are not K&R related:
88370
88371         * lib/group-member.h: Include <sys/types.h>, so that this file is
88372         self-contained.
88373         * lib/makepath.h: Likewise.
88374
88375         * lib/getusershell.c (readname, default_index, line_size, readname):
88376         Use size_t, not int, for sizes.
88377         (readname): If the size overflows, report an error instead of
88378         looping forever.
88379
88380 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88381
88382         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88383         libc.
88384
88385 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88386
88387         * README: New section: portability guidelines.
88388
88389 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88390
88391         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88392         C89 spec.
88393
88394 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88395
88396         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88397
88398 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88399
88400         Assume C89 or better; remove K&R cruft.
88401         A few of these changes were first proposed by Derek Robert Price
88402         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88403
88404         * lib/addext.c: Include <string.h> unconditionally.
88405         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88406         Don't declare getenv or malloc.
88407
88408         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88409         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88410         (NULL): Remove.
88411         (find_stack_direction, alloca): Use prototypes.
88412
88413         * lib/atexit.c (atexit): Define using a prototype.
88414
88415         * lib/basename.c, dirname.c, stripslash.c:
88416         Include <string.h> unconditionally.
88417
88418         * lib/bcopy.c: Include <stddef.h>.
88419         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88420
88421         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88422
88423         * lib/error.h (error, error_at_line, error_print_progname)
88424         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88425         * lib/error.c: Include error.h first, to check interface.
88426         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88427         (VA_START): Remove; all uses changeed to va_start.
88428         (exit, strerror): Remove decls.
88429         (error_print_progname): Prototype uncondionally.
88430         Don't include <errno.h>; no longer needed.
88431         (private_strerror): Remove.
88432         (error_tail): Always define.
88433         (error, error_at_line): Assume C89 or better; always use prototypes.
88434         * lib/fatal.c: Include "fatal.h" first, to test interface.
88435         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88436         (VA_START): Remove; all uses changed to va_start.
88437         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88438         this case.
88439         (exit): Remove decl.
88440         (fatal): Prototype unconditionally.  Assume va_start works.
88441         Abort at end, to pacify gcc.
88442
88443         * lib/euidaccess.c (main): Define with a prototype.
88444
88445         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88446
88447         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88448
88449         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88450         prototypes.
88451         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88452         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88453         (getenv): Remove decl.
88454         (fnmatch): Define using a prototype.
88455         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88456         (FCT): Define using a prototype.
88457
88458         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88459
88460         * lib/gethostname.c: Include <stddef.h>.
88461         (gethostname): Define with prototype.  Length is size_t, not int.
88462
88463 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88464
88465         Assume C89 or better; remove K&R cruft.
88466         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88467         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88468         string.h, getenv, malloc.
88469         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88470         headers.
88471         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88472         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88473         do not check for strerror.
88474         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88475         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88476         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88477         do not check for doprnt or vprintf.
88478         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88479         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88480
88481 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88482
88483         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88484         getversion.c should have been removed then, but was accidentally
88485         preserved.
88486
88487         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88488         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88489
88490 2003-09-08  Karl Berry  <karl@gnu.org>
88491
88492         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88493                 config, forget about prep.
88494
88495         * config/depcomp, missing: update from automake.
88496
88497 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88498
88499         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88500         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88501
88502 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88503
88504         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88505         copy_tm_result.  Bug reported by Simon Josefsson in
88506         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88507
88508 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88509
88510         * m4/time_r.m4: New file.
88511         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88512         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88513         is. Check for timegm declaration.
88514         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88515         Do not check for gmtime_r.
88516         Replace mktime if __mktime_internal does not exist and if mktime
88517         hasn't been replaced already.
88518
88519 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88520
88521         * lib/time_r.c, lib/time_r.h: New files.
88522
88523         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88524         __localtime_r.
88525         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88526         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88527
88528         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88529         __gmtime_r.
88530         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88531         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88532         Include <time_r.h>.
88533
88534         * lib/timegm.c: Switch to glibc implementation, with the following
88535         changes:
88536         [defined HAVE_CONFIG_H]: Include <config.h>.
88537         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88538         (__mktime_internal) [!defined _LIBC]: New decl.
88539         (__gmtime_r) [!defined _LIBC]: New macro and function.
88540         (timegm): Use a prototype, since gnulib assumes C89.
88541         Do not bother declaring tmp to be const, as it's not really usefu.
88542         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88543         (timegm): Declare only if HAVE_DECL_TIMEGM.
88544
88545 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88546
88547         * MODULES.html.sh (func_all_modules): Add time_r.
88548         * modules/time_r: New file.
88549         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88550         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88551
88552 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88553
88554         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88555         Bug reported by Lute Kamstra in
88556         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88557
88558         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88559         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88560         course with correspondingly smaller numbers for tomorrow and
88561         yesterday.  From Tadayoshi Funaba.  Originally installed into
88562         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88563         coreutils merge?).
88564
88565 2003-08-31  Simon Josefsson  <jas@extundo.com>
88566
88567         * modules/timegm: New file.
88568         * MODULES.html.sh (func_all_modules): Add timegm.
88569
88570 2003-08-31  Simon Josefsson  <jas@extundo.com>
88571
88572         * m4/timegm.m4: New file.
88573
88574 2003-08-31  Simon Josefsson  <jas@extundo.com>
88575
88576         * lib/timegm.h: New file.
88577         * lib/timegm.c: New file.  Based on
88578         wget-1.8.2/src/http.c:mktime_from_utc.
88579
88580 2003-08-31  Karl Berry  <karl@gnu.org>
88581
88582         * lib/argp.h: update from libc.
88583
88584 2003-08-28  Bruno Haible  <bruno@clisp.org>
88585
88586         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88587         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88588         followed by '#define fnmatch fnmatch_posix' gives an error.
88589
88590 2003-08-28  Bruno Haible  <bruno@clisp.org>
88591
88592         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88593         warning on QNX, which defines O_BINARY to 000000.
88594
88595 2003-08-27  Jim Meyering  <jim@meyering.net>
88596
88597         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88598         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88599         would fail after 32.  Reported by Danny Levinson.  Details here:
88600         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88601
88602 2003-08-24  Bruno Haible  <bruno@clisp.org>
88603
88604         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88605         MSVC7 <stdio.h> is included later.
88606
88607 2003-08-22  Simon Josefsson  <jas@extundo.com>
88608
88609         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88610
88611 2003-08-20  Karl Berry  <karl@gnu.org>
88612
88613         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88614
88615 2003-08-20  Bruno Haible  <bruno@clisp.org>
88616
88617         * modules/progname: New file.
88618         * MODULES.html.sh (func_all_modules): Add progname.
88619
88620 2003-08-20  Bruno Haible  <bruno@clisp.org>
88621
88622         * lib/progname.h: New file, from GNU gettext.
88623         * lib/progname.c: New file, from GNU gettext.
88624         * lib/progreloc.c: New file, from GNU gettext.
88625
88626 2003-08-19  Jim Meyering  <jim@meyering.net>
88627
88628         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88629         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88630
88631 2003-08-19  Bruno Haible  <bruno@clisp.org>
88632
88633         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88634         more.
88635
88636 2003-08-19  Bruno Haible  <bruno@clisp.org>
88637
88638         * lib/xstrdup.c: Assume <string.h> exists.
88639
88640 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88641
88642         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88643         in makefile rules.
88644
88645 2003-08-18  Jim Meyering  <jim@meyering.net>
88646
88647         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88648         * m4/lib-ld.m4: Likewise.
88649
88650 2003-08-18  Jim Meyering  <jim@meyering.net>
88651
88652         * lib/setenv.h: Indent nested cpp directive.
88653         * lib/vasnprintf.c: Remove trailing blanks.
88654
88655 2003-08-17  Simon Josefsson  <jas@extundo.com>
88656
88657         * modules/xstrndup: New file.
88658         * MODULES.html.sh (func_all_modules): Add xstrndup.
88659
88660 2003-08-17  Simon Josefsson  <jas@extundo.com>
88661
88662         * modules/argp: Fix autoconf macro name. Add more dependencies.
88663
88664 2003-08-17  Simon Josefsson  <jas@extundo.com>
88665
88666         * m4/xstrndup.m4: New file.
88667
88668 2003-08-17  Simon Josefsson  <jas@extundo.com>
88669
88670         * m4/argp.m4: New file.
88671
88672 2003-08-17  Simon Josefsson  <jas@extundo.com>
88673             Bruno Haible  <bruno@clisp.org>
88674
88675         * lib/xstrndup.h: New file.
88676         * lib/xstrndup.c: New file.
88677
88678 2003-08-17  Bruno Haible  <bruno@clisp.org>
88679
88680         * modules/strndup (Files, Include): Add lib/strndup.h.
88681
88682 2003-08-17  Bruno Haible  <bruno@clisp.org>
88683
88684         * modules/euidaccess (Files): Add lib/euidaccess.h.
88685
88686 2003-08-17  Bruno Haible  <bruno@clisp.org>
88687
88688         * lib/strndup.h: New file.
88689
88690 2003-08-17  Bruno Haible  <bruno@clisp.org>
88691
88692         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88693         like AC_GNU_SOURCE.
88694         * modules/extensions (configure.ac): Comment out the invocation of
88695         gl_USE_SYSTEM_EXTENSIONS.
88696
88697 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88698
88699         Merges from coreutils, etc.
88700         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88701         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88702         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88703         fixing a typo.
88704         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88705         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88706
88707 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88708
88709         Document merge from coreutils.
88710         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88711         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88712         * modules/utime: Add m4/utimes-null.m4.
88713
88714 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88715
88716         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88717         space, undoing this 2003-08-12 change:
88718         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88719
88720 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88721
88722         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88723         strtoul.c from libc, undoing this 2003-08-12 change:
88724         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88725
88726 2003-08-16  Jim Meyering  <jim@meyering.net>
88727
88728         Merges from coreutils.
88729         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88730         prefix.  Adjust cache variables similarly.  Create 500 rather than
88731         just 300 files, to exercise bug on Darwin6.5, too.
88732         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88733         $missing_dir.
88734         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88735         AM_SYS_POSIX_TERMIOS.
88736         Reported by mkc@mathdogs.com.
88737         Also change use of $am_cv_sys_posix_termios
88738         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88739         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88740         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88741         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88742         in /proc/mounts until it finds one with matching device number.  This
88743         is unnecessary when the FILE argument *is* a mount point.  No stat call
88744         is necessary in that case.  So, disable the statvfs-testing code on
88745         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88746         as RedHat bug# 84846.
88747         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88748         to 1MB, so as not to render systems with no stack size limit (e.g.,
88749         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88750         Include <unistd.h>.  On some systems,
88751         it is required for the definition of _SC_PAGESIZE.
88752
88753 2003-08-16  Jim Meyering  <jim@meyering.net>
88754
88755         Merge from coreutils.
88756         * lib/xstrtoimax.c: #else #if -> #elif.
88757         * lib/xstrtoumax.c: Likewise.
88758
88759 2003-08-16  Jim Meyering  <jim@meyering.net>
88760
88761         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88762         * m4/utimes.m4: Removed.
88763         * m4/utimes-null.m4: Renamed from utimes.m4.
88764
88765         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88766         to 1MB, so as not to render systems with no stack size limit (e.g.,
88767         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88768         Include <unistd.h>.  On some systems,
88769         it is required for the definition of _SC_PAGESIZE.
88770
88771 2003-08-16  Jim Meyering  <jim@meyering.net>
88772         and Paul Eggert  <eggert@cs.ucla.edu>
88773
88774         Merges from coreutils, etc.
88775
88776         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88777         using the latest version from cvs.  This avoids problems with #line
88778         directives using a vendor (Sun) compiler.
88779         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88780         Don't set GETGROUPS_LIB here; now it's
88781         done via getgroups.m4's wrapper function.
88782         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88783         rather than just in sh-util/configure.in, so that the
88784         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88785         same.
88786         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88787         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88788         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88789         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88790         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88791         Remove code that is now done by the newly-required macros.
88792         Append $(EXEEXT) to DF_PROG.
88793         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88794         Do not invoke or require the following here,
88795         since prereq.m4 or some gnulib .m4 now does this for us:
88796         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88797         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88798         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88799         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88800         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88801         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88802         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88803         AC_FUNC_OBSTACK.
88804         Do not replace the following functions, as this is now the job
88805         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88806         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88807         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88808         atexit getpass, strdup, getpagesize.
88809         Replace 'raise'.
88810         Do not check for the following functions, as this is now the job
88811         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88812         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88813         setregid.
88814         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88815         Check for sys/sysctl.h.
88816         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88817         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88818         of checking for ssize_t ourselves.
88819
88820         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88821         Require every macro that gnulib/modules/* suggests for us.
88822         (jm_PREREQ_ADDEXT): New macro.
88823         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88824         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88825
88826         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88827         (gl_PHYSMEM): Use it.
88828         Also check for `table' function.
88829         Check for new headers and functions.
88830         Add check for sys/sysmp.h.
88831         With suggestions from Kaveh Ghazi.
88832         Ignore headers that are present but cannot be compiled.  This
88833         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88834         C 5.4.
88835
88836 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88837
88838         Document merge from coreutils.
88839         * modules/userspec: Depend on posixver.
88840         * modules/strftime: Depend on tzset.
88841
88842 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88843
88844         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88845         rather than tab, after '#' in shell-script copyright notices.
88846         Suggested by Bruno Haible.
88847
88848 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88849
88850         * config/srclist-update: Use three spaces, rather than tab, after '#'
88851         in shell-script copyright notices.  Suggested by Bruno Haible.
88852         Remove unnecessary parenthesization in regular expression.
88853
88854 2003-08-15  Jim Meyering  <jim@meyering.net>
88855
88856         Merge from coreutils.
88857         * lib/xgethostname.c: Include <stdlib.h>.
88858         (xghostname): Don't exit for anything other than memory-related
88859         failure; just return NULL.
88860         * lib/userspec.c: Include "posixver.h".
88861         (parse_user_spec): Accept `.' as a separator only
88862         in pre-POSIX-200112 mode.
88863         * lib/strtoimax.c: Use #elif rather than #else #if.
88864         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88865         Remove function, now that we can rely on a working tzset function.
88866         [!_LIBC]: Ensure that the required autoconf test has been run.
88867         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88868         Use underlying_strftime for %r.
88869         * lib/sha.c: Merge in some clean-up and optimization changes from
88870         glibc.
88871         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88872         Ensure that it is a multiple of 64.
88873         Rearrange loop exit tests so as to avoid performing an
88874         additional fread after encountering an error or EOF.
88875         * lib/realloc.c: Update copyright date.
88876
88877 2003-08-15  Jim Meyering  <jim@meyering.net>
88878         and Paul Eggert  <eggert@twinsun.com>
88879
88880         Merge from coreutils.
88881         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88882         member but strut utmpx does not.  Needed for AIX 4.3.3.
88883         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88884
88885 2003-08-15  Jim Meyering  <jim@meyering.net>
88886         and Paul Eggert  <eggert@cs.ucla.edu>
88887
88888         Merges from coreutils, etc.
88889         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88890         Require gl_FUNC_TZSET_CLOBBER.
88891         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88892         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88893         members.
88894
88895 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88896
88897         Help the merge from coreutils.
88898         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88899         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88900         * m4/tzset.m4: Use it too.
88901
88902 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88903
88904         * modules/tzset: New file.
88905
88906 2003-08-14  Jim Meyering  <jim@meyering.net>
88907
88908         Merges from coreutils.
88909         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88910         variable names, rather than @FNMATCH_H@.
88911         * modules/alloca: Likewise for $(ALLOCA_H).
88912
88913         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88914         the three copies of the literal target, `fnmatch.h'.
88915         * modules/alloca (alloca.h): Likewise.
88916
88917 2003-08-14  Jim Meyering  <jim@meyering.net>
88918
88919         Merge from coreutils.
88920         * m4/tzset.m4: New file.
88921         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88922         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88923         otherwise, AIX 5.1 systems would end up using the latter.
88924         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88925         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88926         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88927         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88928
88929 2003-08-14  Jim Meyering  <jim@meyering.net>
88930
88931         Merge from coreutils.
88932         * lib/obstack.h: Whitespace changes.
88933         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88934         and xcalloc return values.
88935         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88936         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88937         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88938         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88939         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88940         error from mntctl.
88941         Use mntctl's return value to drive the entry-processing loop, since
88942         we can't rely on the value of the vmt_length member in the last
88943         entry.  On some systems doing so could result in exhausting
88944         virtual memory.  Based in part on a patch from Mike Jetzer.
88945
88946 2003-08-14  Jim Meyering  <jim@meyering.net>
88947         and Paul Eggert  <eggert@twinsun.com>
88948
88949         Merges from coreutils, plus other fixes.
88950         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88951         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88952         for credits and details.  Thanks to Kaveh Ghazi for helping
88953         to keep these files in sync.
88954         (ARRAY_SIZE): Define it.
88955         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88956         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88957         (memcasecmp): Don't assume size_t fits in unsigned int.
88958         Remove casts and duplicate code.
88959         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88960         (memcpy): Remove definition.
88961         Merge in some clean-up and optimization changes from glibc.
88962         [BLOCKSIZE]: Move definition to top of file.
88963         Ensure that it is a multiple of 64.
88964         Rearrange loop exit tests so as to avoid performing an
88965         additional fread after encountering an error or EOF.
88966         * lib/md5.h (md5_uintptr): Define.
88967         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88968         return to the initial working directory.  Preserve errno
88969         for caller.
88970         * lib/idcache.c: Include "xalloc.h".
88971         (xmalloc, xrealloc): Remove decls.
88972         (getuser): Remove casts no longer required in C89.
88973         * lib/human.c: Include stdio.h, for sprintf.
88974         * lib/group-member.c: Include "xalloc.h".
88975         (xmalloc, xrealloc): Remove decls.
88976         (get_group_info): Remove casts no longer required in C89.
88977         * lib/getusershell.c (readname): Remove casts no longer required in
88978         C89.
88979         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88980         * lib/getline.c: Whitespace fix, from coreutils.
88981
88982 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88983
88984         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88985         Check for isascii.
88986
88987         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88988         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88989         Undo previous (whitespace-only) change.
88990
88991 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88992
88993         * lib/exclude.c: Include <ctype.h>
88994         (IN_CTYPE_DOMAIN): New macro.
88995         (is_space): New fn.
88996         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88997         and empty lines.
88998
88999         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89000         Undo previous (whitespace-only) change.
89001
89002 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89003
89004         * config/srclist-update: Change update back to the old behavior,
89005         leaving whitespace alone.  Use one 'sed' command rather than a
89006         pipeline.
89007         (fixlicense): Now a variable, not a function.
89008         (remove_trailing_blanks): Remove.
89009         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89010         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89011         Undo previous (whitespace-only) change.
89012
89013 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89014
89015         Merge from coreutils.
89016         * modules/euidaccess: Add lib_SOURCES, include for new
89017         file euidaccess.h
89018
89019 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89020
89021         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89022         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89023         Normalize leading white space and remove trailing white space.
89024
89025         Merge from coreutils
89026         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89027
89028         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89029         0.12.1.  These files are now being upgraded automatically by
89030         ../config/srclist-update.
89031
89032 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89033
89034         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89035         Normalize leading white space and remove trailing white space.
89036         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89037         notice, as per ../config/srclist-update.
89038
89039         Merge from coreutils.
89040         * lib/euidaccess.h: New file.
89041         * lib/euidaccess.c: Include it.
89042         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89043         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89044         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89045
89046 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89047
89048         * config/srclist-update: Add copyright notice.
89049         (remove_id_lines, remove_trailing_blanks): New constants.
89050         (fixfile): Use them to normalize spacing a bit in copied files.
89051         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89052         Normalize leading white space and remove trailing white space.
89053
89054         * config/texinfo.tex: Sync with texinfo.
89055
89056         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89057         strtoul.c from libc, to merge coreutils whitespace changes.
89058
89059         * config/srclist.txt: Get the following m4 files from gettext:
89060         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89061         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89062         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89063         wint_t.m4.
89064
89065 2003-08-12  Karl Berry  <karl@gnu.org>
89066
89067         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89068         been made.
89069
89070 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89071
89072         * modules/gnu-source, m4/gnu-source.m4:
89073         Remove; we're assuming Autoconf 2.54 or later now.
89074         Suggested by Bruno Haible.
89075         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89076
89077 2003-08-11  Bruno Haible  <bruno@clisp.org>
89078
89079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89080
89081 2003-08-11  Bruno Haible  <bruno@clisp.org>
89082
89083         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89084         (vasnprintf): Use it instead of wcslen.
89085
89086 2003-08-11  Bruno Haible  <bruno@clisp.org>
89087
89088         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89089         value to ensure that _Bool promotes to int. Use #define for _Bool when
89090         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89091
89092 2003-08-10  Karl Berry  <karl@gnu.org>
89093
89094         * lib/regex.h: update from libc (whitespace fix).
89095
89096 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89097
89098         Merge some files from coreutils.  These changes were
89099         originally made by Jim Meyering.
89100         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89101         many older Unixes require this.
89102         * lib/alloca.c (alloca): Remove cast to argument of free;
89103         no longer needed in C89.
89104         * lib/alloca_.h, regex.h: Fix white space to match
89105         what GNU indent does.
89106
89107 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89108
89109         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89110         apparently Emacs's Unicode mode got confused before my 2003-08-05
89111         checkin.
89112
89113 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89114
89115         * m4/extensions.m4: New file.
89116         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89117         Require gl_USE_SYSTEM_EXTENSIONS.
89118         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89119         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89120
89121 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89122
89123         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89124         * modules/extensions, modules/gnu-source: New files.
89125         * modules/timespec, modules/unlocked-io: Depend on extensions.
89126
89127 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89128
89129         * modules/restrict: New file.
89130         * MODULES.html.sh (func_all_modules): Add restrict.
89131         * modules/regex: Depend on restrict.
89132
89133 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89134
89135         * m4/restrict.m4: New file.
89136         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89137
89138 2003-08-07  Bruno Haible  <bruno@clisp.org>
89139
89140         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89141         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89142
89143 2003-08-07  Bruno Haible  <bruno@clisp.org>
89144
89145         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
89146         makes the module 'getndelim2' compatible with the module 'getline'.
89147
89148 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89149
89150         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
89151         byte with "\201" to avoid glitches when editing that source file
89152         with multi-gnome-terminal.
89153
89154 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89155
89156         * lib/bumpalloc.h: Remove.
89157
89158 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89159
89160         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
89161         * modules/bumpalloc: Remove.
89162
89163 2003-08-04  Paul Eggert  <eggert@twinsun.com>
89164
89165         * lib/getloadavg.c: Change copyright notice and spacing to conform to
89166         GNU coding style.
89167
89168         Merge from coreutils.
89169         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
89170         1. From glibc.
89171         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
89172         from Karl Berry, implemented by Jim Meyering.
89173         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
89174         from Dmitry V. Levin.
89175         Remove anachronistic cast of xrealloc.
89176         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
89177         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
89178         type. Otherwise, it wouldn't compile with at least /bin/cc on
89179         ymp-cray-unicos9.0.2.X.
89180         Combine two mostly-identical uses of alloca into one.
89181         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89182
89183 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89184
89185         [From Emacs.]
89186
89187         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89188         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89189         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89190         obsolete NLIST_NAME_UNION.
89191         [__GNU__]: Undef BSD and FSCALE.
89192         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89193
89194 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89195
89196         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89197         an enum type, so that it's guaranteed to promote to int.  See:
89198         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89199
89200 2003-08-03  Karl Berry  <karl@gnu.org>
89201
89202         * config/depcomp: update from automake.
89203
89204 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89205
89206         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89207         (strerror): Don't assume that a printable int fits in 14 bytes.
89208
89209 2003-07-31  Bruno Haible  <bruno@clisp.org>
89210
89211         * modules/getpass-gnu: New file.
89212         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89213
89214 2003-07-31  Bruno Haible  <bruno@clisp.org>
89215
89216         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89217
89218 2003-07-24  Karl Berry  <karl@gnu.org>
89219
89220         * config/missing: update from automake.
89221
89222 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89223             Bruno Haible  <bruno@clisp.org>
89224
89225         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89226         * lib/getline.c (getline, getdelim): Likewise.
89227         Remove _GNU_SOURCE define; now it's defined in config.h through
89228         m4/getline.m4.
89229
89230 2003-07-23  Karl Berry  <karl@gnu.org>
89231
89232         * config/config.sub: update from prep.
89233
89234 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89235
89236         * modules/xalloc (Depends-on): Add exitfail.
89237         * modules/xmemcoll: Likewise.
89238
89239 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89240
89241         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
89242         over-parenthesization in macros.
89243
89244         Sync with coreutils.
89245
89246         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
89247         required by C99.
89248
89249         Use `exit_failure' for xalloc and xmemcoll instead of their own
89250         private exit-failure variables.
89251         * lib/xalloc.h (xalloc_exit_failure): Remove.
89252         * lib/xmalloc.c: Likewise.  Include exitfail.h.
89253         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89254         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89255         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89256         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89257
89258 2003-07-20  Jim Meyering  <jim@meyering.net>
89259
89260         * modules/closeout (Depends-on): Add exitfail.
89261         Suggestion from Bruno Haible.
89262
89263 2003-07-19  Karl Berry  <karl@gnu.org>
89264
89265         * config/config.sub: update from prep.
89266
89267 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89268
89269         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89270         Remove.
89271         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89272         to test that it can stand by itself.  Include "exitfail.h".
89273         Clients should set exit_failure instead.
89274         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89275
89276 2003-07-18  Bruno Haible  <bruno@clisp.org>
89277
89278         * modules/getndelim2: New file.
89279         * modules/getline: Share files with module getndelim2.
89280         * modules/getnline: Depend on getndelim2 instead of sharing files with
89281         it. Add getnline.c to lib_SOURCES.
89282         * MODULES.html.sh (func_all_modules): Add getndelim2.
89283
89284 2003-07-18  Bruno Haible  <bruno@clisp.org>
89285
89286         * m4/getndelim2.m4: New file.
89287         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89288         invoke gl_PREREQ_GETNDELIM2.
89289         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89290         gl_PREREQ_GETNDELIM2.
89291         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89292         gl_GETNDELIM2.
89293
89294 2003-07-18  Bruno Haible  <bruno@clisp.org>
89295
89296         * lib/getndelim2.h: New file.
89297         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89298         getndelim2.h.
89299         (getndelim2): Make non-static. Change return type to ssize_t.
89300         * lib/getline.h: Change argument names.
89301         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89302         * lib/getnline.c: Include getndelim2.h.
89303
89304 2003-07-18  Andreas Schwab  <schwab@suse.de>
89305
89306         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89307
89308 2003-07-17  Karl Berry  <karl@gnu.org>
89309
89310         * config/config.sub: update from prep.
89311
89312 2003-07-17  Bruno Haible  <bruno@clisp.org>
89313
89314         * modules/getnline: New file.
89315         * modules/getline: Add lib/getndelim2.c to source file list.
89316         * MODULES.html.sh (func_all_modules): Add getnline.
89317
89318 2003-07-17  Bruno Haible  <bruno@clisp.org>
89319
89320         * m4/getnline.m4: New file.
89321
89322 2003-07-17  Bruno Haible  <bruno@clisp.org>
89323
89324         * m4/Makefile.am.in: Remove file.
89325         * m4/Makefile.am: Remove file.
89326         * m4/Makefile.in: Remove file.
89327
89328 2003-07-17  Bruno Haible  <bruno@clisp.org>
89329
89330         * lib/getnline.h: New file.
89331         * lib/getnline.c: New file.
89332         * lib/getndelim2.c: New file, extracted from getline.c.
89333         (getndelim2): Renamed from getdelim2, with added nmax argument.
89334         * lib/getline.c: Include getndelim2.c.
89335         (getdelim2): Moved out to getndelim2.c.
89336         (getline, getdelim): Update.
89337
89338 2003-07-17  Bruno Haible  <bruno@clisp.org>
89339
89340         * lib/Makefile.am: Remove file.
89341         * lib/Makefile.in: Remove file.
89342
89343 2003-07-17  Bruno Haible  <bruno@clisp.org>
89344
89345         * configure.in: Remove file.
89346         * Makefile.in: Remove file.
89347
89348 2003-07-17  Bruno Haible  <bruno@clisp.org>
89349
89350         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89351
89352 2003-07-16  Karl Berry  <karl@gnu.org>
89353
89354         * config/srclist-update: was running fixlicense twice, which caused
89355                 texinfo.tex to be nullified for some reason.  Simplify,
89356                 $gplsrc is no longer needed as far as I can see?
89357
89358 2003-07-16  Jim Meyering  <jim@meyering.net>
89359
89360         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89361
89362 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89363
89364         * config/srclist.txt: Get the following files from gettext-runtime/intl
89365         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89366         ref-del.sin.  From Bruno Haible.
89367         * config/srclist-update (fixfile): Change grep pattern again, since the
89368         previous fix didn't work (there was another trailing $).  Use
89369         '[$]' to escape the $s.
89370
89371 2003-07-15  Karl Berry  <karl@gnu.org>
89372
89373         * lib/vasnprintf.c: update from gettext.
89374
89375 2003-07-15  Karl Berry  <karl@gnu.org>
89376
89377         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89378         gets expanded when surrounded by '$'.
89379
89380 2003-07-15  Jim Meyering  <jim@meyering.net>
89381
89382         * modules/save-cwd: Don't depend on error.  From Derek Price.
89383
89384 2003-07-15  Jim Meyering  <jim@meyering.net>
89385
89386         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89387
89388 2003-07-14  Simon Josefsson  <jas@extundo.com>
89389
89390         * modules/mempcpy: New file.
89391         * MODULES.html.sh (func_all_modules): Add mempcpy.
89392
89393 2003-07-14  Simon Josefsson  <jas@extundo.com>
89394
89395         * m4/mempcpy.m4: New file.
89396
89397 2003-07-14  Simon Josefsson  <jas@extundo.com>
89398
89399         * lib/mempcpy.h: New file.
89400         * lib/mempcpy.c: New file.
89401
89402 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89403
89404         * modules/getdate, modules/posixtm: Depend on mktime.
89405
89406 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89407
89408         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89409         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89410         unicodeio.c, unicodeio.h, unlocked-io.h:
89411         Switch from LGPL to GPL.
89412
89413 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89414
89415         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89416         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89417         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89418         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89419         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89420         updated automatically by ../config/srclist-update.  This changes
89421         their license from LPGL to GPL.
89422
89423 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89424
89425         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89426         assumed to refer to the root of the most recent stable gettext version.
89427         * config/srclistvars.sh: Add defaults for eggert.
89428         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89429         Match "This program" as well as "The program".  This is needed
89430         for gettext.
89431
89432 2003-07-14  Jim Meyering  <jim@meyering.net>
89433
89434         Don't emit diagnostics.  Let callers do that.
89435         * lib/save-cwd.c: Don't include "error.h".
89436         (save_cwd): Don't call error.  Ensure that errno is valid
89437         when returning nonzero.
89438
89439         * lib/save-cwd.h (restore_cwd): Update prototype.
89440         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89441         Simplify.  Don't call error upon failure.  Let callers do that.
89442         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89443         when auditing is enabled.  But don't bother updating the #if.
89444
89445 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89446
89447         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89448         it breaks C++ compilation.
89449         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89450
89451 2003-07-10  Simon Josefsson  <jas@extundo.com>
89452
89453         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89454
89455 2003-07-10  Jim Meyering  <jim@meyering.net>
89456
89457         * m4/clock_time.m4: Remove trailing blank.
89458         * m4/intmax_t.m4: Likewise.
89459
89460 2003-07-10  Jim Meyering  <jim@meyering.net>
89461
89462         * lib/vasnprintf.c: Remove trailing blanks.
89463         Make cpp indentation consistent.
89464
89465 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89466
89467         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89468         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89469         Switch from LGPL to GPL.
89470
89471 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89472
89473         * config/srclist.txt: Sort sublists.  Add
89474         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89475         that differ from gnulib for one reason or another; we'd like this list
89476         to be smaller but for now let's document what we have.
89477
89478 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89479
89480         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89481         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89482         and sweeter "eval x=$x".
89483         * config/srclist.txt: Get lib/argp* from glibc.
89484
89485 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89486
89487         * lib/mktime.c: Fix some boundary cases and remove need for floating
89488         point.
89489
89490         Issue a compile-time diagnostic if time_t is floating point, or if
89491         two's complement arithmetic is not in effect, or if arithmetic
89492         right shift does not propagate the sign.  These assumptions were
89493         all in the original code but they weren't checked.
89494
89495         (TIME_T_MIDPOINT, verify): New macros.
89496         (__isleap): Remove; it has integer overflow problems.
89497         (leapyear): New function, without those problems.
89498         (ydhms_tm_diff): Remove; splitting into two parts.
89499         (ydhms_diff): New function, containing the arithmetic part of
89500         the old ydhms_tm_diff function.  Issue a compile-time
89501         diagnostic if we are not using C99 integer division.
89502         Avoid casts when possible.
89503         (guess_time_tm): New function, containing the checking part of
89504         the old ydhms_tm_diff function.  Return the new value, rather than
89505         the difference between it and the old.  Accept a new argument T
89506         so that *T specifies the old value.  Check for overflow in the result.
89507
89508         (__mktime_internal): Use a time_t offset, not a long int offset.
89509         This undoes the 2003-06-04 change, which is no longer needed now
89510         that we have better overflow checking.
89511         (localtime_offset): Likewise.
89512
89513         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89514         and long are 64-bit but int is only 32-bit.
89515         (ydhms_diff): Use long int to store year1 and yday1.
89516         Issue a compile-time diagnostic if long int is not wide enough.
89517
89518         (__mktime_internal): Use long int to store adjusted year and yday.
89519         Use plain C rather than preprocessor commands, if that doesn't
89520         affect efficiency.
89521         Check for overflow (and try to repair) after each probe
89522         rather than checking only at the very end.  This avoids some bugs
89523         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89524         does not equal GMT offset at maximum time).
89525         Use integer to check for overflow rather than floating point; this
89526         is more portable to non-IEEE hosts, and is a tad faster.
89527         When we detect that we are oscillating between two values,
89528         don't check whether tm_isdst has the requested value, since
89529         we already know the answer.  When tm_isdst has the wrong value,
89530         use a different heuristic to find the right one, based on the
89531         extreme values actually observed in practice in tz2003a,
89532         rather than the (overly optimistic) "previous 3 calendar quarters".
89533
89534         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89535         "T const" to accommodate glibc style.
89536         (check_result): Use less-confusing report format.  "long" -> "long int.
89537         (main): Likewise.
89538         Don't loop if the iteration overflows time_t.
89539         Allow a negative step in the iteration.
89540
89541 2003-07-06  Karl Berry  <karl@gnu.org>
89542
89543         * config/depcomp: update from automake.
89544         * config/config.sub: update from prep.
89545
89546 2003-07-03  Karl Berry  <karl@gnu.org>
89547
89548         * config/config.guess: update from prep.
89549
89550 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89551
89552         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89553         xreadlink.c now includes it unconditionally.
89554
89555 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89556
89557         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89558         having it depend on HAVE_SYS_TYPES_H.
89559
89560 2003-07-01  Bruno Haible  <bruno@clisp.org>
89561
89562         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89563         <sys/types.h> should be sufficient.
89564         Reported by Paul Eggert.
89565
89566 2003-06-26  Karl Berry  <karl@gnu.org>
89567
89568         * config/depcomp: update from automake.
89569
89570 2003-06-26  Bruno Haible  <bruno@clisp.org>
89571
89572         * modules/human: Depend on module stdbool.
89573
89574 2003-06-25  Bruno Haible  <bruno@clisp.org>
89575
89576         * modules/readlink: New file.
89577         * modules/xreadlink: Depend on it.
89578         * MODULES.html.sh (func_all_modules): Add readlink.
89579
89580 2003-06-25  Bruno Haible  <bruno@clisp.org>
89581
89582         * m4/readlink.m4: New file.
89583
89584 2003-06-25  Bruno Haible  <bruno@clisp.org>
89585
89586         * lib/readlink.c: New file.
89587
89588 2003-06-22  Karl Berry  <karl@gnu.org>
89589
89590         * config/srclist.txt: update mkinstalldirs from automake.
89591         * config/mkinstalldirs: update.
89592
89593 2003-06-22  Bruno Haible  <bruno@clisp.org>
89594
89595         Portability to mingw32.
89596         * m4/ssize_t.m4: New file, from GNU gettext.
89597         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89598         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89599
89600 2003-06-22  Bruno Haible  <bruno@clisp.org>
89601
89602         * modules/safe-read: Add m4/ssize_t.m4.
89603         * modules/xreadlink: Add m4/ssize_t.m4.
89604
89605 2003-06-20  Bruno Haible  <bruno@clisp.org>
89606
89607         Assume C89, so PARAMS isn't needed.
89608         * lib/unicodeio.h (PARAMS): Remove.
89609         * lib/unicodeio.c: Don't use PARAMS.
89610
89611 2003-06-18  Karl Berry  <karl@gnu.org>
89612
89613         * config/config.{guess,sub}: update from prep.
89614
89615 2003-06-18  Jim Meyering  <jim@meyering.net>
89616
89617         Merge changes from coreutils.
89618         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89619         Remove explicit declarations of xmalloc and realloc.
89620         Include xalloc.h.
89621         (read_utmp): Remove anachronistic cast of xmalloc.
89622
89623 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89624
89625         Assume C89, so PARAMS isn't needed.
89626         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89627         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89628         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89629         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89630         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89631         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89632         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89633         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89634         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89635         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89636         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89637         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89638         no longer needed. Anyway, config.h should always be included before any
89639         other file.
89640
89641 2003-06-11  Simon Josefsson  <jas@extundo.com>
89642
89643         * modules/sysexits: New file.
89644         * MODULES.html.sh (func_all_modules): Add sysexits.
89645
89646 2003-06-11  Simon Josefsson  <jas@extundo.com>
89647
89648         * lib/sysexit_.h: New file.
89649
89650 2003-06-11  Derek Price  <derek@ximbiot.com>
89651
89652         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89653         necessary.
89654
89655 2003-06-11  Bruno Haible  <bruno@clisp.org>
89656
89657         * m4/sysexits.m4: New file.
89658
89659 2003-06-10  Simon Josefsson  <jas@extundo.com>
89660
89661         * lib/argp.h: New file, from glibc.
89662         * lib/argp-ba.c: New file, from glibc.
89663         * lib/argp-eexst.c: New file, from glibc.
89664         * lib/argp-fmtstream.c: New file, from glibc.
89665         * lib/argp-fmtstream.h: New file, from glibc.
89666         * lib/argp-fs-xinl.c: New file, from glibc.
89667         * lib/argp-help.c: New file, from glibc.
89668         * lib/argp-namefrob.h: New file, from glibc.
89669         * lib/argp-parse.c: New file, from glibc.
89670         * lib/argp-pv.c: New file, from glibc.
89671         * lib/argp-pvh.c: New file, from glibc.
89672         * lib/argp-xinl.c: New file, from glibc.
89673
89674 2003-06-10  Simon Josefsson  <jas@extundo.com>
89675
89676         * modules/strchrnul: New file.
89677
89678 2003-06-10  Simon Josefsson  <jas@extundo.com>
89679
89680         * modules/argp: New file.
89681
89682 2003-06-10  Simon Josefsson  <jas@extundo.com>
89683
89684         * m4/strchrnul.m4: New file.
89685
89686 2003-06-10  Simon Josefsson  <jas@extundo.com>
89687
89688         * lib/strchrnul.h: New file.
89689         * lib/strchrnul.c: New file.
89690
89691 2003-06-10  Bruno Haible  <bruno@clisp.org>
89692
89693         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89694
89695 2003-06-07  Karl Berry  <karl@gnu.org>
89696
89697         * config/config.{guess,sub}: update from prep.
89698
89699 2003-06-07  Jim Meyering  <jim@meyering.net>
89700
89701         * modules/strtod: Use $(...) notation, not @...@ for
89702         AC_REPLACE'd variables.
89703         * modules/localcharset: Likewise.
89704
89705 2003-06-07  Jim Meyering  <jim@meyering.net>
89706
89707         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89708         in place of my name in the copyright comment.
89709         Remove definition and uses of __P.
89710
89711         From coreutils.
89712         * lib/stat.c: Don't declare xmalloc explicitly.
89713         Instead, include "xalloc.h".
89714         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89715         xrealloc, and xcalloc return values.
89716         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89717         Improve comment.
89718         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89719
89720 2003-06-07  Bruno Haible  <bruno@clisp.org>
89721
89722         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89723         avoid AC_CONFIG_LINKS.
89724         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89725         fnmatch.h, to avoid AC_CONFIG_LINKS.
89726         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89727
89728 2003-06-07  Bruno Haible  <bruno@clisp.org>
89729
89730         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89731         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89732         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89733         directory.
89734         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89735         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89736         directory.
89737
89738 2003-06-06  Jim Meyering  <jim@meyering.net>
89739
89740         Merge from coreutils.
89741         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89742         Consolidate declarations and initializations of *_base* locals.
89743
89744         Merge from coreutils.
89745         This avoids a core dump on systems without GNU putenv,
89746         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89747         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89748         (unsetenv): New static function, from GNU libc.
89749         (rpl_putenv): Use it.
89750
89751         * lib/modechange.c: Remove trailing blanks.
89752
89753         Merge from coreutils.
89754         * lib/fsusage.c: Remove declaration of statfs.
89755         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89756
89757         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89758
89759 2003-06-06  Jim Meyering  <jim@meyering.net>
89760
89761         * lib/stdbool_.h: Renamed from stdbool.h.in.
89762
89763 2003-06-06  Jim Meyering  <jim@meyering.net>
89764             Bruno Haible  <bruno@clisp.org>
89765
89766         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89767         Adjust Makefile.am snippet not to redirect directly to target.
89768         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89769
89770 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89771
89772         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89773         mismatch, look in future quarters as well as past.  This fixes a
89774         bug when processing fall-backwards gaps immediately after a long
89775         period of daylight-saving time.
89776
89777         * lib/mktime.c: Assume freestanding C89 or better.
89778         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89779         (__P): Remove; not used.
89780         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89781         (mktime, not_equal_tm, print_tm, check_result,
89782         main): Use prototypes.  Use const * where appropriate.
89783         (main): Fix typo in testing code that uncovered by above changes.
89784         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89785
89786 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89787
89788         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89789         locale.h, localeconv.  This merges changes from coreutils.
89790
89791         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89792         It can be removed after the next Autoconf is released.
89793         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89794         needed.
89795
89796 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89797
89798         * lib/mktime.c: Fix Debian bug 177940
89799         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89800         (localtime_offset): Now long int, not time_t, because we want it
89801         to be guaranteed to be signed.  All uses changed.
89802         (__mktime_internal): If overflow would occur when adding offset,
89803         don't add it.
89804
89805         Merge 'human' changes from coreutils.  Rewrite to support
89806         locale-specific notations like thousands separators.
89807         * lib/human.c: Simplify authorship notice.
89808         Include human.h immediately after config.h.
89809         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89810         <limits.h>: Do not include, since human.h does.
89811         (SIZE_MAX, UINTMAX_MAX): New macros.
89812         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89813         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89814         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89815         (power_letter): Renamed from suffixes.
89816         (generate_suffix_backwards): Remove.
89817         (adjust_value): Now takes int style (because of human.h changes)
89818         and long double value (for greater precision on some platforms).
89819         (group_number): New function.
89820         (human_readable): Use it.  Use integer options, not enum.
89821         Put the options before the sizes in the arg list.
89822         Support all the new options.
89823         The old human_readable function has been removed;
89824         use inttostr.h instead.
89825         (human_readable, default_block_size, humblock):
89826         Use uintmax_t, not int, for block sizes.
89827         (human_readable_inexact, block_size_types): Remove.
89828         (block_size_opts): New constant.
89829         (human_options): Renamed from human_block_size, with new signature
89830         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89831         * lib/human.h: Add copyright and authorship notice.
89832         Include <limits.h> and <stdbool.h> unconditionally.
89833         (PARAMS): Remove.  All uses removed.
89834         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89835         (enum human_inexact_style): Remove tag; now a nameless enum.
89836         (human_floor, human_ceiling, human_round_to_even): Now have
89837         values 2, 0, 1 rather than -1, 1, 0.
89838         (human_group_digits, human_suppress_point_zero, human_autoscale,
89839         human_base_1024, human_SI, human_B): New constants.
89840         (human_readable_inexact, human_block_size): Remove.
89841         (human_readable): Size args are now uintmax_t, not int.
89842         (human_options): New decl.
89843
89844         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89845         unnecessary now that we assume C89 or better.  This change
89846         imported from coreutils.
89847
89848         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89849         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89850         in the 2003-05-30 sync from glibc.
89851
89852         .h files should stand alone, but we shouldn't include <sys/types.h>
89853         if we can get away with just <stddef.h>.
89854
89855         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89856         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89857         rather than <sys/types.h>, as we merely need size_t.
89858         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89859         to get size_t.
89860         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89861         Include <stdio.h>, to get FILE.
89862         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89863         memcasecmp.h has included <stddef.h> and all we need is size_t.
89864         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89865         our interface, instead of including <sys/types.h>
89866
89867 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89868
89869         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89870         now, as glibc mktime is buggy on non-glibc systems.
89871
89872 2003-06-03  Karl Berry  <karl@gnu.org>
89873
89874         * config/config.sub: update from prep.
89875
89876 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89877
89878         [from coreutils]
89879         Fix some minor time-related bugs with POSIX time arguments.
89880         Some valid time stamps were being rejected (notably -1, and
89881         time stamps before 1900 on 64-bit hosts).  And some invalid
89882         time stamps were being accepted, e.g. September 31.
89883
89884         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89885         that we can return (time_t) -1 successfully.
89886         * lib/posixtm.c: Likewise.
89887         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89888         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89889         (t): Remove static var.
89890         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89891         of static var.  All uses changed.
89892         (year): Do not reject years before 1900; they can occur with
89893         64-bit time_t.
89894         (posix_time_parse): Do not check for out-of-range components;
89895         that is now the caller's responsibility, since our checks were
89896         only approximations.
89897         (posixtime): Use mktime to check for out-of-range components,
89898         since it knows them exactly.
89899         If mktime returns (time_t) -1, check whether an error actually occurred
89900         by invoking localtime on -1.
89901         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89902         posixtime failures better.
89903         Improve the test data (in comments only).
89904
89905 2003-06-02  Karl Berry  <karl@gnu.org>
89906
89907         * config/mkinstalldirs (version): new variable.
89908         (--version): new option.
89909         (usage): improve message.
89910
89911 2003-05-30  Karl Berry  <karl@gnu.org>
89912
89913         * lib/mktime.c: update from libc.
89914
89915 2003-05-30  Bruno Haible  <bruno@clisp.org>
89916
89917         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89918         * config/config.rpath: Upgrade to gettext-0.12.1.
89919
89920 2003-05-30  Bruno Haible  <bruno@clisp.org>
89921
89922         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89923         * m4/nls.m4: New file, from gettext-0.12.1.
89924         * m4/po.m4: New file, from gettext-0.12.1.
89925         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89926
89927 2003-05-30  Bruno Haible  <bruno@clisp.org>
89928
89929         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89930         * lib/localcharset.h: Likewise.
89931         * lib/localcharset.c: Likewise.
89932
89933 2003-05-29  Karl Berry  <karl@gnu.org>
89934
89935         * config/config.rpath: update from gettext.
89936
89937 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89938
89939         Assume the headers required for C89 freestanding compilers.
89940         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89941         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89942         * m4/human.m4 (gl_HUMAN): Likewise.
89943         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89944         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89945         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89946         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89947         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89948         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89949
89950 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89951
89952         Assume the headers required for C89 freestanding compilers.
89953         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89954         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89955         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89956         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89957         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89958         define, since <limits.h> is guaranteed to do that.
89959         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89960         * lib/exclude.c: Include <stdbool.h> unconditionally.
89961         * lib/tempname.c: Include <stddef.h> unconditionally.
89962         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89963         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89964         <stddef.h> does that.
89965         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89966         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89967         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89968         needed.
89969         * lib/xstrtol.c: Likewise.
89970         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89971         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89972
89973         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89974         warnings on some platforms.
89975
89976         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89977         arbitrarily.
89978
89979 2003-05-26  Jim Meyering  <jim@meyering.net>
89980
89981         Merge in a change from coreutils:
89982         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89983         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89984         that condition, rather than `-1' which is slightly misleading.
89985         Change the name of the cache variable to have the gl_ prefix.
89986         Prompted by a patch from Richard Dawe for DJGPP.
89987
89988 2003-05-24  Karl Berry  <karl@gnu.org>
89989
89990         * config/config.guess: update from prep.
89991
89992 2003-05-22  Karl Berry  <karl@gnu.org>
89993
89994         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89995
89996 2003-05-20  Karl Berry  <karl@gnu.org>
89997
89998         * config/config.guess: update from prep.
89999
90000 2003-05-18  Karl Berry  <karl@gnu.org>
90001
90002         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
90003         might actually be set by the user.
90004
90005         * config/depcomp, install-sh, mdate-sh: update from automake.
90006
90007 2003-05-17  Bruno Haible  <bruno@clisp.org>
90008
90009         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90010         invalid expansion for AC_EGREP_CPP.
90011         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90012         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90013         Suggested by Akim Demaille <akim@epita.fr> in
90014         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90015
90016 2003-05-12  Jim Meyering  <jim@meyering.net>
90017
90018         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90019         the space-padded-by-default conversion specifiers, %e, %k, %l.
90020
90021 2003-05-12  Bruno Haible  <bruno@clisp.org>
90022
90023         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90024         the string is longer than 4 KB.
90025
90026 2003-05-11  Karl Berry  <karl@gnu.org>
90027
90028         * config/config.{guess,sub}: update from prep.
90029
90030 2003-05-09  Bruno Haible  <bruno@clisp.org>
90031
90032         * modules/error: Add m4/strerror_r.m4 to file list.
90033
90034 2003-05-03  Bruno Haible  <bruno@clisp.org>
90035
90036         Upgrade to Unicode-4.0.
90037         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90038         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90039         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90040         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90041         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90042         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90043         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90044         Change width of U+E0100..U+E01EF from 1 to 0.
90045
90046 2003-04-25  Jim Meyering  <jim@meyering.net>
90047
90048         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90049         of type size_t, not int.
90050
90051 2003-04-25  Bruno Haible  <bruno@clisp.org>
90052
90053         * lib/copy-file.c: Include <stddef.h>, for size_t.
90054
90055 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90056
90057         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90058         code which expansion is under static control.  Patch imported from
90059         Akim Demaille's patch to Bison; see
90060         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90061
90062 2003-04-14  Bruno Haible  <bruno@clisp.org>
90063
90064         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90065
90066 2003-04-11  Jim Meyering  <jim@meyering.net>
90067
90068         Merge changes from Coreutils.
90069
90070         2003-03-22  Jim Meyering  <jim@meyering.net>
90071
90072         * lib/strftime.c (widen): Cast alloca return value to proper type.
90073
90074         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90075
90076         From GNU libc.
90077         * lib/strftime.c (my_strftime): Handle very large width
90078         specifications for numeric values correctly.  Improve checks for
90079         overflow.
90080
90081         2003-01-19  Jim Meyering  <jim@meyering.net>
90082
90083         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90084         definitions.
90085         (nl_get_alt_digit) [! defined my_strftime]: Define.
90086         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90087         _nl_get_alt_digit and _nl_get_walt_digit.
90088
90089         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90090         libc. These changes have no effect outside of _LIBC.
90091
90092 2003-04-10  Bruno Haible  <bruno@clisp.org>
90093
90094         * modules/findprog: New file.
90095         * MODULES.html.sh (func_all_modules): Add it.
90096
90097 2003-04-10  Bruno Haible  <bruno@clisp.org>
90098
90099         * m4/findprog.m4: New file.
90100         * m4/eaccess.m4: New file.
90101
90102 2003-04-10  Bruno Haible  <bruno@clisp.org>
90103
90104         * lib/findprog.h: New file, from GNU gettext.
90105         * lib/findprog.c: New file, from GNU gettext.
90106
90107 2003-04-05  Jim Meyering  <jim@meyering.net>
90108
90109         Merge changes from Coreutils.
90110
90111         * lib/exclude.h (PARAMS): Remove definition and uses.
90112         * lib/exclude.c: Remove uses of `PARAMS'.
90113
90114         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90115         Add test-cases for DOS filenames. Declare program_name.
90116         (main): Set up program_name.  Patch by Rich Dawe.
90117
90118         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90119         error from mntctl.
90120         Use mntctl's return value to drive the entry-processing loop, since
90121         we can't rely on the value of the vmt_length member in the last
90122         entry.  On some systems doing so could result in exhausting
90123         virtual memory.  Based in part on a patch from Mike Jetzer.
90124
90125 2003-04-04  Bruno Haible  <bruno@clisp.org>
90126
90127         * modules/linebreak: New file.
90128         * MODULES.html.sh (func_all_modules): Add it.
90129
90130 2003-04-04  Bruno Haible  <bruno@clisp.org>
90131
90132         * m4/linebreak.m4: New file.
90133
90134 2003-04-04  Bruno Haible  <bruno@clisp.org>
90135
90136         * lib/linebreak.h: New file, from GNU gettext.
90137         * lib/linebreak.c: New file, from GNU gettext with slight
90138         modifications.
90139         * lib/lbrkprop.h: New file, from GNU gettext.
90140
90141 2003-04-03  Bruno Haible  <bruno@clisp.org>
90142
90143         * modules/utf8-ucs4: New file.
90144         * modules/utf16-ucs4: New file.
90145         * modules/ucs4-utf8: New file.
90146         * modules/ucs4-utf16: New file.
90147         * MODULES.html.sh (func_all_modules): Add them.
90148
90149 2003-04-03  Bruno Haible  <bruno@clisp.org>
90150
90151         * m4/utf-ucs4.m4: New file.
90152         * m4/ucs4-utf.m4: New file.
90153
90154 2003-04-03  Bruno Haible  <bruno@clisp.org>
90155
90156         * lib/utf8-ucs4.h: New file, from GNU gettext.
90157         * lib/utf16-ucs4.h: New file, from GNU gettext.
90158         * lib/ucs4-utf8.h: New file, from GNU gettext.
90159         * lib/ucs4-utf16.h: New file, from GNU gettext.
90160
90161 2003-04-02  Bruno Haible  <bruno@clisp.org>
90162
90163         * modules/binary-io: New file.
90164         * MODULES.html.sh (func_all_modules): Add it.
90165
90166 2003-04-02  Bruno Haible  <bruno@clisp.org>
90167
90168         * lib/binary-io.h: New file, from GNU gettext.
90169
90170 2003-04-01  Bruno Haible  <bruno@clisp.org>
90171
90172         * modules/pathname: New file.
90173         * MODULES.html.sh (func_all_modules): Add it.
90174
90175 2003-04-01  Bruno Haible  <bruno@clisp.org>
90176
90177         * lib/pathname.h: New file, from GNU gettext.
90178         * lib/concatpath.c: New file, from GNU gettext.
90179
90180 2003-03-30  Bruno Haible  <bruno@clisp.org>
90181
90182         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90183
90184 2003-03-30  Bruno Haible  <bruno@clisp.org>
90185
90186         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90187         function chown() doesn't exist.
90188
90189 2003-03-28  Bruno Haible  <bruno@clisp.org>
90190
90191         * modules/copy-file: New file.
90192         * MODULES.html.sh (func_all_modules): Add it.
90193
90194 2003-03-28  Bruno Haible  <bruno@clisp.org>
90195
90196         * m4/copy-file.m4: New file.
90197
90198 2003-03-28  Bruno Haible  <bruno@clisp.org>
90199
90200         * lib/copy-file.h: New file, from GNU gettext.
90201         * lib/copy-file.c: New file, from GNU gettext.
90202
90203 2003-03-18  Jim Meyering  <jim@meyering.net>
90204
90205         * lib/quote.c (quote_n): Fix typo in comment.
90206
90207 2003-03-18  Bruno Haible  <bruno@clisp.org>
90208
90209         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90210         checking.
90211         * m4/onceonly_2_57.m4: Likewise.
90212
90213 2003-03-17  Bruno Haible  <bruno@clisp.org>
90214
90215         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90216         (m4_quote): Remove macro.
90217         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90218
90219 2003-03-14  Jim Meyering  <jim@meyering.net>
90220
90221         Merge changes from Coreutils.
90222         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90223         to be const, in order to avoid warnings.
90224         (obstack_room): Likewise.
90225         (obstack_empty_p): Likewise.
90226
90227 2003-03-14  Bruno Haible  <bruno@clisp.org>
90228
90229         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90230         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90231
90232 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90233
90234         Merge changes from Bison.
90235         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90236         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90237         when compiling Bison 1.875's `bitset bset = obstack_alloc
90238         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90239         * lib/hash.c: Include <stdbool.h> unconditionally.
90240
90241 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90242
90243         * m4/onceonly.m4 (m4_quote): New macro.
90244         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
90245         Quote AC_FOREACH variable-expansions properly.
90246
90247 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90248
90249         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
90250
90251 2003-03-09  Paul Eggert  <eggert@twinsun.com>
90252
90253         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90254         Reported by Bruce Becker; see:
90255         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90256
90257 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90258             Bruno Haible  <bruno@clisp.org>
90259
90260         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90261         Reported by John Hughes, see
90262         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90263
90264 2003-02-20  Bruno Haible  <bruno@clisp.org>
90265
90266         * MODULES.html.sh (func_all_modules): Add poll.
90267
90268 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90269
90270         * modules/poll: New file.
90271
90272 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90273
90274         * lib/poll_.h: New file.
90275         * lib/poll.c: New file.
90276
90277 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90278
90279         * m4/poll.m4: New file.
90280
90281 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90282
90283         * modules/mathl: New file.
90284
90285 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90286
90287         * lib/mathl.h: New file.
90288         * lib/acosl.c: New file.
90289         * lib/asinl.c: New file.
90290         * lib/atanl.c: New file.
90291         * lib/ceill.c: New file.
90292         * lib/cosl.c: New file.
90293         * lib/expl.c: New file.
90294         * lib/floorl.c: New file.
90295         * lib/frexpl.c: New file.
90296         * lib/ldexpl.c: New file.
90297         * lib/logl.c: New file.
90298         * lib/sincosl.c: New file.
90299         * lib/sinl.c: New file.
90300         * lib/sqrtl.c: New file.
90301         * lib/tanl.c: New file.
90302         * lib/trigl.c: New file.
90303         * lib/trigl.h: New file.
90304
90305 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90306
90307         * m4/mathl.m4: New file.
90308
90309 2003-02-18  Bruno Haible  <bruno@clisp.org>
90310
90311         * MODULES.html.sh (func_all_modules): Add mathl.
90312
90313 2003-02-17  Bruno Haible  <bruno@clisp.org>
90314
90315         * modules/mkdtemp: New module.
90316         * MODULES.html.sh (func_all_modules): Add it.
90317
90318 2003-02-17  Bruno Haible  <bruno@clisp.org>
90319
90320         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90321
90322 2003-02-17  Bruno Haible  <bruno@clisp.org>
90323
90324         * lib/mkdtemp.h: New file, from GNU gettext.
90325         * lib/mkdtemp.c: New file, from GNU gettext.
90326
90327 2003-02-02  Jim Meyering  <jim@meyering.net>
90328
90329         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90330         e.g. glibc-2.2.93.
90331
90332 2003-01-31  Bruno Haible  <bruno@clisp.org>
90333
90334         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90335         'rpl_rename'.
90336         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90337         'rpl_strnlen'.
90338         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90339         'rpl_strtod'.
90340         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90341         'rpl_utime'.
90342
90343 2003-01-31  Bruno Haible  <bruno@clisp.org>
90344
90345         * lib/rename.c: #undef rename before defining rpl_rename.
90346         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90347
90348 2003-01-30  Bruno Haible  <bruno@clisp.org>
90349
90350         * modules/vasnprintf, modules/vasprintf: New modules.
90351         * MODULES.html.sh (func_all_modules): Add them.
90352
90353 2003-01-30  Bruno Haible  <bruno@clisp.org>
90354
90355         * m4/signed.m4: New file, from GNU gettext.
90356         * m4/longdouble.m4: New file, from GNU gettext.
90357         * m4/wchar_t.m4: New file, from GNU gettext.
90358         * m4/wint_t.m4: New file, from GNU gettext.
90359         * m4/vasnprintf.m4: New file.
90360         * m4/vasprintf.m4: New file.
90361
90362 2003-01-30  Bruno Haible  <bruno@clisp.org>
90363
90364         * lib/printf-args.h: New file, from GNU gettext.
90365         * lib/printf-args.c: New file, from GNU gettext.
90366         * lib/printf-parse.h: New file, from GNU gettext.
90367         * lib/printf-parse.c: New file, from GNU gettext.
90368         * lib/vasnprintf.h: New file, from GNU gettext.
90369         * lib/vasnprintf.c: New file, from GNU gettext.
90370         * lib/asnprintf.c: New file, from GNU gettext.
90371         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90372         * lib/vasprintf.c: New file, from GNU gettext.
90373         * lib/asprintf.c: New file, from GNU gettext.
90374
90375 2003-01-29  Bruno Haible  <bruno@clisp.org>
90376
90377         * modules/stpncpy: New module.
90378         * MODULES.html.sh (func_all_modules): Add it.
90379
90380 2003-01-29  Bruno Haible  <bruno@clisp.org>
90381
90382         * m4/stpncpy.m4: New file.
90383
90384 2003-01-29  Bruno Haible  <bruno@clisp.org>
90385
90386         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90387         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90388
90389 2003-01-28  Bruno Haible  <bruno@clisp.org>
90390
90391         * modules/c-ctype: New module.
90392         * MODULES.html.sh (func_all_modules): Add it.
90393
90394 2003-01-28  Bruno Haible  <bruno@clisp.org>
90395
90396         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90397         Paul Eggert.
90398         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90399         Paul Eggert.
90400
90401 2003-01-27  Bruno Haible  <bruno@clisp.org>
90402
90403         * modules/xsetenv: New module.
90404         * MODULES.html.sh (func_all_modules): Add it.
90405
90406 2003-01-27  Bruno Haible  <bruno@clisp.org>
90407
90408         * lib/xsetenv.h: New file, from GNU gettext.
90409         * lib/xsetenv.c: New file, from GNU gettext.
90410
90411 2003-01-23  Jim Meyering  <jim@meyering.net>
90412
90413         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90414         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90415
90416 2003-01-23  Bruno Haible  <bruno@clisp.org>
90417
90418         * modules/minmax: New module.
90419         * MODULES.html.sh (func_all_modules): Add it.
90420
90421 2003-01-23  Bruno Haible  <bruno@clisp.org>
90422
90423         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90424         Eggert.
90425
90426 2003-01-22  Bruno Haible  <bruno@clisp.org>
90427
90428         * modules/exit: New module.
90429         * MODULES.html.sh (func_all_modules): Add it.
90430
90431 2003-01-22  Bruno Haible  <bruno@clisp.org>
90432
90433         * lib/exit.h: New file, from GNU gettext.
90434
90435 2003-01-19  Bruno Haible  <bruno@clisp.org>
90436
90437         * gnulib-tool: Recognize option --extract-maintainer.
90438         (func_get_maintainer): New function.
90439         * modules/*: Add Maintainer entry.
90440
90441 2003-01-16  Jim Meyering  <jim@meyering.net>
90442
90443         * m4/regex.m4: The `regex' struct is both input and output.
90444         Initialize it before each use.  Patch by Tim Waugh.
90445
90446 2003-01-16  Bruno Haible  <bruno@clisp.org>
90447
90448         * MODULES.html.sh: Add a table of contents. Add the module name as
90449         leftmost column. Add hyperlinks.
90450
90451 2003-01-15  Bruno Haible  <bruno@clisp.org>
90452
90453         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90454
90455 2003-01-15  Bruno Haible  <bruno@clisp.org>
90456
90457         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90458         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90459         suffix.
90460
90461 2003-01-15  Bruno Haible  <bruno@clisp.org>
90462
90463         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90464
90465 2003-01-15  Bruno Haible  <bruno@clisp.org>
90466
90467         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90468         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90469
90470 2003-01-14  Jim Meyering  <jim@meyering.net>
90471
90472         * lib/same.c (same_name): Tweak a comment.
90473
90474 2003-01-14  Bruno Haible  <bruno@clisp.org>
90475
90476         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90477         when a string comparison is sufficient.
90478
90479 2003-01-14  Bruno Haible  <bruno@clisp.org>
90480
90481         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90482         'unsigned int'.
90483
90484 2003-01-14  Bruno Haible  <bruno@clisp.org>
90485
90486         * lib/hash-pjw.c: Add comment about low quality of this function.
90487
90488 2003-01-13  Bruno Haible  <bruno@clisp.org>
90489
90490         * modules/stpcpy: Distribute lib/stpcpy.h.
90491         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90492
90493 2003-01-13  Bruno Haible  <bruno@clisp.org>
90494
90495         * modules/*: Add a description.
90496         * modules/strpbrk: Fix Makefile.am snippet.
90497         * modules/strtoimax: Fix dependencies.
90498         * modules/strtoumax: Likewise.
90499
90500 2003-01-13  Bruno Haible  <bruno@clisp.org>
90501
90502         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90503         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90504         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90505
90506 2003-01-13  Bruno Haible  <bruno@clisp.org>
90507
90508         * gnulib-tool (func_create_testdir): Store config/* files in the main
90509         directory.
90510         * config.rpath: Move to ...
90511         * config/config.rpath: ... here.
90512         * modules/gettext: Contains config/config.rpath, not config.rpath.
90513         * modules/iconv: Likewise.
90514
90515 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90516
90517         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90518         to avoid collisions with libcurses and libreadline.
90519
90520         * m4/getstr.m4: Remove.
90521         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90522
90523 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90524
90525         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90526         to avoid collisions with libcurses and libreadline.
90527
90528         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90529         * lib/getstr.h, getstr.c: Remove.
90530         * lib/getline.c: Include "getline.h", to check interface.
90531         Move body of old getstr.c here: this defines MIN_CHUNK and
90532         declares getdelim2, which is renamed from getstr.
90533         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90534
90535         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90536         All uses changed.
90537         * lib/linebuffer.h: Likewise.
90538         (readline): Remove backward-compatibility macro.
90539
90540 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90541
90542         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90543         to avoid collisions with libcurses and libreadline.
90544         * getstr: Remove.
90545         * MODULES.html.sh: Remove getstr.
90546         * modules/getline: Depend on unlocked-io, not getstr.
90547
90548 2003-01-12  Jim Meyering  <jim@meyering.net>
90549
90550         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90551
90552 2003-01-10  Bruno Haible  <bruno@clisp.org>
90553
90554         * modules/alloca: Change Makefile.am requirements. Simplify Include
90555         requirements. Add lib/alloca_.h to file list.
90556
90557 2003-01-10  Bruno Haible  <bruno@clisp.org>
90558
90559         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90560
90561 2003-01-10  Bruno Haible  <bruno@clisp.org>
90562
90563         * lib/alloca_.h: New file.
90564         * lib/getdate.y: Unconditionally include alloca.h.
90565         * lib/makepath.c: Likewise.
90566         * lib/setenv.c: Likewise.
90567         * lib/userspec.c: Likewise.
90568
90569 2003-01-09  Karl Berry  <karl@gnu.org>
90570
90571         * MODULES.html.sh: include `dirname $0` in PATH, to find
90572         gnulib-tool.
90573
90574 2003-01-09  Bruno Haible  <bruno@clisp.org>
90575
90576         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90577         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90578
90579 2003-01-09  Bruno Haible  <bruno@clisp.org>
90580
90581         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90582
90583 2003-01-09  Bruno Haible  <bruno@clisp.org>
90584
90585         * lib/stdbool.h.in: New file.
90586
90587 2003-01-09  Bruno Haible  <bruno@clisp.org>
90588
90589         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90590         * MODULES.html.sh: Likewise.
90591
90592 2003-01-08  Jim Meyering  <jim@meyering.net>
90593
90594         * lib/full-write.c: Undefine and define-away `const' after inclusion
90595         of errno.h, not before.  Suggestion from Bruno Haible.
90596
90597 2003-01-08  Bruno Haible  <bruno@clisp.org>
90598
90599         * modules/full-read: Depend on full-write.
90600
90601 2003-01-08  Bruno Haible  <bruno@clisp.org>
90602
90603         * lib/safe-read.c: Include specification header first, to ensure its
90604         selfcontainedness.
90605         * lib/full-write.c: Likewise.
90606
90607 2003-01-07  Jim Meyering  <jim@meyering.net>
90608
90609         * lib/full-write.c: Rework so that it may serve to define full_read,
90610         too.
90611         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90612
90613 2003-01-07  Bruno Haible  <bruno@clisp.org>
90614
90615         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90616         <inttypes.h>.
90617         * lib/xstrtol.h: Likewise.
90618         * lib/xstrtoimax.c: Likewise.
90619         * lib/xstrtoumax.c: Likewise.
90620         * lib/human.h: Likewise.
90621
90622         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90623         on systems that have <inttypes.h> but not <stdint.h>.
90624
90625 2003-01-07  Bruno Haible  <bruno@clisp.org>
90626
90627         * MODULES.html.sh: Add copyright notice.
90628         (missed_files): Omit CVS directory entries.
90629         (func_module): Make it work with sed-3.02.
90630         * MODULES.txt: Remove file.
90631
90632 2003-01-06  Jim Meyering  <jim@meyering.net>
90633
90634         * lib/version-etc.c: Update year in translatable copyright string.
90635
90636 2003-01-03  Karl Berry  <karl@gnu.org>
90637
90638         * config/config.{guess,sub}: update from prep.
90639
90640 2003-01-02  Karl Berry  <karl@gnu.org>
90641
90642         * doc/COPYING.DOC: belatedly updated to 1.2.
90643
90644 2003-01-01  Karl Berry  <karl@gnu.org>
90645
90646         * gnulib-tool (func_verify_module): report module name $module in
90647         error message, not $1.
90648         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90649         be created, only if it doesn't exist.
90650         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90651
90652 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90653
90654         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90655
90656 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90657
90658         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90659         memcmp if strcoll doesn't work.
90660
90661 2002-12-31  Bruno Haible  <bruno@clisp.org>
90662
90663         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90664         nonempty.
90665
90666 2002-12-31  Bruno Haible  <bruno@clisp.org>
90667
90668         * lib/memcoll.c (STRCOLL): New macro.
90669         (memcoll): Use it.
90670
90671 2002-12-31  Bruno Haible  <bruno@clisp.org>
90672
90673         * lib/localcharset.h: New file.
90674         * lib/localcharset.c: Include it.
90675         * lib/unicodeio.c: Likewise.
90676
90677 2002-12-31  Bruno Haible  <bruno@clisp.org>
90678
90679         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90680         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90681
90682 2002-12-31  Bruno Haible  <bruno@clisp.org>
90683
90684         * lib/getline.h: Include <stddef.h>, for size_t.
90685
90686         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90687         * lib/unicodeio.c: Don't include <stddef.h>.
90688
90689 2002-12-31  Bruno Haible  <bruno@clisp.org>
90690
90691         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90692         HAVE_TM_ZONE.
90693
90694 2002-12-24  Karl Berry  <karl@gnu.org>
90695
90696         * config/config.guess: update from prep.
90697
90698 2002-12-24  Bruno Haible  <bruno@clisp.org>
90699
90700         General infrasructure.
90701         * m4/README: Rewritten.
90702         * m4/onceonly.m4: New file.
90703         * m4/onceonly_2_57.m4: New file.
90704
90705         Module atexit.
90706         * m4/atexit.m4: New file.
90707
90708         Module strtod.
90709         * m4/strtod.m4: New file.
90710
90711         Module strtol.
90712         * m4/strtol.m4: New file.
90713
90714         Module strtoul.
90715         * m4/strtoul.m4: New file.
90716
90717         Module memchr.
90718         * m4/memchr.m4: New file.
90719
90720         Module memcmp.
90721         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90722         (jm_FUNC_MEMCMP): Invoke it.
90723
90724         Module memcpy.
90725         * m4/memcpy.m4: New file.
90726
90727         Module memmove.
90728         * m4/memmove.m4: New file.
90729
90730         Module memset.
90731         * m4/memset.m4: New file.
90732
90733         Module strcspn.
90734         * m4/strcspn.m4: New file.
90735
90736         Module strpbrk.
90737         * m4/strpbrk.m4: New file.
90738
90739         Module strstr.
90740         * m4/strstr.m4: New file.
90741
90742         Module strerror.
90743         * m4/strerror.m4: New file.
90744
90745         Module mktime.
90746         * m4/mktime.m4: Renamed from jm-mktime.m4.
90747         (gl_PREREQ_MKTIME): New macro.
90748         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90749
90750         Module malloc.
90751         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90752         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90753         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90754
90755         Module realloc.
90756         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90757         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90758         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90759
90760         Module strftime.
90761         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90762         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90763         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90764         gl_TM_GMTOFF.
90765         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90766
90767         Module xalloc.
90768         * m4/xalloc.m4: New file.
90769
90770         Module alloca.
90771         * m4/alloca.m4: New file.
90772
90773         Module putenv.
90774         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90775         (jm_FUNC_PUTENV): Invoke it.
90776
90777         Module setenv.
90778         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90779         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90780         when invoked twice.
90781         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90782         gt_FUNC_SETENV.
90783
90784         Module memrchr.
90785         * m4/memrchr.m4: New file.
90786
90787         Module stpcpy.
90788         * m4/stpcpy.m4: New file.
90789
90790         Module strcase.
90791         * m4/strcase.m4: New file.
90792
90793         Module strdup.
90794         * m4/strdup.m4: New file.
90795
90796         Module strnlen.
90797         * m4/strnlen.m4: New file.
90798
90799         Module strndup.
90800         * m4/strndup.m4: New file.
90801
90802         Module xstrtod.
90803         * m4/xstrtod.m4: New file.
90804
90805         Module xstrtol.
90806         * m4/xstrtol.m4: New file.
90807
90808         Module getdate.
90809         * m4/getdate.m4: New file.
90810
90811         Module unlocked-io.
90812         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90813         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90814         * m4/jm-glibc-io.m4n: Remove file.
90815
90816         Module long-options.
90817         * m4/long-options.m4: New file.
90818
90819         Module md5.
90820         * m4/md5.m4: New file.
90821
90822         Module sha.
90823         * m4/sha.m4: New file.
90824
90825         Module getstr.
90826         * m4/getstr.m4: New file.
90827
90828         Module getline.
90829         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90830         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90831         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90832         simply getline. Infoke gl_PREREQ_GETLINE.
90833
90834         Module obstack.
90835         * m4/obstack.m4: New file.
90836
90837         Module hash.
90838         * m4/hash.m4: New file.
90839
90840         Module readtokens.
90841         * m4/readtokens.m4: New file.
90842
90843         Module strverscmp.
90844         * m4/strverscmp.m4: New file.
90845
90846         Module stdbool.
90847         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90848         OSF/1.
90849
90850         Module strtoll.
90851         * m4/strtoll.m4: New file.
90852
90853         Module strtoull.
90854         * m4/strtoull.m4: New file.
90855
90856         Module strtoimax.
90857         * m4/strtoimax.m4: New file.
90858
90859         Module strtoumax.
90860         * m4/strtoumax.m4: New file.
90861
90862         Module xstrtoimax.
90863         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90864         jm_AC_PREREQ_XSTRTOIMAX.
90865         Moved the strtol prerequisites to strtol.m4.
90866         Moved the strtoll prerequisites to strtoll.m4.
90867         Moved the strtoimax prerequisites to strtoimax.m4.
90868
90869         Module xstrtoumax.
90870         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90871         jm_AC_PREREQ_XSTRTOUMAX.
90872         Moved the strtoul prerequisites to strtoul.m4.
90873         Moved the strtoull prerequisites to strtoull.m4.
90874         Moved the strtoumax prerequisites to strtoumax.m4.
90875
90876         Module chown.
90877         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90878         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90879
90880         Module dup2.
90881         * m4/dup2.m4: New file.
90882
90883         Module ftruncate.
90884         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90885         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90886
90887         Module getgroups.
90888         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90889         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90890
90891         Module gettimeofday.
90892         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90893         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90894         gl_PREREQ_GETTIMEOFDAY.
90895
90896         Module mkdir.
90897         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90898         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90899
90900         Module mkstemp.
90901         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90902         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90903         jm_AC_TYPE_UINTMAX_T.
90904         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90905
90906         Module stat.
90907         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90908         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90909
90910         Module lstat.
90911         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90912         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90913
90914         Module timespec.
90915         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90916         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90917         * m4/st_mtim.m4: Indentation.
90918
90919         Module nanosleep.
90920         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90921         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90922         gl_PREREQ_NANOSLEEP.
90923
90924         Module regex.
90925         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90926         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90927         (gl_REGEX): New macro.
90928
90929         Module rename.
90930         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90931         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90932
90933         Module rmdir.
90934         * m4/rmdir.m4: New file.
90935
90936         Module utime.
90937         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90938         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90939         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90940
90941         Module dirname.
90942         * m4/dirname.m4: New file.
90943
90944         Module getopt.
90945         * m4/getopt.m4: New file.
90946
90947         Module unistd-safer.
90948         * m4/unistd-safer.m4: New file.
90949
90950         Module fnmatch.
90951         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90952         declaration.
90953         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90954         (gl_FUNC_FNMATCH_POSIX): New macro.
90955         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90956         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90957         simply fnmatch.
90958
90959         Module exclude.
90960         * m4/exclude.m4: New file.
90961
90962         Module human.
90963         * m4/human.m4: New file.
90964
90965         Module acl.
90966         * m4/acl.m4: Nop.
90967
90968         Module backupfile.
90969         * m4/backupfile.m4: New file.
90970         * m4/d-ino.m4: Indentation.
90971
90972         Module fsusage.
90973         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90974         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90975         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90976
90977         Module dirfd.
90978         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90979         requirements.
90980
90981         Module euidaccess.
90982         * m4/euidaccess.m4: New file.
90983
90984         Module file-type.
90985         * m4/file-type.m4: New file.
90986
90987         Module fileblocks.
90988         * m4/fileblocks.m4: New file.
90989
90990         Module filemode.
90991         * m4/filemode.m4: New file.
90992
90993         Module isdir.
90994         * m4/isdir.m4: New file.
90995
90996         Module lchown.
90997         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90998         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90999
91000         Module makepath.
91001         * m4/makepath.m4: New file.
91002
91003         Module modechange.
91004         * m4/modechange.m4: New file.
91005
91006         Module mountlist.
91007         * m4/mountlist.m4: New file.
91008         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91009         Indentation.
91010
91011         Module path-concat.
91012         * m4/path-concat.m4: New file.
91013
91014         Module pathmax.
91015         * m4/pathmax.m4: New file.
91016
91017         Module same.
91018         * m4/same.m4: New file.
91019
91020         Module save-cwd.
91021         * m4/save-cwd.m4: New file.
91022
91023         Module savedir.
91024         * m4/savedir.m4: New file.
91025
91026         Module xgetcwd.
91027         * m4/xgetcwd.m4: New file.
91028         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91029
91030         Module xreadlink.
91031         * m4/xreadlink.m4: New file.
91032
91033         Module safe-read.
91034         * m4/safe-read.m4: New file.
91035
91036         Module safe-write.
91037         * m4/safe-write.m4: New file.
91038
91039         Module closeout.
91040         * m4/closeout.m4: New file.
91041
91042         Module stdio-safer.
91043         * m4/stdio-safer.m4: New file.
91044
91045         Module getpass.
91046         * m4/getpass.m4: New file.
91047
91048         Module getugroups.
91049         * m4/getugroups.m4: New file.
91050
91051         Module group-member.
91052         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91053         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91054
91055         Module idcache.
91056         * m4/idcache.m4: New file.
91057
91058         Module userspec.
91059         * m4/userspec.m4: New file.
91060
91061         Module gettime.
91062         * m4/clock_time.m4: New file.
91063         * m4/gettime.m4: New file.
91064
91065         Module settime.
91066         * m4/settime.m4: New file.
91067
91068         Module posixtm.
91069         * m4/posixtm.m4: New file.
91070
91071         Module gethostname.
91072         * m4/gethostname.m4: New file.
91073
91074         Module canon-host.
91075         * m4/canon-host.m4: New file.
91076
91077         Module gettext.
91078         * m4/codeset.m4: New file, from gettext-0.11.5.
91079         * m4/gettext.m4: New file, from gettext-0.11.5.
91080         * m4/glibc21.m4: New file, from gettext-0.11.5.
91081         * m4/iconv.m4: New file, from gettext-0.11.5.
91082         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91083         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91084         * m4/inttypes.m4: New file, from gettext-0.11.5.
91085         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91086         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91087         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91088         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91089         * m4/lib-link.m4: New file, from gettext-0.11.5.
91090         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91091         * m4/progtest.m4: New file, from gettext-0.11.5.
91092         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91093         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91094         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91095
91096         Module localcharset.
91097         * m4/localcharset.m4: New file.
91098
91099         Module hard-locale.
91100         * m4/hard-locale.m4: New file.
91101
91102         Module mbswidth.
91103         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91104         onceonly macros.
91105         * m4/mbrtowc.m4: Add comment.
91106
91107         Module memcasecmp.
91108         * m4/memcasecmp.m4: New file.
91109
91110         Module memcoll.
91111         * m4/memcoll.m4: New file.
91112
91113         Module unicodeio.
91114         * m4/unicodeio.m4: New file.
91115
91116         Module rpmatch.
91117         * m4/rpmatch.m4: New file.
91118
91119         Module yesno.
91120         * m4/yesno.m4: New file.
91121
91122         Module exitfail.
91123         * m4/exitfail.m4: New file.
91124
91125         Module c-stack.
91126         * m4/c-stack.m4 (gl_C_STACK): New macro.
91127         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91128
91129         Module error.
91130         * m4/error.m4 (gl_ERROR): New macro.
91131         (jm_PREREQ_ERROR): Use onceonly macros.
91132
91133         Module fatal.
91134         * m4/fatal.m4: New file.
91135
91136         Module getloadavg.
91137         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91138         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91139
91140         Module getpagesize.
91141         * m4/getpagesize.m4: New file.
91142
91143         Module getusershell.
91144         * m4/getusershell.m4: New file.
91145
91146         Module physmem.
91147         * m4/physmem.m4: New file.
91148
91149         Module posixver.
91150         * m4/posixver.m4: New file.
91151
91152         Module quotearg.
91153         * m4/quotearg.m4: New file.
91154
91155         Module quote.
91156         * m4/quote.m4: New file.
91157
91158         Module readutmp.
91159         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
91160
91161         Module sig2str.
91162         * m4/sig2str.m4: New file.
91163
91164         Other.
91165         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
91166         ulonglong.m4.
91167         * m4/intmax_t.m4: New file.
91168         * m4/d-type.m4: Indentation.
91169         * m4/jm-macros.m4: Update.
91170         * m4/prereq.m4 (jm_PREREQ): Update.
91171         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
91172         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
91173         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
91174         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
91175         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
91176         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
91177         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
91178         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
91179         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91180         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91181         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91182         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91183         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91184         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91185         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91186         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91187         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91188         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91189         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91190
91191 2002-12-24  Bruno Haible  <bruno@clisp.org>
91192
91193         * MODULES.txt: Update according to m4/ changes.
91194
91195         Module gettext.
91196         * config.rpath: New file, from gettext-0.11.5.
91197
91198         * modules/*: New module descriptions.
91199         * gnulib-tool: New file.
91200         * MODULES.html.sh: New file.
91201
91202 2002-12-21  Karl Berry  <karl@gnu.org>
91203
91204         * doc/fdl.texi: update to version 1.2.
91205
91206 2002-12-19  Karl Berry  <karl@gnu.org>
91207
91208         * config/config.guess: update from prep.
91209
91210 2002-12-18  Bruno Haible  <bruno@clisp.org>
91211
91212         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91213         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91214
91215 2002-12-17  Bruno Haible  <bruno@clisp.org>
91216
91217         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91218         stdlib.h, string.h.
91219
91220 2002-12-17  Bruno Haible  <bruno@clisp.org>
91221
91222         * lib/canon-host.c (strdup): Remove unused declaration.
91223
91224         * lib/fsusage.c: Include full_read.h.
91225         (get_fs_usage): Use full_read instead of safe_read.
91226
91227         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91228
91229 2002-12-12  Karl Berry  <karl@gnu.org>
91230
91231         * config/config.guess: update from prep.
91232
91233 2002-12-11  Bruno Haible  <bruno@clisp.org>
91234
91235         * m4/setenv.m4: New file, from gettext-0.11.5.
91236
91237 2002-12-11  Bruno Haible  <bruno@clisp.org>
91238
91239         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
91240         not unsetenv().
91241         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
91242         modifications:
91243
91244         2002-12-11  Bruno Haible  <bruno@clisp.org>
91245
91246                 * setenv.c (alloca): Fall back to malloc.
91247                 (freea): New macro.
91248                 (setenv): Use freea() to free memory allocated with alloca().
91249
91250         2002-11-13  Bruno Haible  <bruno@clisp.org>
91251
91252                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
91253                 function declarations.
91254                 * unsetenv.c (unsetenv): Likewise.
91255
91256         2002-03-04  Bruno Haible  <bruno@clisp.org>
91257
91258                 Portability to AIX 4.3.3.
91259                 * unsetenv.c: New file, extracted from setenv.c.
91260                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91261
91262         2001-12-20  Bruno Haible  <bruno@clisp.org>
91263
91264                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91265                 use malloc instead. For SunOS 4.
91266
91267         2001-12-11  Bruno Haible  <bruno@clisp.org>
91268
91269                 * setenv.c: Declare alloca.
91270                 (compar_fn_t): New typedef.
91271                 (KNOWN_VALUE, STORE_VALUE): Use it.
91272
91273         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91274         setenv.h.
91275
91276 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91277
91278         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91279         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91280         Choose values that are less likely to collide with system fnmatch
91281         options.
91282         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91283         defined (e.g., a pure POSIX system).
91284         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91285         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91286
91287 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91288
91289         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91290         a pain in practice to deal with generated m4 files.  This change
91291         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91292
91293         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91294         and jm-glibc-io.m4, as they are no longer a special case.
91295         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91296         kludge and the auto-generation stuff.  Check only whether the
91297         functions are declared, not whether they exist, since older hosts
91298         that don't declare the functions can't use the optimization anyway.
91299
91300 2002-12-06  Jim Meyering  <jim@meyering.net>
91301
91302         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91303
91304         Merge in changes from libc's misc/error.c, in preparation
91305         for the merge of gnulib's changes back into libc.
91306
91307         * lib/error.c (_): Define only if not already defined.
91308         Move definition to follow all #include directives.
91309         Include unlocked-io.h only if !_LIBC.
91310         [_LIBC]: Include <libio/libioP.h>.
91311         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91312         (fflush): Tweak definition to use INTUSE.
91313         (putc): Define.
91314
91315 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91316
91317         * lib/alloca.c [defined emacs]: Include "lisp.h".
91318         (xalloc_die) [defined emacs]: New macro.
91319         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91320         [! defined emacs]: Include <xalloc.h>.
91321         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91322         (pointer): Typedef to POINTER_TYPE *.
91323         (malloc): Remove decl; we now always use xmalloc.
91324         (alloca): Use old-style definition, since Emacs needs this.
91325         Check for arithmetic overflow when computing combined size.
91326
91327 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91328
91329         Do not generate unlocked-io.h automatically, since it's easier to
91330         maintain it by hand.
91331
91332         * lib/unlocked-io.h: New file, from GNU diffutils,
91333         but with proper copyright notice and attribution.
91334         * lib/gen-uio: Remove.
91335         * lib/Makefile.am: Add copyright notice.
91336         (libfetish_a_SOURCES): Add unlocked-io.h.
91337         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91338         (DISTCLEANFILES, io_functions): Remove macros.
91339         (EXTRA_DIST): Remove gen_uio.
91340         (unlocked-io.h): Remove rule.
91341
91342 2002-12-04  Jim Meyering  <jim@meyering.net>
91343
91344         Reflect the fact that stat.c and lstat.c are no longer generated.
91345         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91346         (DISTCLEANFILES): Likewise.
91347         (EXTRA_DIST): Likewise.
91348         (all_local): Don't depend on stat.c or lstat.c.
91349         (stat.c, lstat.c): Remove rules.
91350         (EXTRA_DIST): Remove xstat.in.
91351
91352         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91353         * lib/stat.c: New file.  Contents mostly from xstat.in.
91354         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91355         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91356
91357         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91358         too.
91359         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91360
91361 2002-12-03  Jim Meyering  <jim@meyering.net>
91362
91363         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91364         but not semantics, to minimize the differences between these two files.
91365         (safe_read): Change comment to mention SAFE_READ_ERROR.
91366
91367         * lib/safe-read.c (IS_EINTR): Define.
91368         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91369
91370 2002-12-02  Jim Meyering  <jim@meyering.net>
91371
91372         * lib/safe-read.c (EINTR): Define.
91373         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91374         (INT_MAX): Provide fallback.
91375         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91376
91377         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91378
91379 2002-12-02  Bruno Haible  <bruno@clisp.org>
91380
91381         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91382         Define, taken from safe-read.c.
91383         (INT_MAX): Provide fallback.
91384         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91385         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91386
91387         * lib/safe-read.c (EINTR): Remove definition.
91388         (safe_read): Don't use EINTR if it is absent.
91389
91390 2002-12-01  Jim Meyering  <jim@meyering.net>
91391
91392         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91393         zero.
91394         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91395
91396 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91397
91398         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91399         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91400         with `if (! (value < limit)) abort ();', for readability.
91401
91402 2002-11-26  Karl Berry  <karl@gnu.org>
91403
91404         * lib/strdup.c: copy from libc again, with jim's ok.
91405         * lib/.cppi-disable: re-add strdup.c
91406
91407 2002-11-25  Karl Berry  <karl@gnu.org>
91408
91409         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91410         instead of "strtol.c".
91411
91412 2002-11-25  Karl Berry  <karl@gnu.org>
91413
91414         * config/install-sh: update from automake for variable quoting, $0 in
91415         error msgs, etc.
91416
91417         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91418         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91419         entry.
91420
91421 2002-11-25  Jim Meyering  <jim@meyering.net>
91422
91423         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91424
91425 2002-11-24  Karl Berry  <karl@gnu.org>
91426
91427         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91428         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91429
91430 2002-11-24  Jim Meyering  <jim@meyering.net>
91431
91432         Update from coreutils:
91433
91434         * lib/mktime.c: Merge in changes from libc.
91435
91436         Avoid a link-time failure on some Linux systems.
91437         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91438         (otherwise).
91439         (__mon_yday): Declare with the STATIC attribute.
91440         (__mktime_internal): Likewise.
91441         Based on a report from Greg Schafer.
91442
91443 2002-11-23  Jim Meyering  <jim@meyering.net>
91444
91445         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91446         Use `unsigned', not `int', as type of index.
91447
91448         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91449
91450         * lib/fsusage.c: Remove unneeded parentheses around operands of
91451         `defined'.
91452
91453 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91454
91455         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91456         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91457         so that we can be included first.
91458         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91459         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91460         No need to include stddef.h or sys/types.h any more.
91461         Surround local include files with "", not "<>".
91462         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91463         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91464         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91465         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91466         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91467         (ISPRINT): Remove; no longer needed now that we assume C89.
91468
91469         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91470         Preserve errno.
91471
91472         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91473         quotearg_char): Use SIZE_MAX rather than
91474         (size_t) -1 when we are talking about "infinity".
91475
91476         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91477
91478 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91479
91480         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91481         hint that one should use `if (! x) abort ();' rather than `assert
91482         (x);', and anyway it's one less thing to worry about configuring.
91483         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91484         hash_rehash, hash_insert): Use abort rather than assert.
91485
91486 2002-11-22  Bruno Haible  <bruno@clisp.org>
91487
91488         * lib/safe-read.h: Assume C89. Add comments.
91489         (safe_read): Change return type to size_t.
91490         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91491         byte counts > SSIZE_MAX correctly.
91492         * lib/safe-write.h: New file.
91493         * lib/safe-write.c: New file.
91494         * lib/full-read.h: New file.
91495         * lib/full-read.c: New file.
91496         * lib/full-write.h: Assume C89. Add comments.
91497         * lib/full-write.c: Include safe-write.h.
91498         (full_write): Rewritten to use safe_write.
91499         Suggested by Jim Meyering and Paul Eggert.
91500
91501 2002-11-21  Jim Meyering  <jim@meyering.net>
91502
91503         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91504
91505         Merge in changes from the coreutils.
91506
91507         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91508         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91509         <stdint.h>.
91510         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91511         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91512         int.  Work more efficiently if X is the same width as uintmax_t.
91513         Do not compare X to -1, to avoid bogus compiler warning.
91514         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91515         Don't assume that f_frsize and f_bsize are the same type.
91516
91517         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91518         warning on FreeBSD.
91519
91520         * lib/makepath.c (make_path): Restore umask *before* creating the final
91521         component.
91522         (make_path): Minor reformatting.
91523
91524         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91525         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91526         HAVE_MALLOC/HAVE_REALLOC.
91527
91528         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91529         dummy ones.  At least on GNU/Linux systems, `auto' means something
91530         else.
91531         From Michael Stone.
91532
91533 2002-11-21  Bruno Haible  <bruno@clisp.org>
91534
91535         Remove case insensitive option matching.
91536         * lib/argmatch.h (argcasematch): Remove declaration.
91537         (ARGCASEMATCH): Remove macro.
91538         (__xargmatch_internal): Remove case_sensitive argument.
91539         (XARGMATCH): Update.
91540         (XARGCASEMATCH): Remove macro.
91541         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91542         case_sensitive argument.
91543         (argcasematch): Remove function.
91544         (__xargmatch_internal): Remove case_sensitive argument.
91545         (main): Use XARGMATCH instead of XARGCASEMATCH.
91546
91547         * lib/xmalloc.c: Change compile-time error message. Add comment about
91548         required autoconf version.
91549
91550 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91551
91552         Merge argmatch cleanups from Bison.  Assume C89.
91553
91554         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91555         Include stdlib.h, for EXIT_FAILURE.
91556         Always include <string.h>, since we assume C89.
91557         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91558         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91559         Include <stddef.h> instead, since it's all we need for size_t.
91560         (PARAMS): Remove.  All uses removed.
91561         (ARRAY_CARDINALITY): Do not bother to #undef.
91562         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91563         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91564         Remove unnecessary parentheses.
91565         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91566         Insert necessary parentheses.
91567         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91568         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91569
91570 2002-11-19  Bruno Haible  <bruno@clisp.org>
91571
91572         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91573         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91574
91575         * lib/mbswidth.h (PARAMS): Remove macro.
91576         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91577         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91578
91579         * lib/gcd.h (PARAMS): Remove macro.
91580         (gcd): Use ANSI C function declarations.
91581         * lib/gcd.c (gcd): Likewise.
91582
91583 2002-11-15  Bruno Haible  <bruno@clisp.org>
91584
91585         * lib/strcspn.c: Include <stddef.h>.
91586         (strcspn): Use ANSI C function declaration. Change return type to
91587         size_t. Use NULL.
91588         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91589         (strpbrk): Use NULL.
91590         * lib/strpbrk.h (PARAMS): Remove macro.
91591         (strpbrk): Use ANSI C function declaration.
91592         * lib/strstr.c: Don't include <sys/types.h>.
91593         * lib/strstr.h (PARAMS): Remove macro.
91594         (strstr): Use ANSI C function declarations.
91595
91596 2002-11-14  Karl Berry  <karl@gnu.org>
91597
91598         * config/mkinstalldirs: `do' on separate line, instead of
91599         `for var; do'.
91600
91601 2002-11-06  Bruno Haible  <bruno@clisp.org>
91602
91603         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91604         * lib/gcd.c (gcd): Likewise.
91605
91606 2002-11-05  Bruno Haible  <bruno@clisp.org>
91607
91608         * lib/gcd.h: New file, from gettext-0.11.5.
91609         * lib/gcd.c: New file, from gettext-0.11.5.
91610
91611 2002-11-05  Bruno Haible  <bruno@clisp.org>
91612
91613         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91614         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91615         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91616         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91617
91618         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91619         <libintl.h>.
91620         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91621         <libintl.h>.
91622
91623         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91624         * lib/human.c: Include gettext.h instead of <libintl.h>.
91625         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91626         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91627         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91628         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91629         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91630         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91631         (textdomain): Remove definition.
91632         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91633
91634         * lib/long-options.c: Remove include of <libintl.h> and definition of
91635         _.
91636         * lib/same.c: Remove include of <libintl.h> and definition of _.
91637
91638 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91639
91640         * lib/config.charset: A few additions for Solaris.
91641
91642 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91643
91644         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91645         * lib/localcharset.c (locale_charset): Declare as extern "C".
91646
91647 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91648
91649         * lib/config.charset: msdos in uk_UA uses CP1125.
91650
91651 2002-11-04  Bruno Haible  <bruno@clisp.org>
91652
91653         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91654         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91655         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91656         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91657         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91658
91659 2002-11-04  Bruno Haible  <bruno@clisp.org>
91660
91661         * lib/localcharset.c (locale_charset): Don't return an empty string.
91662
91663 2002-11-04  Bruno Haible  <bruno@clisp.org>
91664
91665         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91666         aliases.
91667
91668 2002-11-04  Bruno Haible  <bruno@clisp.org>
91669
91670         * lib/config.charset: Update for newest glibc. Add canonical names
91671         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91672
91673 2002-11-04  Bruno Haible  <bruno@clisp.org>
91674
91675         * lib/config.charset: Add support for NetBSD.
91676
91677 2002-11-04  Bruno Haible  <bruno@clisp.org>
91678
91679         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91680
91681 2002-11-01  Bruno Haible  <bruno@clisp.org>
91682
91683         * configure.in: Add AC_CONFIG_AUX_DIR call.
91684         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91685         test/Makefile.
91686         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91687
91688 2002-09-28  Karl Berry  <karl@gnu.org>
91689
91690         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91691         installed automake until the next release, since changes have been
91692         made.
91693
91694 2002-09-25  Karl Berry  <karl@gnu.org>
91695
91696         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91697         * lib/getopt*: copy from libc/posix.
91698         * lib/gettext.h: copy from gettext.
91699         * lib/.cppi-disable: add strdup.c, gettext.h.
91700
91701 2002-09-25  Karl Berry  <karl@gnu.org>
91702
91703         * config/srclist.txt: enable gettext.h check.
91704         * config/config.{guess,sub}: update from prep.
91705         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91706                 from automake 1.6.3.
91707         See srclist*.
91708
91709 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91710
91711         * regex.c (PATFETCH): Remove the translating fetch.
91712         (PATFETCH_RAW): Rename to PATFETCH.
91713         (set_image_of_range): New fun.
91714         (SET_RANGE_TABLE_WORK_AREA): Use it.
91715         (regex_compile): Don't translate the pattern chars so eagerly.
91716         Only do it when inserting an `exactn' bytecode or when handling
91717         a char-range.
91718         (mutually_exclusive_p): Avoid empty statement.
91719
91720 2002-07-06  Jim Meyering  <meyering@lucent.com>
91721
91722         * m4/README: Don't mention Makefile.am.in.
91723         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91724
91725 2002-07-01  Jim Meyering  <meyering@lucent.com>
91726
91727         * lib/c-stack.c: Include sys/time.h.
91728         From Volker Borchert.
91729
91730 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91731
91732         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91733
91734 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91735
91736         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91737         New macro.  Use it uniformly instead of
91738         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91739         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91740         reported by Vin Shelton.
91741
91742 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91743
91744         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91745         Do not assume SA_SIGINFO behavior.
91746         Bug reported by Jim Meyering on NetBSD 1.5.2.
91747
91748 2002-06-22  Jim Meyering  <meyering@lucent.com>
91749
91750         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91751         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91752
91753         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91754         now that configure.ac uses AC_GNU_SOURCE.
91755         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91756         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91757
91758         Update to latest tools.  Suggestions from Paul Eggert.
91759         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91760         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91761         * m4/fnmatch.m4: Likewise.
91762         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91763         to AC_HEADER_STDBOOL
91764
91765 2002-06-22  Jim Meyering  <meyering@lucent.com>
91766
91767         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91768         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91769
91770 2002-06-22  Jim Meyering  <meyering@lucent.com>
91771
91772         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91773
91774         * lib/exitfail.c, exitfail.h: Likewise.
91775         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91776
91777         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91778         of fnmatch.h.
91779         (EXTRA_DIST): Add fnmatch_loop.c.
91780         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91781
91782         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91783         * lib/fnmatch.c: Update from diffutils-2.8.2.
91784         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91785         * lib/fnmatch.h: Remove file.
91786
91787 2002-06-21  Jim Meyering  <meyering@lucent.com>
91788
91789         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91790         * m4/mbrtowc.m4: Likewise.
91791
91792         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91793         * m4/mbswidth.m4: Reflect name change:
91794         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91795         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91796
91797         * m4/lib-link.m4: Update from gettext-0.11.2.
91798         * m4/gettext.m4: Likewise.
91799
91800         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91801         From Alfred M. Szmidt.
91802
91803 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91804
91805         * lib/file-type.h: Report an error if neither S_ISREG nor
91806         S_IFREG is defined, instead of using a test specific to glibc
91807         2.2.  This should be safe, since POSIX requires S_ISREG and
91808         Unix Version 7 had S_IFREG.  We don't need to check for
91809         <sys/types.h> since we don't use any symbols that it defines.
91810
91811 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91812
91813         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91814         $@-t, so that each temporary file name is unique and valid in the first
91815         8 characters, for operation under DOS.
91816
91817 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91818
91819         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91820
91821 2002-06-15  Jim Meyering  <meyering@lucent.com>
91822
91823         Work even with DJGPP 2.03, which lacks support for symlinks.
91824         From Richard Dawe.
91825         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91826         is defined.
91827         * lib/lchown.c (S_ISLNK): Likewise.
91828
91829 2002-06-15  Jim Meyering  <meyering@lucent.com>
91830
91831         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91832         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91833         have been included before this file.
91834
91835 2002-06-14  Jim Meyering  <meyering@lucent.com>
91836
91837         * lib/file-type.h: Use the version from diffutils-2.8.2.
91838         * lib/file-type.c: Likewise.
91839
91840 2002-06-07  Jim Meyering  <meyering@lucent.com>
91841
91842         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91843         They're needed at least for NetBSD 1.5.2.
91844         ($statxfs_includes): Include those same headers.
91845         ($statxfs_includes): Include sys/vfs.h if available.
91846         ($statxfs_includes): Likewise for sys/statvfs.h.
91847         Check for the following members in both structs statfs and statvfs:
91848         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91849
91850 2002-06-01  Jim Meyering  <meyering@lucent.com>
91851
91852         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91853         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91854
91855 2002-05-28  Jim Meyering  <meyering@lucent.com>
91856
91857         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91858         Reported by Volker Borchert.
91859
91860 2002-05-27  Jim Meyering  <meyering@lucent.com>
91861
91862         Fix a problem seen only on nonconforming systems whereby ls.c's
91863         use of localtime, and then of gettimeofday would cause trouble:
91864         the localtime call used to initialize rpl_gettimeofday's save
91865         mechanism would clobber ls's current local time information so
91866         that in any long listing the first file would always be listed
91867         with date 1970-01-01.  Analysis by Volker Borchert.
91868
91869         * lib/gettimeofday.c (localtime): Undefine.
91870         (rpl_localtime): New function.
91871
91872 2002-05-27  Jim Meyering  <meyering@lucent.com>
91873
91874         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91875         localtime.
91876
91877         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91878         use the replacement function; it wouldn't resolve at link time.
91879         Reported by Volker Borchert.
91880
91881 2002-05-22  Jim Meyering  <meyering@lucent.com>
91882
91883         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91884         file-type.h.
91885         * lib/file-type.h: New file.
91886         * lib/file-type.c (file_type): New file/function.  Extracted from
91887         diffutils.
91888
91889 2002-04-30  Jim Meyering  <meyering@lucent.com>
91890
91891         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91892
91893 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91894
91895         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91896
91897 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91898
91899         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91900         Do not check for alloca.h (no longer used) or stdbool.h (was never
91901         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91902
91903 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91904
91905         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91906
91907 2002-04-29  Jim Meyering  <meyering@lucent.com>
91908
91909         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91910         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91911         Use AC_FUNC_STRNLEN here instead.
91912
91913         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91914         With autoconf-2.53a, it's part of AC_PROG_CC.
91915
91916 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91917
91918         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91919         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91920
91921 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91922
91923         * lib/sig2str.h, lib/sig2str.c: New files.
91924         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91925
91926 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91927
91928         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91929         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91930         of 127, since 64 is the largest conceivable number for ancient
91931         nonstandard hosts.
91932         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91933
91934 2002-04-28  Jim Meyering  <meyering@lucent.com>
91935
91936         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91937
91938 2002-04-24  Jim Meyering  <meyering@lucent.com>
91939
91940         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91941         (jm_PREREQ): Use it.
91942
91943         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91944         mach/mach.h fcntl.h.
91945         Check for this function: setlocale.
91946
91947 2002-04-24  Jim Meyering  <meyering@lucent.com>
91948
91949         * lib/gettext.h: New file, from Gettext.
91950         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91951         (libfetish_a_SOURCES): Add gettext.h.
91952
91953 2002-04-16  Jim Meyering  <meyering@lucent.com>
91954
91955         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91956         ut_pid, ut_id, ut_exit.
91957
91958 2002-04-16  Jim Meyering  <meyering@lucent.com>
91959
91960         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91961         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91962         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91963
91964 2002-04-12  Jim Meyering  <meyering@lucent.com>
91965
91966         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91967         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91968         existence of the getmntinfo function.  Needed for Darwin 5.3.
91969
91970         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91971         This is necessary at least on Darwin 5.3.
91972
91973         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91974         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91975         strnlen.o in the library, and that makes some versions of ranlib
91976         object.
91977
91978 2002-04-12  Jim Meyering  <meyering@lucent.com>
91979
91980         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91981
91982 2002-04-09  Jim Meyering  <meyering@lucent.com>
91983
91984         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91985         to be more precise.  Rather than saying we're checking whether the
91986         function `works', say what we're testing.
91987         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91988         Reported by Bruno Haible.
91989
91990 2002-03-10  Jim Meyering  <meyering@lucent.com>
91991
91992         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91993         Suggestion from Santiago Vila.
91994
91995 2002-03-08  Jim Meyering  <meyering@lucent.com>
91996
91997         * lib/rename.c: Mention that this wrapper is needed also on
91998         mips-dec-ultrix4.4 systems.
91999
92000 2002-03-02  Jim Meyering  <meyering@lucent.com>
92001
92002         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
92003         not HAVE_CLOCK_SETTIME.
92004
92005 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92006
92007         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92008         Check for clock_settime.
92009
92010 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92011
92012         * lib/nanosleep.h: Rename to....
92013         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92014
92015         * lib/gettime.c: New file.
92016         * lib/settime.c: New file.
92017         * lib/stime.c: Remove.
92018
92019         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92020         timespec.h.  Remove nanosleep.h.
92021
92022 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92023
92024         * m4/acl.m4: New file.
92025         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92026         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92027
92028 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92029
92030         * lib/acl.c, lib/acl.h: New files.
92031         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92032
92033 2002-02-24  Jim Meyering  <meyering@lucent.com>
92034
92035         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92036         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92037         cause trouble.  Reported by Nelson Beebe.
92038
92039 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92040
92041         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92042         compilers that don't know that xalloc_die never returns.
92043
92044 2002-02-20  Jim Meyering  <meyering@lucent.com>
92045
92046         * lib/getdate.c: Regenerate using bison-1.33.
92047
92048 2002-02-17  Jim Meyering  <meyering@lucent.com>
92049
92050         * config/config.guess (main): Don't use `head -1'; it's no longer
92051         portable. Use `sed 1q' instead.
92052
92053 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92054
92055         * m4/codeset.m4: Upgrade to gettext-0.11.
92056         * m4/gettext.m4: Upgrade to gettext-0.11.
92057         * m4/glibc21.m4: Upgrade to gettext-0.11.
92058         * m4/iconv.m4: Upgrade to gettext-0.11.
92059         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92060         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92061         * m4/lib-ld.m4: New file, from gettext-0.11.
92062         * m4/lib-link.m4: New file, from gettext-0.11.
92063         * m4/lib-prefix.m4: New file, from gettext-0.11.
92064         * m4/progtest.m4: Upgrade to gettext-0.11.
92065
92066 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92067
92068         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92069         (jm_PREREQ): Use it.
92070
92071 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92072
92073         * lib/posixver.c, lib/posixver.h: New files.
92074         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92075
92076 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92077             Bruno Haible  <bruno@clisp.org>
92078
92079         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92080         (fwrite_success_callback): New declaration.
92081         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92082         print_unicode_char. Call failure callback instead of error.
92083         (fwrite_success_callback): New function.
92084         (exit_failure_callback): New function.
92085         (fallback_failure_callback): New function.
92086         (print_unicode_char): Call unicode_to_mb.
92087
92088 2002-01-26  Jim Meyering  <meyering@lucent.com>
92089
92090         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92091         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92092
92093 2002-01-26  Jim Meyering  <meyering@lucent.com>
92094
92095         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92096
92097 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92098
92099         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92100
92101 2002-01-22  Jim Meyering  <meyering@lucent.com>
92102
92103         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92104         Otherwise, some versions of automake would omit the rule that makes
92105         Makefile from Makefile.in.
92106
92107 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92108
92109         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92110         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92111         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92112         (memcoll): Set errno to zero if there is no error.
92113
92114         * lib/quotearg.c (quotearg_buffer_restyled):
92115         Fix bug with quoting buffers containing NUL when backslashing escapes.
92116         This bug was exposed by the other changes in this patch.
92117         (quotearg_n_options): New arg ARGSIZE.
92118         All callers changed.
92119         (quoting_options_from_style): New function.
92120         (quotearg_n_style): Use it.
92121         (quotearg_n_style_mem): New function.
92122
92123         * lib/quotearg.h (quotearg_n_style_mem): New function.
92124
92125 2002-01-19  Jim Meyering  <meyering@lucent.com>
92126
92127         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92128         Remove useless quotes: DF_PROG="df".
92129         * m4/strnlen.m4: New file.
92130
92131 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92132
92133         * lib/backupfile.c (ISDIGIT): Comment fix.
92134         * lib/getdate.y (ISDIGIT): Likewise.
92135         * lib/posixtm.c (ISDIGIT, year): Likewise.
92136         * lib/strverscmp.c (ISDIGIT): Likewise.
92137         * lib/userspec.c (ISDIGIT): Likewise.
92138
92139 2002-01-16  Jim Meyering  <meyering@lucent.com>
92140
92141         * lib/getdate.y: Add three semicolons, each just before a closing
92142         brace. Bison (as of version 1.31) no longer papers over that mistake.
92143
92144 2002-01-05  Jim Meyering  <meyering@lucent.com>
92145
92146         * lib/version-etc.c (version_etc_copyright): Update copyright year.
92147
92148 2001-12-19  Paul Eggert  <eggert@twinsun.com>
92149
92150         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
92151         not silently exit merely because the output buffer happens to
92152         have nothing pending.
92153
92154 2001-12-18  Paul Eggert  <eggert@twinsun.com>
92155
92156         See the big note in ../ChangeLog.
92157         * lib/human.c (suffixes): Prefer K to k for 1024.
92158         (generate_suffix_backwards): New function.
92159         (human_readable_inexact): Use it.
92160         * lib/xstrtol.c (__xstrtol): If there is no number but there
92161         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
92162         Accept 'K' as well as 'k'.
92163
92164 2001-12-15  Jim Meyering  <meyering@lucent.com>
92165
92166         * lib/regex.h (__restrict_arr): Update from libc.
92167
92168         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
92169         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
92170         (STREQ): Define.
92171
92172 2001-12-14  Jim Meyering  <meyering@lucent.com>
92173
92174         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
92175         Suggestion from Bruno Haible.
92176
92177 2001-12-10  Jim Meyering  <meyering@lucent.com>
92178
92179         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92180         xrealloc, Instead, include "xalloc.h".
92181         (initbuffer): Don't cast xmalloc return value to char*.
92182         (readline): Reword comment.
92183         Don't cast xrealloc return value to char*
92184         Return NULL, not 0.
92185
92186 2001-12-09  Jim Meyering  <meyering@lucent.com>
92187
92188         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92189         about `signed and unsigned type in conditional expression'.
92190         * lib/posixtm.c (posix_time_parse): Likewise.
92191
92192         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92193
92194         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92195         to avoid a pedantic warning.
92196
92197         * lib/getstr.c: Don't include assert.h.
92198         (getstr): Remove warning-evoking assertions.
92199         Return -1 if offset parameter is out of bounds.
92200         Change the type of a local from int to size_t.
92201
92202         * lib/strftime.c (my_strftime_localtime_r): Include this function
92203         definition in the `#if ! HAVE_TM_GMTOFF' block.
92204
92205         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92206         Include xalloc.h instead.
92207
92208 2001-12-02  Jim Meyering  <meyering@lucent.com>
92209
92210         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92211         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92212         included.
92213
92214         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92215         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92216
92217 2001-11-30  Akim Demaille  <akim@epita.fr>
92218
92219         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92220         before being defined.
92221
92222 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92223
92224         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92225         First arg is int, not unsigned.
92226         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92227         (SIZE_MAX, UINT_MAX): New macros.
92228         (quotearg_n_options): Abort if N is negative.
92229         Avoid overflow check on hosts where size_t is 64 bits and int
92230         is 32 bits, as overflow is impossible there.
92231         Fix off-by-one typo that caused unnecessary reallocation.
92232
92233 2001-11-27  Jim Meyering  <meyering@lucent.com>
92234
92235         * lib/tempname.c: Merge with version from libc.
92236         * lib/regex.c: Likewise.
92237
92238         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92239         systems for which STDC_HEADERS is 0, it was not included, resulting in
92240         a warning about an integer-to-pointer conversion problem with getenv.
92241         Reported by Volker Borchert.
92242
92243 2001-11-26  Jim Meyering  <meyering@lucent.com>
92244
92245         * lib/gtod.h: Remove file.
92246         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
92247         * lib/gettimeofday.c: Don't include gtod.h.
92248         (GTOD_init): Remove function.
92249         (rpl_gettimeofday): Do its job here instead, rather than aborting.
92250         Suggestion from Volker Borchert.
92251
92252 2001-11-23  Jim Meyering  <meyering@lucent.com>
92253
92254         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92255         it.
92256         * lib/hash.c (struct hash_table): Define it here instead.
92257
92258 2001-11-22  Jim Meyering  <meyering@lucent.com>
92259
92260         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92261
92262 2001-11-20  Jim Meyering  <meyering@lucent.com>
92263
92264         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92265         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92266
92267 2001-11-19  Jim Meyering  <meyering@lucent.com>
92268
92269         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92270         directory.  Use "conftestXXXXXX" as the template.
92271         Suggestion from Paul Eggert.
92272
92273         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92274         immediately, so the test doesn't mistakenly hit the max-open-files
92275         limit.
92276
92277 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92278
92279         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92280         (TEMPORARIES): New macro.
92281         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92282         removes an artificial limitation (e.g. HP-UX 10.20, where
92283         TMP_MAX is 17576).
92284
92285 2001-11-18  Jim Meyering  <meyering@lucent.com>
92286
92287         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92288
92289 2001-11-18  Jim Meyering  <meyering@lucent.com>
92290
92291         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92292         on SunOS 4.
92293
92294         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92295         files will be created before anything else.
92296
92297 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92298
92299         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92300         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92301
92302 2001-11-17  Jim Meyering  <meyering@lucent.com>
92303
92304         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92305         Prompted by a report from Bob Proulx.
92306
92307         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92308         Instead, require UTILS_FUNC_MKSTEMP.
92309
92310 2001-11-17  Jim Meyering  <meyering@lucent.com>
92311
92312         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92313         Now, that's done as part of AC_FUNC_STRTOD.
92314
92315 2001-11-17  Jim Meyering  <meyering@lucent.com>
92316
92317         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92318         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92319         rather than group writable.  Patch by Juan F. Codagnone.
92320
92321         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92322         xrealloc, Instead, include "xalloc.h".
92323
92324         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92325         Remove explicit declarations of xmalloc, xrealloc,
92326         and xstrdup.  Instead, include "xalloc.h".
92327
92328         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92329         unlocked-io.h.
92330         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92331         Likewise.
92332         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92333
92334         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92335         Reported by Padraig Brady.
92336
92337         * lib/mkstemp.c: #undef mkstemp.
92338         Include config.h.
92339         (rpl_mkstemp): Rename from mkstemp.
92340         Protoize.
92341
92342 2001-11-16  Jim Meyering  <meyering@lucent.com>
92343
92344         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92345         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92346         determine the amount of total physical memory, use pstat_getstatic.
92347         HPUX-11 doesn't define _SC_PHYS_PAGES.
92348         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92349         If sysconf couldn't be used to determine the amount of available
92350         physical memory, use both pstat_getstatic and pstat_getdynamic.
92351         Based on a patch from Bob Proulx.
92352
92353 2001-11-10  Jim Meyering  <meyering@lucent.com>
92354
92355         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92356         (jm_PREREQ): Use it.
92357
92358 2001-11-09  Jim Meyering  <meyering@lucent.com>
92359
92360         * m4/jm-macros.m4: Require autoconf-2.52f.
92361         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92362         Use these AC_-prefixed names, not the AM_-prefixed ones.
92363
92364         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92365
92366 2001-11-05  Jim Meyering  <meyering@lucent.com>
92367
92368         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92369
92370 2001-11-04  Jim Meyering  <meyering@lucent.com>
92371
92372         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92373         $DEFS.
92374
92375 2001-11-03  Jim Meyering  <meyering@lucent.com>
92376
92377         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92378         of AC_DEFUN.
92379
92380         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92381         know the name of the variable in the macro definition.
92382
92383 2001-11-03  Jim Meyering  <meyering@lucent.com>
92384
92385         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92386         in argmatch_to_argument call.
92387
92388         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92389         argument.
92390
92391         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92392         e.g., a fault due to an attempt to free a NULL pointer.
92393
92394 2001-11-01  Jim Meyering  <meyering@lucent.com>
92395
92396         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92397         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92398
92399 2001-11-01  Jim Meyering  <meyering@lucent.com>
92400
92401         * lib/dirfd.c, lib/dirfd.h: New files.
92402         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92403
92404         * lib/hash.c (hash_print) [TESTING]: Clean up.
92405
92406 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92407
92408         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92409         to avoid a warning if -Wall.
92410
92411 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92412
92413         * README: New file
92414         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92415         (per RMS's instructions, this is now the canonical source)
92416         * lgpl/, gpl/: New directories.
92417
92418 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92419
92420         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92421
92422 2001-10-21  Jim Meyering  <meyering@lucent.com>
92423
92424         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92425         this code would end up calling gettext even in packages built
92426         with --disable-nls.
92427         * lib/getopt.c (_): Likewise.
92428         * lib/regex.c (_): Likewise.
92429
92430 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92431
92432         * m4/error.m4 (jm_PREREQ_ERROR):
92433         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92434         AC_FUNC_STRERROR_R does that.
92435         Check for strerror declaration.
92436
92437         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92438         are supposed to have them these days.
92439         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92440         Merge changes from latest Autoconf CVS.
92441         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92442         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92443         POSIX decided to standardize on the int flavor of strerror_r.
92444
92445 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92446
92447         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92448         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92449         Use strerror_r that is only a macro, even if it is not a function.
92450         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92451         (private_strerror): Use prototypes, not old-style function definition.
92452         (print_errno_message): New function.
92453         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92454         char*-flavored one.
92455         (error_tail, error, error_at_line): Use it.
92456
92457 2001-10-11  Jim Meyering  <meyering@lucent.com>
92458
92459         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92460         and quote_n (1, ... to avoid clobbering a buffer.
92461
92462 2001-10-05  Jim Meyering  <meyering@lucent.com>
92463
92464         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92465         hash-pjw.h.
92466         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92467         * lib/hash-pjw.h: New file.
92468
92469 2001-09-30  Jim Meyering  <meyering@lucent.com>
92470
92471         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92472         `struct fsstat' has the `f_fstypename' member.
92473         Use that to define FS_TYPE, which is now used to make
92474         the getfsstat link test tighter.
92475
92476 2001-09-30  Jim Meyering  <meyering@lucent.com>
92477
92478         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92479         Include <sys/ucred.h>, for Apple Darwin.
92480         Include sys/mount.h and sys/fs_types.h only if available.
92481         (FS_TYPE): Define.
92482         (read_filesystem_list): Use FS_TYPE.
92483
92484 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92485
92486         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92487         a boolean context.
92488
92489 2001-09-29  Jim Meyering  <meyering@lucent.com>
92490
92491         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92492         [one-argument getmntent function]): Include stdio.h before mntent.h.
92493         SunOS 4.1.x needs it for the declaration of `FILE'.
92494         Patch by Volker Borchert.
92495
92496         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92497         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92498         sys/fs_types.h, and make the link-test for getfsstat guard #include
92499         directives with appropriate #if HAVE_*_H tests so that we can
92500         detect getfsstat on Apple Darwin1.3.7 systems.
92501         Reported by Nelson Beebe.
92502         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92503
92504 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92505
92506         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92507         #defines strtoimax.  Also treat the other strto* functions
92508         like strtoimax.
92509
92510         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92511         Check for strtoul and strtoumax,
92512         as those declarations are made even in the signed case.
92513         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92514         Likewise, for strtol and strtoimax.
92515
92516 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92517
92518         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92519         #defines strtoimax.  Also treat the other strto* functions
92520         like strtoimax.
92521
92522         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92523         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92524         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92525
92526 2001-09-26  Jim Meyering  <meyering@lucent.com>
92527
92528         Most macros in unlocked-io.h had the wrong number of arguments.
92529         * lib/gen-uio: New script.
92530         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92531         * lib/unlocked-io.hin: Remove file.
92532         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92533         rather than trying to embed it here.
92534         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92535         Reported by Padraig Brady.
92536
92537 2001-09-25  Volker Borchert  <bt@teknon.de>
92538
92539         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92540         `result'.
92541
92542 2001-09-24  Jim Meyering  <meyering@lucent.com>
92543
92544         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92545
92546 2001-09-23  Jim Meyering  <meyering@lucent.com>
92547
92548         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92549         instead of the mere test for existence of mntent.h.  The latter
92550         would get a false-positive on AIX 3.4 systems.
92551         In the outer getmntent if-block, don't die if neither of the getmntent
92552         tests succeeds.  Instead, just fall through and continue with the
92553         remaining tests.
92554
92555 2001-09-23  Jim Meyering  <meyering@lucent.com>
92556
92557         * lib/mountlist.c: Remove useless parentheses in #if directives.
92558         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92559         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92560
92561 2001-09-22  Jim Meyering  <meyering@lucent.com>
92562
92563         * m4/gettext.m4: New file.  From gettext.
92564         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92565         * m4/progtest.m4: Likewise
92566         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92567         * m4/glibc21.m4: Likewise.
92568
92569         * m4/libintl.m4: Remove.  No longer used.
92570
92571 2001-09-22  Jim Meyering  <meyering@lucent.com>
92572
92573         * lib/localcharset.c: Update from latest gettext.
92574         * lib/config.charset: Likewise.
92575
92576 2001-09-20  Jim Meyering  <meyering@lucent.com>
92577
92578         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92579         strtoimax.
92580         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92581         strtoumax.
92582
92583 2001-09-20  Jim Meyering  <meyering@lucent.com>
92584
92585         * lib/xstrtol.c (strtoimax): Guard declaration with
92586         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92587         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92588         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92589         (strtoumax): Likewise, for completeness (it wasn't necessary).
92590
92591 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92592
92593         * lib/strtoimax.c (HAVE_LONG_LONG):
92594         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92595         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92596         to work around bug in IBM C compiler.
92597
92598 2001-09-17  Jim Meyering  <meyering@lucent.com>
92599
92600         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92601         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92602         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92603         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92604         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92605         whenever the right hand side need not be expanded by the shell.
92606
92607 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92608
92609         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92610         library.  It's not correct, as some older glibcs are buggy.
92611         fnmatch wasn't fixed until glibc 2.2.
92612
92613         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92614         special shell magic here.
92615
92616 2001-09-16  Jim Meyering  <meyering@lucent.com>
92617
92618         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92619         * m4/jm-macros.m4: Require it.
92620
92621 2001-09-16  Jim Meyering  <meyering@lucent.com>
92622
92623         * lib/mkdir.c: New file.
92624
92625 2001-09-15  Jim Meyering  <meyering@lucent.com>
92626
92627         * m4/jm-macros.m4: Check for help2man.
92628
92629 2001-09-11  Jim Meyering  <meyering@lucent.com>
92630
92631         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92632         The body, by Paul Eggert, was moved here from configure.in.
92633         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92634
92635 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92636
92637         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92638         (jm_PREREQ): Use it.
92639
92640 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92641
92642         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92643         Use ssize_t, not int, to store result of readlink.
92644         Check for ssize_t overflow as well as size_t overflow,
92645         as POSIX says the result of readlink is implementation-defined
92646         when ssize_t overflows.
92647         Remove unnecessary cast to char*.
92648         Use free+malloc instead of realloc, as the storage doesn't need
92649         to be preserved and it's clearer and can be more efficient that way.
92650         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92651         * lib/xreadlink.h (xreadlink): Update prototype.
92652
92653 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92654
92655         * lib/xgetcwd.c: Revert some of the previous change; intead,
92656         fix the HAVE_GETCWD_NULL code to behave more like the
92657         !HAVE_GETCWD_NULL code used to.
92658
92659         Include "xalloc.h".
92660         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92661         invoke xalloc_die.
92662
92663 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92664
92665         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92666         sys/param.h, as pathmax.h includes them.
92667
92668 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92669
92670         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92671         (jm_PREREQ_XGETCWD): New macro.
92672
92673         * m4/getcwd.m4: New file.
92674
92675 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92676
92677         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92678         like the HAVE_GETCWD_NULL code.
92679         Include pathmax.h if not HAVE_GETCWD.
92680         Do not include xalloc.h.
92681         (INITIAL_BUFFER_SIZE): New symbol.
92682         Do not use xmalloc / xrealloc, since the caller is responsible for
92683         handling errors.  Preserve errno around `free' during failure.
92684         Do not overrun buffer when using getwd.
92685
92686 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92687
92688         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92689         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92690         getcwd (NULL, 0).
92691
92692 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92693
92694         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92695         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92696         spotted by Jim Meyering.
92697
92698 2001-09-03  Jim Meyering  <meyering@lucent.com>
92699
92700         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92701         failure.
92702
92703 2001-09-02  Jim Meyering  <meyering@lucent.com>
92704
92705         * lib/error.c: Update from GNU libc.
92706
92707 2001-09-01  Jim Meyering  <meyering@lucent.com>
92708
92709         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92710         Used by df.
92711
92712 2001-09-01  Jim Meyering  <meyering@lucent.com>
92713
92714         * lib/xreadlink.c: New file.
92715         * lib/xreadlink.h: New file.
92716         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92717         xreadlink.h.
92718
92719         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92720         doesn't conflict with sparc Solaris 7's definition in
92721         /usr/include/sys/int_types.h.
92722
92723         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92724         files.
92725         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92726         and strncasecmp as r-values.  Unixware didn't have declarations.
92727
92728 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92729
92730         * lib/xstrtol.h: Add copyright notice.
92731         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92732         LONGINT_INVALID_SUFFIX_CHAR.
92733
92734 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92735
92736         * lib/xstrtol.c (strtoimax): New decl.
92737
92738 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92739
92740         * lib/xgetcwd.c: Don't include pathmax.h.
92741         Include stdlib.h and unistd.h if available.
92742         Include xalloc.h.
92743         (xmalloc, xstrdup, free): Remove decls.
92744         (xgetcwd): Don't assume sizes fit in unsigned.
92745         Check for overflow when computing sizes.
92746         Simplify reallocation code.
92747
92748 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92749
92750         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92751         a directory's st_size can have an arbitrary value, so the old
92752         usage could waste an arbitrary amount of memory.  All uses
92753         changed.
92754         * lib/savedir.h: Update prototype.
92755
92756 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92757
92758         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92759
92760         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92761         old strtoimax.c.
92762
92763         Also, make the following further changes to make this file's
92764         configuration more similar to that of strtol.c:
92765         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92766         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92767         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92768         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92769         changed to signed values.
92770
92771         And make the following changes as well:
92772         Fix copyright notice, as 1999 was missing.
92773         (verify): New macro.
92774         (strtoimax): Check sizes at compile-time, not run-time.
92775         Prefer strtol to strtoll if both work.
92776         (main): Remove; it was not that useful and was a pain to maintain.
92777
92778         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92779
92780 2001-08-31  Jim Meyering  <meyering@lucent.com>
92781
92782         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92783         Use an initial, malloc'd, buffer of length 128 rather than
92784         a statically allocated one of length 1024.
92785
92786 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92787
92788         Simplify code, partly by assuming autoconf 2.52 semantics.
92789
92790         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92791
92792         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92793         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92794         All uses removed.
92795         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92796         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92797         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92798         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92799         jm_AC_HEADER_INTTYPES_H.
92800         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92801
92802         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92803
92804         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92805         Quote first arg of AC_DEFUN.
92806         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92807         since they are needed to parse the include file even if we need
92808         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92809         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92810         but with opposite signedness.
92811
92812 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92813
92814         Merge 'exclude' changes from tar 1.13.22.
92815         This fixes one or two unlikely storage allocation overflow bugs,
92816         but doesn't change user-visible behavior otherwise.
92817
92818 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92819
92820         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92821         (jm_PREREQ_EXCLUDE): New macro.
92822
92823 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92824
92825         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92826         tm to be declared.
92827
92828 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92829
92830         * lib/hash.c: Remove '2001' from copyright notice.
92831
92832 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92833
92834         * lib/full-write.h: New file.
92835         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92836         * lib/full-write.c: Correct credits, as cccp.c no longer
92837         exists and anyway it was so heavily changed from the old cccp
92838         code as to be unrecognizable.  Include full-write.h.
92839         (full_write): Return size_t, with short writes meaning failure.
92840         All callers changed.  This fixes a bug with large buffers
92841         on 64-bit hosts.
92842         * lib/utime.c: Include full-write.h.
92843
92844 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92845
92846         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92847         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92848         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92849         Include if available.
92850         (<xalloc.h>): Include
92851         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92852         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92853         collide with FNM macros.
92854         (struct patopts): New struct.
92855         (struct exclude): Use it, as exclude patterns now come with options.
92856         (new_exclude): Support above changes.
92857         (new_exclude, add_exclude_file):
92858         Initial size must now be a power of two to simplify overflow checking.
92859         (free_exclude, fnmatch_no_wildcards): New function.
92860         (excluded_filename): No longer requires options arg, as the options
92861         are determined by add_exclude.  Now returns bool, not int.
92862         (excluded_filename, add_exclude):
92863         Add support for the fancy new exclusion options.
92864         (add_exclude, add_exclude_file): Now takes int options arg.
92865         Check for arithmetic overflow when computing sizes.
92866         (add_exclude_file): xrealloc might modify errno, so don't
92867         realloc until after errno might be used.
92868
92869         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92870         New macros.
92871         (free_exclude): New decl.
92872         (add_exclude, add_exclude_file): Now takes int options arg.
92873         (excluded_filename): No longer requires options arg, as the options
92874         are determined by add_exclude.  Now returns bool, not int.
92875
92876 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92877
92878         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92879
92880 2001-08-27  Jim Meyering  <meyering@lucent.com>
92881
92882         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92883
92884         * lib/version-etc.c (N_): Remove definition.
92885         Revert most of last change.
92886         Instead, simply don't mark the `Copyright...' string for translation.
92887         Based on advice from Paul Eggert.
92888
92889         * lib/strtoxmax.c: Tweak comment.
92890
92891 2001-08-26  Jim Meyering  <meyering@lucent.com>
92892
92893         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92894
92895         * m4/xstrtoimax.m4: New file.
92896         * m4/xstrtoumax.m4: Add comments explaining why we
92897         AC_REPLACE_FUNCS(strtol).
92898
92899 2001-08-26  Jim Meyering  <meyering@lucent.com>
92900
92901         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92902         of copyright with `%s' so translators don't get an untranslated
92903         message in 2002.
92904         (COPYRIGHT_YEAR): Define.
92905         (version_etc): Use fprintf rather than fputs.
92906         Suggestion from Ulrich Drepper.
92907
92908         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92909
92910         * lib/strtoll.c: New file, from GNU libc.
92911         * lib/xstrtoimax.c: New file.
92912
92913         * lib/xstrtol.h: Add xstrtoimax.
92914         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92915         * lib/strtoimax.c: New file.  Likewise, but first define
92916         STRTOUXMAX_SIGNED.
92917
92918         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92919         ...
92920         * lib/strtoxmax.c: ... then renamed to this.
92921
92922 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92923
92924         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92925         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92926         (jm_AC_TYPE_INTMAX_T): New macro.
92927         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92928
92929         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92930
92931         * m4/longlong.m4: Renamed from ulonglong.m4.
92932         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92933         * m4/uintmax_t.m4: Removed.
92934
92935 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92936
92937         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92938         Port to Solaris 8, where 'sed' requires a space after the 'r'
92939         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92940         Redirect output to $tmp just once.
92941
92942 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92943
92944         * lib/addext.c (<errno.h>): Include.
92945         (errno): Declare if not defined.
92946         (addext): Work correctly when pathconf returns -1 and leaves
92947         errno alone because there is no limit.  Also, work even if
92948         pathconf returns a value greater than SIZE_MAX.
92949
92950 2001-08-12  Jim Meyering  <meyering@lucent.com>
92951
92952         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92953         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92954         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92955         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92956         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92957         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92958         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92959         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92960         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92961         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92962         utime.m4, utimes.m4, xstrtoumax.m4:
92963         Quote the first argument in each use of AC_DEFUN.
92964
92965 2001-08-12  Jim Meyering  <meyering@lucent.com>
92966
92967         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92968         Simply `return getcwd (NULL, 0);'.
92969         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92970         Use 1300 as initial value for length, not PATH_MAX.
92971
92972         * lib/pathmax.h: Clean up cpp syntax.
92973
92974 2001-08-12  Jim Meyering  <meyering@lucent.com>
92975
92976         * lib/gettimeofday.c: New file.
92977         * lib/gtod.h: New file.
92978         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92979
92980 2001-08-05  Jim Meyering  <meyering@lucent.com>
92981
92982         * m4/jm-macros.m4: Require autoconf-2.52.
92983
92984 2001-08-04  Jim Meyering  <meyering@lucent.com>
92985
92986         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92987         stmt, to get in sync with glibc.
92988
92989 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92990
92991         The following changes are from gettext 0.10.39 as maintained by
92992         Bruno Haible.
92993
92994         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92995         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92996         with inverted sense.  All uses changed.
92997
92998         * lib/mbswidth.c: Don't include <limits.h>.
92999         Include <stdlib.h> and <string.h> unconditionally.
93000         (iswcntrl, mbsinit, ISCNTRL): New macros.
93001         (mbsnwidth): Use K&R style function declarations.
93002         Don't bother checking for MB_LEN_MAX == 1, since the compiler
93003         can optimize it when MB_CUR_MAX == 1.
93004         The width of control characters is zero, not 1.
93005
93006 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93007
93008         The following changes are from gettext 0.10.39 as maintained by
93009         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93010
93011         * m4/codeset.m4: Upgrade to serial AM1.
93012         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93013         all uses changed.  Quote first arg of AC_DEFUN.
93014         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93015
93016         * m4/iconv.m4: Upgrade to serial AM2.
93017         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93018         Add --with-libconv-prefix.
93019         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93020         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93021         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93022         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93023         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93024
93025         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93026         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93027         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93028         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93029         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93030         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93031         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93032         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93033         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93034
93035         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93036         string.h any more.
93037
93038         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93039         not the default value.
93040
93041         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93042         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93043         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93044         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93045         Also check for iswcntrl, used for wcwidth fallback.
93046         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93047         to Autoconf 2.13.
93048
93049 2001-08-03  Jim Meyering  <meyering@lucent.com>
93050
93051         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93052         as it was in the original.  Reported by Paul Eggert.
93053
93054 2001-07-16  Jim Meyering  <meyering@lucent.com>
93055
93056         * m4/gettimeofday.m4: New file.
93057         Prompted by a report from Bernhard Baehr.
93058
93059 2001-07-15  Jim Meyering  <meyering@lucent.com>
93060
93061         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93062         stuff. Now it's in ../Makefile.cfg.
93063
93064 2001-07-15  Jim Meyering  <meyering@lucent.com>
93065
93066         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93067         (BUILT_SOURCES): Add unlocked-io.h.
93068         (io_functions): Define.
93069         (unlocked-io.h): New rule.
93070         (DISTCLEANFILES): Add unlocked-io.h.
93071         (all-local): Depend on unlocked-io.h, to ensure it is created.
93072
93073         * lib/unlocked-io.hin: New file
93074
93075         * lib/regex.c: Update from glibc.
93076
93077 2001-07-05  Jim Meyering  <meyering@lucent.com>
93078
93079         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93080         recommendation.
93081         (libfetish_a_SOURCES): Put all .h files here instead.
93082         Remove a thus-exposed (better checks in automake) duplicate and
93083         two unnecessary .h files.
93084
93085 2001-07-04  Jim Meyering  <meyering@lucent.com>
93086
93087         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93088         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93089         distcheck failure.
93090
93091 2001-07-02  Jim Meyering  <meyering@lucent.com>
93092
93093         The following changes were prompted by suggestions from Bruno Haible.
93094
93095         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93096         is now generated.
93097         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93098         definition of EXTRA_DIST.
93099         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93100         ensure that the generated file is created/updated whenever the list
93101         of $(unlocked_functions) is changed.
93102         (jm-glibc-io.m4): New rule.
93103         (unlocked-io.h): New rule -- currently unused.
93104
93105 2001-06-24  Jim Meyering  <meyering@lucent.com>
93106
93107         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93108         unmatched right bracket, rather than kludging it with an extra,
93109         falsely-matching quote in a comment.  Patch by Akim Demaille.
93110
93111 2001-06-11  Jim Meyering  <meyering@lucent.com>
93112
93113         * lib/regex.c: Update from GNU libc.
93114
93115 2001-05-27  Jim Meyering  <meyering@lucent.com>
93116
93117         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93118         Check for ut_type in struct utmp.
93119
93120 2001-05-27  Jim Meyering  <meyering@lucent.com>
93121
93122         * lib/readutmp.h (UT_TYPE): Define.
93123
93124 2001-05-24  Jim Meyering  <meyering@lucent.com>
93125
93126         * lib/argmatch.c: Include "quote.h".
93127         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93128         quote function.  Reported by Göran Uddeborg.
93129
93130 2001-05-22  Jim Meyering  <meyering@lucent.com>
93131
93132         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93133         now that we use the package-supplied version unconditionally.
93134         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93135
93136 2001-05-21  Jim Meyering  <meyering@lucent.com>
93137
93138         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93139         shell syntax errors.
93140
93141 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93142
93143         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
93144
93145 2001-05-20  Paul Eggert  <eggert@twinsun.com>
93146
93147         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
93148         Don't bother to check library strftime, since
93149         we'll be using our own my_strftime function anyway.
93150         Define my_strftime instead of strftime.
93151
93152 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
93153
93154         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
93155         which is not yet declared.
93156
93157 2001-05-15  Jim Meyering  <meyering@lucent.com>
93158
93159         * m4/regex.m4: Use proper quoting so brackets appear in the test
93160         program.
93161         Reported by, and with help from, Bruno Haible.
93162
93163 2001-05-13  Jim Meyering  <meyering@lucent.com>
93164
93165         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
93166         undefined.
93167
93168 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93169
93170         dirname code cleanup.  base_name now behaves more compatibly
93171         with POSIX basename when given file names that have trailing
93172         slashes, and similarly for dir_name.  Add new primitives
93173         base_len and dir_len.  Put the directory-name-related decls
93174         into dirname.h.
93175
93176         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
93177         * lib/backupfile.c (base_name): Likewise.
93178         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
93179         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93180         * lib/makepath.c (strip_trailing_slashes): Likewise.
93181         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93182         ISSLASH): Likewise.
93183         * lib/rename.c (strip_trailing_slashes): Likewise.
93184         * lib/same.c (base_name): Likewise.
93185         * lib/stripslash.c (ISSLASH): Likewise.
93186
93187         * lib/addext.c: Include <dirname.h> after size_t is defined.
93188         * lib/backupfile.c: Likewise.
93189
93190         * lib/addext.c (addext): Use base_len to trim redundant
93191         trailing slashes instead of doing it ourselves.
93192         But do not trim the last slash if it is not redundant.
93193
93194         * lib/backupfile.c (find_backup_file_name,
93195         max_backup_version): Use base_len instead of rolling it ourselves.
93196         Handle the case of "" and (on DOS) "C:" correctly.
93197
93198         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93199         needed. Include <string.h>, <dirname.h>.
93200         (base_name): Allow file names ending in slashes, other than names
93201         that are all slashes.  In this case, return the basename followed
93202         by the slashes.  This is more general, and can be used in places
93203         where the original base_name purposely had an assertion failure.
93204         (base_len): New function.
93205
93206         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93207         Do not include <assert.h>; no longer needed.
93208         Include xalloc.h.
93209         (memrchr): Remove decl.
93210         (dir_name_r): Remove.
93211         (dir_len): Renamed from dirlen.  All callers changed.
93212         Rewrite in terms of base_name, for simplicity and consistency.
93213         (dir_name): Never return NULL.  All callers changed.
93214         Do not include <stdlib.h> in test program; no longer needed.
93215         return 0; is fine for test program.
93216
93217         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93218         New macros.
93219         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93220
93221         * lib/path-concat.c (path_concat): Use base_len to compute
93222         base length, not strlen; this means we cannot rely on memcpy
93223         to null-terminate.
93224
93225         * lib/same.c (STREQ): Remove.
93226         (same_name): Handle the case where the basename ends in trailing '/'.
93227
93228         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93229         a slash was stripped.  Do not strip the last slash after a
93230         file system prefix.
93231
93232 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93233
93234         * lib/Makefile.am (libfetish_a_SOURCES):
93235         Add strftime.c, since we now compile it on all hosts.
93236
93237         * lib/strftime.c (my_strftime):
93238         Define to nstrftime if emacs, but only if my_strftime is not defined.
93239         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
93240         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
93241         Add one more extra argument: a nanoseconds value.
93242         All uses changed.
93243         (ns): New macro.
93244         (my_strftime function): Add %N format.
93245         (emacs_strftimeu): Renamed from emacs_strftime,
93246         with extra ut argument.
93247
93248 2001-05-09  Paul Eggert  <eggert@twinsun.com>
93249
93250         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
93251
93252 2001-04-21  Jim Meyering  <meyering@lucent.com>
93253
93254         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93255         doesn't interfere.
93256
93257 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93258
93259         * m4/ftruncate.m4: Check for chsize.
93260         Link with ftruncate.o unconditionally if ftruncate is missing.
93261         This was required when cross-compiling to i586-mingw32msvc.
93262
93263 2001-04-08  Jim Meyering  <meyering@lucent.com>
93264
93265         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93266         recomputed; that's necessary when the offset spans a DST transition.
93267         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93268
93269 2001-04-02  Jim Meyering  <meyering@lucent.com>
93270
93271         * lib/regex.h, regex.c: Update from GNU libc.
93272
93273 2001-03-24  Jim Meyering  <meyering@lucent.com>
93274
93275         * m4/jm-macros.m4: Require autoconf-2.49d.
93276
93277 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93278
93279         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93280
93281 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93282
93283         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93284
93285 2001-03-17  Jim Meyering  <meyering@lucent.com>
93286
93287         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93288         now that the version in autoconf is equivalent.
93289         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93290
93291         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93292         Suggestion from Akim Demaille.
93293
93294         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93295         (jm_PREREQ_TEMPNAME): New function.
93296
93297 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93298
93299         * lib/tempname.c (uint64_t): Define to uintmax_t if
93300         not defined, and if UINT64_MAX is not defined.
93301         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93302         Reported by John David Anglin.
93303
93304 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93305
93306         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93307         resolve alias if codeset is empty.
93308         * lib/config.charset (BeOS): Use wildcard syntax.
93309
93310 2001-03-13  Jim Meyering  <meyering@lucent.com>
93311
93312         * lib/path-concat.c (path_concat)
93313         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93314         concatenating e.g., `C:' and `foo'.
93315         From Bruno Haible.
93316
93317 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93318
93319         * lib/localcharset.c (locale_charset): Don't use
93320         setlocale(LC_CTYPE,NULL). Don't return NULL.
93321         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93322
93323 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93324
93325         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93326         support for DOS/DJGPP.
93327
93328 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93329
93330         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93331         lacks mkstemp.  Compile our own tempname.c if we compile our own
93332         mkstemp.c, as mkstemp relies on tempname.
93333
93334 2001-03-01  Jim Meyering  <meyering@lucent.com>
93335
93336         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93337         AH_VERBATIM really does output its argument verbatim.
93338
93339 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93340
93341         * lib/Makefile.am (libfetish_a_SOURCES):
93342         Add dup-safer.c, fopen-safer.c.
93343         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93344
93345         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93346         * lib/unistd-safer.h: New files.
93347
93348 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93349
93350         The mkstemp replacement is taken from glibc 2.2.2, with some
93351         portability fixes for use outside glibc, as follows:
93352
93353         * lib/tempname.c (struct_stat64): New macro.
93354         (direxists, __gen_tempname): Use it.
93355         This avoids a portability problem with Solaris 8.
93356
93357         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93358         (<stddef.h>, <stdint.h>, <string.h>):
93359         Include only if STDC_HEADERS || _LIBC.
93360         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93361         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93362         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93363         (__set_errno): Define this macro if <errno.h> doesn't.
93364         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93365         Define these macros if <stdio.h> doesn't.
93366         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93367         Define these macros if <sys/stat.h>
93368         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93369         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93370         __xstat64): Define if not _LIBC.
93371         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93372         (__gen_tempname): Invoke gettimeofday only if
93373         HAVE_GETTIMEOFDAY || _LIBC;
93374         otherwise, fall back on plain "time".
93375         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93376
93377         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93378
93379         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93380
93381 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93382
93383         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93384
93385 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93386
93387         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93388         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93389         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93390         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93391
93392 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93393
93394         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93395         Remove workaround macros for hosts that have mbrtowc but not
93396         mbstate_t, as we now insist on proper declarations for both
93397         before using mbrtowc.
93398
93399 2001-02-17  Jim Meyering  <meyering@lucent.com>
93400
93401         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93402         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93403         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93404         UnixWare 7.1.1.
93405
93406         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93407         rather than AC_CACHE_VAL.
93408
93409 2001-02-17  Jim Meyering  <meyering@lucent.com>
93410
93411         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93412         around included file name.
93413
93414         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93415
93416         * lib/strftime.c: Update from GNU libc (the only changes were to
93417         comments).
93418
93419 2001-02-17  Jim Meyering  <meyering@lucent.com>
93420
93421         * lib/regex.c: Update from libc.
93422
93423 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93424
93425         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93426         clash.
93427
93428 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93429
93430         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93431         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93432         Reported by Mark Hounschell via Paul Eggert.
93433
93434 2001-02-07  Jim Meyering  <meyering@lucent.com>
93435
93436         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93437
93438 2001-02-05  Jim Meyering  <meyering@lucent.com>
93439
93440         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93441         it includes the patch required for `large file' support with at least
93442         HP-UX's 10.20 /bin/cc.
93443
93444 2001-02-03  Jim Meyering  <meyering@lucent.com>
93445
93446         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93447         AS_IF, now that it works once again (mysteriously).
93448         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93449
93450 2001-01-30  Jim Meyering  <meyering@lucent.com>
93451
93452         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93453         * m4/chown.m4: Rename conftestchown to conftest.chown.
93454         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93455         s/conftestdir2/conftest.d2/.
93456         * m4/utimes.m4: s/conftestdata/conftest.data/
93457         Inspired by Pavel Roskin's change in autoconf.
93458
93459 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93460
93461         * lib/config.charset: Update for FreeBSD 4.2.
93462
93463 2001-01-27  Jim Meyering  <meyering@lucent.com>
93464
93465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93466         a use of AS_IF.
93467         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93468
93469 2001-01-26  Jim Meyering  <meyering@lucent.com>
93470
93471         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93472         quotearg.c includes it.
93473
93474 2001-01-26  Jim Meyering  <meyering@lucent.com>
93475
93476         * lib/quotearg.c: Include stddef.h.
93477         * lib/quote.c: Include stddef.h.
93478         Reported by Axel Kittenberger.
93479
93480         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93481         line in double quotes so that it evokes a better diagnostic.
93482         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93483         Reported by Axel Kittenberger.
93484
93485 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93486
93487         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93488         as if it was a `charset'.
93489
93490 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93491
93492         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93493         has const.
93494
93495 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93496
93497         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93498         to avoid a warning.  Add back 'const' to inptr.
93499
93500 2001-01-20  Jim Meyering  <meyering@lucent.com>
93501
93502         Be sure that headers are checked before used in code compiled
93503         for the type checks.
93504         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93505         In place of that, invoke jm_CHECK_ALL_TYPES.
93506         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93507         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93508         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93509         The check for ssize_t was mistakenly run before the test for unistd.h.
93510
93511         The configure-time check for stdbool.h was missing.
93512         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93513         (jm_PREREQ_HASH): New function.
93514
93515 2001-01-17  Jim Meyering  <meyering@lucent.com>
93516
93517         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93518         for autoconf-2.49c.
93519         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93520
93521 2001-01-16  Jim Meyering  <meyering@lucent.com>
93522
93523         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93524         From Bruno Haible.
93525
93526 2001-01-14  Jim Meyering  <meyering@lucent.com>
93527
93528         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93529         foo and bar.  Create conftestdir/ in the script, not in the C code.
93530         Remove directories in the script, not in the C code.
93531         Remove conftestdir{,2} before trying to create the directory.
93532         Make the entire configure script fail if the mkdir fails.
93533
93534 2001-01-14  Jim Meyering  <meyering@lucent.com>
93535
93536         * lib/rename.c: New file.  From Volker Borchert.
93537         Include stdlib.h, string.h or strings.h, and xalloc.h.
93538         Use strip_trailing_slashes rather than open-coding it.
93539
93540 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93541
93542         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93543
93544 2001-01-03  Jim Meyering  <meyering@lucent.com>
93545
93546         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93547         of local `inptr' to avoid warning with some system declarations of
93548         iconv.
93549
93550 2001-01-02  Volker Borchert  <bt@teknon.de>
93551
93552         * m4/rename.m4: New file.
93553         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93554
93555 2001-01-01  Jim Meyering  <meyering@lucent.com>
93556
93557         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93558         even on systems with utmpx.h.  It's necessary for the declaration of
93559         utmp's ut_user member.  Reported by Andreas Jaeger.
93560
93561         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93562         available. They are required for the declarations of getgrgid and
93563         getpwuid resp.
93564         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93565         Reported by Andreas Jaeger.
93566
93567 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93568
93569         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93570         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93571         so `make install' also works in VPATH builds.
93572
93573 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93574
93575         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93576         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93577         can be used in subdirectories.
93578
93579 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93580
93581         * lib/modechange.c: Do not assume that mode_t uses the
93582         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93583         the other-execute bit of FOO even if S_IXOTH != 1.
93584
93585         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93586         WOTH, XOTH, ALLM): New macros.
93587         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93588          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93589         Use them.
93590         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93591         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93592         (mode_compile):
93593         No need to use uintmax_t; unsigned long is long enough.
93594         Don't bother to get suffix since we don't use it.
93595
93596 2000-12-26  Jim Meyering  <meyering@lucent.com>
93597
93598         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93599         better with autoheader.
93600
93601 2000-12-24  Jim Meyering  <meyering@lucent.com>
93602
93603         * lib/hash.c (is_prime): Return explicit boolean values.
93604         (hash_get_first): Return NULL to appease Irix5.6's 89.
93605         Reported by Nelson Beebe.
93606
93607 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93608
93609         * lib/localcharset.c (locale_charset): Add support for Win32.
93610
93611 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93612
93613         * lib/physmem.h, lib/physmem.c: New files.
93614
93615         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93616         (noinst_HEADERS): Add physmem.h.
93617
93618         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93619         't' for compatibility with Solaris 8 sort.
93620
93621 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93622
93623         * lib/config.charset: Add support for BeOS.
93624
93625 2000-12-17  Jim Meyering  <meyering@lucent.com>
93626
93627         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93628         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93629
93630 2000-12-16  Jim Meyering  <meyering@lucent.com>
93631
93632         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93633         N and M) would have treated it like `chown N:N FILE'.
93634
93635         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93636
93637 2000-12-16  Jim Meyering  <meyering@lucent.com>
93638
93639         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93640         SHELLS_FILE to a file name that's useful on djgpp systems.
93641         Include stdlib.h.
93642         (ADDITIONAL_DEFAULT_SHELLS): Define.
93643         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93644         Based mostly on a patch from Prashant TR.
93645
93646 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93647
93648         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93649         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93650         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93651
93652 2000-12-08  Andreas Schwab  <schwab@suse.de>
93653
93654         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93655         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93656
93657 2000-12-07  Jim Meyering  <meyering@lucent.com>
93658
93659         * lib/stripslash.c (ISSLASH): Define.
93660         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93661         `/'.
93662         From Prashant TR.
93663
93664         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93665         (dir_name_r): Declare this function as static.
93666         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93667         manifest itself on a name containing a mix of slashes and
93668         backslashes.
93669         Make this function work with names starting with a DOS-style
93670         drive letter and colon prefix.
93671         (dir_name): Append `.' if necessary.
93672         Based mostly on patches from Prashant TR and Eli Zaretskii.
93673
93674         * lib/dirname.h (dir_name_r): Remove prototype.
93675
93676 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93677
93678         * m4/off_t-format.m4: Remove this file.
93679         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93680
93681 2000-12-06  Jim Meyering  <meyering@lucent.com>
93682
93683         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93684         replacement strtoull, we may well need the replacement strtoul, too.
93685         Check for declarations of strtoul and strtoull.
93686         Check for strtol.  Mainly as a cue to cause automake to include
93687         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93688         Check for limits.h -- strtol.c needs it.
93689
93690 2000-12-05  Jim Meyering  <meyering@lucent.com>
93691
93692         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93693
93694 2000-12-04  Jim Meyering  <meyering@lucent.com>
93695
93696         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93697         Also include memory.h, stdlib.h, unistd.h if appropriate.
93698         Reported by Andreas Jaeger (conflicting declaration of malloc).
93699
93700 2000-12-02  Jim Meyering  <meyering@lucent.com>
93701
93702         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93703         * m4/jm-macros.m4 (jm_MACROS): require it.
93704
93705 2000-12-02  Jim Meyering  <meyering@lucent.com>
93706
93707         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93708
93709 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93710
93711         * lib/memrchr.c: Include <config.h> before any system include file.
93712
93713 2000-11-30  Jim Meyering  <meyering@lucent.com>
93714
93715         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93716
93717 2000-11-30  Jim Meyering  <meyering@lucent.com>
93718
93719         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93720
93721 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93722
93723         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93724
93725 2000-11-26  Jim Meyering  <meyering@lucent.com>
93726
93727         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93728
93729 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93730
93731         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93732         size of (size_t) -1; it's not portable.
93733
93734 2000-11-17  Jim Meyering  <meyering@lucent.com>
93735
93736         * lib/strstr.c: Update from GNU libc.
93737
93738 2000-11-17  Akim Demaille  <akim@epita.fr>
93739
93740         * lib/obstack.h: Formatting changes.
93741         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93742         prevent type checking.
93743         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93744         cast the value to (void *): assigning a `foo *' to a `void *'
93745         variable is valid.
93746         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93747
93748 2000-11-16  Jim Meyering  <meyering@lucent.com>
93749
93750         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93751
93752 2000-11-11  Jim Meyering  <meyering@lucent.com>
93753
93754         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93755
93756 2000-11-10  Jim Meyering  <meyering@lucent.com>
93757
93758         * lib/obstack.h: Update from GNU libc.
93759         * lib/obstack.c: Likewise.
93760
93761 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93762
93763         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93764
93765 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93766
93767         * lib/getusershell.c (setusershell): Use rewind rather than
93768         fseek/fseeko, to avoid configuration hassles with fseeko.
93769         Don't bother opening SHELLS_FILE if shellstream is NULL;
93770         it's not necessary.
93771
93772 2000-11-05  Jim Meyering  <meyering@lucent.com>
93773
93774         * lib/makepath.h (make_dir): Declare.
93775         * lib/makepath.c (make_dir): Remove `static' attribute.
93776         Tweak a comment.
93777
93778 2000-11-04  Jim Meyering  <meyering@lucent.com>
93779
93780         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93781
93782 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93783
93784         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93785         last one in a bucket, advance to the next bucket.
93786
93787 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93788
93789         * lib/fnmatch.c: Do not comment out all the code if we are using
93790         the GNU C library, because in some cases we are replacing buggy
93791         code in the GNU C library itself.
93792
93793 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93794
93795         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93796         (regex_compile): Catch bogus \(\1\).
93797
93798 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93799
93800         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93801         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93802         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93803
93804 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93805
93806         * lib/error.h, getline.h, modechange.h:
93807         Remove "2000" from Copyright line, as the file hasn't been
93808         changed this year other than in the copyright notice.
93809
93810         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93811         was changed this year.
93812
93813 2000-10-29  Jim Meyering  <meyering@lucent.com>
93814
93815         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93816         renaming.
93817         * m4/ls-mntd-fs.m4: Likewise
93818
93819 2000-10-29  Jim Meyering  <meyering@lucent.com>
93820
93821         * lib/xstat.in: Fix grammar in comment.
93822
93823 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93824
93825         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93826         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93827         doesn't define __restrict_arr.
93828
93829 2000-10-28  Jim Meyering  <meyering@lucent.com>
93830
93831         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93832         (jm_PREREQ_MEMCHR): New function.
93833
93834 2000-10-28  Jim Meyering  <meyering@lucent.com>
93835
93836         * lib/memchr.c: Update from libc.
93837         Adjust for portability:
93838         [HAVE_STDLIB_H]: Include stdlib.h.
93839         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93840         Undef __memchr, too.
93841         [!weak_alias]: Define __memchr to memchr.
93842
93843         * lib/regex.c: Update from libc.
93844         * lib/regex.h: Likewise.
93845         * lib/getopt1.c: Likewise.
93846         * lib/memcmp.c: Likewise.
93847
93848         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93849         Avoid using fseek, when possible -- it's broken by design.
93850         Patch by Ulrich Drepper.
93851
93852 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93853
93854         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93855         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93856         Giving in to popular pressure to shut up the compiler with casts.
93857
93858 2000-10-26  Jim Meyering  <meyering@lucent.com>
93859
93860         * lib/strftime.c: Update from libc.
93861
93862 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93863
93864         * regex.c: More `unsigned char' -> `re_char' changes.
93865         Also change several `int' into `re_wchar_t'.
93866         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93867         (PUSH_FAILURE_POINTER): Don't cast any more.
93868         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93869         We want GCC to complain, since this piece of code makes
93870         re_match non-reentrant, which *should* be fixed.
93871         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93872         (EXTEND_BUFFER): Use RETALLOC.
93873         (SET_LIST_BIT): Don't cast.
93874         (re_wchar_t): New type.
93875         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93876         that those two functions will always properly return.
93877         (IMMEDIATE_QUIT_CHECK): Cast to void.
93878         (analyse_first): Use recursion rather than an explicit stack.
93879         (re_compile_fastmap): Can't fail anymore.
93880         (re_search_2): Don't check re_compile_fastmap for failure.
93881         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93882         Now also sets the new value (passed in a new argument).
93883         (re_match_2_internal): Use it.
93884         Also, use a new var `reg' of type size_t when looping through regs
93885         rather than reuse the inappropriate `mcnt'.
93886
93887 2000-10-25  Jim Meyering  <meyering@lucent.com>
93888
93889         * lib/obstack.c: Update from libc.
93890
93891 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93892
93893         * regex.c (regex_compile): Change the way of handling a range from
93894         a char less than 256 to a char not less than 256.
93895
93896 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93897
93898         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93899         NT-Emacs only.
93900         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93901         so that re_search functions only quit when callers expect them to.
93902
93903 2000-10-23  Jim Meyering  <meyering@lucent.com>
93904
93905         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93906         wrong.  That set_locale call must not have any side effects.
93907         From Paul Eggert.
93908
93909 2000-10-22  Jim Meyering  <meyering@lucent.com>
93910
93911         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93912         [CYCLIC]: Remove now-unused definition.
93913
93914         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93915         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93916         Suggestion from Ulrich Drepper.
93917
93918 2000-10-21  Jim Meyering  <meyering@lucent.com>
93919
93920         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93921         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93922         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93923
93924 2000-10-21  Jim Meyering  <meyering@lucent.com>
93925
93926         * lib/dirname.c (memrchr): Declare if necessary.
93927         (dir_name): Remove the restriction that there be no
93928         trailing slashes.  Now, this code skips past them, effectively
93929         ignoring them.
93930         [TEST_DIRNAME] (main): New unit tests.
93931
93932         * lib/memrchr.c: New file from GNU libc.
93933         Undef __memrchr, too.
93934         [!weak_alias]: Define __memrchr to memrchr.
93935         Guard weak_alias use with `#ifdef weak_alias'.
93936
93937 2000-10-21  Jim Meyering  <meyering@lucent.com>
93938
93939         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93940         (dir_name): Use dir_name_r.
93941         * lib/dirname.h (dir_name_r): Declare it.
93942
93943 2000-10-17  Jim Meyering  <meyering@lucent.com>
93944
93945         * lib/quote.h (PARAMS): Define and use.
93946         Reported by Akim Demaille.
93947
93948         * lib/getopt.c: Update from libc.
93949
93950 2000-10-16  Jim Meyering  <meyering@lucent.com>
93951
93952         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93953         setlocale.
93954         From Jan Fedak.
93955
93956 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93957
93958         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93959
93960 2000-09-25  Jim Meyering  <meyering@lucent.com>
93961
93962         * lib/md5.h (rol): Define (from GnuPG).
93963
93964         * lib/sha.c: Give credit (GnuPG) where due.
93965         (M): Use rol rather than open-coding it.
93966         Add a FIXME comment.
93967
93968 2000-09-21  Jim Meyering  <meyering@lucent.com>
93969
93970         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93971         Reported by Michael Stone.
93972
93973 2000-09-20  Jim Meyering  <meyering@lucent.com>
93974
93975         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93976         (noinst_HEADERS): Add sha.h.
93977         Based on code from Scott G. Miller and from GnuPG.
93978
93979 2000-09-18  Jim Meyering  <meyering@lucent.com>
93980
93981         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93982         LIBS. Otherwise, everyone ends up linking with -lelf for some
93983         configurations.
93984         Reported by Mike Stone.
93985
93986 2000-09-15  Jim Meyering  <meyering@lucent.com>
93987
93988         * lib/regex.c: Update from libc.
93989
93990 2000-09-10  Jim Meyering  <meyering@lucent.com>
93991
93992         * lib/getopt.c (_getopt_internal): Update from glibc.
93993
93994 2000-09-09  Jim Meyering  <meyering@lucent.com>
93995
93996         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93997         think it should be used as a general replacement for isascii.
93998         * lib/fnmatch.c: Likewise.
93999         * lib/mbswidth.c: Likewise
94000         * lib/regex.c: Likewise.
94001
94002         Don't use atoi.
94003         * lib/userspec.c: Include sys/param.h and limits.h.
94004         Include xstrtol.h.
94005         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94006         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94007         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94008         UID, GID.  Check range.
94009
94010 2000-09-06  Jim Meyering  <meyering@lucent.com>
94011
94012         * lib/getopt.c (_getopt_internal): Update from glibc.
94013
94014 2000-08-30  Jim Meyering  <meyering@lucent.com>
94015
94016         * lib/strftime.c: Merge in changes from GNU libc.
94017
94018 2000-08-26  Jim Meyering  <meyering@lucent.com>
94019
94020         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94021         * m4/fpending.m4: New file.
94022
94023 2000-08-26  Jim Meyering  <meyering@lucent.com>
94024
94025         * lib/closeout.c: Include "__fpending.h".
94026         (close_stdout_status): Return right away if there's nothing to flush.
94027
94028         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94029         * lib/__fpending.c: New file.
94030         * lib/__fpending.h: New file.
94031
94032 2000-08-20  Jim Meyering  <meyering@lucent.com>
94033
94034         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94035         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94036         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94037
94038 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94039
94040         Improve fileutils installation on systems where running
94041         programs (like install) can't be unlinked.
94042         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94043         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94044
94045 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94046
94047         Standardize on "memory exhausted" instead of "Memory exhausted"
94048         or "virtual memory exhausted".
94049         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94050         "virtual memory exhausted".
94051         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94052         our own message.
94053         * lib/userspec.c (parse_user_spec): Likewise.
94054         * lib/bumpalloc.h: comment fix
94055         * lib/same.c, userspec.c: Include xalloc.h.
94056
94057         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94058         not char *const and pointing to a constant array.
94059         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94060         (xrealloc): Comment fix.
94061
94062         * lib/userspec.c (parse_user_spec):
94063         Don't translate a message until just before returning,
94064         to avoid unnecessary translation.
94065
94066 2000-08-07  Jim Meyering  <meyering@lucent.com>
94067
94068         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94069         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94070         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94071         getgroups.c, gethostname.c, getopt.h, group-member.c,
94072         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94073         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94074         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94075         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94076         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94077         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94078         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94079         yesno.c: Back out Copyright date changes for each file with no change
94080         this year.  This eases coordination with other programs using the same
94081         source code modules.  From Paul Eggert.
94082
94083 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94084
94085         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94086         not char, for compatibility with glibc 2.1.3 strftime.c.
94087
94088 2000-08-03  Greg McGary  <greg@mcgary.org>
94089
94090         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94091         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94092         (EXTEND_BUFFER): Use them.
94093
94094 2000-08-01  Jim Meyering  <meyering@lucent.com>
94095
94096         * lib/dirname.c (ISSLASH): Define.
94097         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94098         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94099         both `\' and `/' may be use as path separators.
94100         Based on a patch from Prashant TR.
94101
94102 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94103
94104         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94105         slot vector a constant, since it might get modified.
94106
94107 2000-07-31  Jim Meyering  <meyering@lucent.com>
94108
94109         * lib/xmalloc.c: Use `virtual memory exhausted', not
94110         `Memory exhausted'.
94111         * lib/obstack.c (print_and_abort): Likewise.
94112
94113 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94114
94115         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94116         buffer, so that the caller can always quote one small
94117         component of a "memory exhausted" message in slot 0.
94118         From a suggestion by Jim Meyering.
94119
94120 2000-07-30  Jim Meyering  <meyering@lucent.com>
94121
94122         * lib/makepath.c (make_path): Quote the other instance, too.
94123
94124         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94125         (STATIC_BUF_SIZE): Define.
94126         (quotearg_n_options): Use only statically allocated storage when
94127         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94128         than STATIC_BUF_SIZE.
94129
94130 2000-07-29  Jim Meyering  <meyering@lucent.com>
94131
94132         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94133         * lib/dirname.c (dir_name): Likewise.
94134
94135         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94136         `/'.
94137
94138         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94139         (dir_name): Assert that there are no trailing slashes.
94140
94141 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94142
94143         * lib/mbswidth.h (mbswidth): Add a flags argument.
94144         (mbswidth): New declaration.
94145         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
94146         * lib/mbswidth.c (mbswidth): Add a flags argument.
94147         (mbsnwidth): New function.
94148
94149 2000-07-24  Jim Meyering  <meyering@lucent.com>
94150
94151         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
94152
94153 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94154
94155         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
94156
94157 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94158
94159         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
94160         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
94161         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
94162         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
94163         invoke multibyte primitives.
94164
94165 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94166
94167         * lib/quotearg.c:
94168         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
94169         so that mbstate_t is always defined.
94170
94171         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
94172         be 1 in at least one GCC installation, and this configuration
94173         error is likely to be common.  Ignoring MB_LEN_MAX hurts
94174         performance on hosts that have mbrtowc but have only unibyte
94175         locales, but I assume these hosts are rare.
94176
94177 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94178
94179         * lib/mbswidth.c (_XOPEN_SOURCE):
94180         Don't define; this causes problems on Solaris 7.
94181         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94182
94183 2000-07-23  Jim Meyering  <meyering@lucent.com>
94184
94185         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94186         too: getgrgid, getpwuid, getuid.
94187
94188 2000-07-23  Jim Meyering  <meyering@lucent.com>
94189
94190         * lib/basename.c (base_name): Add an assertion.
94191
94192 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94193
94194         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94195         shadow its mbsinit function.
94196
94197 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94198
94199         * lib/mbswidth.h: New file.
94200         * lib/mbswidth.c: New file.
94201         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94202         (noinst_HEADERS): Add mbswidth.h.
94203
94204 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94205
94206         * lib/config.charset: Add support for FreeBSD. Improve support for
94207         HP-UX and IRIX 6.
94208
94209 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94210
94211         * m4/mbswidth.m4: New file.
94212         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94213
94214 2000-07-15  Jim Meyering  <meyering@lucent.com>
94215
94216         * lib/makepath.c: Include quote.h.
94217         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94218         corresponding argument in a `quote (...)' call.
94219         Give better diagnostics.
94220
94221         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94222         (noinst_HEADERS): Add quote.h.
94223
94224         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94225         from tar's src/misc.c.
94226         * lib/quote.h: New file.  Prototypes for same.
94227
94228 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94229
94230         From a suggestion by Bruno Haible.
94231         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94232         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94233         to decide whether to define the BeOS workaround macro;
94234         this adjusts to the change to AC_MBSTATE_T.
94235
94236 2000-07-14  Jim Meyering  <meyering@lucent.com>
94237
94238         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94239         jm_AC_TYPE_UINTMAX_T.
94240
94241 2000-07-13  Paul Eggert  <eggert@twinsun.com>
94242
94243         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
94244
94245         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
94246         quotearg_buffer_restyled): Add support for
94247         clocale_quoting_style.  Undo previous change to
94248         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
94249         and "{RIGHT QUOTATION MARK}" msgids.
94250
94251 2000-07-10  Paul Eggert  <eggert@twinsun.com>
94252
94253         From a suggestion by Bruno Haible.
94254         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94255         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94256         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94257         and mbstate_t, to a single-part test that simply defines mbstate_t.
94258         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94259         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94260
94261 2000-07-10  Jim Meyering  <meyering@lucent.com>
94262
94263         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94264
94265         * m4/gnu-source.m4: Output to confdefs.h directly.
94266         Suggestion from Akim Demaille.
94267
94268 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94269
94270         The old behavior of quoting `like this' doesn't look good with
94271         newer, ISO-style fonts.  See:
94272         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94273
94274         Instead, quote "like this" by default.  Let the translator
94275         tailor the locale-specific quoting behavior by providing
94276         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94277
94278         * lib/quotearg.c (N_): New macro.
94279         (gettext_default): New function.
94280         (quotearg_buffer_restyled): Use
94281         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94282         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94283
94284 2000-07-09  Jim Meyering  <meyering@lucent.com>
94285
94286         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94287         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94288
94289         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94290         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94291
94292 2000-07-09  Jim Meyering  <meyering@lucent.com>
94293
94294         * lib/Most files: Update copyright dates to include 2000.
94295
94296 2000-07-08  Jim Meyering  <meyering@lucent.com>
94297
94298         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94299         if not defined.
94300         (xgethostname): Remove now-unnecessary #ifdef.
94301         Move declaration of `err' into loop where it's used.
94302
94303 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94304         and Bruno Haible  <haible@clisp.cons.org>
94305
94306         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94307         only if the test for an object-type mbstate_t fails.  This
94308         prevents us from mistakenly reporting that mbstate_t is a
94309         system object type after we "#define mbstate_t int" to work
94310         around its lack.
94311
94312 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94313         and Bruno Haible  <haible@clisp.cons.org>
94314
94315         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94316
94317 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94318
94319         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94320         to strerror_r.
94321         Include <ctype.h> for use of isalpha.
94322
94323 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94324
94325         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94326         by allocating a larger buffer. Test the gethostname return value for
94327         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94328         returns an error and ENAMETOOLONG isn't defined.
94329
94330 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94331
94332         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94333         dimension.
94334
94335 2000-07-04  Jim Meyering  <meyering@lucent.com>
94336
94337         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94338         of the deprecated AC_CHECKING.
94339
94340 2000-07-04  Jim Meyering  <meyering@lucent.com>
94341
94342         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94343         Reported by Bruno Haible.
94344
94345 2000-07-04  Jim Meyering  <meyering@lucent.com>
94346
94347         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94348         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94349         lacks mbrtowc.
94350
94351 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94352
94353         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94354         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94355
94356 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94357         and Bruno Haible  <haible@clisp.cons.org>
94358
94359         * lib/quotearg.c (mbrtowc):
94360         Assign to *pwc, and return 1 only if result is nonzero.
94361         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94362
94363 2000-07-03  Jim Meyering  <meyering@lucent.com>
94364
94365         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94366
94367 2000-07-03  Jim Meyering  <meyering@lucent.com>
94368
94369         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94370         This is necessary to get a definition of e.g., UTMP_FILE on
94371         HP-UX 10.20.
94372         From Bob Proulx.
94373
94374 2000-07-02  Jim Meyering  <meyering@lucent.com>
94375
94376         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94377
94378         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94379         AC_LIBOBJ(function_name).
94380         * m4/chown.m4: Likewise.
94381         * m4/fnmatch.m4: Likewise.
94382         * m4/ftruncate.m4: Likewise.
94383         * m4/getgroups.m4: Likewise.
94384         * m4/getline.m4: Likewise.
94385         * m4/group-member.m4: Likewise.
94386         * m4/jm-macros.m4: Likewise.
94387         * m4/lstat.m4: Likewise.
94388         * m4/malloc.m4: Likewise.
94389         * m4/memcmp.m4: Likewise.
94390         * m4/nanosleep.m4: Likewise.
94391         * m4/putenv.m4: Likewise.
94392         * m4/realloc.m4: Likewise.
94393         * m4/regex.m4: Likewise.
94394         * m4/stat.m4: Likewise.
94395         * m4/strftime.m4: Likewise.
94396
94397 2000-07-02  Jim Meyering  <meyering@lucent.com>
94398
94399         * lib/quotearg.c (mbstate_t): Don't define here.
94400
94401 2000-07-02  Jim Meyering  <meyering@lucent.com>
94402
94403         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94404
94405 2000-07-01  Jim Meyering  <meyering@lucent.com>
94406
94407         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94408
94409 2000-07-01  Jim Meyering  <meyering@lucent.com>
94410
94411         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94412         problem.
94413
94414 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94415
94416         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94417         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94418
94419 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94420
94421         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94422         per change in ../m4/ls-mntd-fs.m4.
94423         (read_filesystem_list): Ignore symbolic links.
94424
94425 2000-06-29  Jim Meyering  <meyering@lucent.com>
94426
94427         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94428         for declaration of strcmp.
94429
94430         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94431
94432         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94433         Avoid warning by casting result to `char *' to remove `const'.
94434
94435 2000-06-28  Jim Meyering  <meyering@lucent.com>
94436
94437         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94438         included by quotearg.c, for which we perform this test.  From
94439         Bruno Haible.
94440
94441 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94442
94443         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94444         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94445         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94446
94447 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94448
94449         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94450
94451 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94452
94453         savedir now sets errno on failure and invokes xmalloc to get memory.
94454         Fix a couple of other minor bugs while we're at it.
94455
94456         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94457         (NAMLEN): Remove macro.
94458         (malloc, realloc): Remove decls.
94459         (stpcpy): Likewise.
94460         ("xalloc.h"): Include.
94461         (NAME_SIZE_DEFAULT): New macro.
94462         (savedir): Use xmalloc / xrealloc to allocate memory.
94463         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94464         Skip "" directory entries.
94465         Use strlen to calculate directory entry length, since the old method
94466         is rarely used these days and isn't worth supporting.
94467         Don't use a pointer after freeing it.
94468         Check for integer overflow when calculating allocation size.
94469         Use memcpy to copy entries, instead of stpcpy.
94470         Set errno properly when returning NULL.
94471         Check for readdir error.
94472
94473 2000-06-26  Jim Meyering  <meyering@lucent.com>
94474
94475         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94476
94477 2000-06-25  Jim Meyering  <meyering@lucent.com>
94478
94479         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94480         Linux header bug when _XOPEN_SOURCE is defined to 500.
94481
94482 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94483
94484         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94485         deficiency.
94486
94487 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94488
94489         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94490         Include xalloc.h.
94491         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94492
94493 2000-06-24  Jim Meyering  <meyering@lucent.com>
94494
94495         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94496         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94497         for which strerror does return char*, but which lacks a conveniently
94498         accessible declaration of the function.  If the compile-test says
94499         strerror_r doesn't work, then resort to a `run'-test that works on
94500         BeOS and segfaults on DEC Unix.
94501
94502 2000-06-24  Jim Meyering  <meyering@lucent.com>
94503
94504         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94505
94506 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94507
94508         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94509         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94510
94511 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94512
94513         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94514         (mbrtowc, mbstate_t): Define substitutes if
94515         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94516         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94517         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94518
94519 2000-06-23  Jim Meyering  <meyering@lucent.com>
94520
94521         * m4/afs.m4: Add missing AC_MSG_RESULT.
94522         Reported by Bruno Haible.
94523
94524         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94525         Suggestion from Bruno Haible.
94526
94527 2000-06-23  Jim Meyering  <meyering@lucent.com>
94528
94529         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94530
94531 2000-06-21  Jim Meyering  <meyering@lucent.com>
94532
94533         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94534
94535 2000-06-21  Jim Meyering  <meyering@lucent.com>
94536
94537         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94538         (noinst_HEADERS): Add getstr.h.
94539
94540         * lib/getline.c (getstr): Move into a separate file.
94541         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94542         the following changes: new parameter, delim2; both delim[12]
94543         parameters have type `int', not `char'.  The latter would lose
94544         with 8-bit delimiters.
94545         * lib/getstr.h: New file.
94546
94547 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94548
94549         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94550         than 1024, return a memory chunk of least possible size, instead
94551         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94552         Use free/xmalloc instead of xrealloc to avoid copying for very long
94553         paths.
94554
94555 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94556
94557         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94558         the empty string.
94559
94560 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94561
94562         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94563         address, not strdup.  Include <stdlib.h> and don't declare free().
94564
94565 2000-06-19  Jim Meyering  <meyering@lucent.com>
94566
94567         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94568
94569 2000-06-18  Jim Meyering  <meyering@lucent.com>
94570
94571         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94572
94573         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94574         `checking whether...' message to be consistent with that of the
94575         lstat test.
94576
94577 2000-06-18  Jim Meyering  <meyering@lucent.com>
94578
94579         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94580         Besides, these days every porting target provides a mkdir function.
94581
94582         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94583         needed. (this snippet comes from src/system.h).
94584
94585 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94586
94587         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94588
94589 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94590
94591         * lib/human.c (adjust_value): New function.
94592         (human_readable_inexact): Apply rounding style even when
94593         printing approximate values.
94594
94595 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94596
94597         * lib/human.c (human_readable_inexact): Allow an input block
94598         size that is not a multiple of the output block size, and vice versa.
94599         Reported by Piergiorgio Sartor.
94600
94601 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94602
94603         * lib/getdate.y (get_date): Apply relative times after time
94604         zone indicator, not before.  Reported by Todd A. Jacobs.
94605
94606 2000-06-13  Jim Meyering  <meyering@lucent.com>
94607
94608         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94609
94610         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94611
94612 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94613
94614         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94615
94616 2000-06-12  Jim Meyering  <meyering@lucent.com>
94617
94618         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94619         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94620         optional argument.
94621         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94622         the optional argument, `lib'.
94623
94624 2000-06-08  Jim Meyering  <meyering@lucent.com>
94625
94626         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94627
94628 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94629
94630         Rewrite largefile configuration so that we don't need to run
94631         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94632         AC_CANONICAL_HOST in configure.in -- jmm]
94633
94634         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94635         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94636         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94637         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94638         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94639         All uses changed.
94640         Instead of inspecting the output of getconf, try to compile the
94641         test program without and with the macro definition.
94642         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94643         for getconf.  Instead, check for the needed flags by compiling
94644         test programs.
94645
94646 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94647
94648         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94649
94650 2000-06-04  Jim Meyering  <meyering@lucent.com>
94651
94652         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94653         SunOS 4.1.4 for which gid_t is an unsigned type.
94654
94655 2000-06-03  Jim Meyering  <meyering@lucent.com>
94656
94657         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94658         now that autoconf requires that.
94659
94660         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94661         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94662         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94663
94664 2000-06-03  Jim Meyering  <meyering@lucent.com>
94665
94666         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94667
94668 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94669
94670         * m4/glibc21.m4: New file.
94671         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94672
94673 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94674
94675         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94676         newer, don't install charset.alias.
94677         * lib/config.charset: Change the Linux/glibc rules so they become empty
94678         on glibc-2.1 or newer.
94679
94680 2000-06-02  Jim Meyering  <meyering@lucent.com>
94681
94682         * lib/mountlist.c: Back out last change.  Instead, do this...
94683         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94684         me_dummy member using the same `ignore'-testing code.
94685         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94686         fs_type strings.
94687         From Mark D. Roth.
94688
94689 2000-05-29  Jim Meyering  <meyering@lucent.com>
94690
94691         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94692         mounts with the `ignore' attribute.  Based on a patch from
94693         Mark D. Roth.
94694
94695 2000-05-28  Jim Meyering  <meyering@lucent.com>
94696
94697         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94698         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94699         * m4/stat.m4: Likewise.
94700         * m4/lstat.m4: Likewise.
94701         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94702
94703         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94704         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94705
94706 2000-05-26  Jim Meyering  <meyering@lucent.com>
94707
94708         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94709
94710 2000-05-24  Jim Meyering  <meyering@lucent.com>
94711
94712         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94713         autoconf requires that.
94714         * m4/lib-check.m4: Likewise.
94715         * m4/jm-macros.m4: Likewise.
94716         * m4/strftime.m4: Likewise.
94717
94718         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94719         AC_CHECK_DECLS, now that autoconf requires that.
94720
94721 2000-05-22  Jim Meyering  <meyering@lucent.com>
94722
94723         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94724         * m4/lstat.m4: Likewise.
94725
94726 2000-05-22  Jim Meyering  <meyering@lucent.com>
94727
94728         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94729
94730 2000-05-20  Jim Meyering  <meyering@lucent.com>
94731
94732         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94733         (jm_PREREQ): Use it.
94734
94735 2000-05-18  Jim Meyering  <meyering@lucent.com>
94736
94737         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94738         back, too, since it may have been modified by allocate_entry.
94739         (hash_delete): Rewrite to use neither the assignment operator
94740         nor the comma operator in an if-expression.
94741
94742 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94743
94744         * lib/closeout.c:
94745         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94746         Remove; no longer needed.
94747         "quotearg.h": Add include.
94748         (file_name): Do not bother to explicitly initialize to NULL; it's less
94749         efficient on some hosts.
94750         (close_stdout_status): Remove test as to whether stdout was already
94751         closed; it breaks for the case "echo x | sort >&-".
94752         Quote file name colons.
94753         Do not assume that _("write error") lacks format strings.
94754
94755 2000-05-15  Jim Meyering  <meyering@lucent.com>
94756
94757         * lib/version-etc.c (version_etc_copyright): Update the copyright
94758         string used in all --version output.
94759
94760 2000-05-14  Jim Meyering  <meyering@lucent.com>
94761
94762         * lib/closeout.c (close_stdout_set_file_name): New function.
94763         (close_stdout_status): Use new file-scoped global.
94764         Return right away if fstat says the stdout file descriptor is invalid.
94765         * lib/closeout.h (close_stdout_set_file_name): Declare.
94766
94767 2000-05-10  Jim Meyering  <meyering@lucent.com>
94768
94769         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94770         (close_stdout_set_status): New function.
94771         * lib/closeout.h (close_stdout_set_status): Declare.
94772
94773 2000-05-09  Jim Meyering  <meyering@lucent.com>
94774
94775         * m4/gettext.m4: Rename this...
94776         * m4/libintl.m4: ...to this.
94777
94778 2000-05-08  Jim Meyering  <meyering@lucent.com>
94779
94780         * lib/long-options.c: Don't include closeout.h.
94781         (parse_long_options): Don't call close_stdout for --version.
94782
94783 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94784
94785         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94786         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94787         2.1.3 bug.  This avoids a clash when files like regex.c define
94788         _GNU_SOURCE.
94789
94790 2000-05-06  Jim Meyering  <meyering@lucent.com>
94791
94792         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94793         (AC_REPLACE_FUNCS): Add strnlen.
94794
94795         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94796         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94797
94798         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94799         AC_SEARCH_LIBS call for nanosleep.
94800         (LIB_NANOSLEEP): Set and AC_SUBST.
94801
94802 2000-05-06  Jim Meyering  <meyering@lucent.com>
94803
94804         * lib/strnlen.c: Undefine __strnlen and strnlen.
94805         [!weak_alias]: Define __strnlen to strnlen.
94806
94807         * lib/atexit.c: New file, from libiberty.
94808
94809 2000-05-06  Jim Meyering  <meyering@lucent.com>
94810
94811         * lib/closeout.c (close_stdout_status): Also check for errors on the
94812         stderr stream.
94813
94814 2000-05-05  Jim Meyering  <meyering@lucent.com>
94815
94816         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94817         AC_SEARCH_LIBS call for clock_gettime.
94818         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94819
94820         * m4/search-libs.m4: Update from autoconf.
94821
94822         su doesn't work on Solaris 2.6.
94823         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94824         <shadow.h>.  Reported by Dragos Harabor.
94825
94826 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94827
94828         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94829         memcpy instead of xmalloc, xrealloc, path_concat.
94830         (locale_charset): Treat empty environment variables as absent.
94831         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94832
94833 2000-05-04  Jim Meyering  <meyering@lucent.com>
94834
94835         * lib/getopt.c: Update from glibc.
94836         * lib/obstack.c: Likewise.
94837         * lib/obstack.h: Likewise.
94838         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94839         file
94840
94841         * lib/regex.h: Likewise.
94842         * lib/strndup.c: Likewise.
94843         * lib/strnlen.c: New file, from glibc.
94844
94845 2000-05-03  Jim Meyering  <meyering@lucent.com>
94846
94847         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94848
94849 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94850
94851         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94852         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94853         compile-time test, rather than inspecting host and OS, to
94854         decide whether to define _LARGEFILE_SOURCE.
94855
94856 2000-05-01  Jim Meyering  <meyering@lucent.com>
94857
94858         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94859
94860         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94861         Based on a patch from Bruno Haible.
94862
94863 2000-05-01  Jim Meyering  <meyering@lucent.com>
94864
94865         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94866
94867 2000-04-29  Jim Meyering  <meyering@lucent.com>
94868
94869         * lib/path-concat.c: Declare strdup only if it's not defined.
94870         * lib/canon-host.c: Likewise.
94871
94872 2000-04-28  Jim Meyering  <meyering@lucent.com>
94873
94874         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94875         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94876         is included first, then limits.h is included by locale.h by libintl.h.
94877         From John David Anglin.
94878
94879 2000-04-25  Jim Meyering  <meyering@lucent.com>
94880
94881         * lib/makepath.c (S_IRWXUGO): Define.
94882         (make_path): Always perform explicit chmod if MODE specifies any
94883         of the `special' permission bits.  Prompted by a bug report against
94884         install from Mate Wierdl and Joost van Baal.
94885
94886 2000-04-18  Jim Meyering  <meyering@lucent.com>
94887
94888         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94889         (jm_PREREQ): Use it.
94890
94891 2000-04-18  Jim Meyering  <meyering@lucent.com>
94892
94893         * lib/README: New file.
94894
94895         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94896         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94897
94898 2000-04-17  Jim Meyering  <meyering@lucent.com>
94899
94900         Get it right :-)
94901         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94902         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94903         Suggestion from Akim Demaille.
94904
94905 2000-04-17  Jim Meyering  <meyering@lucent.com>
94906
94907         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94908         the definition of it to rpl_strftime also defined-away the system's
94909         declaration.
94910
94911 2000-04-15  Jim Meyering  <meyering@lucent.com>
94912
94913         Use `C' to denote so-called `contiguous' files, the same way
94914         that tar does.
94915         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94916         (ftypelet): Use S_ISCTG.
94917         From Michael Deutschmann.
94918
94919 2000-04-14  Jim Meyering  <meyering@lucent.com>
94920
94921         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94922         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94923         clobbered.
94924
94925 2000-04-14  Jim Meyering  <meyering@lucent.com>
94926
94927         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94928
94929 2000-04-13  Jim Meyering  <meyering@lucent.com>
94930
94931         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94932         AH_VERBATIM to insert required #ifndef into config.h.in.
94933         Suggestion from Akim Demaille.
94934
94935 2000-04-12  Jim Meyering  <meyering@lucent.com>
94936
94937         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94938         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94939         Christian Krackowizer.
94940
94941         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94942         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94943         (AC_SYS_LARGEFILE): Require.
94944         (AM_C_PROTOTYPES): Require.
94945
94946 2000-04-08  Jim Meyering  <meyering@lucent.com>
94947
94948         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94949         names don't conflict.  Reported by Eli Zaretskii.
94950
94951 2000-04-07  Jim Meyering  <meyering@lucent.com>
94952
94953         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94954         sys/types.h, to work around system header problems on AIX 3.2.5.
94955         From Bruno Haible.
94956
94957 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94958
94959         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94960         bug.  Deal with the different error behavior of Irix iconv.
94961
94962 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94963
94964         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94965         IRIX if the installer said otherwise.
94966
94967 2000-04-05  Jim Meyering  <meyering@lucent.com>
94968
94969         Portability tweaks required for ultrix4.3.
94970         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94971         (jm_CHECK_DECLS): Add getutent to the list of functions.
94972         (_jm_DECL_HEADERS): Add utmpx.h.
94973         From John David Anglin.
94974
94975         * m4/strftime.m4: Back out the 2000-04-02 change.
94976         Instead of that change, simply undefine putenv in the test program.
94977
94978 2000-04-05  Jim Meyering  <meyering@lucent.com>
94979
94980         Portability tweaks required for ultrix4.3.
94981         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94982         getutent.
94983         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94984         * lib/canon-host.c: Declare strdup.
94985         * lib/path-concat.c: Likewise.
94986         From John David Anglin.
94987
94988 2000-04-04  Jim Meyering  <meyering@lucent.com>
94989
94990         Be more DOS 8.3-friendly.
94991         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94992         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94993         * lib/Makefile.am: Reflect renaming.
94994         Reported by Eli Zaretskii.
94995
94996         Use a temporary file name that won't clash with `charset.alias'
94997         in the DOS 8.3 name space.
94998         * lib/Makefile.am (charset_tmp): Define.
94999         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
95000         (uninstall-local): Likewise.
95001         Reported by Eli Zaretskii.
95002
95003 2000-04-03  Jim Meyering  <meyering@lucent.com>
95004
95005         * m4/gettext.m4: Fix typo in comment.
95006
95007         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95008         textutils/configure.in).  Suggestion from Paul Eggert.
95009         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95010
95011 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95012
95013         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95014         variable in the shell rather than using putenv, which isn't
95015         portable.  This avoids the configure-time inter-test dependency
95016         on the potentially-renamed putenv function.
95017
95018 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95019
95020         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95021         before checking struct stat.st_blksize, so that
95022         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95023
95024 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95025
95026         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95027         since strftime.c uses HAVE_STRFTIME to decide whether to use
95028         the underlying strftime.
95029
95030 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95031
95032         * lib/time/strftime.c (my_strftime): Make sure we call the system
95033         strftime, not ourselves, when invoking the underlying strftime.
95034
95035 2000-03-24  Jim Meyering  <meyering@lucent.com>
95036
95037         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95038         (charset_alias): Define.
95039         (install-exec-local): Factor out common code.
95040         (uninstall-local): Split lines longer than 80.
95041         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95042         (SUFFIXES): Define.
95043         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95044         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95045
95046 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95047
95048         * lib/config.charset: Output a line containing "Packages using this
95049         file".
95050         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95051         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95052         ref-del.sed): New rules.
95053
95054 2000-03-17  Jim Meyering  <meyering@lucent.com>
95055
95056         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95057         Otherwise, include <strings.h>
95058
95059 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95060
95061         * lib/unicodeio.c (utf8_wctomb): New function.
95062         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95063         format instead of in UCS-4 with platform dependent endianness.
95064
95065 2000-03-10  Jim Meyering  <meyering@lucent.com>
95066
95067         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95068         From Marco Franzen.
95069
95070 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95071
95072         * lib/savedir.c (savedir): Work even if directory size is
95073         negative; this can happen with some screwy NFS configurations.
95074
95075 2000-03-06  Jim Meyering  <meyering@lucent.com>
95076
95077         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95078         if it's NULL (because we ran out of memory).  From Bruno Haible.
95079
95080 2000-03-05  Jim Meyering  <meyering@lucent.com>
95081
95082         * lib/localcharset.c ("path-concat.h"): Include.
95083         (get_charset_aliases): Use path_concat instead of ANSI string
95084         concatenation.
95085
95086         * lib/unicodeio.h (PARAMS): Define.
95087         Use it to guard prototype.
95088
95089 2000-03-04  Jim Meyering  <meyering@lucent.com>
95090
95091         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95092         for lib/localcharset.c.
95093
95094 2000-03-04  Jim Meyering  <meyering@lucent.com>
95095
95096         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95097         installing into it.
95098         (uninstall-local): Uncomment this rule so `make distcheck' works
95099         once again.
95100
95101         * lib/unicodeio.c (<errno.h>): Include it.
95102         (errno): Declare if not defined.
95103
95104         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95105
95106         * lib/config.charset: New version, incorporating remarks from a linux
95107         i18n mailing list.  From Bruno Haible.
95108
95109 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95110
95111         * m4/codeset.m4: New file.
95112         * m4/iconv.m4: New file.
95113         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95114
95115 2000-03-03  Jim Meyering  <meyering@lucent.com>
95116
95117         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95118
95119 2000-03-02  Jim Meyering  <meyering@lucent.com>
95120
95121         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95122         the messages come out on separate lines.
95123
95124         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95125         rather than jm_CHECK_DECLARATIONS.
95126         * m4/decl.m4: Remove now-unused file.
95127
95128         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95129         geteuid.
95130
95131 2000-03-02  Jim Meyering  <meyering@lucent.com>
95132
95133         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95134
95135 2000-03-01  Jim Meyering  <meyering@lucent.com>
95136
95137         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95138         * lib/unicodeio.c: Likewise.
95139
95140 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95141
95142         * lib/config.charset: New file.
95143         * lib/localcharset.c: New file.
95144         * lib/unicodeio.h, lib/unicodeio.c: New files.
95145         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
95146         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
95147         (noinst_HEADERS): Add unicodeio.h.
95148         (all-local, install-exec-local, charset.alias): New targets.
95149
95150 2000-02-28  Paul Eggert  <eggert@twinsun.com>
95151
95152         * lib/quotearg.c (ALERT_CHAR): New macro.
95153         (quotearg_buffer_restyled): Use it.
95154
95155 2000-02-27  Jim Meyering  <meyering@lucent.com>
95156
95157         * m4/check-decl.m4: Add getenv to the list.
95158
95159 2000-02-27  Jim Meyering  <meyering@lucent.com>
95160
95161         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
95162         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
95163
95164         * lib/backupfile.c: Guard inclusion of stdlib.h with
95165         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
95166         Declare malloc if needed.
95167
95168         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
95169         `#ifndef HAVE_DECL..'
95170         now that autoconf always defines the HAVE_DECL_ symbols.
95171         * lib/human.c: Likewise.
95172         * lib/same.c: Likewise.
95173         * lib/strtoumax.c: Likewise.
95174
95175         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
95176         declaration check was not run.
95177         * lib/hash.c: Likewise.
95178         * lib/human.c: Likewise.
95179         * lib/same.c: Likewise.
95180         * lib/strtoumax.c: Likewise.
95181
95182         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95183         `.', then first look up the entire `.'-containing string as a login
95184         name.
95185
95186 2000-02-23  Jim Meyering  <meyering@lucent.com>
95187
95188         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95189         in place of my hack.
95190
95191 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95192
95193         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95194         (textint): New typedef.
95195         (parser_control): Member year changed from int to textint.
95196         All uses changed.
95197         (YYSTYPE): Removed; replaced by %union with int and textint members.
95198         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95199         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95200         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95201         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95202         (date, number, to_year): Use width of number in digits, not its value,
95203         to determine whether it's a 2-digit year, or a 2-digit time.
95204         (yylex): Store number of digits of numeric tokens.
95205         Reported by John Kendall.
95206
95207         (parser_control): Changed from struct parser_control to typedef (for
95208         consistency).  All uses changed.
95209
95210         (tID): Removed; not used.
95211         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95212
95213 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95214
95215         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95216         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95217
95218 2000-02-12  Jim Meyering  <meyering@lucent.com>
95219
95220         * lib/userspec.c (ISDIGIT): Define it.
95221         (isdigit): Remove definition.
95222         (is_number): Use ISDIGIT, not isdigit.
95223         <libintl.h>: Include.
95224         (_ and N_): Define.
95225         (parse_user_spec): Mark translatable strings.
95226
95227 2000-02-10  Jim Meyering  <meyering@lucent.com>
95228
95229         With these changes, nanosleep.[ch] are finally enough like the other
95230         lib/* replacement files to compile on a few more losing systems.
95231
95232         * lib/nanosleep.h: Don't include config.h.
95233         Remove prototype from declaration of nanosleep.
95234         (PARAMS): Remove now-unneeded definition.
95235         * lib/nanosleep.c: #undef nanosleep.
95236         (rpl_nanosleep): Rename from nanosleep.
95237
95238 2000-02-10  Jim Meyering  <meyering@lucent.com>
95239
95240         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
95241         gnu_nanosleep to rpl_nanosleep.
95242
95243 2000-02-09  Jim Meyering  <meyering@lucent.com>
95244
95245         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
95246         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
95247
95248 2000-02-08  Akim Demaille  <akim@epita.fr>
95249
95250         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
95251         `[' and `]' and remove uses of `changequote'.
95252         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
95253         (AC_SYS_LARGEFILE): Likewise.
95254         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95255         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95256         of changequote.
95257         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95258         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95259         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95260         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95261
95262 2000-02-05  Jim Meyering  <meyering@lucent.com>
95263
95264         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95265         Remove explicit use of AC_HEADER_TIME.  It is required by
95266         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95267         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95268         in autoconf whereby the expansion of the latter ended up preceding
95269         the expansion of its prerequisite, AC_HEADER_TIME.
95270         Reported by Volker Borchert.
95271
95272 2000-02-03  Jim Meyering  <meyering@lucent.com>
95273
95274         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95275
95276 2000-02-03  Jim Meyering  <meyering@lucent.com>
95277
95278         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95279         rather than with `#if HAVE_UTMPNAME'.
95280
95281 2000-02-02  Jim Meyering  <meyering@lucent.com>
95282
95283         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95284         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95285         Reported by Eli Zaretskii.
95286
95287 2000-02-01  Jim Meyering  <meyering@lucent.com>
95288
95289         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95290
95291 2000-01-31  Jim Meyering  <meyering@lucent.com>
95292
95293         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95294         functions.  Add the time.h and sys/time.h headers along with the
95295         AC_REQUIRE'ment of AC_HEADER_TIME.
95296
95297 2000-01-31  Jim Meyering  <meyering@lucent.com>
95298
95299         * lib/nanosleep.h (nanosleep): Guard declaration with
95300         `#if ! HAVE_DECL_NANOSLEEP'.
95301         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95302         the declaration in that vendor's sys/timers.h.
95303         Reported by Christian Krackowizer.
95304
95305         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95306         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95307         (ISPRINT): Likewise.
95308         Reported by Tom Tromey.
95309
95310 2000-01-30  Jim Meyering  <meyering@lucent.com>
95311
95312         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95313
95314         * m4/prereq.m4 (utmp_includes): Define.
95315         Check for ut_user and ut_name members in both struct utmpx
95316         and struct utmp.
95317
95318 2000-01-30  Jim Meyering  <meyering@lucent.com>
95319
95320         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95321         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95322         header files where only utmpx.ut_user is declared.
95323
95324         * lib/readutmp.h (UT_USER): Define.
95325
95326 2000-01-29  Jim Meyering  <meyering@lucent.com>
95327
95328         * m4/lib-check.m4: New file containing library-related checks from
95329         fileutils and sh-utils (textutils had none).
95330
95331 2000-01-28  Jim Meyering  <meyering@lucent.com>
95332
95333         * m4/perl.m4: Change format of warning message to look more like that
95334         from the missing script.  Suggestion from François Pinard.
95335
95336 2000-01-25  Jim Meyering  <meyering@lucent.com>
95337
95338         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95339         well as time.h in the compile check.
95340         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95341         Fix typo in cross-compiling case: s/yes/no/.
95342
95343 2000-01-23  Jim Meyering  <meyering@lucent.com>
95344
95345         * m4/jm-macros.m4: Move df-related tests here from
95346         fileutils/configure.in
95347
95348         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95349         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95350
95351         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95352         s/space/ac_fsusage_space/.
95353         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95354
95355         * m4/ftruncate.m4: New file (derived from part of
95356         fileutils/configure.in).
95357         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95358         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95359
95360         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95361         AC_SUBST these here, rather than just in sh-util/configure.in, so
95362         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95363         all the same.
95364         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95365         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95366         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95367         (AC_SUBST(POW_LIBM)): Likewise.
95368         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95369
95370 2000-01-23  Jim Meyering  <meyering@lucent.com>
95371
95372         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95373         obstack.c.
95374
95375 2000-01-22  Jim Meyering  <meyering@lucent.com>
95376
95377         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95378
95379         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95380
95381         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95382         configure.in
95383         (AC_CHECK_HEADERS): Likewise for sh-utils.
95384         (AC_CHECK_HEADERS): Likewise for textutils.
95385         Merge the three lists of headers.
95386
95387         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95388         from fileutils' configure.in.
95389
95390         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95391         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95392         check-decl.m4.
95393
95394         * m4/check-decl.m4: Use #if rather than #ifdef.
95395         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95396         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95397         (_jm_DECL_HEADERS): Define new function.
95398         (jm_CHECK_DECLARATIONS): Require it.
95399
95400 2000-01-22  Jim Meyering  <meyering@lucent.com>
95401
95402         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95403         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95404         Required for some AIX systems.  Reported by Christian Krackowizer.
95405         [TESTING] (main): New function.
95406
95407         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95408         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95409         letters.
95410
95411         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95412         iswprint.
95413
95414         * lib/strverscmp.c (ISDIGIT): Define.
95415         (strverscmp): Use ISDIGIT, not isdigit.
95416
95417 2000-01-19  Jim Meyering  <meyering@lucent.com>
95418
95419         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95420         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95421         defines `struct timespec' in <sys/time.h>
95422
95423         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95424         Thanks to Akim for explaining.
95425
95426 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95427
95428         * lib/nanosleep.c (nanosleep):
95429         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95430         POSIX.1 doesn't require SA_INTERRUPT and some systems
95431         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95432         it's been part of POSIX.1 since day 1 (in 1988).
95433
95434 2000-01-17  Jim Meyering  <meyering@lucent.com>
95435
95436         * lib/interlock: Remove unused file.  Reported by François Pinard.
95437
95438 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95439
95440         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95441         alert, backslash, formfeed, and vertical tab unnecessarily in
95442         shell quoting style.
95443
95444 2000-01-16  Jim Meyering  <meyering@lucent.com>
95445
95446         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95447         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95448         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95449         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95450
95451 2000-01-16  Jim Meyering  <meyering@lucent.com>
95452
95453         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95454         because the latter didn't work.
95455
95456 2000-01-15  Jim Meyering  <meyering@lucent.com>
95457
95458         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95459         (AC_REPLACE_FUNCS): Add memcpy and memset.
95460         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95461         Add strpbrk.
95462         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95463
95464 2000-01-12  Jim Meyering  <meyering@lucent.com>
95465
95466         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95467         (jm_PREREQ): Use it.
95468         (jm_PREREQ_READUTMP): New macro.
95469         (jm_PREREQ): Use it.
95470
95471 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95472
95473         Quote multibyte characters correctly.
95474         * m4/c-bs-a.m4: New file.
95475         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95476         (jm_PREREQ): Use it.
95477
95478 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95479
95480         * m4/uintmax_t.m4: Port to autoconf 2.13.
95481
95482 2000-01-08  Jim Meyering  <meyering@ascend.com>
95483
95484         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95485         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95486
95487 2000-01-04  Jim Meyering  <meyering@ascend.com>
95488
95489         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95490         jm_STRUCT_DIRENT_D_TYPE.
95491         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95492         jm_STRUCT_DIRENT_D_INO.
95493         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95494         jm_STRUCT_UTIMBUF.
95495         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95496         renamings.
95497         * m4/utime.m4: Likewise.
95498
95499         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95500         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95501
95502 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95503
95504         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95505         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95506
95507 2000-01-02  Jim Meyering  <meyering@ascend.com>
95508
95509         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95510         remember if this is necessary.
95511
95512 1999-12-26  Jim Meyering  <meyering@ascend.com>
95513
95514         * m4/jm-macros.m4: Use it here.
95515         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95516
95517 1999-12-23  Jim Meyering  <meyering@ascend.com>
95518
95519         * m4/jm-macros.m4: Check for clock_gettime (moved from
95520         fileutils/configure.in)
95521         Check for gettimeofday.
95522
95523 1999-12-20  Jim Meyering  <meyering@ascend.com>
95524
95525         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95526         autoconf-2.14a-1999-12-20.
95527
95528 1999-12-19  Jim Meyering  <meyering@ascend.com>
95529
95530         * m4/lstat-slash.m4: New file.
95531         * m4/jm-macros.m4: Use the new macro:
95532         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95533
95534 1999-12-07  Jim Meyering  <meyering@ascend.com>
95535
95536         * m4/perl.m4: Require that File::Compare be available, too.
95537         Too many systems seem to lack it.
95538
95539         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95540         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95541
95542 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95543
95544         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95545         problem with the QNX 4.25 shell, which doesn't propagate exit
95546         status of failed commands inside shell assignments.
95547
95548 1999-11-17  Jim Meyering  <meyering@ascend.com>
95549
95550         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95551
95552 1999-11-07  Jim Meyering  <meyering@ascend.com>
95553
95554         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95555
95556 1999-11-06  Jim Meyering  <meyering@ascend.com>
95557
95558         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95559         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95560
95561 1999-11-05  Jim Meyering  <meyering@ascend.com>
95562
95563         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95564         configure.in of textutils, fileutils, and sh-utils into this one
95565         (shared between those packages) file.
95566         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95567         AC_STRUCT_ST_BLKSIZE.
95568
95569 1999-11-03  Jim Meyering  <meyering@ascend.com>
95570
95571         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95572         of AC_CHECK_TYPE checks includes unistd.h.
95573         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95574         Suggestion from Akim Demaille.
95575
95576 1999-10-30  Jim Meyering  <meyering@ascend.com>
95577
95578         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95579         m4-quoted string.
95580         * m4/ls-mntd-fs.m4: Likewise.
95581         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95582         * m4/jm-winsz1.m4: Likewise.
95583
95584         * m4/const.m4: Remove file, since the fix made it into the experimental
95585         version of autoconf.
95586         * m4/mktime.m4: Likewise.
95587
95588         * m4/check-type.m4: Remove file, now that the latest version of
95589         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95590
95591         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95592         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95593         AC_CHECK_TYPE.
95594
95595 1999-10-04  Jim Meyering  <meyering@ascend.com>
95596
95597         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95598
95599 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95600
95601         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95602         2.95.1 bug with HP-UX 10.20.
95603
95604 1999-09-17  Jim Meyering  <meyering@ascend.com>
95605
95606         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95607         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95608         due to missing strdup (against sh-utils-2.0).
95609
95610 1999-08-29  Jim Meyering  <meyering@ascend.com>
95611
95612         * m4/jm-macros.m4: Require jm_BISON.
95613         * m4/bison.m4: New file.
95614
95615 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95616
95617         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95618         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95619
95620 1999-08-05  Jim Meyering  <meyering@ascend.com>
95621
95622         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95623         to avoid conflicts with `conftest' on 8+3 filesystems.
95624         Suggestion from Eli Zaretskii.
95625
95626 1999-08-04  Jim Meyering  <meyering@ascend.com>
95627
95628         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95629         fileutils and sh-utils (textutils's getline test was inadequate).
95630         (AM_FUNC_GETLINE): Run this test.
95631         (AC_CHECK_FUNCS): Check for getdelim.
95632         Reported by Bob Proulx.
95633
95634 1999-08-02  Jim Meyering  <meyering@ascend.com>
95635
95636         * m4/jm-macros.m4: Add a comment.
95637
95638 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95639
95640         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95641         <inttypes.h> defines strtoumax as a macro (and not as a
95642         function).
95643
95644 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95645
95646         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95647         that we can shift, multiply and divide unsigned long long
95648         values; Ultrix cc can't do it.
95649
95650 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95651
95652         * m4/mktime.m4: New file, which is a preview of what should appear
95653         in the next public autoconf release.
95654
95655 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95656
95657         * m4/lfs.m4: Remove this file.
95658         * m4/largefile.m4: New file.  It contains the old contents of
95659         lfs.m4, except that all names with prefix AC_LFS have been
95660         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95661         compatible with future autoconf versions.  Also, some minor m4
95662         quoting problems have been fixed.
95663
95664 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95665
95666         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95667         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95668         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95669         and simplify the shell code.
95670
95671 1999-08-01  Jim Meyering  <meyering@ascend.com>
95672
95673         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95674         m4.
95675
95676 1999-07-20  Jim Meyering  <meyering@ascend.com>
95677
95678         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95679
95680 1999-07-15  Jim Meyering  <meyering@ascend.com>
95681
95682         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95683
95684 1999-05-22  Jim Meyering  <meyering@ascend.com>
95685
95686         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95687
95688 1999-05-20  Jim Meyering  <meyering@ascend.com>
95689
95690         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95691         Add a colon after each `then' in case $4 is empty.
95692
95693 1999-05-16  Jim Meyering  <meyering@ascend.com>
95694
95695         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95696
95697 1999-05-10  Jim Meyering  <meyering@ascend.com>
95698
95699         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95700
95701         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95702         AC_FUNC_MKTIME.
95703
95704 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95705
95706         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95707
95708 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95709
95710         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95711         not CPPFLAGS, so that linking works correctly in IRIX.
95712
95713 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95714
95715         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95716
95717 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95718
95719         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95720         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95721         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95722         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95723         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95724
95725         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95726
95727 1999-04-20  Jim Meyering  <meyering@ascend.com>
95728
95729         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95730         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95731         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95732
95733 1999-04-18  Jim Meyering  <meyering@ascend.com>
95734
95735         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95736         * m4/jm-macros.m4: Use it.
95737
95738 1999-04-06  Jim Meyering  <meyering@ascend.com>
95739
95740         * m4/strftime.m4: Remove test for %f.
95741
95742 1999-03-29  Jim Meyering  <meyering@ascend.com>
95743
95744         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95745         superset of the AC_TYPE_* checks in the textutils, fileutils,
95746         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95747         AC_TYPE_PID_T.
95748
95749 1999-03-28  Jim Meyering  <meyering@ascend.com>
95750
95751         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95752         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95753         replaced e.g., in the *.sh files of the sh-utils.
95754
95755 1999-03-20  Jim Meyering  <meyering@ascend.com>
95756
95757         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95758         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95759         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95760
95761 1999-03-19  Jim Meyering  <meyering@ascend.com>
95762
95763         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95764
95765 1999-03-12  Jim Meyering  <meyering@ascend.com>
95766
95767         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95768
95769 1999-03-07  Jim Meyering  <meyering@ascend.com>
95770
95771         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95772         declared.
95773
95774 1999-02-17  Jim Meyering  <meyering@ascend.com>
95775
95776         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95777         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95778
95779 1999-02-07  Jim Meyering  <meyering@ascend.com>
95780
95781         * m4/group-member.m4: New file -- extracted from sh-utils'
95782         configure.in.
95783
95784         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95785         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95786
95787 1999-02-06  Jim Meyering  <meyering@ascend.com>
95788
95789         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95790         * m4/fnmatch.m4: Likewise.
95791         * m4/getgroups.m4: Likewise.
95792         * m4/lstat.m4: Likewise.
95793         * m4/malloc.m4: Likewise.
95794         * m4/putenv.m4: Likewise.
95795         * m4/realloc.m4: Likewise.
95796         * m4/regex.m4: Likewise.
95797         * m4/stat.m4: Likewise.
95798         * m4/strftime.m4: Likewise.
95799         Suggestion from Alain Magloire.
95800
95801         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95802         * m4/fnmatch.m4: Likewise.
95803         * m4/getgroups.m4: Likewise.
95804         * m4/getline.m4: Likewise.
95805         * m4/lstat.m4: Likewise.
95806         * m4/malloc.m4: Likewise.
95807         * m4/memcmp.m4: Likewise.
95808         * m4/putenv.m4: Likewise.
95809         * m4/realloc.m4: Likewise.
95810         * m4/regex.m4: Likewise.
95811         * m4/stat.m4: Likewise.
95812         * m4/strftime.m4: Likewise.
95813         Suggestion from Alain Magloire.
95814
95815         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95816         an argument.
95817
95818         * m4/regex.m4: Add a run-time Test for proper operation of
95819         re_compile_pattern.
95820
95821 1999-01-31  Jim Meyering  <meyering@ascend.com>
95822
95823         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95824
95825 1999-01-30  Jim Meyering  <meyering@ascend.com>
95826
95827         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95828
95829         * m4/jm-mktime.m4: Make this a wrapper around the official
95830         AM_FUNC_MKTIME rather than my private copy, now that the official one
95831         is up to date.
95832         * m4/mktime.m4: Remove file.
95833
95834         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95835         * m4/uptime.m4: Likewise.
95836         * m4/uintmax_t.m4: Likewise.
95837
95838 1999-01-28  Jim Meyering  <meyering@ascend.com>
95839
95840         * m4/jm-macros.m4: Use jm_AFS.
95841         * m4/afs.m4: New file (from fileutils' configure.in).
95842
95843         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95844         * m4/chown.m4: Likewise.
95845         * m4/d-ino.m4: Likewise.
95846         * m4/d-type.m4: Likewise.
95847         * m4/fnmatch.m4: Likewise.
95848         * m4/getgroups.m4: Likewise.
95849         * m4/gettext.m4: Likewise.
95850         * m4/jm-mktime.m4: Likewise.
95851         * m4/jm-winsz2.m4: Likewise.
95852         * m4/lcmessage.m4: Likewise.
95853         * m4/ls-mntd-fs.m4: Likewise.
95854         * m4/malloc.m4: Likewise.
95855         * m4/memcmp.m4: Likewise.
95856         * m4/putenv.m4: Likewise.
95857         * m4/realloc.m4: Likewise.
95858         * m4/st_mtim.m4: Likewise.
95859         * m4/strftime.m4: Likewise.
95860
95861 1999-01-16  Jim Meyering  <meyering@ascend.com>
95862
95863         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95864         (ARGMATCH_DIE_DECL): Define.
95865
95866 1999-01-12  Jim Meyering  <meyering@ascend.com>
95867
95868         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95869         Reported by Lars Hecking.
95870
95871 1999-01-10  Jim Meyering  <meyering@ascend.com>
95872
95873         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95874         gross kludge.
95875         * m4/inttypes_h.m4: Likewise.
95876         * m4/lstat.m4: Likewise.
95877         * m4/malloc.m4: Likewise.
95878         * m4/readdir.m4: Likewise.
95879         * m4/realloc.m4: Likewise.
95880         * m4/st_dm_mode.m4: Likewise.
95881         * m4/stat.m4: Likewise.
95882         * m4/utimbuf.m4: Likewise.
95883         * m4/utimes.m4: Likewise.
95884
95885         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95886         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95887         comments in config.h.in are meaningful.
95888
95889         * m4/jm-macros.m4: Require autoconf-2.13 here.
95890
95891         * m4/regex.m4: By default, don't use the included regex.c on systems
95892         with glibc 2.  Suggestion from Uli Drepper.
95893
95894 1999-01-02  Jim Meyering  <meyering@ascend.com>
95895
95896         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95897
95898 1998-12-18  Jim Meyering  <meyering@ascend.com>
95899
95900         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95901         Based on a suggestion from Lars Hecking.
95902
95903 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95904
95905         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95906
95907 1998-11-16  Jim Meyering  <meyering@ascend.com>
95908
95909         * m4/lfs.m4: Double-quote the `uname...` expression.
95910
95911 1998-11-14  Jim Meyering  <meyering@ascend.com>
95912
95913         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95914         * m4/stat.m4: Likewise.
95915
95916 1998-11-03  Jim Meyering  <meyering@ascend.com>
95917
95918         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95919         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95920
95921 1998-10-18  Jim Meyering  <meyering@ascend.com>
95922
95923         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95924
95925 1998-10-17  Jim Meyering  <meyering@ascend.com>
95926
95927         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95928         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95929         calls for those previously hard-coded headers.  Instead, take a new
95930         parameter.
95931         (jm_CHECK_DECLARATIONS): Reflect interface change.
95932         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95933         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95934
95935         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95936
95937 1998-10-14  Jim Meyering  <meyering@ascend.com>
95938
95939         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95940         instead of "TZ=America/Vancouver".  From Paul Eggert.
95941
95942 1998-10-11  Jim Meyering  <meyering@ascend.com>
95943
95944         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95945         This adds a test for a recently added compatibility fix for mktime.c.
95946         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95947
95948 1998-09-27  Jim Meyering  <meyering@ascend.com>
95949
95950         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95951
95952         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95953         ../configure.in, including a change from Gordon Matzigkeit to allow
95954         cross-compiling for the Hurd.
95955
95956         * m4/glibc.m4: New file/macro to test for the GNU C Library
95957         versions 1 and 2.  From Gordon Matzigkeit.
95958         Indent.
95959
95960 1998-09-21  Jim Meyering  <meyering@ascend.com>
95961
95962         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95963
95964 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95965
95966         Port nanosecond-resolution times to UnixWare 2.1.2 and
95967         pedantic Solaris 2.6.
95968
95969         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95970         AC_STRUCT_ST_MTIM.
95971         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95972         Generate name of ns member, instead of just 1 or undef.
95973         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95974
95975 1998-08-15  Jim Meyering  <meyering@ascend.com>
95976
95977         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95978         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95979         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95980         instead of jm_TYPE_SSIZE_T.
95981
95982 1998-08-12  Jim Meyering  <meyering@ascend.com>
95983
95984         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95985
95986 1998-08-02  Jim Meyering  <meyering@ascend.com>
95987
95988         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95989         in acconfig.h manually.
95990
95991 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95992
95993         * m4/st_mtim.m4: New file.
95994
95995 1998-07-28  Jim Meyering  <meyering@ascend.com>
95996
95997         * m4/utimes.m4: Undef stat.
95998
95999 1998-07-25  Jim Meyering  <meyering@ascend.com>
96000
96001         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
96002         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
96003
96004 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
96005
96006         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96007         uid and gid actually remain unchanged.
96008
96009 1998-07-07  Jim Meyering  <meyering@ascend.com>
96010
96011         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96012
96013 1998-07-04  Jim Meyering  <meyering@ascend.com>
96014
96015         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96016         to prove that this macro can be used in packages without regex.c.
96017
96018 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96019
96020         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96021         is to be used.
96022
96023 1998-07-03  Jim Meyering  <meyering@ascend.com>
96024
96025         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96026
96027         * m4/gettext.m4: New file -- from gettext-0.10.35.
96028         * m4/lcmessage.m4: Likewise.
96029         * m4/progtest.m4: Likewise.
96030
96031         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96032         * m4/jm-macros.m4: Require the new macro.
96033
96034 1998-06-29  Jim Meyering  <meyering@ascend.com>
96035
96036         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96037         for the definition of NGROUPS (used in a system header included
96038         by sys/mount.h).
96039
96040 1998-06-28  Jim Meyering  <meyering@ascend.com>
96041
96042         * m4/ls-mntd-fs.m4: New file.
96043         * m4/fstypename.m4: New file.
96044
96045         * m4/jm-macros.m4: Require the new macro.
96046         * m4/jm-glibc-io.m4: New file.
96047
96048 1998-05-19  Jim Meyering  <meyering@ascend.com>
96049
96050         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96051         * m4/lchown.m4: New file.
96052
96053         * m4/Makefile.am.in: New file.
96054         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96055
96056 1998-05-14  Jim Meyering  <meyering@ascend.com>
96057
96058         * m4/Makefile.am (EXTRA_DIST): Add them.
96059         * m4/jm-macros.m4: New file.
96060         * m4/utimbuf.m4: New file.
96061
96062 1998-05-12  Jim Meyering  <meyering@ascend.com>
96063
96064         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96065
96066 1998-05-11  Jim Meyering  <meyering@ascend.com>
96067
96068         * m4/isc-posix.m4: New file.
96069
96070 1998-05-10  Jim Meyering  <meyering@ascend.com>
96071
96072         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96073
96074 1998-05-09  Jim Meyering  <meyering@ascend.com>
96075
96076         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96077         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96078         with automake.
96079
96080         * m4/ssize_t.m4: New file.
96081         * m4/mktime.m4: Remove file -- the new automake has this now.
96082
96083 1998-04-26  Jim Meyering  <meyering@ascend.com>
96084
96085         * m4/assert.m4: New file.
96086         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96087
96088 1998-04-05  Jim Meyering  <meyering@ascend.com>
96089
96090         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96091         (jm_PREREQ): Use it here.
96092
96093 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96094
96095         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96096         in acconfig.h.
96097
96098 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96099
96100         * m4/prereq.m4: New file.
96101         * m4/error.m4: New file.
96102         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96103
96104 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96105
96106         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96107         cache-check for the same variable -- that defeated the purpose of
96108         the test; the test program was never run.  This was a problem only
96109         on systems with losing getline functions -- HP-UX 10.20 is one.
96110         Reported by Bjorn Helgaas.
96111
96112 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96113
96114         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96115
96116 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96117
96118         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96119
96120         * m4/const.m4: New file.  Use an initializer in this declaration
96121         typedef int charset[2]; const charset x;
96122         Reported by Bob Glickstein.
96123
96124 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96125
96126         * m4/chown.m4: Fix reversed types on -1 args to chown.
96127         From Kaveh Ghazi.
96128
96129 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96130
96131         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96132         Add lseek and memchr.
96133
96134         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96135         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96136         have a 20-character limit on names.
96137
96138 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96139
96140         * m4/inttypes_h.m4: New file.
96141         * m4/uintmax_t.m4: New file.
96142         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
96143
96144
96145         -----
96146
96147         Local Variables:
96148         coding: utf-8
96149         End:
96150
96151         Copyright (C) 1997-2012 Free Software Foundation, Inc.
96152
96153         Copying and distribution of this file, with or without
96154         modification, are permitted provided the copyright notice
96155         and this notice are preserved.